微调
This commit is contained in:
@@ -276,6 +276,22 @@ const getPieData = async (id: string) => {
|
||||
const boundPqDevList = ref<Device.ResPqDev[]>([])//根据检测计划id查询出所有已绑定的设备
|
||||
const plan = findPlanById(planList.value?.data || [], id)
|
||||
planName.value = '所选计划:' + plan.name
|
||||
//获取点击树的父节点名字
|
||||
const parentNodeName = ref('')
|
||||
for (let i = 0; i < planList.value.data.length; i++) {
|
||||
if (Array.isArray(planList.value.data[i].children) && planList.value.data[i].children.length > 0) {
|
||||
for (let j = 0; j < planList.value.data[i].children.length; j++) {
|
||||
if (planList.value.data[i].children[j].id === id) {
|
||||
parentNodeName.value = planList.value.data[i].name
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(parentNodeName.value === '检测中'){
|
||||
|
||||
}
|
||||
|
||||
select_Plan.value = plan
|
||||
if (plan) {
|
||||
//isTimeCheck.value = plan.timeCheck === 1; // 将 1 转换为 true,0 转换为 false
|
||||
@@ -360,6 +376,7 @@ const planDetail = () => {
|
||||
|
||||
//功能选择css切换
|
||||
const handleCheckFunction = (val: any) => {
|
||||
|
||||
editableTabsValue.value = '0'
|
||||
form.value.activeChildTabs = 0
|
||||
tabsList.value.map((item: any, index: any) => {
|
||||
@@ -437,6 +454,7 @@ onBeforeMount(async () => {
|
||||
}
|
||||
planList.value = (await getPlanListByPattern(reqPlan)) as ResultData<Plan.ReqPlan[]>
|
||||
|
||||
console.log(planList.value.data)
|
||||
for (let i = 0; i < planList.value.data.length; i++) {
|
||||
if (Array.isArray(planList.value.data[i].children) && planList.value.data[i].children.length > 0) {
|
||||
currentId.value = planList.value.data[i].children[0].id; // 直接赋值第一个 children 的 id
|
||||
|
||||
Reference in New Issue
Block a user