Commit b15a9088 authored by 11528's avatar 11528

55613,55619,55624,

parent 7b7090f0
......@@ -64,13 +64,22 @@
{{ scope.row.materCode || '-' }}
</template>
</el-table-column>
<el-table-column align="center" prop="modelType" :show-overflow-tooltip="true">
<el-table-column align="center" prop="contract" :show-overflow-tooltip="true">
<template slot="header">
<div>工厂</div>
<div>Factory</div>
</template>
<template slot-scope="scope">
{{ getContract(scope.row.contract) || '-' }}
</template>
</el-table-column>
<el-table-column align="center" prop="modelCode" :show-overflow-tooltip="true">
<template slot="header">
<div>模型类型</div>
<div>Model Type</div>
</template>
<template slot-scope="scope">
{{ scope.row.modelType || '-' }}
{{ scope.row.modelCode || '-' }}
</template>
</el-table-column>
<el-table-column align="center" width="200" prop="createDate" :show-overflow-tooltip="true">
......@@ -118,7 +127,7 @@
<template slot-scope="scope">
<el-link
size="mini"
type="primary"
type="success"
style="margin-left: 10px"
@click="handleUpdate(scope.row)"
>修改</el-link>
......@@ -130,7 +139,7 @@
>删除</el-link>
<el-link
size="mini"
type="success"
type="danger"
style="margin-left: 10px"
@click="handleCopy(scope.row)"
>复制</el-link>
......@@ -413,6 +422,17 @@ export default {
this.queryParam.rows = 10
this.partNum()
},
// 工厂名称转换
getContract(contract) {
switch (contract) {
case 'NB':
return '北京'
case 'NOSZ':
return '苏州'
default:
return '北京,苏州'
}
}
}
}
</script>
......
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