Selaa lähdekoodia

fix:评卷参数未及时清理勾选机构

zhangjie 2 vuotta sitten
vanhempi
commit
d00c827bef

+ 3 - 2
src/modules/stmms/components/markParam/ModifyMarkerQuestion.vue

@@ -119,6 +119,7 @@
 </template>
 
 <script>
+import { deepCopy } from "../../../../plugins/utils";
 import { organizationList } from "../../../base/api";
 
 export default {
@@ -254,7 +255,7 @@ export default {
         });
       };
       this.orgUsers = parseUser(data);
-      this.userTree = this.orgUsers;
+      this.userTree = deepCopy(this.orgUsers);
       this.getUserList();
     },
     getUserList() {
@@ -278,7 +279,7 @@ export default {
     },
     labelChange() {
       if (!this.filterLabel) {
-        this.userTree = this.orgUsers;
+        this.userTree = deepCopy(this.orgUsers);
       } else {
         const escapeRegexpString = (value = "") =>
           String(value).replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");