From 747a71efb3c5d92b78ef50b54e7737eb0135156b Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 6 Mar 2023 00:36:46 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=96=B0=E5=A2=9E=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/model.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/views/tool/model.vue b/src/views/tool/model.vue index cd4ab8c..f4b346e 100644 --- a/src/views/tool/model.vue +++ b/src/views/tool/model.vue @@ -67,6 +67,7 @@ import { import {entityDic, option, optionModel} from "@/const/tool/model"; import {validatenull} from "@/util/validate"; import {mapGetters} from "vuex"; +import {clearCache} from "@/api/user"; export default { data() { @@ -159,13 +160,24 @@ export default { }, methods: { rowSave(row, done, loading) { - add(row).then(() => { + add(row).then((res) => { done(); this.onLoad(this.page); this.$message({ type: "success", message: "操作成功!" }); + this.$confirm("是否进行模型配置?", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(() => { + let model = { + id: res.data.data.id, + datasourceId: res.data.data.datasourceId + }; + this.handleModel(model); + }); }, error => { loading(); window.console.log(error);