|
发表于 2024-6-4 17:01:48
|
显示全部楼层
if( this.form.opinion === "" ){ //判断意见
return "请填写意见";
}else{
return true;
}
但是这样写的话,在拟稿人提交的界面弹不出来提示,其他审批人可以弹出来提示,是怎么回事?
Uncaught TypeError: Cannot read property 'setStyle' of undefined
at Object.notValidationOpinionMode (<anonymous>:1:130478)
at Object.i.extend.$owner (mootools-1.6.0_all.js:1399)
at Object.validationOpinion (<anonymous>:1:129781)
at Object.i.extend.$owner (mootools-1.6.0_all.js:1399)
at Object.validation (<anonymous>:1:129186)
at Object.i.extend.$owner [as validation] (mootools-1.6.0_all.js:1399)
at Object.submitWork (<anonymous>:1:131562)
at Object.i.extend.$owner [as submitWork] (mootools-1.6.0_all.js:1399)
at Object.onSubmit (<anonymous>:1:141387)
at Object.<anonymous> (<anonymous>:1:183472)
notValidationOpinionMode @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
validationOpinion @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
validation @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
submitWork @ VM2963:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
onSubmit @ VM2963:1
(匿名) @ VM2913:1
(匿名) @ mootools-1.6.0_all.js:235
each @ mootools-1.6.0_all.js:345
fireEvent @ VM2913:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
(匿名) @ VM3739:1
saveOrgsWithCheckEmpower @ VM3739:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
submit @ VM3739:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
submit @ VM3739:1
i.extend.$owner @ mootools-1.6.0_all.js:1399
(匿名) @ VM2963:1
setTimeout(异步)
(匿名) @ VM2963:1
(匿名) @ VM2913:1
a @ mootools-1.6.0_all.js:4606
F12,报这个错 |
|