| | |
| | | */ |
| | | data: { |
| | | ec: { |
| | | lazyLoad: false |
| | | lazyLoad: true |
| | | }, |
| | | creditText: '----------------------', |
| | | gradeDetails: [{ |
| | | name: '考核得分', |
| | | name: '自评得分', |
| | | detail: '--' |
| | | }, { |
| | | name: '风险排名', |
| | |
| | | name: '风险等级', |
| | | detail: '--' |
| | | }, { |
| | | name: '考核周期', |
| | | name: '自评周期', |
| | | detail: '--' |
| | | }, { |
| | | name: '自评时间', |
| | | detail: '--' |
| | | }], |
| | | |
| | | //失分的类型 |
| | | losePointsItem: [], |
| | | losePoints: [{ |
| | | baseRule: '', |
| | | name: '', |
| | | itemlist: [{ |
| | | ruleName: '----', |
| | | score: '--', |
| | | remark: '------------' |
| | |
| | | ruleName: '----', |
| | | score: '--', |
| | | remark: '------------' |
| | | }] |
| | | }] |
| | | }, |
| | | |
| | |
| | | let year = data.period.split('/')[0] |
| | | let month = data.period.split('/')[1].split('-')[0] |
| | | let gradeDetails = [{ |
| | | name: '考核得分', |
| | | name: '自评得分', |
| | | detail: data.score |
| | | }, { |
| | | name: '风险排名', |
| | |
| | | name: '风险等级', |
| | | detail: data.level |
| | | }, { |
| | | name: '考核周期', |
| | | name: '自评周期', |
| | | detail: `${year}年${month}月` |
| | | }, { |
| | | name: '自评时间', |
| | | detail: moment(data.time).format("YYYY-MM-DD HH:mm") |
| | | }] |
| | | let losePointsItem = [] |
| | | let losePoints = [] |
| | | data.loseScore.forEach(l => { |
| | | losePoints.push({ |
| | | ruleName: l.first, |
| | | score: l.second, |
| | | remark: l.third |
| | | for (const key in data.loseScore) { |
| | | const s = data.loseScore[key]; |
| | | if (Object.keys(s).length > 0) { |
| | | losePointsItem.push(key) |
| | | for (const key1 in s) { |
| | | const rule = s[key1]; |
| | | let p = { |
| | | baseRule: key, |
| | | name: key1, |
| | | itemlist: [] |
| | | } |
| | | rule.forEach(r => { |
| | | p.itemlist.push({ |
| | | ruleName: r.first, |
| | | score: r.second, |
| | | remark: r.third |
| | | }) |
| | | }); |
| | | losePoints.push(p) |
| | | } |
| | | } |
| | | } |
| | | let classPoints = { |
| | | score: data.score, |
| | | level: data.level, |
| | |
| | | that.setData({ |
| | | creditText: creditText, |
| | | gradeDetails: gradeDetails, |
| | | losePoints: losePoints |
| | | losePoints: losePoints, |
| | | losePointsItem: losePointsItem |
| | | }) |
| | | setOption(that.chart, classPoints) |
| | | } |