From 916735aca6816732bc43a186dd9d7ccf5e5a1989 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期四, 14 十二月 2023 23:09:47 +0800 Subject: [PATCH] yxh:修改了账户管理和案例编辑 --- src/views/project/fund/performancedetails/index.vue | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue index f661042..ec00066 100644 --- a/src/views/project/fund/performancedetails/index.vue +++ b/src/views/project/fund/performancedetails/index.vue @@ -641,7 +641,7 @@ }, { id: 2, - name: "鐢宠鏉愭枡閫氳繃绛夊緟鏉愭枡" + name: "瀹℃牳閫氳繃绛夊緟閭瘎绾歌川鏉愭枡" }, { id: 3, @@ -1310,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