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; } },