|
@@ -106,6 +106,7 @@ export default {
|
|
async toEdit({ data }) {
|
|
async toEdit({ data }) {
|
|
this.$router.push({ path: '/system/banner/detail', query: { id: data.id } });
|
|
this.$router.push({ path: '/system/banner/detail', query: { id: data.id } });
|
|
},
|
|
},
|
|
|
|
+ // 删除
|
|
async toDel({ data }) {
|
|
async toDel({ data }) {
|
|
let res = await this.delete(data._id);
|
|
let res = await this.delete(data._id);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
@@ -113,6 +114,7 @@ export default {
|
|
this.search();
|
|
this.search();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 重置
|
|
toClose() {
|
|
toClose() {
|
|
this.searchForm = {};
|
|
this.searchForm = {};
|
|
this.search();
|
|
this.search();
|
|
@@ -129,6 +131,7 @@ export default {
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `typeList`, res.data);
|
|
this.$set(this, `typeList`, res.data);
|
|
}
|
|
}
|
|
|
|
+ // 是否使用
|
|
res = await this.dictQuery({ code: 'status' });
|
|
res = await this.dictQuery({ code: 'status' });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `statusList`, res.data);
|
|
this.$set(this, `statusList`, res.data);
|