ZaiZai 2 yıl önce
ebeveyn
işleme
d531ff494d
1 değiştirilmiş dosya ile 8 ekleme ve 9 silme
  1. 8 9
      pages/data-fill/treeData.vue

+ 8 - 9
pages/data-fill/treeData.vue

@@ -10,27 +10,26 @@
             <scroll-view scroll-y class="scroll-h-auto">
                 <template v-for="(item, index) in nodeData">
                     <view class="fold-tree-node" :class="primaryId === item.primaryKeyId?'current':''">
-                        <view class="flex flex-items-center node-title"
-                              :class="item.notExsitChild?'blue':''"
-                              @click="getLoadItemNode(item, index)">
+                        <view class="flex flex-items-center node-title" @click="getLoadItemNode(item, index)">
                             <view class="flex flex-items-center icon">
                                 <template v-if="!item.notExsitChild">
                                     <text class="i-ri-arrow-up-s-fill" v-if="primaryId === item.primaryKeyId"/>
                                     <text class="i-ri-arrow-down-s-fill" v-else/>
                                 </template>
                             </view>
-                            <view class="content">{{item.title}}</view>
+                            <view class="content" :class="item.colorStatus === 2 ? 'text-blue-5':item.colorStatus === 3 ? 'text-orange-5': item.colorStatus === 4 ? 'text-green-5': ''">
+                                {{item.title}}【{{ item.submitCounts ?? 0 }}】
+                            </view>
                         </view>
                         <view class="node-child" v-if="primaryId === item.primaryKeyId">
                             <template v-for="(items, indexs) in item.childData">
-                                <view class="flex flex-items-center node-title"
-                                      :class="items.notExsitChild?'blue':''"
-                                      @click="getLoadItemNode(items, indexs, index)"
-                                >
+                                <view class="flex flex-items-center node-title" @click="getLoadItemNode(items, indexs, index)">
                                     <view class="flex flex-items-center icon">
                                         <text class="i-ri-arrow-down-s-fill" v-if="!items.notExsitChild"/>
                                     </view>
-                                    <view class="content">{{items.title}}</view>
+                                    <view class="content" :class="item.colorStatus === 2 ? 'text-blue-5':item.colorStatus === 3 ? 'text-orange-5': item.colorStatus === 4 ? 'text-green-5': ''">
+                                        {{items.title}}【{{ item.submitCounts ?? 0 }}】
+                                    </view>
                                 </view>
                             </template>
                         </view>