|
|
@@ -153,7 +153,7 @@ let app = new Vue({
|
|
|
},
|
|
|
xAxis: {
|
|
|
// data: companyList.map(item => item.name),
|
|
|
- data: '',
|
|
|
+ data: '123123',
|
|
|
axisLine: {
|
|
|
show: false, //隐藏X轴轴线
|
|
|
lineStyle: {
|
|
|
@@ -291,7 +291,8 @@ let app = new Vue({
|
|
|
post('/ierp/api/login.do', value).then(res => {
|
|
|
this.access_token = res.data.access_token
|
|
|
Promise.all([this.getData(), this.getInstitutional()])
|
|
|
- .then((arr) => { // 生成图表
|
|
|
+ .then((arr) => {
|
|
|
+ // 生成图表
|
|
|
this.generateEcharts()
|
|
|
})
|
|
|
.catch((err) => console.log(err));
|
|
|
@@ -299,19 +300,22 @@ let app = new Vue({
|
|
|
},
|
|
|
// 获取组织机构
|
|
|
getInstitutional () {
|
|
|
- let value = {
|
|
|
- access_token: this.access_token,
|
|
|
- "Data": {
|
|
|
- "paramType": "ORG",
|
|
|
- "orgNumber": "100000"
|
|
|
+ return new Promise((resolve, err) => {
|
|
|
+ let value = {
|
|
|
+ access_token: this.access_token,
|
|
|
+ "Data": {
|
|
|
+ "paramType": "ORG",
|
|
|
+ "orgNumber": "100000"
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
|
|
|
- this.companyList = res.data.map(item => {
|
|
|
- return { name: item.orgName, id: item.orgNumber }
|
|
|
+ post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
|
|
|
+ this.companyList = res.data.map(item => {
|
|
|
+ return { name: item.orgName, id: item.orgNumber }
|
|
|
+ })
|
|
|
+ this.commonOption.xAxis.data = this.companyList.map(item => item.name)
|
|
|
+ resolve(1);
|
|
|
})
|
|
|
- this.commonOption.xAxis.data = this.companyList.map(item => item.name)
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
generateEcharts () {
|
|
|
this.initChartL1()
|
|
|
@@ -336,196 +340,199 @@ let app = new Vue({
|
|
|
this.initChartR8()
|
|
|
},
|
|
|
getData () {
|
|
|
- let value = {
|
|
|
- access_token: this.access_token,
|
|
|
- "Data": {
|
|
|
- "paramType": "DATA",
|
|
|
- "orgNumber": "100000"
|
|
|
+ return new Promise((resolve, err) => {
|
|
|
+ let value = {
|
|
|
+ access_token: this.access_token,
|
|
|
+ "Data": {
|
|
|
+ "paramType": "DATA",
|
|
|
+ "orgNumber": "100000"
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
|
|
|
- res.orgData = res.data[0]
|
|
|
- console.log(res.orgData, '????????')
|
|
|
- // 定机构
|
|
|
- // 弹窗
|
|
|
- // return
|
|
|
- // 左侧图表
|
|
|
- tipData.focus[0] = res.orgData.area1.keyPoint
|
|
|
- tipData.analysis[0] = res.orgData.area1.intAnalysis
|
|
|
- //各省属企业总部机构数
|
|
|
- dataL1[1] = []
|
|
|
- dataL1[0] = []
|
|
|
- dataL1[2] = []
|
|
|
- res.orgData.area1.card1.forEach(item => {
|
|
|
- dataL1[1].push(item['ZBPZ0032'])
|
|
|
- dataL1[0].push(item['ZBPZ0042'])
|
|
|
- dataL1[2].push(item['ZBPZ0043'])
|
|
|
- })
|
|
|
- // 各省属企业共享服务中心/事业部数
|
|
|
- dataL2[0] = []
|
|
|
- dataL2[1] = []
|
|
|
- res.orgData.area1.card2.forEach(item => {
|
|
|
- dataL1[1].push(item['ZBPZ0045'])
|
|
|
- dataL1[0].push(item['ZBPZ0024'])
|
|
|
- })
|
|
|
+ post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
|
|
|
+ res.orgData = res.data[0]
|
|
|
+ // 定机构
|
|
|
+ // 弹窗
|
|
|
+ // return
|
|
|
+ // 左侧图表
|
|
|
+ tipData.focus[0] = res.orgData.area1.keyPoint
|
|
|
+ tipData.analysis[0] = res.orgData.area1.intAnalysis
|
|
|
+ //各省属企业总部机构数
|
|
|
+ dataL1[1] = []
|
|
|
+ dataL1[0] = []
|
|
|
+ dataL1[2] = []
|
|
|
+ res.orgData.area1.card1.forEach(item => {
|
|
|
+ dataL1[1].push(item['ZBPZ0032'])
|
|
|
+ dataL1[0].push(item['ZBPZ0042'])
|
|
|
+ dataL1[2].push(item['ZBPZ0043'])
|
|
|
+ })
|
|
|
+ // 各省属企业共享服务中心/事业部数
|
|
|
+ dataL2[0] = []
|
|
|
+ dataL2[1] = []
|
|
|
+ res.orgData.area1.card2.forEach(item => {
|
|
|
+ dataL2[1].push(item['ZBPZ0045'])
|
|
|
+ dataL2[0].push(item['ZBPZ0024'])
|
|
|
+ })
|
|
|
|
|
|
- // 定职数
|
|
|
- // 弹窗
|
|
|
- tipData.focus[1] = res.orgData.area2.keyPoint
|
|
|
- tipData.analysis[1] = res.orgData.area2.intAnalysis
|
|
|
- // 各省属企业管理人员数
|
|
|
- dataL3[0] = []
|
|
|
- dataL3[1] = []
|
|
|
- res.orgData.area2.card1.forEach(item => {
|
|
|
- dataL3[0].push(item['ZBPZ0031'])
|
|
|
- dataL3[1].push(item['ZBPZ0049'])
|
|
|
- })
|
|
|
- // 各省属企业总部中层管理人数
|
|
|
- dataL4[1] = []
|
|
|
- dataL4[0] = []
|
|
|
- dataL4[2] = []
|
|
|
- res.orgData.area2.card2.forEach(item => {
|
|
|
- dataL4[1].push(item['ZBPZ0046'])
|
|
|
- dataL4[0].push(item['ZBPZ0047'])
|
|
|
- dataL4[2].push(item['ZBPZ0048'])
|
|
|
- })
|
|
|
+ // 定职数
|
|
|
+ // 弹窗
|
|
|
+ tipData.focus[1] = res.orgData.area2.keyPoint
|
|
|
+ tipData.analysis[1] = res.orgData.area2.intAnalysis
|
|
|
+ // 各省属企业管理人员数
|
|
|
+ dataL3[0] = []
|
|
|
+ dataL3[1] = []
|
|
|
+ res.orgData.area2.card1.forEach(item => {
|
|
|
+ dataL3[0].push(item['ZBPZ0031'])
|
|
|
+ dataL3[1].push(item['ZBPZ0049'])
|
|
|
+ })
|
|
|
+ // 各省属企业总部中层管理人数
|
|
|
+ dataL4[1] = []
|
|
|
+ dataL4[0] = []
|
|
|
+ dataL4[2] = []
|
|
|
+ res.orgData.area2.card2.forEach(item => {
|
|
|
+ dataL4[1].push(item['ZBPZ0046'])
|
|
|
+ dataL4[0].push(item['ZBPZ0047'])
|
|
|
+ dataL4[2].push(item['ZBPZ0048'])
|
|
|
+ })
|
|
|
|
|
|
- // 定员额
|
|
|
- // 弹窗
|
|
|
- tipData.focus[2] = res.orgData.area3.keyPoint
|
|
|
- tipData.analysis[2] = res.orgData.area3.intAnalysis
|
|
|
- // 各省属企业总人数
|
|
|
- dataL5[0] = []
|
|
|
- dataL5[1] = []
|
|
|
- res.orgData.area3.card1.forEach(item => {
|
|
|
- dataL5[0].push(item['ZBPZ0006'])
|
|
|
- dataL5[1].push(item['ZBPZ0050'])
|
|
|
- })
|
|
|
- // 各省属企业总部员额数
|
|
|
- dataL6[0] = []
|
|
|
- dataL6[1] = []
|
|
|
- res.orgData.area3.card2.forEach(item => {
|
|
|
- dataL6[0].push(item['ZBPZ0033'])
|
|
|
- dataL6[1].push(item['ZBPZ0053'])
|
|
|
- })
|
|
|
- // 人数变化和全员劳动生产率变化分析
|
|
|
- dataL7[0] = []
|
|
|
- dataL7[1] = []
|
|
|
- res.orgData.area3.card2.forEach(item => {
|
|
|
- dataL7[0].push(item['ZBPZ0050'])
|
|
|
- dataL7[1].push(item['ZBPZ0039'])
|
|
|
- })
|
|
|
- // 人数变化和人工成本利润率变化分析
|
|
|
- dataL8[0] = []
|
|
|
- dataL8[1] = []
|
|
|
- res.orgData.area3.card4.forEach(item => {
|
|
|
- dataL8[0].push(item['ZBPZ0050'])
|
|
|
- dataL8[1].push(item['ZBPZ0041'])
|
|
|
- })
|
|
|
+ // 定员额
|
|
|
+ // 弹窗
|
|
|
+ tipData.focus[2] = res.orgData.area3.keyPoint
|
|
|
+ tipData.analysis[2] = res.orgData.area3.intAnalysis
|
|
|
+ // 各省属企业总人数
|
|
|
+ dataL5[0] = []
|
|
|
+ dataL5[1] = []
|
|
|
+ res.orgData.area3.card1.forEach(item => {
|
|
|
+ dataL5[0].push(item['ZBPZ0006'])
|
|
|
+ dataL5[1].push(item['ZBPZ0050'])
|
|
|
+ })
|
|
|
+ // 各省属企业总部员额数
|
|
|
+ dataL6[0] = []
|
|
|
+ dataL6[1] = []
|
|
|
+ res.orgData.area3.card2.forEach(item => {
|
|
|
+ dataL6[0].push(item['ZBPZ0033'])
|
|
|
+ dataL6[1].push(item['ZBPZ0053'])
|
|
|
+ })
|
|
|
+ // 人数变化和全员劳动生产率变化分析
|
|
|
+ dataL7[0] = []
|
|
|
+ dataL7[1] = []
|
|
|
+ res.orgData.area3.card3.forEach(item => {
|
|
|
+ dataL7[0].push(item['ZBPZ0050'])
|
|
|
+ dataL7[1].push(item['ZBPZ0039'])
|
|
|
+ })
|
|
|
+ // 人数变化和人工成本利润率变化分析
|
|
|
+ dataL8[0] = []
|
|
|
+ dataL8[1] = []
|
|
|
+ res.orgData.area3.card4.forEach(item => {
|
|
|
+ dataL8[0].push(item['ZBPZ0050'])
|
|
|
+ dataL8[1].push(item['ZBPZ0041'])
|
|
|
+ })
|
|
|
|
|
|
- // 中间
|
|
|
- // 架岗人
|
|
|
- this.centerData.info.value1 = res.orgData.area7.ZBPZ0037
|
|
|
- this.centerData.info.value2 = res.orgData.area7.ZBPZ0038
|
|
|
- this.centerData.info.value3 = res.orgData.area7.ZBPZ0006
|
|
|
- // 六定改革成效
|
|
|
- this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0067
|
|
|
- this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0068
|
|
|
- this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0069
|
|
|
- this.centerData.changeInfo[2].value1 = res.orgData.area8.ZBPZ0074
|
|
|
- this.centerData.changeInfo[2].value2 = res.orgData.area8.ZBPZ0075
|
|
|
- this.centerData.changeInfo[2].value3 = res.orgData.area8.ZBPZ0076
|
|
|
- this.centerData.changeInfo[1].value1 = res.orgData.area8.ZBPZ0071
|
|
|
- this.centerData.changeInfo[1].value2 = res.orgData.area8.ZBPZ0072
|
|
|
- this.centerData.changeInfo[1].value3 = res.orgData.area8.ZBPZ0073
|
|
|
+ // 中间
|
|
|
+ // 架岗人
|
|
|
+ this.centerData.info.value1 = res.orgData.area7.ZBPZ0037
|
|
|
+ this.centerData.info.value2 = res.orgData.area7.ZBPZ0038
|
|
|
+ this.centerData.info.value3 = res.orgData.area7.ZBPZ0006
|
|
|
+ // 六定改革成效
|
|
|
+ this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0067
|
|
|
+ this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0068
|
|
|
+ this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0069
|
|
|
+ this.centerData.changeInfo[2].value1 = res.orgData.area8.ZBPZ0074
|
|
|
+ this.centerData.changeInfo[2].value2 = res.orgData.area8.ZBPZ0075
|
|
|
+ this.centerData.changeInfo[2].value3 = res.orgData.area8.ZBPZ0076
|
|
|
+ this.centerData.changeInfo[1].value1 = res.orgData.area8.ZBPZ0071
|
|
|
+ this.centerData.changeInfo[1].value2 = res.orgData.area8.ZBPZ0072
|
|
|
+ this.centerData.changeInfo[1].value3 = res.orgData.area8.ZBPZ0073
|
|
|
|
|
|
- // 核心指标监测
|
|
|
- // 弹窗
|
|
|
- tipData.focus[3] = res.orgData.area9.keyPoint
|
|
|
- tipData.analysis[3] = res.orgData.area9.intAnalysis
|
|
|
- // 各省属企业全员劳动生产率
|
|
|
- c1[0] = []
|
|
|
- c1[1] = []
|
|
|
- res.orgData.area9.card1.forEach(item => {
|
|
|
- c1[0].push(item['ZBPZ0035'])
|
|
|
- c1[1].push(item['ZBPZ0039'])
|
|
|
- })
|
|
|
- // 各省属企业人工成本利润率
|
|
|
- c2[1] = []
|
|
|
- c2[0] = []
|
|
|
- res.orgData.area9.card2.forEach(item => {
|
|
|
- c2[1].push(item['ZBPZ0040'])
|
|
|
- c2[0].push(item['ZBPZ0041'])
|
|
|
- })
|
|
|
+ // 核心指标监测
|
|
|
+ // 弹窗
|
|
|
+ tipData.focus[3] = res.orgData.area9.keyPoint
|
|
|
+ tipData.analysis[3] = res.orgData.area9.intAnalysis
|
|
|
+ // 各省属企业全员劳动生产率
|
|
|
+ c1[0] = []
|
|
|
+ c1[1] = []
|
|
|
+ res.orgData.area9.card1.forEach(item => {
|
|
|
+ c1[0].push(item['ZBPZ0035'])
|
|
|
+ c1[1].push(item['ZBPZ0039'])
|
|
|
+ })
|
|
|
+ console.log(c1,'核心指标检测')
|
|
|
+ // 各省属企业人工成本利润率
|
|
|
+ c2[1] = []
|
|
|
+ c2[0] = []
|
|
|
+ res.orgData.area9.card2.forEach(item => {
|
|
|
+ c2[1].push(item['ZBPZ0040'])
|
|
|
+ c2[0].push(item['ZBPZ0041'])
|
|
|
+ })
|
|
|
|
|
|
- // 左边
|
|
|
- // 定机制
|
|
|
- // 弹窗
|
|
|
- tipData.focus[4] = res.orgData.area4.keyPoint
|
|
|
- tipData.analysis[4] = res.orgData.area4.intAnalysis
|
|
|
- // 各省属企业招聘需求公示人次
|
|
|
- dataR1[0] = []
|
|
|
- dataR1[1] = []
|
|
|
- res.orgData.area4.card1.forEach(item => {
|
|
|
- dataR1[0].push(item['ZBPZ0057'])
|
|
|
- dataR1[1].push(item['ZBPZ0058'])
|
|
|
- })
|
|
|
- // 各省属企业录用结果公示人次
|
|
|
- dataR2[0] = []
|
|
|
- dataR2[1] = []
|
|
|
- res.orgData.area4.card2.forEach(item => {
|
|
|
- dataR2[0].push(item['ZBPZ0059'])
|
|
|
- dataR2[1].push(item['ZBPZ0060'])
|
|
|
- })
|
|
|
- // 各省属企业年利润与当年累计招聘人数
|
|
|
- dataR3[0] = []
|
|
|
- dataR3[1] = []
|
|
|
- res.orgData.area4.card3.forEach(item => {
|
|
|
- dataR3[0].push(item['ZBPZ0054'])
|
|
|
- dataR3[0].push(item['ZBPZ0055'])
|
|
|
- })
|
|
|
- // 各省属企业"退二进一"完成情况
|
|
|
- dataR4[0] = []
|
|
|
- dataR4[1] = []
|
|
|
- res.orgData.area4.card4.forEach(item => {
|
|
|
- dataR3[0].push(item['ZBPZ0056'])
|
|
|
- dataR3[0].push(item['ZBPZ0055'])
|
|
|
- })
|
|
|
+ // 左边
|
|
|
+ // 定机制
|
|
|
+ // 弹窗
|
|
|
+ tipData.focus[4] = res.orgData.area4.keyPoint
|
|
|
+ tipData.analysis[4] = res.orgData.area4.intAnalysis
|
|
|
+ // 各省属企业招聘需求公示人次
|
|
|
+ dataR1[0] = []
|
|
|
+ dataR1[1] = []
|
|
|
+ res.orgData.area4.card1.forEach(item => {
|
|
|
+ dataR1[0].push(item['ZBPZ0057'])
|
|
|
+ dataR1[1].push(item['ZBPZ0058'])
|
|
|
+ })
|
|
|
+ // 各省属企业录用结果公示人次
|
|
|
+ dataR2[0] = []
|
|
|
+ dataR2[1] = []
|
|
|
+ res.orgData.area4.card2.forEach(item => {
|
|
|
+ dataR2[0].push(item['ZBPZ0059'])
|
|
|
+ dataR2[1].push(item['ZBPZ0060'])
|
|
|
+ })
|
|
|
+ // 各省属企业年利润与当年累计招聘人数
|
|
|
+ dataR3[0] = []
|
|
|
+ dataR3[1] = []
|
|
|
+ res.orgData.area4.card3.forEach(item => {
|
|
|
+ dataR3[0].push(item['ZBPZ0054'])
|
|
|
+ dataR3[0].push(item['ZBPZ0055'])
|
|
|
+ })
|
|
|
+ // 各省属企业"退二进一"完成情况
|
|
|
+ dataR4[0] = []
|
|
|
+ dataR4[1] = []
|
|
|
+ res.orgData.area4.card4.forEach(item => {
|
|
|
+ dataR4[0].push(item['ZBPZ0056'])
|
|
|
+ dataR4[0].push(item['ZBPZ0055'])
|
|
|
+ })
|
|
|
|
|
|
- // 定薪酬
|
|
|
- // 弹窗
|
|
|
- tipData.focus[5] = res.orgData.area5.keyPoint
|
|
|
- tipData.analysis[5] = res.orgData.area5.intAnalysis
|
|
|
- // 各省属企业在岗职工平均薪酬
|
|
|
- fjxdataL1[0] = []
|
|
|
- fjxdataL1[1] = []
|
|
|
- res.orgData.area5.card1.forEach(item => {
|
|
|
- fjxdataL1[0].push(item['ZBPZ0063'])
|
|
|
- fjxdataL1[1].push(item['ZBPZ0064'])
|
|
|
- })
|
|
|
- // 各省属企业利润与薪酬变动情况
|
|
|
- fjxdataL2[0] = []
|
|
|
- fjxdataL2[1] = []
|
|
|
- res.orgData.area5.card2.forEach(item => {
|
|
|
- fjxdataL1[0].push(item['ZBPZ0061'])
|
|
|
- fjxdataL1[1].push(item['ZBPZ0062'])
|
|
|
- })
|
|
|
+ // 定薪酬
|
|
|
+ // 弹窗
|
|
|
+ tipData.focus[5] = res.orgData.area5.keyPoint
|
|
|
+ tipData.analysis[5] = res.orgData.area5.intAnalysis
|
|
|
+ // 各省属企业在岗职工平均薪酬
|
|
|
+ fjxdataL1[0] = []
|
|
|
+ fjxdataL1[1] = []
|
|
|
+ res.orgData.area5.card1.forEach(item => {
|
|
|
+ fjxdataL1[0].push(item['ZBPZ0063'])
|
|
|
+ fjxdataL1[1].push(item['ZBPZ0064'])
|
|
|
+ })
|
|
|
+ // 各省属企业利润与薪酬变动情况
|
|
|
+ fjxdataL2[0] = []
|
|
|
+ fjxdataL2[1] = []
|
|
|
+ res.orgData.area5.card2.forEach(item => {
|
|
|
+ fjxdataL2[0].push(item['ZBPZ0061'])
|
|
|
+ fjxdataL2[1].push(item['ZBPZ0062'])
|
|
|
+ })
|
|
|
|
|
|
- // 定任期
|
|
|
- // 弹窗
|
|
|
- tipData.focus[5] = res.orgData.area6.keyPoint
|
|
|
- tipData.analysis[5] = res.orgData.area6.intAnalysis
|
|
|
- // 各省属企业全员绩效考核
|
|
|
- fjxdataL3[0] = []
|
|
|
- res.orgData.area6.card1.forEach(item => {
|
|
|
- fjxdataL3[0].push(item['ZBPZ0066'])
|
|
|
- })
|
|
|
- // 各省属企业全员绩效考核
|
|
|
- fjxdataL4[0] = []
|
|
|
- res.orgData.area6.card2.forEach(item => {
|
|
|
- fjxdataL4[0].push(item['ZBPZ0065'])
|
|
|
+ // 定任期
|
|
|
+ // 弹窗
|
|
|
+ tipData.focus[5] = res.orgData.area6.keyPoint
|
|
|
+ tipData.analysis[5] = res.orgData.area6.intAnalysis
|
|
|
+ // 各省属企业全员绩效考核
|
|
|
+ fjxdataL3[0] = []
|
|
|
+ res.orgData.area6.card1.forEach(item => {
|
|
|
+ fjxdataL3[0].push(item['ZBPZ0066'])
|
|
|
+ })
|
|
|
+ // 各省属企业全员绩效考核
|
|
|
+ fjxdataL4[0] = []
|
|
|
+ res.orgData.area6.card2.forEach(item => {
|
|
|
+ fjxdataL4[0].push(item['ZBPZ0065'])
|
|
|
+ })
|
|
|
+ resolve(1)
|
|
|
})
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
handleTitleShow () {
|
|
|
this.titleShow = true
|
|
|
@@ -572,8 +579,8 @@ let app = new Vue({
|
|
|
this.titleShow = false
|
|
|
this.tipNum = index
|
|
|
},
|
|
|
- handleGoPage (id,name) {
|
|
|
- window.location.href = './index2.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
|
|
|
+ handleGoPage (id, name) {
|
|
|
+ window.location.href = './index2.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
|
|
|
},
|
|
|
numFormat (value) {
|
|
|
if (!value) return '0'
|