From 06c72478d0c12e20e9089cb18e59d67f363e9b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=99=8C?= Date: Thu, 20 Jul 2023 22:27:04 +0800 Subject: [PATCH] no message --- src/components/xUpdate/index.vue | 9 +++------ src/views/system/table/index.vue | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/xUpdate/index.vue b/src/components/xUpdate/index.vue index 042392c..0a5e60f 100644 --- a/src/components/xUpdate/index.vue +++ b/src/components/xUpdate/index.vue @@ -52,7 +52,7 @@ }, methods: { // 显示 - open(mode='add'){ + open(mode='plus'){ this.mode = mode; this.visible = true; return this; @@ -61,14 +61,11 @@ submit(){ this.$refs.formref.validate(async (valid) => { if (valid) { - this.isSaveing = true; - if (!this.config.url) { - console.log(this.data, this.token) - this.$alert('没有编辑相关配置', "提示", {type: 'error'}); + this.$alert('没有'+ ((this.config.name || this.titleMap[this.mode]) || '编辑') +'数据相关配置', "提示", {type: 'error'}); return; } - + this.isSaveing = true; this.$http.post(this.config.url, {token:this.token, info:this.data}).then((res) => { this.isSaveing = false; if (res.code == 200 ) { diff --git a/src/views/system/table/index.vue b/src/views/system/table/index.vue index 5fdeb55..ad7c871 100644 --- a/src/views/system/table/index.vue +++ b/src/views/system/table/index.vue @@ -191,7 +191,7 @@ plus(){ this.dialog.save = true this.$nextTick(() => { - this.$refs.saveDialog.open().setData({}).setConfig(this.operation.plus) + this.$refs.saveDialog.open('plus').setData({}).setConfig(this.operation.plus) }) }, //编辑