| | |
| | | }) |
| | | |
| | | // æ°å¢çæ¥è¯¢æ¹æ³ |
| | | const handleQuery = async () => { |
| | | console.log('æ¥è¯¢æ¡ä»¶:', queryParams.value) |
| | | // tableRef.value.getTableList() |
| | | tableRef.value.getList(queryParams.value) |
| | | const handleQuery = async (extraParams = {}) => { |
| | | //console.log('æ°çæ¥è¯¢æ¡ä»¶:', extraParams) |
| | | //debugger |
| | | alert('è°ç¨handleQueryæ¹æ³'); |
| | | console.log('æ°çæ¥è¯¢æ¡ä»¶:', extraParams) |
| | | // è¿æ»¤æ undefined çå¼ |
| | | const filteredData = Object.assign( |
| | | {}, |
| | | ...Object.entries(extraParams).map(([key, value]) => (value !== undefined ? { [key]: value } : {})) |
| | | ); |
| | | |
| | | tableRef.value.getList(filteredData) |
| | | // debugger |
| | | // console.log('æ°çæ¥è¯¢æ¡ä»¶:', extraParams) |
| | | // tableRef.value.getList(extraParams) |
| | | // console.log('æ¥è¯¢æ¡ä»¶:', queryParams.value) |
| | | // // tableRef.value.getTableList() |
| | | // tableRef.value.getList(queryParams.value) |
| | | } |
| | | |
| | | // éç½®æ¥è¯¢æ¡ä»¶ |
| | |
| | | title={dialogConfigForQuery.title} |
| | | row={current.value} |
| | | sort={sort.value} |
| | | onConfirmQuery={onConfirmWmsMaterial} |
| | | onConfirmQuery={handleQuery} |
| | | /> |
| | | |
| | | {/* æ°å¢çæ¥è¯¢è¡¨å */} |
| | |
| | | onConfirm={onSearch} |
| | | style={{ marginTop: '-1px' }} |
| | | /> |
| | | <IconButton type="primary" icon="search" onClick={handleQuery}> |
| | | æ¥è¯¢ |
| | | </IconButton> |
| | | <IconButton |
| | | style="" |
| | | icon="refresh" |