|
@@ -1025,6 +1025,31 @@
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@endif
|
|
@endif
|
|
|
|
+ @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">
|
|
|
|
+ <el-form-item prop="chengnuoshu" ref="chengnuoshu">
|
|
|
|
+ <div style="padding: 10px 0">
|
|
|
|
+ <el-upload
|
|
|
|
+ action="{{ route('recruit.api.upload') }}"
|
|
|
|
+ list-type="picture-card"
|
|
|
|
+ :data="{_token:'{{csrf_token()}}'}"
|
|
|
|
+ :file-list="user.chengnuoshu"
|
|
|
|
+ :before-upload="beforeImageUpload"
|
|
|
|
+ :on-success="uploadSuccessCNS"
|
|
|
|
+ :multiple="true"
|
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
|
+ :on-remove="removeCNS">
|
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
|
+ </el-upload>
|
|
|
|
+ </div>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endif
|
|
@if(in_array('remark',$module))
|
|
@if(in_array('remark',$module))
|
|
<tr style="height:52px;page-break-inside:avoid">
|
|
<tr style="height:52px;page-break-inside:avoid">
|
|
<td valign="center" >
|
|
<td valign="center" >
|
|
@@ -1347,6 +1372,13 @@
|
|
this.$message.error(response.msg);
|
|
this.$message.error(response.msg);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ uploadSuccessCNS:function(response, file, fileList){
|
|
|
|
+ if(response.status){
|
|
|
|
+ this.user.chengnuoshu = fileList
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(response.msg);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
removeID:function(file,fileList) {
|
|
removeID:function(file,fileList) {
|
|
this.user.identification = fileList
|
|
this.user.identification = fileList
|
|
},
|
|
},
|
|
@@ -1359,6 +1391,9 @@
|
|
removeOther:function(file,fileList) {
|
|
removeOther:function(file,fileList) {
|
|
this.user.other_certification = fileList
|
|
this.user.other_certification = fileList
|
|
},
|
|
},
|
|
|
|
+ removeCNS:function(file,fileList) {
|
|
|
|
+ this.user.chengnuoshu = fileList
|
|
|
|
+ },
|
|
handlePictureCardPreview:function(file){
|
|
handlePictureCardPreview:function(file){
|
|
this.dialogImageUrl = file.url;
|
|
this.dialogImageUrl = file.url;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
@@ -1679,6 +1714,11 @@
|
|
{validator:this.validEducertification, trigger: 'change'}
|
|
{validator:this.validEducertification, trigger: 'change'}
|
|
],
|
|
],
|
|
@endif
|
|
@endif
|
|
|
|
+ @if(in_array('chengnuoshu',$module))
|
|
|
|
+ chengnuoshu:[
|
|
|
|
+ {validator:this.validCNS, trigger: 'change'}
|
|
|
|
+ ],
|
|
|
|
+ @endif
|
|
},
|
|
},
|
|
init: 0,
|
|
init: 0,
|
|
upload: '',
|
|
upload: '',
|
|
@@ -1819,6 +1859,13 @@
|
|
callback();
|
|
callback();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ validCNS(rule, value, callback){
|
|
|
|
+ if(this.user.chengnuoshu.length == 0){
|
|
|
|
+ callback(new Error('请上传诚信承诺书'));
|
|
|
|
+ }else{
|
|
|
|
+ callback();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
beforeImageUpload(file) {
|
|
beforeImageUpload(file) {
|
|
const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
|
|
const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
@@ -1866,6 +1913,13 @@
|
|
this.$message.error(response.msg);
|
|
this.$message.error(response.msg);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ uploadSuccessCNS:function(response, file, fileList){
|
|
|
|
+ if(response.status){
|
|
|
|
+ this.user.chengnuoshu = fileList
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(response.msg);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
removeID(file,fileList) {
|
|
removeID(file,fileList) {
|
|
this.user.identification = fileList
|
|
this.user.identification = fileList
|
|
},
|
|
},
|
|
@@ -1878,6 +1932,9 @@
|
|
removeOther(file,fileList) {
|
|
removeOther(file,fileList) {
|
|
this.user.other_certification = fileList
|
|
this.user.other_certification = fileList
|
|
},
|
|
},
|
|
|
|
+ removeCNS:function(file,fileList) {
|
|
|
|
+ this.user.chengnuoshu = fileList
|
|
|
|
+ },
|
|
handlePictureCardPreview(file){
|
|
handlePictureCardPreview(file){
|
|
this.dialogImageUrl = file.url;
|
|
this.dialogImageUrl = file.url;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|