sqg 3 سال پیش
والد
کامیت
9de3d04b8e
1فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 7 7
      front-vue/src/views/service/creditLine/creditLine.vue

+ 7 - 7
front-vue/src/views/service/creditLine/creditLine.vue

@@ -521,7 +521,7 @@ export default {
     },
     /** 新增按钮操作 */
     handleAdd() {
-      this.resetQuery();
+      this.resetForm("queryForm");
       Cookies.set("/creditLine/addCreditLine/", this.$route.fullPath)
       this.$router.push("/creditLine/addCreditLine/");
     },
@@ -530,7 +530,7 @@ export default {
       const zfpcrId = row.zfpcrId || this.ids;
       const zfiAmount = row.zfiAmount;
       const usableAmount = row.usableAmount;
-      this.resetQuery();
+      this.resetForm("queryForm");
       Cookies.set("/creditLine/editCreditLine/" + zfpcrId + '/' + zfiAmount + '/' + usableAmount + '/', this.$route.fullPath)
       this.$router.push("/creditLine/editCreditLine/" + zfpcrId + '/' + zfiAmount + '/' + usableAmount + '/');
     },
@@ -540,7 +540,7 @@ export default {
       const zfiAmount = row.zfiAmount;
       const usableAmount = row.usableAmount;
       const companyType = this.companyType;
-      this.resetQuery();
+      this.resetForm("queryForm");
       Cookies.set("/creditLine/detailCreditLine/" + zfpcrId + '/' + zfiAmount + '/' + usableAmount + '/' + companyType + '/', this.$route.fullPath)
       this.$router.push("/creditLine/detailCreditLine/" + zfpcrId + '/' + zfiAmount + '/' + usableAmount + '/' + companyType + '/',);
     },
@@ -560,7 +560,7 @@ export default {
         return changeStatus(row.zfpcrId, row.zfiAmount,row.zfpcrStatus);
       })
       .then(() => {
-        this.resetQuery();
+        this.getList();
         this.msgSuccess(text + "成功");
       })
       
@@ -569,7 +569,7 @@ export default {
     handleSupplier(row){
       const zfpcrId = row.zfpcrId || this.ids;
       const zfpcrCompanyId = row.zfpcrCompanyId;
-      this.resetQuery();
+      this.resetForm("queryForm");
       Cookies.set("/creditLine/supplierCreditLine/" + zfpcrId + '/' + zfpcrCompanyId, this.$route.fullPath)
       this.$router.push("/creditLine/supplierCreditLine/" + zfpcrId + '/' + zfpcrCompanyId);
     },
@@ -593,7 +593,7 @@ export default {
               this.msgSuccess("修改成功");
               this.open = false;
               this.reset();
-              this.resetQuery();
+              this.getList();
             });
             loading.close();
           } else {
@@ -607,7 +607,7 @@ export default {
               this.msgSuccess("新增成功");
               this.open = false;
               this.reset();
-              this.resetQuery();
+              this.getList();
             });
             loading.close();
           }