|
@@ -77,7 +77,8 @@ export default {
|
|
|
...dictData({ dictQuery: 'query' }),
|
|
|
...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
|
|
|
// 查询
|
|
|
- async search({ skip = 0,limit = this.$limit, ...info } = {}) {
|
|
|
+ async search({ skip = 0, limit = this.$limit, ...info } = {}) {
|
|
|
+ info.platformAct = this.id;
|
|
|
const condition = _.cloneDeep(this.searchForm);
|
|
|
let res = await this.query({ skip, limit, ...condition, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -87,7 +88,7 @@ export default {
|
|
|
},
|
|
|
// 新增
|
|
|
toAdd() {
|
|
|
- this.$router.push({ path: '/platActivi/act/goodsDetail' });
|
|
|
+ this.$router.push({ path: '/platActivi/act/goodsDetail', query: { id: this.id } });
|
|
|
},
|
|
|
// 删除
|
|
|
async toDel({ data }) {
|
|
@@ -122,6 +123,9 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
+ id() {
|
|
|
+ return this.$route.query.id;
|
|
|
+ },
|
|
|
},
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|
|
@@ -130,7 +134,7 @@ export default {
|
|
|
test: {
|
|
|
deep: true,
|
|
|
immediate: true,
|
|
|
- handler(val) { },
|
|
|
+ handler(val) {},
|
|
|
},
|
|
|
},
|
|
|
};
|