From 99340c754ca99b95d0e70b3cc7db4eae8c8a6e69 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 04 十二月 2023 09:53:27 +0800
Subject: [PATCH] 11

---
 src/views/project/fund/performancedetails/index.vue |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue
index eb106e5..4374e69 100644
--- a/src/views/project/fund/performancedetails/index.vue
+++ b/src/views/project/fund/performancedetails/index.vue
@@ -254,13 +254,9 @@
               align="center"
               label="韬唤璇佸彿"
               width="200"
-            > 
+            >
               <template slot-scope="scope">
-                <el-input
-                  
-                  v-model="scope.row.idcardno"
-                  placeholder="韬唤璇佸彿"
-                />
+                <el-input v-model="scope.row.idcardno" placeholder="韬唤璇佸彿" />
               </template>
             </el-table-column>
 
@@ -272,7 +268,6 @@
             >
               <template slot-scope="scope">
                 <el-input
-                  
                   v-model="scope.row.depositbank"
                   placeholder="寮�鎴烽摱琛�"
                 />
@@ -286,7 +281,6 @@
             >
               <template slot-scope="scope">
                 <el-input
-                  
                   v-model="scope.row.bankcardno"
                   placeholder="閾惰甯愬彿"
                 />
@@ -1316,17 +1310,25 @@
           addorupdateFund(this.form).then(response => {
             console.log(response, "淇濆瓨杩斿弬");
             if (response.code === 200) {
-              this.$modal.msgSuccess("鐢宠鍗曚繚瀛樻垚鍔燂紒");
-              this.$store.dispatch("tagsView/delView", this.$route);
-              this.$router.push({
-                path: "/finance/performancedetails/",
-                query: {
-                  id: response.data,
-                  businessType: "5",
-                  operationType: "update"
-                }
-              });
+              if (this.form.id) {
+                this.$modal.msgSuccess("鐢宠鍗曚慨鏀规垚鍔燂紒");
+                this.$router.go(-1);
+              } else {
+                this.$modal.msgSuccess("鐢宠鍗曚繚瀛樻垚鍔燂紒");
+                this.$store.dispatch("tagsView/delView", this.$route);
+                this.$router.push({
+                  path: "/finance/performancedetails/",
+                  query: {
+                    id: response.data,
+                    businessType: "5",
+                    operationType: "update"
+                  }
+                });
+              }
               this.Routinglevel++;
+              this.form.id = response.data;
+              this.curId = response.data;
+              this.handleUpdate();
             } else {
               this.$modal.msgError("鐢宠鍗曚繚瀛樺け璐ワ細" + response.msg);
             }

--
Gitblit v1.9.3