|
@@ -171,6 +171,7 @@
|
|
|
:data="showData"
|
|
|
:height="height"
|
|
|
use-virtual
|
|
|
+ :row-class-name="colorTableRowClassName"
|
|
|
:data-changes-scroll-top="false"
|
|
|
:row-height="rowHeight"
|
|
|
:summary-method="summaryMethod"
|
|
@@ -296,8 +297,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</u-table-column>
|
|
|
- <u-table-column prop="price" label="单价" width="135">
|
|
|
- </u-table-column>
|
|
|
+ <u-table-column prop="price" label="单价" width="135"> </u-table-column>
|
|
|
<u-table-column prop="total_price" label="价格合计" width="135">
|
|
|
</u-table-column>
|
|
|
<u-table-column prop="img_number" label="工程图号" width="135">
|
|
@@ -1560,6 +1560,13 @@ export default {
|
|
|
// document.getElementsByClassName('ivu-table-body')[0].removeEventListener('scroll',this.tableListener,true)
|
|
|
// },
|
|
|
methods: {
|
|
|
+ colorTableRowClassName({ row, rowIndex }) {
|
|
|
+ if (rowIndex % 2 == 0) {
|
|
|
+ return "statistics-warning-row";
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ },
|
|
|
remarkBlur(e) {
|
|
|
// const tableResult = this.showData[index];
|
|
|
// const val = e.target.value;
|
|
@@ -2138,8 +2145,13 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
+<style>
|
|
|
+.statistics-warning-row {
|
|
|
+ background: #84cbec !important;
|
|
|
+}
|
|
|
+</style>
|
|
|
<style lang="scss" scoped>
|
|
|
+
|
|
|
.m-add {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|