From 4cdebbcb9a4461539aee69da5aeea0b69bf2b29b Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Fri, 20 Jun 2025 15:53:02 +0800 Subject: [PATCH] 2025/6/20 --- src/utils/highlight.js | 18 ++++++++++++ src/views/common/filterSearch.vue | 28 ++++--------------- src/views/modules/part/partInformation.vue | 4 +-- .../modules/test/testSoBom/testTable.vue | 17 +++++------ 4 files changed, 35 insertions(+), 32 deletions(-) diff --git a/src/utils/highlight.js b/src/utils/highlight.js index 336b5f5..580d9a8 100644 --- a/src/utils/highlight.js +++ b/src/utils/highlight.js @@ -6,6 +6,24 @@ export default { const selects = el.querySelectorAll('.el-select'); const textareas = el.querySelectorAll('textarea'); + // function applyHighlight(inputEl) { + // const isModified = inputEl.value !== null && inputEl.value.trim() !== ''; + // if (isModified) { + // inputEl.classList.add('highlight'); + // } else { + // inputEl.classList.remove('highlight'); + // } + // } + // + // inputs.forEach(inputEl => { + // // 初始检查 + // applyHighlight(inputEl); + // + // // 监听输入变化 + // inputEl.addEventListener('input', function() { + // applyHighlight(inputEl); + // }); + // }); // 处理所有的 input 元素 inputs.forEach(inputEl => { diff --git a/src/views/common/filterSearch.vue b/src/views/common/filterSearch.vue index 7237d97..751605e 100644 --- a/src/views/common/filterSearch.vue +++ b/src/views/common/filterSearch.vue @@ -406,17 +406,9 @@ export default {