|
@@ -116,7 +116,7 @@
|
|
|
border fit row-key="id" ref="table" style="width: 100%;margin-top:30px;" v-loading="loading">
|
|
|
<el-table-column align="center" type="selection" width="40px" :reserve-selection="true"/>
|
|
|
<el-table-column :label="$t('productionResource.imgUrl')" :show-overflow-tooltip="true" align="center"
|
|
|
- prop="compnayId"
|
|
|
+ prop="pic"
|
|
|
width="">
|
|
|
<template slot-scope="scope">
|
|
|
<span><el-image :src="scope.row.pic"></el-image></span>
|
|
@@ -138,7 +138,7 @@
|
|
|
prop="areaId"
|
|
|
width="200px">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.areaIds }}</span>
|
|
|
+ <span>{{ scope.row.areaIds | getCodeNames }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('productionResource.placeName')" :show-overflow-tooltip="true" align="center"
|
|
@@ -152,7 +152,7 @@
|
|
|
prop="code"
|
|
|
width="150px">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.tenantDesc }}</span>
|
|
|
+ <span>{{ scope.row.lineDesc }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('productionResource.onlineStatus')" :show-overflow-tooltip="true" align="center"
|
|
@@ -264,7 +264,14 @@ export default {
|
|
|
name: "ProductionresourceManage",
|
|
|
directives: {elDragDialog},
|
|
|
components: {Pagination, ResourceEdit, ProductMgr, MaterialMgr, OrderMgr, advertisingMgr},
|
|
|
- filters: {},
|
|
|
+ filters: {
|
|
|
+ getCodeNames(code){
|
|
|
+ let arr = code.split(',')
|
|
|
+ return arr.length>1 ? arr.map(item => {
|
|
|
+ return CodeToText[item]
|
|
|
+ }).join('/') : '';
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 编辑
|