no message
This commit is contained in:
parent
e7170d9fec
commit
06c72478d0
@ -52,7 +52,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 显示
|
// 显示
|
||||||
open(mode='add'){
|
open(mode='plus'){
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
return this;
|
return this;
|
||||||
@ -61,14 +61,11 @@
|
|||||||
submit(){
|
submit(){
|
||||||
this.$refs.formref.validate(async (valid) => {
|
this.$refs.formref.validate(async (valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSaveing = true;
|
|
||||||
|
|
||||||
if (!this.config.url) {
|
if (!this.config.url) {
|
||||||
console.log(this.data, this.token)
|
this.$alert('没有'+ ((this.config.name || this.titleMap[this.mode]) || '编辑') +'数据相关配置', "提示", {type: 'error'});
|
||||||
this.$alert('没有编辑相关配置', "提示", {type: 'error'});
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.isSaveing = true;
|
||||||
this.$http.post(this.config.url, {token:this.token, info:this.data}).then((res) => {
|
this.$http.post(this.config.url, {token:this.token, info:this.data}).then((res) => {
|
||||||
this.isSaveing = false;
|
this.isSaveing = false;
|
||||||
if (res.code == 200 ) {
|
if (res.code == 200 ) {
|
||||||
|
@ -191,7 +191,7 @@
|
|||||||
plus(){
|
plus(){
|
||||||
this.dialog.save = true
|
this.dialog.save = true
|
||||||
this.$nextTick(() => {
|
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