|
@@ -603,7 +603,6 @@ export default {
|
|
isAdjustment:false,
|
|
isAdjustment:false,
|
|
isDetails:true,//是否显示考核详情页面
|
|
isDetails:true,//是否显示考核详情页面
|
|
resultData:{},
|
|
resultData:{},
|
|
-
|
|
|
|
gradeList: [],
|
|
gradeList: [],
|
|
dropdownMenu: [{ key: 'a', name: '重置流程',isShow:true }, { key: 'b', name: '调整目标',isShow:true }],
|
|
dropdownMenu: [{ key: 'a', name: '重置流程',isShow:true }, { key: 'b', name: '调整目标',isShow:true }],
|
|
lingScore_infos: [],
|
|
lingScore_infos: [],
|
|
@@ -1390,6 +1389,18 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ deepCopyAndMakeReactive(original, vm) {
|
|
|
|
+ if (Array.isArray(original)) {
|
|
|
|
+ return original.map(item => this.deepCopyAndMakeReactive(item, vm));
|
|
|
|
+ } else if (typeof original === 'object' && original !== null) {
|
|
|
|
+ const copy = {};
|
|
|
|
+ Object.keys(original).forEach(key => {
|
|
|
|
+ this.$set(copy, key, this.deepCopyAndMakeReactive(original[key], vm));
|
|
|
|
+ });
|
|
|
|
+ return copy;
|
|
|
|
+ }
|
|
|
|
+ return original;
|
|
|
|
+ },
|
|
// 绩效考核详情
|
|
// 绩效考核详情
|
|
employeeDet(is,func=function(){}) {
|
|
employeeDet(is,func=function(){}) {
|
|
let params = {};
|
|
let params = {};
|
|
@@ -1687,8 +1698,19 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
points.sort(this.rule("id"))//跟距ID排序
|
|
points.sort(this.rule("id"))//跟距ID排序
|
|
-
|
|
|
|
- this.lingScore_infos = points.map(item => ({ ...item })); //表格 评分、说明 头部
|
|
|
|
|
|
+ console.log(points)
|
|
|
|
+ this.lingScore_infos = points;
|
|
|
|
+ this.isShowOneselfScore = !this.isShowOneselfScore
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.isShowOneselfScore = !this.isShowOneselfScore
|
|
|
|
+ })
|
|
|
|
+ // this.lingScore_infos = this.deepCopyAndMakeReactive(points,this)
|
|
|
|
+ // console.log(this.lingScore_infos)
|
|
|
|
+ // this.lingScore_infos = []
|
|
|
|
+ // points.map((item,index) => {
|
|
|
|
+ // this.lingScore_infos.push(item)
|
|
|
|
+ // })
|
|
|
|
+ // this.$set(this.lingScore_infos,points.map(item => ({ ...item })))
|
|
|
|
|
|
let toScore = {
|
|
let toScore = {
|
|
theDimension: '总分',
|
|
theDimension: '总分',
|
|
@@ -1724,7 +1746,6 @@ export default {
|
|
dimeTab[0].zfLeg = dimeTab.length;
|
|
dimeTab[0].zfLeg = dimeTab.length;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(dimeTab)
|
|
|
|
this.dimension = dimeTab.map(item => ({ ...item })); //表格数据
|
|
this.dimension = dimeTab.map(item => ({ ...item })); //表格数据
|
|
//记录
|
|
//记录
|
|
let record = res.data.data.record;
|
|
let record = res.data.data.record;
|