diff --git a/src/views/archivesManage/outInStorage/inStorage/index.vue b/src/views/archivesManage/outInStorage/inStorage/index.vue index 211e3ca..9cf5614 100644 --- a/src/views/archivesManage/outInStorage/inStorage/index.vue +++ b/src/views/archivesManage/outInStorage/inStorage/index.vue @@ -117,11 +117,11 @@ export default { tableData: [], selections: [], keyWord: '', - optionVal: '盒名称', + optionVal: 'caseName', options: [ - { value: '选项5', label: '盒名称' }, - { value: '选项6', label: '条形码' }, - { value: '选项7', label: 'TID' } + { value: 'caseName', label: '盒名称' }, + { value: 'barcode', label: '条形码' }, + { value: 'tid', label: 'TID' } ], child: [] } @@ -130,6 +130,13 @@ export default { this.getData() }, methods: { + // 获取数据前的处理 + [CRUD.HOOK.beforeRefresh]() { + this.crud.query.caseName = null + this.crud.query.barcode = null + this.crud.query.tid = null + this.crud.query[this.optionVal] = this.keyWord + }, getData() { console.log(this.crud, 'crud') },