From 15c64a99d74656625ef677428f87dffc7fe1bb18 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Fri, 7 Nov 2025 14:43:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-set-manage/components/right-table.vue | 3 ++- .../file-share-manage/components/right-table.vue | 13 ++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/data-collect/data-set-manage/components/right-table.vue b/src/views/data-collect/data-set-manage/components/right-table.vue index 67d1a86..6f24315 100644 --- a/src/views/data-collect/data-set-manage/components/right-table.vue +++ b/src/views/data-collect/data-set-manage/components/right-table.vue @@ -5,7 +5,7 @@ - @@ -117,6 +117,7 @@ export default { // 执行一次性本地过滤 const source = Array.isArray(this.tableData) ? this.tableData : [] + console.log(JSON.stringify(source)+"source") const kw = keyword.toLowerCase() this.filteredManual = source.filter(row => { const val = row && targetProp in row ? row[targetProp] : '' diff --git a/src/views/data-collect/file-share-manage/components/right-table.vue b/src/views/data-collect/file-share-manage/components/right-table.vue index 4118eb6..ea65aa5 100644 --- a/src/views/data-collect/file-share-manage/components/right-table.vue +++ b/src/views/data-collect/file-share-manage/components/right-table.vue @@ -4,8 +4,8 @@ - - + @@ -62,7 +62,7 @@ export default { row: {}, title: '分享', queryParams: { - fileName: undefined, + dataTypeName: undefined, }, tableData: [], columns: [], @@ -100,10 +100,9 @@ export default { // 查询:按第一列字段做模糊匹配 onHandleQuery() { if (!Array.isArray(this.columns) || this.columns.length < 1) return - const targetProp = this.columns[0] && this.columns[0].prop + const targetProp = this.columns[1] && this.columns[1].prop if (!targetProp) return - const keyword = String(this.queryParams.fileName || '').trim() - console.log(keyword+"keyword") + const keyword = String(this.queryParams.dataTypeName || '').trim() if (!keyword) { // 空关键字还原 this.filteredManual = null @@ -129,7 +128,7 @@ export default { // 重置 onResetQuery() { - this.queryParams = { fileName: undefined } + this.queryParams = { dataTypeName: undefined } this.filteredManual = null this.computeTableHeight() },