Prechádzať zdrojové kódy

任务下发功能中的具体机构选择组件 再次进入点“确定”或导致选中机构数量翻倍

zhulu 9 mesiacov pred
rodič
commit
83f1db67a4

+ 1 - 1
src/components/orgSelect/zl.orgSelect.vue

@@ -539,6 +539,7 @@ export default {
     initHistorySelectOrg() {
       if (this.value && this.value.length > 0) {
         let initHistorySelectOrgs = [];
+        this.boundOrgsClone=[];
         let tempBoundOrgIds = [];
         this.value.forEach((x) => {
           let tempOrgIndex = this.orgs.findIndex((y) => y.id == x);
@@ -553,7 +554,6 @@ export default {
         this.currentTempList = JSON.parse(
           JSON.stringify(initHistorySelectOrgs)
         );
-        console.log("initHistorySelectOrg", this.currentTempList, new Date());
       } else {
         this.currentTempList = [];
         this.boundOrgIds = [];

+ 2 - 1
src/views/resumption/plan/dialog.edit.vue

@@ -920,6 +920,7 @@ export default {
     // 事件
     onHide() {
       this.isShow = false;
+      this.formData = this.reset();
     },
     onClose() {
       this.formData = this.reset();
@@ -1012,7 +1013,7 @@ export default {
         .then((data) => {
           // this.isSubmitting = false;
           this.loading = false;
-          this.$emit("success");
+          this.$emit("success");          
           this.onHide();
         })
         .catch((err) => {