| | |
| | | attrString += StructStrHelper.GetVueFormOptionsStrForSave_PageAddFormAttributes_Query(newColumnNameList, param); |
| | | str = str.Replace("$Save_PageAddFormAttributes_Query$", attrString); |
| | | |
| | | |
| | | attrString = ""; |
| | | attrString += StructStrHelper.GetVueFormOptionsStrForPageAddFormAttributes_Query_Clear(newColumnNameList, param); |
| | | str = str.Replace("$Save_PageAddFormAttributes_Query_Clear$", attrString); |
| | | //é«çº§æ¥è¯¢è¿æ»¤ä¼åäºï¼ä¸åç¨è¿ç§æ¹å¼äº |
| | | //attrString = ""; |
| | | //attrString += StructStrHelper.GetVueFormOptionsStrForPageAddFormAttributes_Query_Clear(newColumnNameList, param); |
| | | //str = str.Replace("$Save_PageAddFormAttributes_Query_Clear$", attrString); |
| | | |
| | | //é«çº§æ¥è¯¢è¿æ»¤ä¼åäºï¼ä¸åç¨è¿ç§æ¹å¼äº |
| | | //attrString = ""; |
| | |
| | | }); |
| | | } |
| | | /** |
| | | * éç½®æ¥è¯¢ |
| | | * éç½®æ¥è¯¢ - ä¼åç |
| | | */ |
| | | const onReset = async () => { |
| | | formData.value = {} |
| | | onResetForHighSelect();//éç½®å
Œ
±selectæ¥è¯¢ |
| | | $Save_PageAddFormAttributes_Query_Clear$ |
| | | //åç¶ç»ä»¶åéèªå®ä¹äºä»¶ |
| | | // 1. æ¸
空ææåºç¡å段ï¼ä¸å
å«è¿æ»¤æ¨¡å¼åæ®µï¼ |
| | | const baseFields = formItems.reduce((acc, item) => { |
| | | acc[item.prop] = ''; |
| | | return acc; |
| | | }, {}); |
| | | |
| | | // 2. åºç¨åºç¡å段åå§å¼ |
| | | formData.value = { ...baseFields }; |
| | | |
| | | // 3. 使ç¨åææ¹æ³éç½®è¿æ»¤æ¨¡å¼å段 |
| | | onResetForHighSelect(); // ä¿çåææ¹æ³è°ç¨ |
| | | |
| | | // 4. åç¶ç»ä»¶åéèªå®ä¹äºä»¶ |
| | | ctx.emit('restQuery'); |
| | | } |
| | | |