|
@@ -34,7 +34,7 @@
|
|
|
</template>
|
|
|
</HcTitle>
|
|
|
<div style="height: calc(100vh - 420px);">
|
|
|
- <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-new :index-style="{ width: 60 }">
|
|
|
+ <hc-table :column="tableColumn" :datas="tableData" :loading="tableLoading" is-new :index-style="{ width: 60 }" :row-style="tableRowStyle">
|
|
|
<template #key1="{ row }">
|
|
|
<i class="i-iconoir-open-select-hand-gesture inline-block" />
|
|
|
</template>
|
|
@@ -332,9 +332,14 @@ const tableColumn = ref([
|
|
|
{ key: 'changeTotal', name: '施工图变更后数量', align: 'center' },
|
|
|
])
|
|
|
const tableData = ref([
|
|
|
- { key2: '1111' },
|
|
|
-])
|
|
|
|
|
|
+])
|
|
|
+//设置某一行的样式
|
|
|
+const tableRowStyle = ({ row, rowIndex }) => {
|
|
|
+ if (row.poseNum > row.contractTotal) {
|
|
|
+ return '--el-table-tr-bg-color: #fe0000; '
|
|
|
+ }
|
|
|
+}
|
|
|
//弹窗
|
|
|
const treeModalShow = ref(false)
|
|
|
const editModalShow = ref(false)
|