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() },