|
|
@@ -19,7 +19,8 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:factory="{ row }">
|
|
|
- {{ showgfactory(row, 1) }}
|
|
|
+ <!-- {{ showgfactory(row, 1) }} -->
|
|
|
+ {{ pathFn(row.pathName) }}
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@@ -78,9 +79,10 @@ export default {
|
|
|
slot: 'parent'
|
|
|
},
|
|
|
{
|
|
|
- label: '所属工厂',
|
|
|
+ label: '所属工厂 - 厂房',
|
|
|
prop: 'extInfo.factoryId',
|
|
|
- slot: 'factory'
|
|
|
+ slot: 'factory',
|
|
|
+ width: 180
|
|
|
},
|
|
|
|
|
|
{
|
|
|
@@ -167,6 +169,10 @@ export default {
|
|
|
return '';
|
|
|
}
|
|
|
},
|
|
|
+ pathFn(name) {
|
|
|
+ let arr = name.split('-')
|
|
|
+ return arr.slice(0,2).join('-')
|
|
|
+ },
|
|
|
// 回显车间
|
|
|
showWorkshop(row) {
|
|
|
let result = row.parent.find((n) => n.id == row.parentId);
|