Commit f71c2bdd authored by zhangderong's avatar zhangderong Committed by FE-安焕焕

发送失败时加入错误提示

parent 8236a5c0
......@@ -38,6 +38,7 @@ export default {
width: 100%;
cursor:auto;
text-align: left;
overflow-x: hidden;
font-family: 'PingFangSC-Regular', 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
......@@ -47,6 +48,8 @@ export default {
-moz-user-select: text !important; /*火狐*/
-ms-user-select: text !important; /*IE10*/
user-select: text !important;
}
.pc {
height: 100%;
......@@ -57,6 +60,28 @@ export default {
min-width: unset;
min-height: unset;
}
::-webkit-scrollbar
{
width: 8px;
height: 8px;
background-color: #F5F5F5;
}
/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
border-radius: 10px;
background-color: #Eff4f6;
}
/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #BDBDBD;
}
/* .ivu-btn-primary{
background: #0092FF!important
} */
......
......@@ -527,6 +527,7 @@ import {mapState} from 'vuex'
selectFn3STA:'',
selectFn4STA:'',
limentName:0,
errorMassage:'',
errorCode:'',
emailMassage:false,
allEmailVilitor:false,
......@@ -1783,6 +1784,7 @@ import {mapState} from 'vuex'
this.SouSuo(this.pageT)
} else{
this.errorCode=res.data.body.code
this.errorMassage=res.data.body.message
this.modal8=false
this.clearInterviewee()
if(this.errorCode=='40001'){
......@@ -1791,6 +1793,12 @@ import {mapState} from 'vuex'
if(this.errorCode=='40002'){
this.modal13=true
}
if(this.errorCode=='0'){
this.$Notice.error({
title: '提示',
desc: this.errorMassage
})
}
// setTimeout(() => {
// this.$Notice.error({
// title: '提示',
......
......@@ -534,6 +534,7 @@ export default {
disabledSingle:true,
emailId:'',
RescopyArr:[],
errorMassage:'',
interelement:'1',
emailIdArr:[],
attachFileList:[],
......@@ -1737,6 +1738,7 @@ export default {
this.SouSuo(this.pageT)
} else{
this.errorCode=res.data.body.code
this.errorMassage=res.data.body.message
this.clearInterviewee()
this.modal8 = false
if(this.errorCode=='40001'){
......@@ -1745,6 +1747,12 @@ export default {
if(this.errorCode=='40002'){
this.modal13=true
}
if(this.errorCode=='0'){
this.$Notice.error({
title: '提示',
desc:this.errorMassage
})
}
// setTimeout(() => {
// this.$Notice.success({
// title: '提示',
......
......@@ -272,6 +272,44 @@
<Button type='primary' @click="confireSendEmail">确定</Button>
</div>
</Modal>
<!-- 发送失败再次发送 -->
<Modal
v-model="modal11"
width='350px'
:closable='false'>
<div >
<h2 style="text-align: center;color:black">提示</h2>
<p style="text-align:center;margin-top:10px;font-size: 14px;text-align:left;">{{errorInfo}}</p>
</div>
<div slot='footer' style="text-align:center">
<Button type='primary' @click='cancelSubmit'>取消</Button>
<Button type='primary' @click="sendFail">确定</Button>
</div>
</Modal>
<Modal
v-model="modal12"
width='450px'
: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="modal12=false">我已知晓</p>
</div>
</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>
</template>
<script>
......@@ -298,7 +336,11 @@ export default {
loading1: false,
modal8:false,
modal10:false,
modal11:false,
modal12:false,
modal13:false,
boxIsShow:false,
errorMassage:'',
interviewee: [],
contentName:'',
a:{'a_b':'hjbjhbjbh','b':'4'},
......@@ -330,6 +372,7 @@ export default {
downresume:'',
detialID:'',
showBtn:'',
errorInfo:'',
isShowAll:false,
isShowTwo:false,
interviewIsShow:false,
......@@ -580,7 +623,7 @@ export default {
this.delateARRALL = []
this.flowStatusarr = []
},
sendNotice() {
sendNotice: _debounce( function() {
this.$refs.transpondFrom.validate(valid => {
if(!this.transpondFrom.interviewerName){
return
......@@ -601,6 +644,7 @@ export default {
}, 300)
} else{
this.errorCode=res.data.body.code
this.errorMassage=res.data.body.message
this.modal8=false
this.clearInterviewee()
if(this.errorCode=='40001'){
......@@ -609,10 +653,16 @@ export default {
if(this.errorCode=='40002'){
this.modal13=true
}
if(this.errorCode=='0'){
this.$Notice.error({
title: '提示',
desc: this.errorMassage
})
}
}
})
})
},
},800),
transpond() { //打开转发简历的modal
this.$refs.transpondFrom.resetFields()
this.modal8= true
......@@ -622,7 +672,8 @@ export default {
this.contentName=''
},
// 确认发送邮件
confireSendEmail(){
// _debounce(confireSendEmail,500),
confireSendEmail: _debounce(function(){
this.sad = this.getEditorValue()
if(this.sad==''){
this.$Notice.error({
......@@ -726,7 +777,7 @@ export default {
}
})
}
},
},800),
getEditorValue(value){ // 调编辑器组件方法获取数据
return this.$refs.editor.getValue()
},
......@@ -746,6 +797,32 @@ export default {
if(this.detailSta == 'OPTION'){
this.optionDisabled=true
}
},
cancelSubmit(){
this.emailMOdal=false
this.modal11=false
this.emailInline.modalArr=[]
this.emailInline.theme=''
this.emailInline.receiveEmail=''
this.emailInline.templateContent=''
this.sad=''
this.fileList=[]
this.emailInline.moo=''
this.emailMOdal=false
this.emailMassage=false
this.emailIdArr=[]
this.emailFlowStatus=''
this.formInline.UpdateOWER=''
this.formInline.UpdateVIEW=''
this.formInline.UpdateTIME=''
this.formInline.sendWeixin=true
this.emailInline.copyname=''
this.isShowTwo=false
this.uploadFileList=[]
this.clearInterviewee()
},
sendFail(){
this.modal11 = false
},
// 待处理
todo(){
......@@ -804,7 +881,7 @@ export default {
.resumeDetail-left{
float: left;
width:860px;
min-height: 1000px
min-height: 200px
/* border: 1px solid #999 */
}
.pic img{
......@@ -818,7 +895,7 @@ export default {
}
.interviewee .name{
position: relative;
left: 18px;
left: 13px;
top:-20px;
display: inline-block;
/* margin-left: 200px */
......
......@@ -16,7 +16,7 @@
>
<Button @click='selFiles' style='width:20%;margin-top:40px;margin-left:-4px;color:black'>选择文件</Button>
<div class='contentTips'>
<p style="font-size:12px;margin-left:3.5%;text-align:center;height:40px;line-height:40px;width:90%;display:inline-block;margin-top:30px">单个文件不能大于2MB,支持html,doc,docx,txt,pdf等格式,暂时不支持压缩格式</p>
<p style="font-size:12px;margin-left:5%;text-align:left;height:40px;line-height:40px;width:90%;display:inline-block;margin-top:30px">单个文件不能大于2MB,支持html,doc,docx,txt,pdf等格式,暂时不支持压缩格式</p>
<p style="font-size:12px;margin-left:2%;text-align:center;height:40px;line-height:40px;width:90%">支持最多二十份简历批量上传</p>
</div>
<Button @click='uploadBtn' style='width:20%;margin-left:38%;margin-top:30px' type='primary'>上传</Button>
......@@ -52,7 +52,7 @@
</Modal>
</div>
<div class="leftcontrentFotter">
<h5 style="width:100%;height:7%;background:rgb(0,176,160);text-align:center;line-height:40px;color:white;font-size:15px;font-weight:bold">上传记录</h5>
<h5 style="width:100%;height:40px;background:rgb(0,176,160);text-align:center;line-height:40px;color:white;font-size:15px;font-weight:bold">上传记录</h5>
<div style="width:100%;background:rgb(0,176,160); opacity: 0.7;overflow-y:auto;height:93%;">
<!-- <div style="width:100%;height:10px;background:rgb(0,176,160)"></div> -->
<div class="contentMASSAGE" v-for="(item,index) in ajaxData" :key="index">
......
......@@ -20,7 +20,6 @@ export function _throttle (fn, interval) {
let last = null
let timer = null
interval = interval || 200
return function () {
let self = this
let args = arguments
......
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