From fed966910a569881a464aed2891d2e14c304b4f0 Mon Sep 17 00:00:00 2001 From: xusd Date: Fri, 13 Sep 2024 17:13:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/system/dnc/dncProgramInfo/DncProgramInfoForm.vue | 5 +++++ imt-ui/src/views/system/dnc/dncProgramInfo/index.vue | 5 +++++ .../views/system/equip/componentInfo/ComponentInfoForm.vue | 5 +++++ imt-ui/src/views/system/equip/componentInfo/index.vue | 5 +++++ .../maintenanceInfo/RemoteMaintenanceOrderForm.vue | 5 +++++ .../views/system/maintenance/maintenanceInfo/create.vue | 7 ++++++- .../views/system/maintenance/maintenanceInfo/details.vue | 5 +++++ .../src/views/system/maintenance/maintenanceInfo/index.vue | 5 +++++ .../views/system/maintenance/maintenanceRecord/index.vue | 5 +++++ 9 files changed, 46 insertions(+), 1 deletion(-) diff --git a/imt-ui/src/views/system/dnc/dncProgramInfo/DncProgramInfoForm.vue b/imt-ui/src/views/system/dnc/dncProgramInfo/DncProgramInfoForm.vue index 3629398..f42e14c 100644 --- a/imt-ui/src/views/system/dnc/dncProgramInfo/DncProgramInfoForm.vue +++ b/imt-ui/src/views/system/dnc/dncProgramInfo/DncProgramInfoForm.vue @@ -79,6 +79,11 @@ export default { }, created() { getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }) }, diff --git a/imt-ui/src/views/system/dnc/dncProgramInfo/index.vue b/imt-ui/src/views/system/dnc/dncProgramInfo/index.vue index f0a2252..7d1a422 100644 --- a/imt-ui/src/views/system/dnc/dncProgramInfo/index.vue +++ b/imt-ui/src/views/system/dnc/dncProgramInfo/index.vue @@ -127,6 +127,11 @@ export default { created() { this.getList(); getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }) }, diff --git a/imt-ui/src/views/system/equip/componentInfo/ComponentInfoForm.vue b/imt-ui/src/views/system/equip/componentInfo/ComponentInfoForm.vue index 85a2317..a2e3396 100644 --- a/imt-ui/src/views/system/equip/componentInfo/ComponentInfoForm.vue +++ b/imt-ui/src/views/system/equip/componentInfo/ComponentInfoForm.vue @@ -93,6 +93,11 @@ export default { }, created() { getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }) }, diff --git a/imt-ui/src/views/system/equip/componentInfo/index.vue b/imt-ui/src/views/system/equip/componentInfo/index.vue index 309ce9d..862f3dd 100644 --- a/imt-ui/src/views/system/equip/componentInfo/index.vue +++ b/imt-ui/src/views/system/equip/componentInfo/index.vue @@ -131,6 +131,11 @@ export default { created() { this.getList(); getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }) }, diff --git a/imt-ui/src/views/system/maintenance/maintenanceInfo/RemoteMaintenanceOrderForm.vue b/imt-ui/src/views/system/maintenance/maintenanceInfo/RemoteMaintenanceOrderForm.vue index dfad6ce..255876f 100644 --- a/imt-ui/src/views/system/maintenance/maintenanceInfo/RemoteMaintenanceOrderForm.vue +++ b/imt-ui/src/views/system/maintenance/maintenanceInfo/RemoteMaintenanceOrderForm.vue @@ -153,6 +153,11 @@ export default { }, initSelection(){ getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }); getComponentSelection().then(res=>{ diff --git a/imt-ui/src/views/system/maintenance/maintenanceInfo/create.vue b/imt-ui/src/views/system/maintenance/maintenanceInfo/create.vue index f63187c..82987e3 100644 --- a/imt-ui/src/views/system/maintenance/maintenanceInfo/create.vue +++ b/imt-ui/src/views/system/maintenance/maintenanceInfo/create.vue @@ -8,7 +8,7 @@ @@ -174,6 +174,11 @@ export default { }, initSelection(){ getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }); getComponentSelection().then(res=>{ diff --git a/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue b/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue index 0c77c16..9855139 100644 --- a/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue +++ b/imt-ui/src/views/system/maintenance/maintenanceInfo/details.vue @@ -253,6 +253,11 @@ export default { }, initSelection(){ getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }); getComponentSelection().then(res=>{ diff --git a/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue b/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue index a0dda90..c2ff122 100644 --- a/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue +++ b/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue @@ -202,6 +202,11 @@ export default { }, initSelection(){ getEquipCascader().then(res=>{ + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }); getComponentSelection().then(res=>{ diff --git a/imt-ui/src/views/system/maintenance/maintenanceRecord/index.vue b/imt-ui/src/views/system/maintenance/maintenanceRecord/index.vue index 9215532..7933f41 100644 --- a/imt-ui/src/views/system/maintenance/maintenanceRecord/index.vue +++ b/imt-ui/src/views/system/maintenance/maintenanceRecord/index.vue @@ -289,6 +289,11 @@ export default { }, initSelection() { getEquipCascader().then(res => { + res.forEach(item=>{ + if (item.children == null){ + item.disabled = true; + } + }) this.equipCascader = res; }); getComponentSelection().then(res => {