Bläddra i källkod

汽保设备档案,设备维修重置列

caojunjie 1 år sedan
förälder
incheckning
acfabf5939

+ 12 - 0
src/enums/column-name.js

@@ -1244,7 +1244,19 @@ const columnName = [{
 },
   {
     code: 282,
+    name: '设备档案'
+  },
+  {
+    code: 282.1,
+    name: '设备档案-设备信息'
+  },
+  {
+    code: 283,
     name: '设备维修'
+  },
+  {
+    code: 283.1,
+    name: '设备维修-维修项目'
   }
 ]
 export const getColumnName = (key) => {

+ 7 - 4
src/views/EquipmentArchives/detailsPage.vue

@@ -252,7 +252,7 @@
 </template>
 
 <script>
-import { optionList } from "./js/optionList";
+import { optionList} from "./js/optionList";
 import { optionTwo } from "./js/optionListTwo";
 import reportDialog from "@/components/report-dialog/main";
 import { multiply, sum, subtract } from "@/util/calculate";
@@ -574,7 +574,8 @@ export default {
     reportDialog
   },
   async created() {
-    this.optionList = optionList
+    // this.optionList = optionList
+      this.optionList = await this.getColumnData(this.getColumnName(282.1), optionList);
       // 获取字典数据
       this.getAllWorkDicts()
       // 查看是否要id调用详情
@@ -890,7 +891,8 @@ export default {
           this.imgfalse = false
       },
     async saveColumn() {
-      const inSave = optionList
+      // const inSave = optionList
+        const inSave = await this.delColumnData(this.getColumnName(282.1), optionList);
       if (inSave) {
         this.$nextTick(() => {
           this.$refs.crud.doLayout();
@@ -902,7 +904,8 @@ export default {
     },
     async resetColumn() {
       this.optionList = optionList;
-      const inSave = optionList
+      // const inSave = optionList
+        const inSave = await this.delColumnData(this.getColumnName(282.1), optionList);
       if (inSave) {
         this.$nextTick(() => {
           this.$refs.crud.doLayout();

+ 5 - 3
src/views/EquipmentArchives/index.vue

@@ -90,7 +90,8 @@ export default {
     detailsPage
   },
   async created() {
-    this.option = option
+    // this.option = option
+      this.option = await this.getColumnData(this.getColumnName(282), option);
       this.optionXiala = optionXiala
     this.option.height = window.innerHeight - 210;
   },
@@ -214,7 +215,7 @@ export default {
     },
     async saveColumn() {
       const inSave = await this.saveColumnData(
-        this.getColumnName(213),
+        this.getColumnName(282),
         this.option
       );
       if (inSave) {
@@ -228,7 +229,8 @@ export default {
     },
     async resetColumn() {
       this.option = option;
-      const inSave = option
+      // const inSave = option
+        const inSave = await this.delColumnData(this.getColumnName(282), option);
       if (inSave) {
         this.$nextTick(() => {
           this.$refs.crud.doLayout();

+ 6 - 3
src/views/maintenanceQ/detailsPage.vue

@@ -369,7 +369,8 @@ export default {
   },
 
   async created() {
-    this.optionList = optionList
+    // this.optionList = optionList
+      this.optionList = await this.getColumnData(this.getColumnName(283.1), optionList);
       // 获取字典数据
       this.getAllWorkDicts()
       // 查看是否要id调用详情
@@ -657,7 +658,8 @@ export default {
       },
 
     async saveColumn() {
-      const inSave = optionList
+      // const inSave = optionList
+        const inSave = await this.delColumnData(this.getColumnName(283.1), optionList);
       if (inSave) {
         this.$nextTick(() => {
           this.$refs.crud.doLayout();
@@ -669,7 +671,8 @@ export default {
     },
     async resetColumn() {
       this.optionList = optionList;
-      const inSave = optionList
+      // const inSave = optionList
+        const inSave = await this.delColumnData(this.getColumnName(283.1), optionList);
       if (inSave) {
         this.$nextTick(() => {
           this.$refs.crud.doLayout();

+ 5 - 3
src/views/maintenanceQ/index.vue

@@ -73,7 +73,8 @@ export default {
         detailsPage
     },
     async created() {
-        this.option = option
+        // this.option = option
+        this.option = await this.getColumnData(this.getColumnName(283), option);
         this.option.height = window.innerHeight - 210;
 
         // 路由跳转
@@ -196,7 +197,7 @@ export default {
         },
         async saveColumn() {
             const inSave = await this.saveColumnData(
-                this.getColumnName(213),
+                this.getColumnName(283),
                 this.option
             );
             if (inSave) {
@@ -210,7 +211,8 @@ export default {
         },
         async resetColumn() {
             this.option = option;
-            const inSave = option
+            // const inSave = option
+            const inSave = await this.delColumnData(this.getColumnName(283), option);
             if (inSave) {
                 this.$nextTick(() => {
                     this.$refs.crud.doLayout();