Browse Source

Merge branch 'develop' of http://101.201.121.115:3000/leo/LAPP_AdvancedPlanner_Front into develop

pull/199/head
xuxiaoming 3 years ago
parent
commit
914e53b708
1 changed files with 30 additions and 4 deletions
  1. +30
    -4
      src/components/queryComponent/index.vue

+ 30
- 4
src/components/queryComponent/index.vue View File

@ -84,6 +84,7 @@
import { put, post } from "@/server/api.js";
// isShowAddButton:
import uploadTemplate from "./upload.vue";
import { ElMessage } from 'element-plus'
import lookError from "./lookError.vue";
export default {
name: "QueryComponent",
@ -120,7 +121,13 @@ export default {
return post('/admin/ap/custdemandverhead/issueallversion', this.batchImport)
})
.then(() => {
this.msgSuccess("批量发布成功");
// this.msgSuccess("");
ElMessage({
showClose: true,
message: '批量发布成功',
type: 'success',
duration: 0
})
this.$emit('batchReleaseEmit', true)
})
.catch(() => { });
@ -136,10 +143,23 @@ export default {
return put('/admin/ap/custdemandverhead/issueglobalallversion')
})
.then(() => {
this.msgSuccess("全局发布成功");
// this.msgSuccess("");
ElMessage({
showClose: true,
message: '全局发布成功',
type: 'success',
duration: 0
})
this.$emit('batchReleaseEmit', true)
})
.catch(() => { });
.catch(({msg}) => {
ElMessage({
showClose: true,
message: msg,
type: 'error',
duration: 0
})
});
},
//
contraryReleaseAll() {
@ -152,7 +172,13 @@ export default {
return put('/admin/ap/custdemandverhead/removeissueglobalallversion')
})
.then(() => {
this.msgSuccess("全局反发布成功");
// this.msgSuccess("");
ElMessage({
showClose: true,
message: '全局反发布成功',
type: 'success',
duration: 0
})
this.$emit('batchReleaseEmit', true)
})
.catch(() => { });


Loading…
Cancel
Save