通道配对,预检测界面

This commit is contained in:
sjl
2025-08-05 10:37:40 +08:00
parent 0079f7415e
commit 9c5e54507b
14 changed files with 1550 additions and 343 deletions

View File

@@ -35,7 +35,7 @@
<span>{{ node.label }}</span>
<!-- 子节点右侧图标 + tooltip -->
<el-tooltip
v-if="data.name == '34535'"
v-if="node.label!='未检' && node.label!='检测中' && node.label!='检测完成'"
placement="top"
:manual="true"
content="子计划信息">
@@ -49,13 +49,13 @@
</el-tree>
</div>
</div>
<SourceOpen ref='openSourceView' :width="width" :height="height"></SourceOpen>
<SourceOpen ref='openSourceView' :width="width" :height="height + 175"></SourceOpen>
</template>
<script lang='ts' setup>
import { type Plan } from '@/api/plan/interface';
import { Menu, Platform, CircleCheck,Loading } from '@element-plus/icons-vue'
import { nextTick, onMounted, ref, watch } from 'vue';
import { nextTick, onMounted, PropType, ref, watch } from 'vue';
import { useRouter } from 'vue-router'
import {useCheckStore} from "@/stores/modules/check";
import { ElTooltip } from 'element-plus';
@@ -68,6 +68,7 @@ const checkStore = useCheckStore()
const filterText = ref('')
const treeRef = ref()
const data: any = ref([])
const defaultProps = {
children: 'children',
label: 'name',
@@ -82,7 +83,6 @@ const getTreeData = (val: any) => {
defaultChecked.value = [];
// 遍历 val 的每个 children过滤掉 pid !== '0'
data.value = val
for (let item of data.value) {
if (item.children.length > 0) {
let node = item.children[0];
@@ -124,11 +124,13 @@ const clickTableToTree = (val: any,id:any) => {
}
}
const {updateSelectedTreeNode,width,height} = defineProps<{
const {updateSelectedTreeNode,width,height,planArray} = defineProps<{
updateSelectedTreeNode:Function;
width: number;
height: number;
planArray?: Plan.ReqPlan[];
}>();
watch(
() => searchForm.value.planName,
(val) => {
@@ -168,7 +170,9 @@ const detail = () => {
}
const childDetail = (data: Plan.ResPlan) => {
console.log('planArray',planArray)
openSourceView.value.open("检测计划详情",data)
}