许宏杰 1 year ago
commit e2ab9fcbba

@ -262,6 +262,8 @@ export default {
listSx(this.queryParams).then((response) => { listSx(this.queryParams).then((response) => {
if(response.rows.length>0){ if(response.rows.length>0){
this.isAdd=true this.isAdd=true
}else{
this.isAdd=false
} }
this.sxList = response.rows; this.sxList = response.rows;
this.total = response.total; this.total = response.total;
@ -345,7 +347,6 @@ export default {
} else { } else {
addSx(this.form).then((response) => { addSx(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.isAdd = true
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
@ -371,7 +372,6 @@ export default {
.then(() => { .then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
this.isAdd = false
}) })
.catch(() => {}); .catch(() => {});
}, },

Loading…
Cancel
Save