|
|
@ -85,6 +85,7 @@ import { put, post } from "@/server/api.js"; |
|
|
|
// isShowAddButton: 是否显示新增按钮图标,也用来区分预测版本列表组件需要显示的功能 |
|
|
|
import uploadTemplate from "./upload.vue"; |
|
|
|
import lookError from "./lookError.vue"; |
|
|
|
import {mapMutations} from 'vuex' |
|
|
|
export default { |
|
|
|
name: "QueryComponent", |
|
|
|
components: { |
|
|
@ -125,6 +126,7 @@ export default { |
|
|
|
}) |
|
|
|
.catch(() => { }); |
|
|
|
}, |
|
|
|
...mapMutations("homePageStore", ["getReleaseAllLoading"]), |
|
|
|
// 全局发布 |
|
|
|
releaseAllHandle() { |
|
|
|
this.$confirm('是否确认全局发布?', "警告", { |
|
|
@ -133,13 +135,17 @@ export default { |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.getReleaseAllLoading(true) |
|
|
|
return put('/admin/ap/custdemandverhead/issueglobalallversion') |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.msgSuccess("全局发布成功"); |
|
|
|
this.$emit('batchReleaseEmit', true) |
|
|
|
this.getReleaseAllLoading(false) |
|
|
|
}) |
|
|
|
.catch(() => { }); |
|
|
|
.catch(() => { |
|
|
|
this.getReleaseAllLoading(false) |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 全局反发布 |
|
|
|
contraryReleaseAll() { |
|
|
|