no message

This commit is contained in:
小陌 2023-07-20 22:27:04 +08:00
parent e7170d9fec
commit 06c72478d0
2 changed files with 4 additions and 7 deletions

View File

@ -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 ) {

View File

@ -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)
})
},
//