|
@@ -207,7 +207,7 @@
|
|
|
@click="getDetail(scope.row)"
|
|
|
>查看</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
+ <el-button v-show="scope.row.status.value != 'stop'"
|
|
|
v-hasPermi="['business:ticket:edit']"
|
|
|
type="text"
|
|
|
@click="setDetail(scope.row)"
|
|
@@ -230,6 +230,13 @@
|
|
|
@click="setStatus(scope.row, 'off')"
|
|
|
>下架</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ v-show="(scope.row.status.value === 'on' || scope.row.status.value === 'off') && scope.row.type.value === 'offline'"
|
|
|
+ v-hasPermi="['business:ticket:on']"
|
|
|
+ type="text"
|
|
|
+ @click="setStop(scope.row)"
|
|
|
+ >停售</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
v-show="scope.row.status.value === 'done'"
|
|
|
v-hasPermi="['business:ticket:remove']"
|
|
@@ -265,6 +272,7 @@ import {
|
|
|
exportTicket,
|
|
|
exportDraw,
|
|
|
ticketBoxPut,
|
|
|
+ ticketBoxStop,
|
|
|
ticketBoxRemove, setListData
|
|
|
} from "@/api/business/ticket";
|
|
|
import { publicFileGetUrl } from "@/api/common";
|
|
@@ -377,6 +385,27 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ setStop(item) {
|
|
|
+ this.$confirm(
|
|
|
+ `确认停售盲票 “${item.title}” 吗?`,
|
|
|
+ `停售盲票`,
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ ).then(() => {
|
|
|
+ ticketBoxStop({
|
|
|
+ boxId: item.boxId,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.$message.success("操作已完成!");
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
del(item) {
|
|
|
this.$confirm(`确认删除盲票 “${item.title}” 吗?`, "删除盲票", {
|
|
|
confirmButtonText: "确定",
|