wip
This commit is contained in:
parent
565c1d78d1
commit
fa61a18e92
|
|
@ -132,6 +132,7 @@
|
||||||
checkedCreate(type, index) {
|
checkedCreate(type, index) {
|
||||||
this.dialog.show = true
|
this.dialog.show = true
|
||||||
this.dialog.type = type
|
this.dialog.type = type
|
||||||
|
this.dialog.index = index
|
||||||
|
|
||||||
if (type == 'edit') {
|
if (type == 'edit') {
|
||||||
let tax = this.regions[index];
|
let tax = this.regions[index];
|
||||||
|
|
@ -179,7 +180,11 @@
|
||||||
|
|
||||||
$http[type](url, this.dialog.form).then((res) => {
|
$http[type](url, this.dialog.form).then((res) => {
|
||||||
this.$message.success(res.message);
|
this.$message.success(res.message);
|
||||||
this.regions.push(res.data)
|
if (type == 'add') {
|
||||||
|
this.regions.push(res.data)
|
||||||
|
} else {
|
||||||
|
this.regions[this.dialog.index] = res.data
|
||||||
|
}
|
||||||
this.dialog.show = false
|
this.dialog.show = false
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue