From 25fee48ceca7a54bc6008eb2e2fb6d8ea801a50e Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期五, 30 五月 2025 09:50:03 +0800
Subject: [PATCH] 前端修改

---
 src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanModal.vue |   87 +++++++++++++++++++++++--------------------
 1 files changed, 46 insertions(+), 41 deletions(-)

diff --git a/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanModal.vue b/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanModal.vue
index bb240ac..8c96797 100644
--- a/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanModal.vue
+++ b/src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanModal.vue
@@ -7,57 +7,62 @@
     switchFullscreen
     @ok="handleOk"
     :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
-    @cancel="handleCancel">
-    <equipment-maintenance-plan-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"/>
+    @cancel="handleCancel"
+  >
+    <equipment-maintenance-plan-form
+      ref="realForm"
+      @ok="submitCallback"
+      :disabled="disableSubmit"
+    />
   </j-modal>
 </template>
 
 <script>
 
-  import EquipmentMaintenancePlanForm from './EquipmentMaintenancePlanForm'
+import EquipmentMaintenancePlanForm from './EquipmentMaintenancePlanForm'
 
-  export default {
-    name: 'EquipmentMaintenancePlanModal',
-    components: {
-      EquipmentMaintenancePlanForm
+export default {
+  name: 'EquipmentMaintenancePlanModal',
+  components: {
+    EquipmentMaintenancePlanForm
+  },
+  data() {
+    return {
+      title: '',
+      width: 800,
+      visible: false,
+      disableSubmit: false
+    }
+  },
+  methods: {
+    add() {
+      this.visible = true
+      this.$nextTick(() => {
+        this.$refs.realForm.add();
+      })
     },
-    data() {
-      return {
-        title:'',
-        width:800,
-        visible: false,
-        disableSubmit: false
-      }
+    edit(record) {
+      this.visible = true
+      this.$nextTick(() => {
+        this.$refs.realForm.edit(record);
+      })
     },
-    methods:{
-      add () {
-        this.visible=true
-        this.$nextTick(()=>{
-          this.$refs.realForm.add();
-        })
-      },
-      edit (record) {
-        this.visible=true
-        this.$nextTick(()=>{
-          this.$refs.realForm.edit(record);
-        })
-      },
-      close () {
-        this.$emit('close');
-        this.visible = false;
-      },
-      handleOk () {
-        this.$refs.realForm.handleOk();
-      },
-      submitCallback(){
-        this.$emit('ok');
-        this.visible = false;
-      },
-      handleCancel () {
-        this.close()
-      }
+    close() {
+      this.$emit('close');
+      this.visible = false;
+    },
+    handleOk() {
+      this.$refs.realForm.handleOk();
+    },
+    submitCallback() {
+      this.$emit('ok');
+      this.visible = false;
+    },
+    handleCancel() {
+      this.close()
     }
   }
+}
 </script>
 
 <style scoped>

--
Gitblit v1.9.3