|
|
|
@ -124,8 +124,8 @@ |
|
|
|
<el-table-column prop="dimensionweight" label="维度权重" align="center"></el-table-column> |
|
|
|
<el-table-column prop="targetname" align="center" label="考核指标"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link v-if="scope.row.type==1" type="primary" @click="clickOld(scope.row)">{{scope.row.targetname}}</el-link> |
|
|
|
<div v-if="scope.row.type==2" @click="clickOld(scope.row)">{{scope.row.targetname}}</div> |
|
|
|
<el-link v-if="scope.row.type==1" type="primary" >{{scope.row.targetname}}</el-link> |
|
|
|
<div v-if="scope.row.type==2">{{scope.row.targetname}}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="targetweight" label="指标权重" align="center"></el-table-column> |
|
|
|
@ -205,10 +205,10 @@ |
|
|
|
<div style='border-bottom: 1px solid #EBEEF5;'> |
|
|
|
{{scope.row.score[index].achievement}} |
|
|
|
</div> --> |
|
|
|
<div v-if="scope.row.manualgear==1" style=""> |
|
|
|
<div v-if="scope.row.manualgear==1" style="" @click="clickOldMonth(scope.row,index+1)"> |
|
|
|
{{scope.row.score[index].actualscore}} |
|
|
|
</div> |
|
|
|
<div v-if="scope.row.manualgear==2" style="color: blue;"> |
|
|
|
<div v-if="scope.row.manualgear==2" style="color: blue;" @click="clickOldMonth(scope.row,index+1)"> |
|
|
|
{{scope.row.score[index].actualscore}} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -270,8 +270,8 @@ |
|
|
|
<el-table-column prop="dimensionweight" label="维度权重" align="center" width="80"></el-table-column> |
|
|
|
<el-table-column prop="targetname" align="center" label="考核指标" width="120"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link v-if="scope.row.type==1" type="primary" @click="clickOld(scope.row)">{{scope.row.targetname}}</el-link> |
|
|
|
<div v-if="scope.row.type==2" @click="clickOld(scope.row)">{{scope.row.targetname}}</div> |
|
|
|
<el-link v-if="scope.row.type==1" type="primary" >{{scope.row.targetname}}</el-link> |
|
|
|
<div v-if="scope.row.type==2" >{{scope.row.targetname}}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="targetweight" label="指标权重" align="center" width="80"></el-table-column> |
|
|
|
@ -349,28 +349,47 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="border-bottom: 1px solid #EBEEF5;"> |
|
|
|
<span v-if="scope.row.type==2">{{scope.row.score[index].allprize}}</span> |
|
|
|
<span v-if="scope.row.type==1&&scope.row.score[index].allprize==0"> - </span> |
|
|
|
<span v-if="scope.row.type==1"> |
|
|
|
<span v-if="scope.row.score[index].allprize==0"> - </span> |
|
|
|
<span v-if="scope.row.score[index].allprize!=0">{{scope.row.score[index].allprize}}</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div style="border-bottom: 1px solid #EBEEF5;"> |
|
|
|
<span v-if="scope.row.type==2">{{scope.row.score[index].zeroprize}}</span> |
|
|
|
<span v-if="scope.row.type==1&&scope.row.score[index].zeroprize==0"> - </span> |
|
|
|
<span v-if="scope.row.type==1"> |
|
|
|
<span v-if="scope.row.score[index].zeroprize==0"> - </span> |
|
|
|
<span v-if="scope.row.score[index].zeroprize!=0">{{scope.row.score[index].zeroprize}}</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div style="border-bottom: 1px solid #EBEEF5;"> |
|
|
|
<span v-if="scope.row.type==2">{{scope.row.score[index].cappingval}}</span> |
|
|
|
<span v-if="scope.row.type==1&&scope.row.score[index].cappingval==0"> - </span> |
|
|
|
<span v-if="scope.row.type==1"> |
|
|
|
<span v-if="scope.row.score[index].cappingval==0"> - </span> |
|
|
|
<span v-if="scope.row.score[index].cappingval!=0">{{scope.row.score[index].cappingval}}</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div style="border-bottom: 1px solid #EBEEF5;"> |
|
|
|
<span v-if="scope.row.type==2">{{scope.row.score[index].scoreval}}</span> |
|
|
|
<span v-if="scope.row.type==1&&scope.row.score[index].scoreval==0"> - </span> |
|
|
|
{{scope.row.score[index].scoreval}} |
|
|
|
<!-- <span v-if="scope.row.type==2">{{scope.row.score[index].scoreval}}</span> |
|
|
|
<span v-if="scope.row.type==1"> |
|
|
|
<span v-if="scope.row.score[index].scoreval==0"> - </span> |
|
|
|
<span v-if="scope.row.score[index].scoreval!=0">{{scope.row.score[index].scoreval}}</span> |
|
|
|
</span> --> |
|
|
|
</div> |
|
|
|
<div style="border-bottom: 1px solid #EBEEF5;"> |
|
|
|
<span v-if="scope.row.type==2">{{scope.row.score[index].achievement}}</span> |
|
|
|
<span v-if="scope.row.type==1&&scope.row.score[index].achievement==0"> - </span> |
|
|
|
<span v-if="scope.row.type==2"> |
|
|
|
<span v-if="scope.row.score[index].achievement=='-'">{{scope.row.score[index].achievement}}</span> |
|
|
|
<span v-if="scope.row.score[index].achievement!='-'">{{scope.row.score[index].achievement}}%</span> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.type==1"> |
|
|
|
<span v-if="scope.row.score[index].achievement=='-'">{{scope.row.score[index].achievement}}</span> |
|
|
|
<span v-if="scope.row.score[index].achievement!='-'"> - </span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div v-if="scope.row.manualgear==1" style="border-bottom: 1px solid #EBEEF5;"> |
|
|
|
<div v-if="scope.row.manualgear==1" style="border-bottom: 1px solid #EBEEF5;color: blue;" @click="clickOldMonth(scope.row,index+1)"> |
|
|
|
{{scope.row.score[index].actualscore}} |
|
|
|
</div> |
|
|
|
<div v-if="scope.row.manualgear==2" style="border-bottom: 1px solid #EBEEF5;color: blue;"> |
|
|
|
<div v-if="scope.row.manualgear==2" style="border-bottom: 1px solid #EBEEF5;color: blue;" @click="clickOldMonth(scope.row,index+1)"> |
|
|
|
{{scope.row.score[index].actualscore}} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -521,6 +540,7 @@ export default { |
|
|
|
dingliangOldData:[], |
|
|
|
rowOldData:{}, |
|
|
|
chengjiYue:'', |
|
|
|
chengjiNian:'', |
|
|
|
showDetails:false, |
|
|
|
props2: { |
|
|
|
checkStrictly: true, |
|
|
|
@ -662,7 +682,9 @@ export default { |
|
|
|
liePos:'', |
|
|
|
transcript:"", |
|
|
|
transcript_hui:"", |
|
|
|
searchChengji:{} |
|
|
|
searchChengji:{ |
|
|
|
year:0 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
created(){ |
|
|
|
@ -671,9 +693,11 @@ export default { |
|
|
|
this.getGrouplist() |
|
|
|
this.initialDepartment() |
|
|
|
this.getscoreTable() |
|
|
|
// const timeOne = new Date() |
|
|
|
// const year = timeOne.getFullYear() |
|
|
|
const timeOne = new Date() |
|
|
|
const year = timeOne.getFullYear() |
|
|
|
// this.transcript_hui = year |
|
|
|
this.searchChengji.year = year |
|
|
|
this.chengjiNian = year |
|
|
|
}, |
|
|
|
// 监听数据 |
|
|
|
watch: { |
|
|
|
@ -721,6 +745,7 @@ export default { |
|
|
|
if(this.transcript != ""){ |
|
|
|
this.searchChengji.year = this.transcript.getFullYear().toString() |
|
|
|
} |
|
|
|
this.chengjiNian = this.transcript.getFullYear() |
|
|
|
console.log("成绩表查询",this.searchChengji) |
|
|
|
const res = await departmenttranscript(this.searchChengji) |
|
|
|
this.scoreTableList=res.data |
|
|
|
@ -743,7 +768,7 @@ export default { |
|
|
|
let nowDate = new Date() |
|
|
|
const from = { |
|
|
|
department:this.rowOldData.departmentid, |
|
|
|
year:nowDate.getFullYear(), |
|
|
|
year:this.chengjiNian, |
|
|
|
month:parseInt(this.chengjiYue), |
|
|
|
targetid:this.rowOldData.targetid |
|
|
|
} |
|
|
|
@ -756,7 +781,7 @@ export default { |
|
|
|
let nowDate = new Date() |
|
|
|
const from = { |
|
|
|
department:this.rowOldData.departmentid, |
|
|
|
year:nowDate.getFullYear(), |
|
|
|
year:this.chengjiNian, |
|
|
|
month:parseInt(this.chengjiYue), |
|
|
|
targetid:this.rowOldData.targetid |
|
|
|
} |
|
|
|
@ -766,14 +791,13 @@ export default { |
|
|
|
}, |
|
|
|
// 点击成绩表后 |
|
|
|
async clickYue(row,yue){ |
|
|
|
|
|
|
|
let nowDate = new Date() |
|
|
|
const from = { |
|
|
|
department:row.departmentid, |
|
|
|
year:nowDate.getFullYear(), |
|
|
|
year:parseInt(this.searchChengji.year), |
|
|
|
month:yue |
|
|
|
} |
|
|
|
|
|
|
|
console.log("点击成绩表后-->",this.searchChengji.year) |
|
|
|
this.chengjiYue=yue |
|
|
|
const res = await summarydetails(from) |
|
|
|
this.detailsList=res.data |
|
|
|
@ -789,6 +813,7 @@ export default { |
|
|
|
// this.searchInfo.page = 1 |
|
|
|
// this.searchInfo.pagesize = 10 |
|
|
|
// this.searchInfo.parentId=this.childInfo.outId |
|
|
|
// this.chengjiNian = |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
// 初始化部门 |
|
|
|
@ -1079,7 +1104,45 @@ export default { |
|
|
|
// } |
|
|
|
// } |
|
|
|
}, |
|
|
|
|
|
|
|
// 点击得分详情后调取历史记录 |
|
|
|
clickOldMonth(row,monthVal){ |
|
|
|
console.log("点击得分详情后调取历史记录-->",row); |
|
|
|
this.rowOldData=row |
|
|
|
// 如果是定性 |
|
|
|
if (row.type==1) { |
|
|
|
this.dingxingOldMonth(monthVal) |
|
|
|
} |
|
|
|
// 定量 |
|
|
|
if (row.type==2) { |
|
|
|
this.dingliangOldMonth(monthVal) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 定性历史记录 |
|
|
|
async dingxingOldMonth(val){ |
|
|
|
let nowDate = new Date() |
|
|
|
const from = { |
|
|
|
department:this.rowOldData.departmentid, |
|
|
|
year:this.chengjiNian, |
|
|
|
month:val, |
|
|
|
targetid:this.rowOldData.targetid |
|
|
|
} |
|
|
|
const res = await summarydetailsxinglog(from) |
|
|
|
this.dingxingOldData=res.data |
|
|
|
this.dxdialogFormVisible=true |
|
|
|
}, |
|
|
|
// 定量历史记录 |
|
|
|
async dingliangOldMonth(val){ |
|
|
|
let nowDate = new Date() |
|
|
|
const from = { |
|
|
|
department:this.rowOldData.departmentid, |
|
|
|
year:this.chengjiNian, |
|
|
|
month:val, |
|
|
|
targetid:this.rowOldData.targetid |
|
|
|
} |
|
|
|
const res = await summarydetailslianglog(from) |
|
|
|
this.dingliangOldData=res.data |
|
|
|
this.dldialogFormVisible=true |
|
|
|
}, |
|
|
|
// 查询 |
|
|
|
// onSubmit(){ |
|
|
|
|
|
|
|
@ -1103,6 +1166,7 @@ export default { |
|
|
|
} |
|
|
|
if(this.transcript_hui != ""){ |
|
|
|
this.searchVersion.year = this.transcript_hui.getFullYear().toString() |
|
|
|
this.chengjiNian = this.transcript_hui.getFullYear() |
|
|
|
} |
|
|
|
|
|
|
|
console.log("this.searchVersion") |
|
|
|
|