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

Loading…
Cancel
Save