no message
This commit is contained in:
parent
e7170d9fec
commit
06c72478d0
@ -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 ) {
|
||||
|
@ -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)
|
||||
})
|
||||
},
|
||||
//编辑
|
||||
|
Loading…
Reference in New Issue
Block a user