ZengTao
3 天以前 4bef3c1a0dd435b4c6bf8f8429db67dac027ed6b
1、中空创建任务查询界面添加当总数量不等于已配对数时高亮显示
3个文件已修改
27 ■■■■■ 已修改文件
UI-Project/src/views/hollow/hollowequipment.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/views/hollow/hollowequipmenthree.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/views/hollow/hollowequipmenttwo.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/views/hollow/hollowequipment.vue
@@ -992,7 +992,7 @@
</template>
<script setup>
import { ElMessage, ElMessageBox } from 'element-plus'
import { onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed, getCurrentInstance  } from "vue";
import { onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed, getCurrentInstance ,toRaw } from "vue";
import request from "@/utils/request"
import { closeWebSocket, initializeWebSocket } from '@/utils/WebSocketService';
import { useI18n } from 'vue-i18n'
@@ -1468,6 +1468,9 @@
function nestedTableRowClassName(parentRow, row) {
  if (parentRow.isThroughSlot == true) {
    return 'row-red-background';
  }
  if (row.row?.sumCount !== undefined && row.row?.pairCount !== undefined && row.row.sumCount !== row.row.pairCount) {
    return 'sum-equal-pair-row' // 返回自定义类名
  }
  return '';
}
@@ -1951,6 +1954,7 @@
  value: null,
  size: null
})
</script>
<style scoped>
#dt {
@@ -2013,4 +2017,9 @@
.el-loading-mask {
  z-index: 2000 !important;
}
/* 核心3:添加行变色样式,通过:deep穿透scoped */
:deep(.sum-equal-pair-row) {
  background-color: #fdf2e8 !important; /* 浅橙底色,可自行修改 */
  color: #e64340 !important; /* 文字色,可选 */
}
</style>
UI-Project/src/views/hollow/hollowequipmenthree.vue
@@ -799,6 +799,9 @@
  if (parentRow.isThroughSlot == true) {
    return 'row-red-background';
  }
  if (row.row?.sumCount !== undefined && row.row?.pairCount !== undefined && row.row.sumCount !== row.row.pairCount) {
    return 'sum-equal-pair-row' // 返回自定义类名
  }
  return '';
}
const fetchFlowCardsearch = async () => {
@@ -1259,4 +1262,9 @@
.el-loading-mask {
  z-index: 2000 !important;
}
/* 核心3:添加行变色样式,通过:deep穿透scoped */
:deep(.sum-equal-pair-row) {
  background-color: #fdf2e8 !important; /* 浅橙底色,可自行修改 */
  color: #e64340 !important; /* 文字色,可选 */
}
</style>
UI-Project/src/views/hollow/hollowequipmenttwo.vue
@@ -785,6 +785,9 @@
  if (parentRow.isThroughSlot == true) {
    return 'row-red-background';
  }
  if (row.row?.sumCount !== undefined && row.row?.pairCount !== undefined && row.row.sumCount !== row.row.pairCount) {
    return 'sum-equal-pair-row' // 返回自定义类名
  }
  return '';
}
const fetchFlowCardsearch = async () => {
@@ -1284,4 +1287,9 @@
.el-loading-mask {
  z-index: 2000 !important;
}
/* 核心3:添加行变色样式,通过:deep穿透scoped */
:deep(.sum-equal-pair-row) {
  background-color: #fdf2e8 !important; /* 浅橙底色,可自行修改 */
  color: #e64340 !important; /* 文字色,可选 */
}
</style>