Bladeren bron

opcode 防火墙更改赋值顺序

hujunwei@agilestar.cn 2 jaren geleden
bovenliggende
commit
de1c6e5565
2 gewijzigde bestanden met toevoegingen van 19 en 6 verwijderingen
  1. 9 3
      src/pages/main/firewall/formTable.vue
  2. 10 3
      src/pages/main/opcode/formTables.vue

+ 9 - 3
src/pages/main/firewall/formTable.vue

@@ -436,6 +436,9 @@ export default {
         },
     },
     mounted() {
+        if (this.list.id) {
+            this.form = this.list;
+        }
         if (this.list.mkFileShareAttachList) {
             this.$refs.upload.attList = this.list.mkFileShareAttachList;
             this.list.mkFileShareAttachList.map((item) => {
@@ -447,9 +450,12 @@ export default {
         this.getPortQuery(this.form.orderNumber)
     },
     created() {
-        this.form = this.list;
-        this.form.applicant = JSON.parse(window.sessionStorage.userInfo).loginName
-        this.form.applicationTime = new Date()
+        this.form = {
+            applicant: JSON.parse(window.sessionStorage.userInfo).loginName,
+            applicationTime: new Date(),
+            taskName: this.list.taskName,
+            orderNumber: this.list.orderNumber,
+        }
         this.copyRule = this.rule;
     },
 

+ 10 - 3
src/pages/main/opcode/formTables.vue

@@ -271,6 +271,9 @@ export default {
         },
     },
     mounted() {
+        if (this.list.id) {
+            this.form = this.list;
+        }
         if (this.list.mkFileShareAttachList) {
             this.$refs.upload.attList = this.list.mkFileShareAttachList;
             this.list.mkFileShareAttachList.map((item) => {
@@ -281,12 +284,16 @@ export default {
             this.getFromQuery(this.form.orderNumber)
         }
 
+
     },
     created() {
-        this.form = this.list;
+        this.form = {
+            applicant: JSON.parse(window.sessionStorage.userInfo).loginName,
+            applicationTime: new Date(),
+            taskName: this.list.taskName,
+            orderNumber: this.list.orderNumber,
+        }
         this.copyRule = this.rule;
-        this.form.applicant = JSON.parse(window.sessionStorage.userInfo).loginName
-        this.form.applicationTime = new Date();
         this.getcityList()
     },