优化
This commit is contained in:
parent
e91ff5ce97
commit
205b818168
|
@ -316,6 +316,9 @@ export default {
|
||||||
updateAreaSub({id: row.id, status: val}).then(response => {
|
updateAreaSub({id: row.id, status: val}).then(response => {
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
this.$modal.msgSuccess("更新成功");
|
this.$modal.msgSuccess("更新成功");
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.map.renderSubAreas();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
row.status = val == AreaSubStatus.NORMAL ? AreaSubStatus.DISABLED : AreaSubStatus.NORMAL;
|
row.status = val == AreaSubStatus.NORMAL ? AreaSubStatus.DISABLED : AreaSubStatus.NORMAL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user