Browse Source

fix: 出现异常时不关闭弹窗

master
niushuai233 2 years ago
parent
commit
e6271f8d8a
  1. 2
      src/mixins/JeecgListMixin.js
  2. 6
      src/views/modules/ServerInfo/modules/ServerInfoModal.vue

2
src/mixins/JeecgListMixin.js

@ -123,7 +123,7 @@ export const JeecgListMixin = { @@ -123,7 +123,7 @@ export const JeecgListMixin = {
sqp['superQueryMatchType'] = this.superQueryMatchType
}
var param = Object.assign(sqp, this.queryParam, this.isorter ,this.filters);
param.field = this.getQueryField();
// param.field = this.getQueryField();
param.pageNo = this.ipagination.current;
param.pageSize = this.ipagination.pageSize;
return filterObj(param);

6
src/views/modules/ServerInfo/modules/ServerInfoModal.vue

@ -108,6 +108,7 @@ export default { @@ -108,6 +108,7 @@ export default {
} else {
this.model.status = 0
}
let success = true;
httpAction(httpurl, this.model, method)
.then(res => {
if (res.success) {
@ -115,11 +116,14 @@ export default { @@ -115,11 +116,14 @@ export default {
that.$emit('ok')
} else {
that.$message.warning(res.message)
success = false;
}
})
.finally(() => {
that.confirmLoading = false
that.close()
if (success) {
that.close()
}
})
} else {
return false

Loading…
Cancel
Save