|
@@ -10,27 +10,26 @@
|
|
<scroll-view scroll-y class="scroll-h-auto">
|
|
<scroll-view scroll-y class="scroll-h-auto">
|
|
<template v-for="(item, index) in nodeData">
|
|
<template v-for="(item, index) in nodeData">
|
|
<view class="fold-tree-node" :class="primaryId === item.primaryKeyId?'current':''">
|
|
<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">
|
|
<view class="flex flex-items-center icon">
|
|
<template v-if="!item.notExsitChild">
|
|
<template v-if="!item.notExsitChild">
|
|
<text class="i-ri-arrow-up-s-fill" v-if="primaryId === item.primaryKeyId"/>
|
|
<text class="i-ri-arrow-up-s-fill" v-if="primaryId === item.primaryKeyId"/>
|
|
<text class="i-ri-arrow-down-s-fill" v-else/>
|
|
<text class="i-ri-arrow-down-s-fill" v-else/>
|
|
</template>
|
|
</template>
|
|
</view>
|
|
</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>
|
|
<view class="node-child" v-if="primaryId === item.primaryKeyId">
|
|
<view class="node-child" v-if="primaryId === item.primaryKeyId">
|
|
<template v-for="(items, indexs) in item.childData">
|
|
<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">
|
|
<view class="flex flex-items-center icon">
|
|
<text class="i-ri-arrow-down-s-fill" v-if="!items.notExsitChild"/>
|
|
<text class="i-ri-arrow-down-s-fill" v-if="!items.notExsitChild"/>
|
|
</view>
|
|
</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>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
</view>
|
|
</view>
|