|
@ -117,11 +117,11 @@ export default { |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
selections: [], |
|
|
selections: [], |
|
|
keyWord: '', |
|
|
keyWord: '', |
|
|
optionVal: '盒名称', |
|
|
|
|
|
|
|
|
optionVal: 'caseName', |
|
|
options: [ |
|
|
options: [ |
|
|
{ value: '选项5', label: '盒名称' }, |
|
|
|
|
|
{ value: '选项6', label: '条形码' }, |
|
|
|
|
|
{ value: '选项7', label: 'TID' } |
|
|
|
|
|
|
|
|
{ value: 'caseName', label: '盒名称' }, |
|
|
|
|
|
{ value: 'barcode', label: '条形码' }, |
|
|
|
|
|
{ value: 'tid', label: 'TID' } |
|
|
], |
|
|
], |
|
|
child: [] |
|
|
child: [] |
|
|
} |
|
|
} |
|
@ -130,6 +130,13 @@ export default { |
|
|
this.getData() |
|
|
this.getData() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
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() { |
|
|
getData() { |
|
|
console.log(this.crud, 'crud') |
|
|
console.log(this.crud, 'crud') |
|
|
}, |
|
|
}, |
|
|