Commit c2c60e68 authored by FE-安焕焕's avatar FE-安焕焕 👣

Merge branch 'notice' into 'master'

Notice

See merge request !10
parents bb7d7de1 d8c23a0a
...@@ -347,22 +347,10 @@ ...@@ -347,22 +347,10 @@
:mask-closable='false'> :mask-closable='false'>
<div style="text-align:center"> <div style="text-align:center">
<h2 style="text-align: center;color:black;font-size:16px">发送失败</h2> <h2 style="text-align: center;color:black;font-size:16px">发送失败</h2>
<p style="text-align: center;color:black;margin-top:15px;font-size:15px">该面试官没有通过微信端绑定账号,请提醒他关注并绑定。</p> <p style="text-align: center;color:black;margin-top:15px;font-size:15px">{{errorNotice}}</p>
<p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal12=false">我已知晓</p> <p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal12=false">我已知晓</p>
</div> </div>
</Modal> </Modal>
<Modal
v-model="modal13"
width='480px'
:closable='false'
:footer-hide='true'
:mask-closable='false'>
<div style="text-align:center">
<h2 style="text-align: center;color:black;font-size:16px">发送失败</h2>
<p style="text-align: center;color:black;margin-top:15px;font-size:15px">该面试官没有关注微信,无法接收通知,请提醒他关注并绑定。</p>
<p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal13=false">我已知晓</p>
</div>
</Modal>
<!-- 转发邮件 --> <!-- 转发邮件 -->
<Modal <Modal
v-model="modal8" v-model="modal8"
...@@ -523,6 +511,11 @@ import {mapState} from 'vuex' ...@@ -523,6 +511,11 @@ import {mapState} from 'vuex'
modal8: false, modal8: false,
modal12:false, modal12:false,
modal13:false, modal13:false,
modal14:false,
modal15:false,
modal17:false,
modal16:false,
errorNotice:'',
transpondFrom: { transpondFrom: {
interviewerName: '' interviewerName: ''
}, },
...@@ -1573,16 +1566,7 @@ import {mapState} from 'vuex' ...@@ -1573,16 +1566,7 @@ import {mapState} from 'vuex'
if(res.data.body.code=='40009'){ if(res.data.body.code=='40009'){
this.reResumeName=res.data.body.message this.reResumeName=res.data.body.message
this.isShowRep=true this.isShowRep=true
} return
if(res.data.body.code=='40001'){
this.modal8=false
this.modal12=true
this.isShowRep=false
}
if(res.data.body.code=='40002'){
this.modal8=false
this.modal13=true
this.isShowRep=false
} }
if(res.data.body.code=='0'){ if(res.data.body.code=='0'){
this.modal8=false this.modal8=false
...@@ -1590,7 +1574,14 @@ import {mapState} from 'vuex' ...@@ -1590,7 +1574,14 @@ import {mapState} from 'vuex'
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
desc: res.data.body.message desc: res.data.body.message
}) })
return
}
if(res.data.success==false){
this.modal8=false
this.modal12=true
this.isShowRep=false
this.errorNotice=res.data.body.message
} }
}) })
}) })
......
...@@ -250,22 +250,10 @@ ...@@ -250,22 +250,10 @@
:mask-closable='false'> :mask-closable='false'>
<div style="text-align:center"> <div style="text-align:center">
<h2 style="text-align: center;color:black;font-size:16px">发送失败</h2> <h2 style="text-align: center;color:black;font-size:16px">发送失败</h2>
<p style="text-align: center;color:black;margin-top:15px;font-size:15px">该面试官没有通过微信端绑定账号,请提醒他关注并绑定。</p> <p style="text-align: center;color:black;margin-top:15px;font-size:15px">{{errorNotice}}</p>
<p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal12=false">我已知晓</p> <p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal12=false">我已知晓</p>
</div> </div>
</Modal> </Modal>
<Modal
v-model="modal13"
width='480px'
:closable='false'
:footer-hide='true'
:mask-closable='false'>
<div style="text-align:center">
<h2 style="text-align: center;color:black;font-size:16px">发送失败</h2>
<p style="text-align: center;color:black;margin-top:15px;font-size:15px">该面试官没有关注微信,无法接收通知,请提醒他关注并绑定。</p>
<p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal13=false">我已知晓</p>
</div>
</Modal>
<!-- 发送邮件 --> <!-- 发送邮件 -->
<Modal <Modal
v-model="emailMOdal" v-model="emailMOdal"
...@@ -537,6 +525,11 @@ export default { ...@@ -537,6 +525,11 @@ export default {
modal10:false, modal10:false,
modal12:false, modal12:false,
modal13:false, modal13:false,
modal14:false,
modal15:false,
modal16:false,
modal17:false,
errorNotice:'',
resumePushId:'', resumePushId:'',
reResumeName:'', reResumeName:'',
optcode:'', optcode:'',
...@@ -1572,16 +1565,7 @@ export default { ...@@ -1572,16 +1565,7 @@ export default {
if(res.data.body.code=='40009'){ if(res.data.body.code=='40009'){
this.reResumeName=res.data.body.message this.reResumeName=res.data.body.message
this.isShowRep=true this.isShowRep=true
} return
if(res.data.body.code=='40001'){
this.modal8=false
this.modal12=true
this.isShowRep=false
}
if(res.data.body.code=='40002'){
this.modal8=false
this.modal13=true
this.isShowRep=false
} }
if(res.data.body.code=='0'){ if(res.data.body.code=='0'){
this.modal8=false this.modal8=false
...@@ -1589,7 +1573,14 @@ export default { ...@@ -1589,7 +1573,14 @@ export default {
this.$Notice.error({ this.$Notice.error({
title: '提示', title: '提示',
desc: res.data.body.message desc: res.data.body.message
}) })
return
}
if(res.data.success==false){
this.modal8=false
this.modal12=true
this.isShowRep=false
this.errorNotice=res.data.body.message
} }
}) })
}) })
......
...@@ -308,22 +308,10 @@ ...@@ -308,22 +308,10 @@
:mask-closable='false'> :mask-closable='false'>
<div style="text-align:center"> <div style="text-align:center">
<h2 style="text-align: center;color:black;font-size:16px">发送失败</h2> <h2 style="text-align: center;color:black;font-size:16px">发送失败</h2>
<p style="text-align: center;color:black;margin-top:15px;font-size:15px">该面试官没有通过微信端绑定账号,请提醒他关注并绑定。</p> <p style="text-align: center;color:black;margin-top:15px;font-size:15px">{{errorNotice}}</p>
<p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal12=false">我已知晓</p> <p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal12=false">我已知晓</p>
</div> </div>
</Modal> </Modal>
<Modal
v-model="modal13"
width='480px'
:closable='false'
:footer-hide='true'
:mask-closable='false'>
<div style="text-align:center">
<h2 style="text-align: center;color:black;font-size:16px">发送失败</h2>
<p style="text-align: center;color:black;margin-top:15px;font-size:15px">该面试官没有关注微信,无法接收通知,请提醒他关注并绑定。</p>
<p style="text-align: center;color:#0092FF;margin-top:30px;font-size:15px;cursor:pointer;font-weight: 900" @click="modal13=false">我已知晓</p>
</div>
</Modal>
</div> </div>
</template> </template>
<script> <script>
...@@ -331,7 +319,7 @@ import moment from 'moment' ...@@ -331,7 +319,7 @@ import moment from 'moment'
import pdf from 'vue-pdf' import pdf from 'vue-pdf'
// import moment from '../../../static/1.pdf' // import moment from '../../../static/1.pdf'
require('../../../static/pdf/pdf.js') require('../../../static/pdf/pdf.js')
let mammoth = require("mammoth"); // let mammoth = require("mammoth");
import {seedetail,updatastatus,TODORes,sendEmail,getEmailMoo,getEmailContent,uploadimage, findCompanyEmailByKey,forwardResume,getPdf,isShowPDF,getpdfUrl} from '../../api/resume.server' import {seedetail,updatastatus,TODORes,sendEmail,getEmailMoo,getEmailContent,uploadimage, findCompanyEmailByKey,forwardResume,getPdf,isShowPDF,getpdfUrl} from '../../api/resume.server'
import localStorage from '../../service/localstorage.service.js' import localStorage from '../../service/localstorage.service.js'
import { import {
...@@ -358,11 +346,15 @@ export default { ...@@ -358,11 +346,15 @@ export default {
modal11:false, modal11:false,
modal12:false, modal12:false,
modal13:false, modal13:false,
modal14:false,
modal15:false,
modal16:false,
modal17:false,
boxIsShow:false, boxIsShow:false,
resumeBTn:false, resumeBTn:false,
isShowPdf:true, isShowPdf:true,
errorNotice:'',
px:1200, px:1200,
// src:'/api/http://172.21.10.43/group1/M00/00/58/oYYBAF2nzwqAY4fcAAHyoHPb1Ic418.pdf',
showOriginalDisabled:true, showOriginalDisabled:true,
OriginalContent:'', OriginalContent:'',
StandardContent:'', StandardContent:'',
...@@ -469,73 +461,6 @@ export default { ...@@ -469,73 +461,6 @@ export default {
this.name=res.data.body.resume.ownerName this.name=res.data.body.resume.ownerName
}) })
}, },
// clearPDF: function (OriginalContent) {
// if(this.OriginalContent!==''){
// document.getElementById("container").innerHTML = "";
// }
// },
// // 渲染合同
// renderPDF: function (pdf, pageNumber,OriginalContent) {
// if(this.OriginalContent!==''){}
// pdf.getPage(pageNumber).then(function (page) {
// var scale = 1.5; //随意设置的
// var viewport = page.getViewport(scale);
// // Prepare canvas using PDF page dimensions
// // var canvas = document.getElementById('the-canvas');
// var canvas = document.createElement('canvas');
// canvas.setAttribute("id", "the-canvas-" + pageNumber);
// var element = document.getElementById("container");
// element.appendChild(canvas);
// var context = canvas.getContext('2d');
// canvas.height = viewport.height;
// canvas.width = viewport.width;
// // Render PDF page into canvas context
// var renderContext = {
// canvasContext: context,
// viewport: viewport
// };
// var renderTask = page.render(renderContext);
// renderTask.then(function () {
// });
// });
// },
// // 展示合同
// showPDF : function ( OriginalContent) {
// let vm = this
// if ( this.OriginalContent) {
// var obj = {
// // url: '../../static/test.pdf', // 得到的是数据时使用data属性
// data: this.OriginalContent,
// cMapUrl: 'https://cdn.jsdelivr.net/npm/pdfjs-dist@2.0.943/cmaps/',
// cMapPacked: true
// };
// PDFJS.workerSrc = '../../static/pdf/pdf.worker.js'
// var loadingTask = PDFJS.getDocument(obj);
// loadingTask.promise.then(function(pdf) {
// var total = pdf.numPages;
// for (var i = 0; i < total; i++) {
// var pageNumber = i + 1;
// // 如果你有node(vue ag...)环境,那么请用async/await替换掉
// setTimeout(vm.renderPDF(pdf, pageNumber), 10);
// }
// }, function (reason) {
// // PDF loading error
// console.error(reason);
// });
// }
// },
// getData(){
// let params = {
// uid:this.$route.query.id
// }
// getPdf(params).then(data => { // 调接口获取数据(二进制流数据)
// this.clearPDF();
// let vm =this
// var array = new Uint8Array(data.data);// 将二进制流数据转换成 Uint8Array (pdf支持的数据格式)
// this.OriginalContent=new Uint8Array(data.data);
// vm.showPDF(this.OriginalContent)
// })
// },
// 下载简历 // 下载简历
downloadONE(doid){ downloadONE(doid){
window.location.href=`${sapi}/api/resume/download/formatted/one?resumeId=${doid}` window.location.href=`${sapi}/api/resume/download/formatted/one?resumeId=${doid}`
...@@ -742,16 +667,7 @@ export default { ...@@ -742,16 +667,7 @@ export default {
if(res.data.body.code=='40009'){ if(res.data.body.code=='40009'){
this.reResumeName=res.data.body.message this.reResumeName=res.data.body.message
this.isShowRep=true this.isShowRep=true
} return
if(res.data.body.code=='40001'){
this.modal8=false
this.modal12=true
this.isShowRep=false
}
if(res.data.body.code=='40002'){
this.modal8=false
this.modal13=true
this.isShowRep=false
} }
if(res.data.body.code=='0'){ if(res.data.body.code=='0'){
this.modal8=false this.modal8=false
...@@ -761,6 +677,12 @@ export default { ...@@ -761,6 +677,12 @@ export default {
desc: res.data.body.message desc: res.data.body.message
}) })
} }
if(res.data.success==false){
this.modal8=false
this.modal12=true
this.isShowRep=false
this.errorNotice=res.data.body.message
}
}) })
}) })
},800), },800),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment