微调
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
<span class="node-label">{{ node.label }}</span>
|
||||
<span class="node-actions">
|
||||
<PieChart
|
||||
v-if="isCompletedPlanNode(node.data)"
|
||||
v-if="!isCompareMode && isCompletedPlanNode(node.data)"
|
||||
class="node-action-icon"
|
||||
@click.stop="openStatistics(node.data)"
|
||||
style="margin-right: 8px"
|
||||
@@ -73,7 +73,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { type Plan } from '@/api/plan/interface'
|
||||
import { List, Menu, PieChart, Platform } from '@element-plus/icons-vue'
|
||||
import { nextTick, onMounted, ref, watch } from 'vue'
|
||||
import { computed, nextTick, onMounted, ref, watch } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useCheckStore } from '@/stores/modules/check'
|
||||
import { ElTooltip } from 'element-plus'
|
||||
@@ -91,6 +91,7 @@ const filterText = ref('')
|
||||
const treeRef = ref()
|
||||
const data: any = ref([])
|
||||
const modeStore = useModeStore()
|
||||
const isCompareMode = computed(() => modeStore.currentMode === '比对式')
|
||||
const dictStore = useDictStore()
|
||||
|
||||
const defaultProps = {
|
||||
|
||||
@@ -464,9 +464,11 @@ const getPieData = async (id: string) => {
|
||||
planName.value = '所选计划:'
|
||||
}
|
||||
|
||||
pieRef1.value.init()
|
||||
pieRef2.value.init()
|
||||
pieRef3.value.init()
|
||||
if (pieRef1.value && pieRef2.value && pieRef3.value) {
|
||||
pieRef1.value.init()
|
||||
pieRef2.value.init()
|
||||
pieRef3.value.init()
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 初始化树组件数据
|
||||
|
||||
Reference in New Issue
Block a user