qb 1 year ago
parent
commit
4ea5cf8a11
  1. 12
      src/views/distribution/turndelivery/deliveryDiscuss.vue

12
src/views/distribution/turndelivery/deliveryDiscuss.vue

@ -320,7 +320,7 @@
align="center"
>
<template #default="props">
<span :id="props.row[item.prop]" :class="props.row[item.prop] == multifunctional && props.row[item.prop]? 'static-class' : ''">{{
<span :id="props.row[item.prop]" :class="(props.row[item.prop] == multifunctional && props.row[item.prop]) ? 'static-class' : ''">{{
props.row[item.prop] ? props.row[item.prop] : '/'
}}</span>
</template>
@ -1912,13 +1912,14 @@ function scrollToElementWithinTableRow(partialIdString) {
tableRows.forEach(function(row) {
const cells = row.querySelectorAll('[id]');
cells.forEach(function(cell) {
cell.style.backgroundColor = '#ffffff'; //
cell.style.color = '#000'; //
cell.style.backgroundColor = ''; //
cell.style.color = ''; //
});
});
//
const partialIds = partialIdString.split(',').map(id => id.trim());
// partialId
for (let row of tableRows) {
// partialIds
@ -1926,9 +1927,10 @@ function scrollToElementWithinTableRow(partialIdString) {
//
const cells = row.querySelectorAll('[id]');
cells.forEach(function(cell) {
cell.style.backgroundColor = ''; //
cell.style.color = ''; //
cell.style.backgroundColor = '#ff0000'; //
cell.style.color = '#fff'; //
});
//
row.scrollIntoView();
break; //

Loading…
Cancel
Save