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

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

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