|
|
@ -1,5 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div v-if="isShowComponent" class="handle-right-fixed clearfix"> |
|
|
|
<img v-if="isShowAddButton" @click="releaseAllHandle" src="../../assets/icon/public.png" alt="" title="全局发布"> |
|
|
|
<img v-if="isShowAddButton" @click="handleUpload" src="../../assets/img/import.png" alt="" title="批量导入"> |
|
|
|
<el-dropdown v-if="isDropdown" trigger="click" @visible-change="handleCommand"> |
|
|
|
<span class="el-dropdown-link"> |
|
|
@ -48,6 +49,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { put } from "@/server/api.js"; |
|
|
|
// isShowAddButton: 是否显示新增按钮图标,也用来区分预测版本列表组件需要显示的功能 |
|
|
|
import uploadTemplate from "./upload.vue"; |
|
|
|
export default { |
|
|
@ -78,6 +80,21 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 全局发布 |
|
|
|
releaseAllHandle() { |
|
|
|
this.$confirm('是否确认全局发布?', "警告", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
return put('/admin/ap/custdemandverhead/issueglobalallversion') |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.msgSuccess("全局发布成功"); |
|
|
|
}) |
|
|
|
.catch(() => { }); |
|
|
|
}, |
|
|
|
// 上传 |
|
|
|
handleUpload() { |
|
|
|
this.isShowDialog = 'upload' |
|
|
|