Commit a34b2e99 by wuqian

Merge branch 'dev_arrange' of http://47.122.114.111:9999/qinjianhui/factory_front into dev_track

parents f144e610 765d38a0
...@@ -3741,11 +3741,28 @@ const tableColumns = computed(() => { ...@@ -3741,11 +3741,28 @@ const tableColumns = computed(() => {
width: 150, width: 150,
prop: 'craftType', prop: 'craftType',
align: 'center', align: 'center',
render: (item:ProductList) => ( render: (item:ProductList) => {
<div> if (!item.craftType) {
<span>{processType.value.find((e) => e.value === item.craftType)?.label}</span> return (
</div> <div>
) <span>-</span>
</div>
)
}
// 分割字符串并查找对应的 label
const labels = item.craftType
.split(',')
.map(type => type.trim())
.map(type => processType.value.find(e => e.value === type)?.label || type)
.filter(Boolean)
return (
<div>
<span>{labels.join(',')}</span>
</div>
)
}
}, },
{ {
......
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