This commit is contained in:
liushuai
2020-02-05 08:41:15 +08:00
parent 0358e5e0bb
commit 717620066b
5 changed files with 137 additions and 13 deletions

View File

@@ -30,6 +30,7 @@
<el-table
ref="multipleTable"
:data="tableData"
:row-class-name="tableRowClassName"
style="width: 1000px;"
size="mini"
height="750"
@@ -300,6 +301,7 @@ export default {
数量: response.data.rows[i].批次数量,
投产时间: response.data.rows[i].操作时间,
规格: response.data.rows[i].规格,
是否加急: response.data.rows[i].是否加急,
工艺员: '',
人员编号: '',
工艺计划流水号: response.data.rows[i].工艺计划流水号
@@ -318,6 +320,8 @@ export default {
工艺结束时间: response.data.rows[i].工艺计划结束时间,
数量: response.data.rows[i].批次数量,
投产时间: response.data.rows[i].操作时间,
规格: response.data.rows[i].规格,
是否加急: response.data.rows[i].是否加急,
工艺员: '',
人员编号: '',
工艺计划流水号: response.data.rows[i].工艺计划流水号
@@ -384,6 +388,12 @@ export default {
}
}
},
tableRowClassName({ row }) {
console.log(row.是否加急)
if (row.是否加急 === '1') {
return 'UrgentItem'
}
},
// 直接保存工艺
currency() {
if (this.multipleSelection.length === 0) {
@@ -433,3 +443,8 @@ export default {
margin-right: 10px;
}
</style>
<style>
.el-table .UrgentItem{
background: #ff7575;
}
</style>