|
@@ -599,26 +599,22 @@ export default {
|
|
|
// 获取商品属性列表
|
|
|
getTagList() {
|
|
|
getTagList({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- type: 1
|
|
|
+ dictType: 'GOODS_ATTR'
|
|
|
}).then(res => {
|
|
|
let list = [];
|
|
|
- res.data.records.forEach(item => {
|
|
|
- list.push(item.goodsTagName);
|
|
|
+ res.data.forEach(item => {
|
|
|
+ list.push(item.dictValue);
|
|
|
});
|
|
|
this.attrList = list;
|
|
|
})
|
|
|
|
|
|
// 获取商品标签列表
|
|
|
getTagList({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: -1,
|
|
|
- type: 2
|
|
|
+ dictType: 'GOODS_TAG'
|
|
|
}).then(res => {
|
|
|
let list = [];
|
|
|
- res.data.records.forEach(item => {
|
|
|
- list.push(item.goodsTagName);
|
|
|
+ res.data.forEach(item => {
|
|
|
+ list.push(item.dictValue);
|
|
|
});
|
|
|
this.tagList = list;
|
|
|
})
|