Commit 416a900a authored by dragondean@qq.com's avatar dragondean@qq.com

修复线路选择不显示特性

parent 784239bd
...@@ -57,7 +57,11 @@ ...@@ -57,7 +57,11 @@
</el-table-column> </el-table-column>
<el-table-column v-if="showAttr" :label="$t('商品特性')" prop="startTitleZh"> <el-table-column v-if="showAttr" :label="$t('商品特性')" prop="startTitleZh">
<template slot-scope="{row}"> <template slot-scope="{row}">
{{ getAttrNames(row.attrId) }} <!--{{ getAttrNames(row.attrId) }}-->
<template v-if="row.channel && row.channel.attrNameList">
{{row.channel.attrNameList.join(',')}}
</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" prop=""> <el-table-column :label="$t('操作')" prop="">
...@@ -182,7 +186,7 @@ export default { ...@@ -182,7 +186,7 @@ export default {
// 显示产品特性 // 显示产品特性
getAttrName(){ getAttrName(){
return (id) => { return (id) => {
let item = this.attrList.find(item => item.id == id) let item = this.attrList.find(item => item.id === +id)
if(!item) return '' if(!item) return ''
return this.$l(item, 'attrName') return this.$l(item, 'attrName')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment