浏览代码

增加承诺书模块

sandm 1 年之前
父节点
当前提交
b9aefb1d9a

+ 23 - 0
public/themes/default/views/app/recruit/preview.blade.php

@@ -929,6 +929,29 @@
                             </td>
                         </tr>
                     @endif
+                    @if(in_array('chengnuoshu',$module))
+                        <tr style="height:52px;page-break-inside:avoid">
+                            <td valign="center" >
+                                诚信承诺书
+                            </td>
+                            <td valign="center" colspan="11">
+                                <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>
+                            </td>
+                        </tr>
+                    @endif
                     @if(in_array('remark',$module))
                         <tr style="height:52px;page-break-inside:avoid">
                             <td valign="center" >

+ 33 - 0
public/themes/default/views/app/recruit/sign_up.blade.php

@@ -1025,6 +1025,29 @@
                             </td>
                         </tr>
                     @endif
+                    @if(in_array('chengnuoshu',$module))
+                        <tr style="height:52px;page-break-inside:avoid">
+                            <td valign="center" >
+                                诚信承诺书
+                            </td>
+                            <td valign="center" colspan="11">
+                                <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>
+                            </td>
+                        </tr>
+                    @endif
                     @if(in_array('remark',$module))
                         <tr style="height:52px;page-break-inside:avoid">
                             <td valign="center" >
@@ -1347,6 +1370,13 @@
                             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) {
                         this.user.identification = fileList
                     },
@@ -1359,6 +1389,9 @@
                     removeOther:function(file,fileList) {
                         this.user.other_certification = fileList
                     },
+                    removeCNS:function(file,fileList) {
+                        this.user.chengnuoshu = fileList
+                    },
                     handlePictureCardPreview:function(file){
                         this.dialogImageUrl = file.url;
                         this.dialogVisible = true;