|
@@ -1028,7 +1028,7 @@
|
|
|
@if(in_array('chengnuoshu',$module))
|
|
|
<tr style="height:52px;page-break-inside:avoid">
|
|
|
<td valign="center" >
|
|
|
- 诚信承诺书
|
|
|
+ <span class="require">*</span>诚信承诺书
|
|
|
</td>
|
|
|
<td valign="center" colspan="11">
|
|
|
<div style="padding: 10px 0">
|
|
@@ -1712,6 +1712,11 @@
|
|
|
{validator:this.validEducertification, trigger: 'change'}
|
|
|
],
|
|
|
@endif
|
|
|
+ @if(in_array('chengnuoshu',$module))
|
|
|
+ chengnuoshu:[
|
|
|
+ {validator:this.validCNS, trigger: 'change'}
|
|
|
+ ],
|
|
|
+ @endif
|
|
|
},
|
|
|
init: 0,
|
|
|
upload: '',
|
|
@@ -1852,6 +1857,13 @@
|
|
|
callback();
|
|
|
}
|
|
|
},
|
|
|
+ validCNS(rule, value, callback){
|
|
|
+ if(this.user.chengnuoshu.length == 0){
|
|
|
+ callback(new Error('请上传诚信承诺书'));
|
|
|
+ }else{
|
|
|
+ callback();
|
|
|
+ }
|
|
|
+ },
|
|
|
beforeImageUpload(file) {
|
|
|
const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|