如题,将BIZData的一个字段绑定在textarea(文本输入框)上,然后对该字段添加一个规则,在规则中设置required为true(),alert中添加'不能为空!',结果弹窗显示了'不能为空!',但是有蓝字详细,在textarea中输入内容后保存报错,而报错的原因是因为没有调用一个checkAction而使保存的一个字段的内容超出字段数据长度,现在的重点是因为在弹窗显示'不能为空!'和蓝字后,再次保存就会导致action无法正常使用,打开蓝字的信息为:
请输入外借事由!
Error: 请输入外借事由!
at null.saveData (http://localhost:8080/x5/$v9d0305f099904d2da4286257099785e8/component/data/data.js?language=zh_CN:1:12783)
at Object.FatherActivity.saveBtnClick (http://localhost:8080/x5/$v38ad96eef3984accb3a4ef89408bfda5/UI/OA_WS/files/process/sealRequisition/FatherActivity.js?language=zh_CN:501:21)
at null.callFunction (http://localhost:8080/x5/$v84b80fbe95324a04831069ba51c57eb2/UI/OA_WS/files/process/sealRequisition/.cache/FatherActivity_zh_CN_x5_e2bbefc4062f44eea3c74387e4ba9ea3.js?language=zh_CN&$version=c7d9097e-81de-42a3-8578-cd63d9fea2e1:375:121)
at null.run (http://localhost:8080/x5/$va9a67661f82149c58898c8a0a70734b8/form/form.js?language=zh_CN:1:409844)
at null.exec_ (http://localhost:8080/x5/$va9a67661f82149c58898c8a0a70734b8/form/form.js?language=zh_CN:1:353819)
at null.execute (http://localhost:8080/x5/$va9a67661f82149c58898c8a0a70734b8/form/form.js?language=zh_CN:1:462224)
at Function. (http://localhost:8080/x5/$va9a67661f82149c58898c8a0a70734b8/form/form.js?language=zh_CN:1:238038)
at null.run (http://localhost:8080/x5/$va9a67661f82149c58898c8a0a70734b8/form/form.js?language=zh_CN:1:372923)
at null.exec_ (http://localhost:8080/x5/$va9a67661f82149c58898c8a0a70734b8/form/form.js?language=zh_CN:1:353819)
at null.execute (http://localhost:8080/x5/$va9a67661f82149c58898c8a0a70734b8/form/form.js?language=zh_CN:1:462224)
而textarea、字段规则设置如图