luojun vor 1 Jahr
Ursprung
Commit
501803b928

+ 11 - 11
src/views/safetyBook/aqbwbndjh/dialog.des.vue

@@ -181,17 +181,17 @@ export default {
   watch: {},
   computed: {
     ...mapState([]),
-    joinedStringArray: {
-      get() {
-        if (this.formData.names == null || this.formData.names == undefined) {
-          this.formData.names = this.formData.userNames.split(", ");
-        }
-        return this.formData.names.join(", ");
-      },
-      set(value) {
-        this.formData.names = value.split(", ");
-      },
-    },
+    // joinedStringArray: {
+    //   get() {
+    //     if (this.formData.names == null || this.formData.names == undefined) {
+    //       this.formData.names = this.formData.userNames.split(", ");
+    //     }
+    //     return this.formData.names.join(", ");
+    //   },
+    //   set(value) {
+    //     this.formData.names = value.split(", ");
+    //   },
+    // },
   },
   methods: {
     ...mapMutations([]),

+ 11 - 11
src/views/safetyBook/aqbwbndjh/dialog.edit.vue

@@ -151,17 +151,17 @@ export default {
   computed: {
     ...mapState([]),
     ...mapGetters(["orgId", "orgName"]),
-    joinedStringArray: {
-      get() {
-        if (this.formData.names == null || this.formData.names == undefined) {
-          this.formData.names = this.formData.userNames.split(", ");
-        }
-        return this.formData.names.join(", ");
-      },
-      set(value) {
-        this.formData.names = value.split(", ");
-      },
-    },
+    // joinedStringArray: {
+    //   get() {
+    //     if (this.formData.names == null || this.formData.names == undefined) {
+    //       this.formData.names = this.formData.userNames.split(", ");
+    //     }
+    //     return this.formData.names.join(", ");
+    //   },
+    //   set(value) {
+    //     this.formData.names = value.split(", ");
+    //   },
+    // },
   },
   methods: {
     ...mapMutations([]),

+ 12 - 12
src/views/safetyBook/hsggbsdj/dialog.des.vue

@@ -197,17 +197,17 @@ export default {
   watch: {},
   computed: {
     ...mapState([]),
-    joinedStringArray: {
-      get() {
-        if (this.formData.names == null || this.formData.names == undefined) {
-          this.formData.names = this.formData.userNames.split(", ");
-        }
-        return this.formData.names.join(", ");
-      },
-      set(value) {
-        this.formData.names = value.split(", ");
-      },
-    },
+    // joinedStringArray: {
+    //   get() {
+    //     if (this.formData.names == null || this.formData.names == undefined) {
+    //       this.formData.names = this.formData.userNames.split(", ");
+    //     }
+    //     return this.formData.names.join(", ");
+    //   },
+    //   set(value) {
+    //     this.formData.names = value.split(", ");
+    //   },
+    // },
   },
   methods: {
     ...mapMutations([]),
@@ -253,7 +253,7 @@ export default {
     async refresh(id) {
       if (id != null && id != undefined) {
         await gethsggbsdj(id).then((res) => {
-          this.formData.names = res.data.userNames.split(",");
+          // this.formData.names = res.data.userNames.split(",");
           this.formData = res.data;
           this.formFileListDefualtValue=res.data.images;
         });

+ 12 - 12
src/views/safetyBook/hsggbsdj/dialog.edit.vue

@@ -163,17 +163,17 @@ export default {
   computed: {
     ...mapState([]),
     ...mapGetters(["orgId", "orgName"]),
-    joinedStringArray: {
-      get() {
-        if (this.formData.names == null || this.formData.names == undefined) {
-          this.formData.names = this.formData.userNames.split(", ");
-        }
-        return this.formData.names.join(", ");
-      },
-      set(value) {
-        this.formData.names = value.split(", ");
-      },
-    },
+    // joinedStringArray: {
+    //   get() {
+    //     if (this.formData.names == null || this.formData.names == undefined) {
+    //       this.formData.names = this.formData.userNames.split(", ");
+    //     }
+    //     return this.formData.names.join(", ");
+    //   },
+    //   set(value) {
+    //     this.formData.names = value.split(", ");
+    //   },
+    // },
   },
   methods: {
     ...mapMutations([]),
@@ -217,7 +217,7 @@ export default {
       this.formFileListDefualtValue=[];
       if (id != null && id != undefined) {
         await gethsggbsdj(id).then((res) => {
-          this.formData.names = res.data.userNames.split(",");
+          // this.formData.names = res.data.userNames.split(",");
           this.formData = res.data;
           this.formFileListDefualtValue = res.data.images;
         });