|
|
@ -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(() => { }); |
|
|
|