From fd7e295975b7edea55576b738b8aabaa0f019731 Mon Sep 17 00:00:00 2001 From: lb Date: Sun, 4 Feb 2024 14:33:39 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BF=9D=E5=85=BB=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintain/PlanConfig--addContent.vue | 461 ++++++++++++++++++ .../specialEquipment/maintain/PlanConfig.vue | 26 +- 2 files changed, 482 insertions(+), 5 deletions(-) create mode 100644 src/views/specialEquipment/maintain/PlanConfig--addContent.vue diff --git a/src/views/specialEquipment/maintain/PlanConfig--addContent.vue b/src/views/specialEquipment/maintain/PlanConfig--addContent.vue new file mode 100644 index 00000000..5c8c9989 --- /dev/null +++ b/src/views/specialEquipment/maintain/PlanConfig--addContent.vue @@ -0,0 +1,461 @@ + + + + + + + diff --git a/src/views/specialEquipment/maintain/PlanConfig.vue b/src/views/specialEquipment/maintain/PlanConfig.vue index b8b77183..e2daefa0 100644 --- a/src/views/specialEquipment/maintain/PlanConfig.vue +++ b/src/views/specialEquipment/maintain/PlanConfig.vue @@ -44,8 +44,18 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + + + @@ -55,10 +65,11 @@ import basicPageMixin from '@/mixins/lb/basicPageMixin'; import { deleteEqMaintainPlan } from '@/api/equipment/base/maintain/record'; import { publicFormatter } from '@/utils/dict'; import PlanConfigAdd from './PlanConfig--add.vue'; +import PlanConfigAddContent from './PlanConfig--addContent.vue'; export default { name: 'SpecialEquipmentPlanConfig', - components: { DialogForm: PlanConfigAdd }, + components: { DialogForm: PlanConfigAdd, PlanConfigAddContent }, mixins: [basicPageMixin], data() { const t = new Date(); @@ -305,6 +316,8 @@ export default { // 表单参数 form: {}, basePath: '/base/equipment-maintain-plan', + addContentDrawerVisible: false, + maintainData: null, }; }, created() { @@ -357,11 +370,14 @@ export default { }; this.resetForm('form'); }, - handleTableActions({data, type}) { - switch(type) { + handleTableActions({ data, type }) { + switch (type) { case 'addContent': // 添加内容 - alert('添加内容...') + this.addContentDrawerVisible = true; + this.$nextTick(() => { + this.$refs.planConfigDetailDrawer.show(data); + }); break; } },