Commit 0e11dcd9 authored by 沈翠玲's avatar 沈翠玲

生产报工选中增加颜色区分

parent 7e2e582b
......@@ -1550,10 +1550,14 @@ export default {
// console.log(row, i, 999)
var oDate1 = new Date();
var oDate2 = new Date(row.scheduleEndDate);
const index = this.tableSelectData.findIndex(v=> v.taskWorkunitId === row.taskWorkunitId)
if (index > -1) {
return 'selectrow'
}
if (oDate1.getTime() > oDate2.getTime()) {
return true; //第一个大
return 'trbg'; //第一个大
} else {
return false; //第二个大
return ''; //第二个大
}
},
commonClick(oper) {
......@@ -2988,6 +2992,11 @@ export default {
background: #fb9461 !important;
// color:#fff !important;
}
/deep/ .item-tr.selectrow .item-td {
background: #4ea381 !important;
// color:#fff !important;
}
}
.prod-body-left-num {
......
......@@ -86,7 +86,7 @@
<view class="zb-table-tbody">
<radio-group @change="handleRadio">
<view
:class="['item-tr', highlight && isHighlight(item, index) ? 'current-row' : '', isTrClassStyle && isTrClassStyle(item, index) ? 'trbg' : '']"
:class="['item-tr', highlight && isHighlight(item, index) ? 'current-row' : '', isTrClassStyle ? isTrClassStyle(item, index): '']"
@click.stop="rowClick(item, index)"
v-for="(item, index) in transData"
:key="item.key"
......
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