| | |
| | | /** |
| | | * éç½®å
Œ
±selectæ¥è¯¢ |
| | | */ |
| | | const onResetForHighSelect = async () => { |
| | | $Save_PageAddFormAttributes_Query_Clear_HighSelect$ |
| | | const onResetForHighSelect = () => { |
| | | // éåææè¡¨ååæ®µ |
| | | formItems.forEach(item => { |
| | | // æ£æ¥å段æ¯å¦æé«çº§æ¥è¯¢çè¿æ»¤æ¨¡å¼é
ç½® |
| | | if (item.highSelectAttrs && item.highSelectAttrs.prop) { |
| | | const filterModeProp = item.highSelectAttrs.prop; |
| | | const options = item.highSelectAttrs.options || []; |
| | | |
| | | // 妿åå¨é项ï¼å设置为第ä¸ä¸ªé项çå¼ |
| | | if (options.length > 0) { |
| | | // å设éé¡¹æ ¼å¼ä¸º { value, label } æç±»ä¼¼ç»æ |
| | | const firstValue = options[0].value !== undefined ? options[0].value : options[0]; |
| | | formData.value[filterModeProp] = firstValue; |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | /** |
| | | * éç½®æ¥è¯¢ |