Commit 348cd10e authored by duxinyuan's avatar duxinyuan

123

parent 88f148de
......@@ -257,9 +257,28 @@
console.log(canvas);
console.log(canvas.toDataURL());
that.aaa = canvas.toDataURL();
that.saveData(canvas.toDataURL())
})
}
},
saveData(img){
let that = this ;
that.axios({
method: 'get',
url: '/broker/uploadWorkLearning',
responseType: 'json',
data: {
agent_id : that.$route.query.agent_id,
img : img ,
AuthToken : that.$route.query.token,
type : 1
}
}).then(function(res) {
}).catch(function(error) {
layer.tipsX(error);
});
},
validateParams (){
let that = this ;
let data = this.details ;
......
......@@ -176,9 +176,28 @@
console.log(canvas);
console.log(canvas.toDataURL());
that.aaa = canvas.toDataURL();
that.saveData(canvas.toDataURL())
})
}
},
saveData(img){
let that = this ;
that.axios({
method: 'get',
url: '/broker/uploadWorkLearning',
responseType: 'json',
data: {
agent_id : that.$route.query.agent_id,
img : img ,
AuthToken : that.$route.query.token,
type : 0
}
}).then(function(res) {
}).catch(function(error) {
layer.tipsX(error);
});
},
validateParams(){
let that = this ;
let data = this.details ;
......
......@@ -2,7 +2,7 @@
<div style="margin-top:.3rem;" id="capture">
<div class="overflow ">
<div class="title">上海同联商业员工价值观考核表 </div>
<div class="overflow">
<div style="margin-top:.2rem;">
<div class="title_dark">
{{name}}
</div>
......@@ -55,7 +55,7 @@
<div style="margin-top:.3rem;">
<div class="star_ten">
<span style="line-height: 0.7rem; font-size: 0.28rem; font-family: PingFangSC-Regular; font-weight: 600; color: rgb(39, 39, 39);">
考评结果{{totalVal}}分,{{totalVal>70 ? (totalVal > 80 ? '优秀' :'合格') :'不合格'}}
考评结果{{totalVal}}分,{{totalVal>70 ? (totalVal > 80 ? '优秀' :'合格') :'不合格'}}八星级员工
</span>
</div>
<div class="star_ten">
......@@ -172,12 +172,14 @@
}
},
mounted (){
let date = new Date();
let year = date.getFullYear() ;
let month = date.getMonth()+1;
let day = date.getDate();
this.today = year + '.' + ( month > 9 ? month : '0' + month ) + '.' + ( day > 9 ? day : '0' + day )
this.agent =this.$route.query.agentName;
this.name = this.$route.query.name ;
this.level = localStorage.getItem('userlevel');
},
methods : {
changechek ( boo , index ){
......@@ -203,10 +205,29 @@
}).then ((canvas) =>{
console.log(canvas);
console.log(canvas.toDataURL());
that.aaa = canvas.toDataURL();
that.saveData(canvas.toDataURL())
})
}
},
saveData(img){
let that = this ;
that.axios({
method: 'get',
url: '/broker/uploadWorkLearning',
responseType: 'json',
data: {
agent_id : that.$route.query.agent_id,
img : img ,
AuthToken : that.$route.query.token,
type : 2
}
}).then(function(res) {
}).catch(function(error) {
layer.tipsX(error);
});
},
validateParams (){
if ( this.thanks == "" ){
layer.tipsX('请输意见要感谢的人的事迹');
......@@ -230,6 +251,7 @@
</script>
<style scoped>
.overflow{
overflow:hidden;
padding:0rem .36rem ;
......
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