{
this.projectNoOptions = response;
+ this.filteredProjectOptions = response
});
},
indexMethod(index) {
@@ -1041,6 +1062,22 @@ export default {
};
myChart1.setOption(option3);
},
+ handleProjectFilter(keyword){
+ this.projectSearchKeyword = keyword.trim();
+ }
+ },
+ computed: {
+ // 计算属性:根据搜索关键词过滤选项
+ filteredProjectOptions() {
+ // 无搜索关键词时,返回全部原始选项
+ if (!this.projectSearchKeyword) {
+ return this.projectNoOptions;
+ }
+ // 模糊匹配 ruleName(不区分大小写,提升用户体验)
+ return this.projectNoOptions.filter(item =>
+ item.ruleName.toLowerCase().includes(this.projectSearchKeyword.toLowerCase())
+ );
+ }
},
};
diff --git a/src/views/quality/qcTableDLReport/index.vue b/src/views/quality/qcTableDLReport/index.vue
index 16f6e08..d3e2d9c 100644
--- a/src/views/quality/qcTableDLReport/index.vue
+++ b/src/views/quality/qcTableDLReport/index.vue
@@ -65,21 +65,39 @@
>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
导出
-
+
-
+
@@ -160,7 +178,7 @@
:visible.sync="open"
width="1300px"
append-to-body
- >
+ >
导出CPK
+ item.ruleName.toLowerCase().includes(this.projectSearchKeyword.toLowerCase())
+ );
}
},
};
diff --git a/src/views/quality/sampleSign/index.vue b/src/views/quality/sampleSign/index.vue
index dac1f41..8ab61a9 100644
--- a/src/views/quality/sampleSign/index.vue
+++ b/src/views/quality/sampleSign/index.vue
@@ -2,6 +2,13 @@
+
+
+
导出
- 转储过账
+ 订单过账
反冲过账