|
@@ -98,7 +98,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
formData: {
|
|
|
- // status: "0,1",
|
|
|
+ status: "0,1",
|
|
|
pageSize: 10,
|
|
|
pageNum: 1,
|
|
|
},
|
|
@@ -146,8 +146,8 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "预约/取消",
|
|
|
- prop1: "subscribeCancelNum",
|
|
|
- prop2: "subscribeNum",
|
|
|
+ prop1: "subscribeNum",
|
|
|
+ prop2: "subscribeCancelNum",
|
|
|
hidden: true,
|
|
|
scope: "reserveFunc",
|
|
|
},
|
|
@@ -174,7 +174,32 @@ export default {
|
|
|
/**
|
|
|
* 预约/取消点击触发
|
|
|
*/
|
|
|
- openBoxFun() {},
|
|
|
+ openBoxFun(row) {
|
|
|
+ const jump = () => {
|
|
|
+ this.$router.push({
|
|
|
+ name: "MockTestData",
|
|
|
+ params: {
|
|
|
+ applyName: row.applyName,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ };
|
|
|
+ const statusPage = this.$store.state.tagsView.visitedViews.some(
|
|
|
+ (item) => {
|
|
|
+ return item.name == "MockTestData";
|
|
|
+ }
|
|
|
+ );
|
|
|
+ if (statusPage) {
|
|
|
+ this.$store
|
|
|
+ .dispatch("tagsView/delCachedView", {
|
|
|
+ name: "MockTestData",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ jump();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ jump();
|
|
|
+ }
|
|
|
+ },
|
|
|
/**
|
|
|
* 修改
|
|
|
*/
|
|
@@ -216,14 +241,14 @@ export default {
|
|
|
}
|
|
|
)
|
|
|
.then(() => {
|
|
|
- // var data = {
|
|
|
- // goodsId: v.goodsId,
|
|
|
- // status: -1,
|
|
|
- // };
|
|
|
- // this.$api.editGoods(data).then((res) => {
|
|
|
- // this.$message.success("删除成功");
|
|
|
- // this.search();
|
|
|
- // });
|
|
|
+ var data = {
|
|
|
+ applyId: row.applyId,
|
|
|
+ status: -1,
|
|
|
+ };
|
|
|
+ this.$api.editmockapply(data).then((res) => {
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ this.search();
|
|
|
+ });
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$message({
|
|
@@ -242,7 +267,7 @@ export default {
|
|
|
}
|
|
|
if (int === 2) {
|
|
|
this.formData = {
|
|
|
- // status: "0,1",
|
|
|
+ status: "0,1",
|
|
|
pageSize: 10,
|
|
|
pageNum: 1,
|
|
|
};
|