|
@@ -1075,6 +1075,31 @@
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@endif
|
|
@endif
|
|
|
|
+ @if(in_array('baokaoshengming',$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="baokaoshengming" ref="baokaoshengming">
|
|
|
|
+ <div style="padding: 10px 0">
|
|
|
|
+ <el-upload
|
|
|
|
+ action="{{ route('recruit.api.upload') }}"
|
|
|
|
+ list-type="picture-card"
|
|
|
|
+ :data="{_token:'{{csrf_token()}}'}"
|
|
|
|
+ :file-list="user.baokaoshengming"
|
|
|
|
+ :before-upload="beforeImageUpload"
|
|
|
|
+ :on-success="uploadSuccessSMS"
|
|
|
|
+ :multiple="true"
|
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
|
+ :on-remove="removeSMS">
|
|
|
|
+ <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" >
|
|
@@ -1413,6 +1438,13 @@
|
|
this.$message.error(response.msg);
|
|
this.$message.error(response.msg);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ uploadSuccessSMS:function(response, file, fileList){
|
|
|
|
+ if(response.status){
|
|
|
|
+ this.user.baokaoshengming = fileList
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(response.msg);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
removeID:function(file,fileList) {
|
|
removeID:function(file,fileList) {
|
|
this.user.identification = fileList
|
|
this.user.identification = fileList
|
|
},
|
|
},
|
|
@@ -1428,6 +1460,9 @@
|
|
removeCNS:function(file,fileList) {
|
|
removeCNS:function(file,fileList) {
|
|
this.user.chengnuoshu = fileList
|
|
this.user.chengnuoshu = fileList
|
|
},
|
|
},
|
|
|
|
+ removeSMS:function(file,fileList) {
|
|
|
|
+ this.user.baokaoshengming = fileList
|
|
|
|
+ },
|
|
removeSX:function(file,fileList) {
|
|
removeSX:function(file,fileList) {
|
|
this.user.shixin = fileList
|
|
this.user.shixin = fileList
|
|
},
|
|
},
|
|
@@ -1761,6 +1796,11 @@
|
|
{validator:this.validSX, trigger: 'change'}
|
|
{validator:this.validSX, trigger: 'change'}
|
|
],
|
|
],
|
|
@endif
|
|
@endif
|
|
|
|
+ @if(in_array('baokaoshengming',$module))
|
|
|
|
+ baokaoshengming:[
|
|
|
|
+ {validator:this.validSMS, trigger: 'change'}
|
|
|
|
+ ],
|
|
|
|
+ @endif
|
|
},
|
|
},
|
|
init: 0,
|
|
init: 0,
|
|
upload: '',
|
|
upload: '',
|
|
@@ -1916,6 +1956,13 @@
|
|
callback();
|
|
callback();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ validSMS(rule, value, callback){
|
|
|
|
+ if(this.user.baokaoshengming.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;
|
|
@@ -1977,6 +2024,13 @@
|
|
this.$message.error(response.msg);
|
|
this.$message.error(response.msg);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ uploadSuccessSMS:function(response, file, fileList){
|
|
|
|
+ if(response.status){
|
|
|
|
+ this.user.baokaoshengming = fileList
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(response.msg);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
removeID(file,fileList) {
|
|
removeID(file,fileList) {
|
|
this.user.identification = fileList
|
|
this.user.identification = fileList
|
|
},
|
|
},
|
|
@@ -1995,6 +2049,9 @@
|
|
removeSX:function(file,fileList) {
|
|
removeSX:function(file,fileList) {
|
|
this.user.shixin = fileList
|
|
this.user.shixin = fileList
|
|
},
|
|
},
|
|
|
|
+ removeSMS:function(file,fileList) {
|
|
|
|
+ this.user.baokaoshengming = fileList
|
|
|
|
+ },
|
|
handlePictureCardPreview(file){
|
|
handlePictureCardPreview(file){
|
|
this.dialogImageUrl = file.url;
|
|
this.dialogImageUrl = file.url;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|