diff --git a/src/views/data/Product.vue b/src/views/data/Product.vue index 4730d41..ccd7e81 100644 --- a/src/views/data/Product.vue +++ b/src/views/data/Product.vue @@ -198,6 +198,7 @@ export default { configVisible: false, configLoading: false, categoryId: '', + categoryOriginId: '', configIds: [], updateTime: '', keywordConfig: '', @@ -538,6 +539,7 @@ export default { }, typeConfigClick(data){ this.categoryId = data.id + this.categoryOriginId = data.originId this.getConfigTable() }, closeConfig(){ @@ -565,7 +567,7 @@ export default { }, // 获取配置数据里面分类下的表 getConfigTable(){ - this.$post(`${this.api.getIdQueryTable}?categoryId=${this.categoryId}&showName=${this.keywordConfig}&pageNum=${this.pageConfig}&pageSize=${this.pageSizeConfig}&updateTime=${this.updateTime ? this.updateTime : ''}`).then(res => { + this.$post(`${this.api.getIdQueryTable}?categoryId=${this.categoryOriginId}&showName=${this.keywordConfig}&pageNum=${this.pageConfig}&pageSize=${this.pageSizeConfig}&updateTime=${this.updateTime ? this.updateTime : ''}`).then(res => { let list = res.pageList.records list.map(n => { // 如果有更新时间则转化格式