| | |
| | | }, |
| | | searchAfter(result) { |
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼ |
| | | return true; |
| | | // if (Array.isArray(result)) { |
| | | // result.forEach(item => { |
| | | // if (item.hasOwnProperty('isCheck')) { |
| | | // item.isCheck = item.isCheck === 'True' ? 'æ¯' : 'å¦'; |
| | | // } |
| | | // if (item.hasOwnProperty('materielState')) { |
| | | // item.materielState = item.materielState === 'Enable' ? 'å¯ç¨' : 'ç¦ç¨' |
| | | // } |
| | | // }); |
| | | // } |
| | | return result; |
| | | |
| | | }, |
| | | addBefore(formData) { |
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼ |
| | |
| | | //(3)this.editFormFields.åæ®µ='xxx'; |
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼ |
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions) |
| | | let isAdd = this.currentAction == 'Add' |
| | | if (isAdd) { |
| | | this.editFormFields.materielInvOrgId = 'æ·®å®ç¹åäºå' |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | export default extension; |
| | | |