Browse Source

Merge pull request '客户需求工作台发布提示' (#198) from wangxy into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_AdvancedPlanner_Front/pulls/198
lingxiao
wangxy 3 years ago
parent
commit
2878743e82
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"; import { put, post } from "@/server/api.js";
// isShowAddButton: // isShowAddButton:
import uploadTemplate from "./upload.vue"; import uploadTemplate from "./upload.vue";
import { ElMessage } from 'element-plus'
import lookError from "./lookError.vue"; import lookError from "./lookError.vue";
export default { export default {
name: "QueryComponent", name: "QueryComponent",
@ -120,7 +121,13 @@ export default {
return post('/admin/ap/custdemandverhead/issueallversion', this.batchImport) return post('/admin/ap/custdemandverhead/issueallversion', this.batchImport)
}) })
.then(() => { .then(() => {
this.msgSuccess("批量发布成功");
// this.msgSuccess("");
ElMessage({
showClose: true,
message: '批量发布成功',
type: 'success',
duration: 0
})
this.$emit('batchReleaseEmit', true) this.$emit('batchReleaseEmit', true)
}) })
.catch(() => { }); .catch(() => { });
@ -136,10 +143,23 @@ export default {
return put('/admin/ap/custdemandverhead/issueglobalallversion') return put('/admin/ap/custdemandverhead/issueglobalallversion')
}) })
.then(() => { .then(() => {
this.msgSuccess("全局发布成功");
// this.msgSuccess("");
ElMessage({
showClose: true,
message: '全局发布成功',
type: 'success',
duration: 0
})
this.$emit('batchReleaseEmit', true) this.$emit('batchReleaseEmit', true)
}) })
.catch(() => { });
.catch(({msg}) => {
ElMessage({
showClose: true,
message: msg,
type: 'error',
duration: 0
})
});
}, },
// //
contraryReleaseAll() { contraryReleaseAll() {
@ -152,7 +172,13 @@ export default {
return put('/admin/ap/custdemandverhead/removeissueglobalallversion') return put('/admin/ap/custdemandverhead/removeissueglobalallversion')
}) })
.then(() => { .then(() => {
this.msgSuccess("全局反发布成功");
// this.msgSuccess("");
ElMessage({
showClose: true,
message: '全局反发布成功',
type: 'success',
duration: 0
})
this.$emit('batchReleaseEmit', true) this.$emit('batchReleaseEmit', true)
}) })
.catch(() => { }); .catch(() => { });


Loading…
Cancel
Save