index2.js 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106
  1. let barImg =
  2. 'data:image/png;base64,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'
  3. let app = new Vue({
  4. el: '#app',
  5. data () {
  6. return {
  7. echartC1:{
  8. national:'',
  9. province:''
  10. },
  11. echartC2:{
  12. national:'',
  13. province:''
  14. },
  15. titleName: '',
  16. access_token: '',
  17. orgNumber: '', // 上级的id
  18. twinkle7: [],
  19. twinkle8: [],
  20. twinkleR6: [],
  21. showTip: false,
  22. tipNum: '',
  23. time: '',
  24. year: '2022',
  25. config1: {
  26. number: [100],
  27. content: '{nt}个',
  28. },
  29. centerData: '',
  30. storageRecordConfig: {
  31. header: ['', '时间', '所属集团', '工作情况'],
  32. headerBGC: '#05507b33',
  33. oddRowBGC: '#69c0ff0f',
  34. evenRowBGC: '',
  35. headerHeight: '40',
  36. rowNum: 4,
  37. align: ['center', 'center', 'center', 'center'],
  38. data: [
  39. ['<span class="lightOut"><span class="light yellow"></span></span>', '2023.01.05', '山西煤炭运销集团长治有限公司', '集团人数增长速度较快'],
  40. ['<span class="lightOut"><span class="light yellow"></span></span>', '2023.01.05', '山西煤炭运销集团长治有限公司', '人员增速显著高于全员劳动生产率增速'],
  41. ['<span class="lightOut"><span class="light yellow"></span></span>', '2022.12.07', '山西煤炭运销集团忻州有限公司', '总部机构压减有待改善'],
  42. ['<span class="lightOut"><span class="light green"></span></span>', '2023.01.05', '晋能控股电力集团有限公司', '“退二进一”完成情况表现优秀'],
  43. ['<span class="lightOut"><span class="light green"></span></span>', '2023.01.06', '中国太原煤炭交易中心有限公司', '全员劳动生产率提升明显'],
  44. ['<span class="lightOut"><span class="light green"></span></span>', '2022.12.07', '中国太原煤炭交易中心有限公司', '全员劳动生产率增速显著高于人员增速'],
  45. ['<span class="lightOut"><span class="light green"></span></span>', '2022.12.07', '晋能控股装备制造集团有限公司', '全员劳动生产率增速显著高于人员增速'],
  46. ['<span class="lightOut"><span class="light red"></span></span>', '2023.01.08', '晋能控股山西煤业集团有限公司', '年利润亏损但年薪酬增长'],
  47. ['<span class="lightOut"><span class="light red"></span></span>', '2022.11.07', '晋能控股山西电力股份有限公司', '年利润亏损但年薪酬增长'],
  48. ['<span class="lightOut"><span class="light green"></span></span>', '2022.12.07', '晋控电力山西新能源有限公司', '中层管理人数改革成效显著'],
  49. ['<span class="lightOut"><span class="light green"></span></span>', '2022.11.07', '晋能控股煤业集团有限公司', '人工成本利润率增长且总人数下降'],
  50. ],
  51. },
  52. storageRecordConfig2: {
  53. header: ['企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
  54. headerBGC: '#05507b33',
  55. oddRowBGC: '#05507b33',
  56. evenRowBGC: '',
  57. headerHeight: '40',
  58. rowNum: 4,
  59. align: ['center', 'center', 'center', 'center'],
  60. data: [
  61. ['山西焦煤', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  62. ['山西文旅', '六定长效机制情况未更新', '2022.12.01-12.31', '7天'],
  63. ['大地控股', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  64. ['国际能源', '六定长效机制情况未更新', '2022.12.01-12.31', '1天'],
  65. ['山西焦煤', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  66. ['山西焦煤', '六定长效机制情况未更新', '2022.12.01-12.31', '3天'],
  67. ],
  68. },
  69. companyList: companyList,
  70. companyListTitle: companyListTitle,
  71. commonOption: {
  72. title: {
  73. text: 'xxx',
  74. x: 'center',
  75. y: '3%',
  76. textStyle: {
  77. color: '#69C0FF',
  78. fontSize: 24,
  79. },
  80. },
  81. tooltip: {
  82. trigger: 'axis',
  83. axisPointer: {
  84. type: 'shadow',
  85. },
  86. },
  87. grid: {
  88. top: '22%',
  89. right: '5%',
  90. left: '8%',
  91. bottom: '25%',
  92. },
  93. legend: {
  94. data: '',
  95. top: '12%',
  96. right: '5%',
  97. textStyle: {
  98. color: 'rgba(250,250,250,0.6)',
  99. fontSize: 16,
  100. },
  101. },
  102. xAxis: {
  103. // data: companyList.map(item => item.name),
  104. data: '',
  105. axisLine: {
  106. show: true, //隐藏X轴轴线
  107. lineStyle: {
  108. color: '#005094',
  109. width: 1,
  110. },
  111. },
  112. axisTick: {
  113. show: false, //隐藏X轴刻度
  114. },
  115. axisLabel: {
  116. show: true,
  117. rotate: 15,
  118. textStyle: {
  119. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  120. fontSize: 16,
  121. },
  122. },
  123. },
  124. yAxis: [
  125. {
  126. type: 'value',
  127. nameTextStyle: {
  128. color: '#ebf8ac',
  129. fontSize: 16,
  130. },
  131. splitLine: {
  132. show: true,
  133. lineStyle: {
  134. color: '#68b4dd66',
  135. type: 'dashed',
  136. },
  137. },
  138. axisLine: {
  139. show: false,
  140. },
  141. axisLabel: {
  142. show: true,
  143. textStyle: {
  144. color: 'rgba(250,250,250,0.6)',
  145. fontSize: 16,
  146. },
  147. },
  148. },
  149. ],
  150. },
  151. }
  152. },
  153. beforeMount () {
  154. // dataL7[0].forEach((item, index) => {
  155. // if (dataL7[1][index] < 0 && dataL7[0][index] > 0) {
  156. // let obj = { value: [companyList[index].name, dataL7[0][index]], symbolSize: 15 }
  157. // this.twinkle7.push(obj)
  158. // }
  159. // })
  160. // // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  161. // dataL8[0].forEach((item, index) => {
  162. // if (dataL8[1][index] < 0 && dataL8[0][index] > 0) {
  163. // let obj = { value: [companyList[index].name, dataL8[0][index]], symbolSize: 15 }
  164. // this.twinkle8.push(obj)
  165. // }
  166. // })
  167. // // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
  168. // dataR6[0].forEach((item, index) => {
  169. // if (dataR6[1][index] > 0 && dataR6[0][index] < 0) {
  170. // let obj = { value: [companyList[index].name, dataR6[1][index]], symbolSize: 15 }
  171. // this.twinkleR6.push(obj)
  172. // }
  173. // })
  174. // console.log(this.twinkleR6)
  175. },
  176. mounted () {
  177. this.getUrlParams()
  178. this.time = formatDate()
  179. this.timer = setInterval(() => {
  180. this.time = formatDate()
  181. }, 1000)
  182. this.centerData = data
  183. // 左侧图表
  184. // this.initChartL1()
  185. // this.initChartL2()
  186. // this.initChartL3()
  187. // this.initChartL4()
  188. // this.initChartL5()
  189. // this.initChartL6()
  190. // this.initChartL7()
  191. // this.initChartL8()
  192. // // 中间图表
  193. // this.initChartC1()
  194. // this.initChartC2()
  195. // // 右侧图表
  196. // this.initChartR1()
  197. // this.initChartR2()
  198. // this.initChartR3()
  199. // this.initChartR4()
  200. // this.initChartR5()
  201. // this.initChartR6()
  202. // this.initChartR7()
  203. // this.initChartR8()
  204. },
  205. beforeDestroy () {
  206. if (this.timer) {
  207. clearInterval(this.timer);
  208. }
  209. },
  210. methods: {
  211. // 生成图表
  212. generateEcharts () {
  213. this.initChartL1()
  214. // this.initChartL2()
  215. this.initChartL3()
  216. // this.initChartL4()
  217. // this.initChartL5()
  218. this.initChartL6()
  219. // this.initChartL7()
  220. // this.initChartL8()
  221. // 中间图表
  222. this.initChartC1()
  223. this.initChartC2()
  224. // 右侧图表
  225. // this.initChartR1()
  226. // this.initChartR2()
  227. // this.initChartR3()
  228. this.initChartR4()
  229. this.initChartR5()
  230. // this.initChartR6()
  231. this.initChartR7()
  232. // this.initChartR8()
  233. },
  234. getData () {
  235. return new Promise((resolve, err) => {
  236. let value = {
  237. access_token: this.access_token,
  238. "Data": {
  239. "paramType": "DATA",
  240. "orgNumber": this.orgNumber
  241. }
  242. }
  243. post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
  244. res.orgData = res.data[0]
  245. // 定机构
  246. // 弹窗
  247. // return
  248. // 左侧图表
  249. // tipData.analysis[0] = res.orgData.area1.intAnalysis
  250. //各二级企业本部机构数
  251. dataL1[0] = []
  252. res.orgData.area1.card1.forEach(item => {
  253. dataL1[0].push(item['ZBPZ0010'])
  254. })
  255. // 各二级企业所属架构数
  256. dataL2[0] = []
  257. res.orgData.area1.card2.forEach(item => {
  258. dataL2[0].push(item['ZBPZ0024'])
  259. })
  260. // 定职数
  261. // 弹窗
  262. // 左侧图表
  263. // tipData.analysis[2] = res.orgData.area2.intAnalysis
  264. //各二级企业本部中层管理人数
  265. dataL3[0] = []
  266. res.orgData.area2.card1.forEach(item => {
  267. dataL3[0].push(item['ZBPZ0091'])
  268. })
  269. // 各二级企业管理人员数
  270. dataL4[0] = []
  271. dataL4[1] = []
  272. res.orgData.area2.card2.forEach(item => {
  273. dataL4[0].push(item['ZBPZ0031'])
  274. dataL4[1].push(item['ZBPZ0049'])
  275. })
  276. // 定员额
  277. // 弹窗
  278. // tipData.analysis[1] = res.orgData.area3.intAnalysis
  279. // 各二级企业总人数
  280. dataL5[0] = []
  281. dataL5[1] = []
  282. res.orgData.area3.card1.forEach(item => {
  283. dataL5[0].push(item['ZBPZ0006'])
  284. dataL5[1].push(item['ZBPZ0050'])
  285. })
  286. // 各二级企业本部员额数
  287. dataL6[0] = []
  288. res.orgData.area3.card2.forEach(item => {
  289. dataL6[0].push(item['ZBPZ0031'])
  290. })
  291. // 人数变化和全员劳动生产率变化率分析
  292. dataL7[0] = []
  293. dataL7[1] = []
  294. res.orgData.area3.card3.forEach(item => {
  295. dataL7[0].push(item['ZBPZ0050'])
  296. dataL7[1].push(item['ZBPZ0039'])
  297. })
  298. // 人数变化和人工利润率变化分析
  299. dataL8[0] = []
  300. dataL8[1] = []
  301. res.orgData.area3.card4.forEach(item => {
  302. dataL8[0].push(item['ZBPZ0050'])
  303. dataL8[1].push(item['ZBPZ0041'])
  304. })
  305. // 定机制
  306. // 弹窗
  307. // tipData.analysis[6] = res.orgData.area4.intAnalysis
  308. // 各二级企业招聘需求公告人次情况
  309. dataR1[0] = []
  310. dataR1[1] = []
  311. res.orgData.area4.card1.forEach(item => {
  312. dataR1[0].push(item['ZBPZ0057'])
  313. dataR1[1].push(item['ZBPZ0058'])
  314. })
  315. // 各二级企业录用结果公示人次
  316. dataR2[0] = []
  317. dataR2[1] = []
  318. res.orgData.area4.card2.forEach(item => {
  319. dataR2[0].push(item['ZBPZ0059'])
  320. dataR2[1].push(item['ZBPZ0060'])
  321. })
  322. // 各二级企业年利润与招聘情况分析
  323. dataR3[0] = []
  324. dataR3[1] = []
  325. res.orgData.area4.card3.forEach(item => {
  326. dataR3[0].push(item['ZBPZ0054'])
  327. dataR3[1].push(item['ZBPZ0055'])
  328. })
  329. // 各二级企业"退二进一"完成情况
  330. dataR4[0] = []
  331. dataR4[1] = []
  332. res.orgData.area4.card4.forEach(item => {
  333. dataR4[0].push(item['ZBPZ0056'])
  334. dataR4[1].push(item['ZBPZ0055'])
  335. })
  336. // 定薪酬
  337. // 弹窗
  338. // tipData.analysis[5] = res.orgData.area5.intAnalysis
  339. // 各二级企业在岗职工平均薪酬
  340. dataR5[0] = []
  341. dataR5[1] = []
  342. res.orgData.area5.card1.forEach(item => {
  343. dataR5[0].push(item['ZBPZ0063'])
  344. dataR5[1].push(item['ZBPZ0064'])
  345. })
  346. // 各二级企业利润与薪酬变动情况
  347. dataR6[0] = []
  348. dataR6[1] = []
  349. res.orgData.area5.card2.forEach(item => {
  350. dataR6[0].push(item['ZBPZ0061'])
  351. dataR6[1].push(item['ZBPZ0062'])
  352. })
  353. // 定任期
  354. // 弹窗
  355. // tipData.analysis[6] = res.orgData.area6.intAnalysis
  356. // 各二级企业全员绩效考核
  357. dataR7[0] = []
  358. res.orgData.area6.card1.forEach(item => {
  359. dataR7[0].push(item['ZBPZ0024'])
  360. })
  361. // 各二级企业任期制契约化完成率
  362. dataR8[0] = []
  363. res.orgData.area6.card2.forEach(item => {
  364. dataR8[0].push(item['ZBPZ0065'])
  365. })
  366. // 中间
  367. // 架岗人员
  368. this.centerData.info.value1 = res.orgData.area7.ZBPZ0037
  369. this.centerData.info.value2 = res.orgData.area7.ZBPZ0038
  370. this.centerData.info.value3 = res.orgData.area7.ZBPZ0006
  371. // 六定改革成效
  372. this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0067
  373. this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0068
  374. this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0069
  375. this.centerData.changeInfo[2].value1 = res.orgData.area8.ZBPZ0074
  376. this.centerData.changeInfo[2].value2 = res.orgData.area8.ZBPZ0075
  377. this.centerData.changeInfo[2].value3 = res.orgData.area8.ZBPZ0076
  378. this.centerData.changeInfo[1].value1 = res.orgData.area8.ZBPZ0071
  379. this.centerData.changeInfo[1].value2 = res.orgData.area8.ZBPZ0072
  380. this.centerData.changeInfo[1].value3 = res.orgData.area8.ZBPZ0073
  381. // 核心指标监测
  382. // 弹窗
  383. // tipData.analysis[3] = res.orgData.area9.intAnalysis
  384. // 各二级企业全员劳动生产率
  385. dataC1[0] = []
  386. dataC1[1] = []
  387. res.orgData.area9.card1.forEach(item => {
  388. dataC1[0].push(item['ZBPZ0035'])
  389. dataC1[1].push(item['ZBPZ0039'])
  390. })
  391. // 各二级企业人工成本利润率
  392. dataC2[1] = []
  393. dataC2[0] = []
  394. res.orgData.area9.card2.forEach(item => {
  395. dataC2[1].push(item['ZBPZ0040'])
  396. dataC2[0].push(item['ZBPZ0041'])
  397. })
  398. this.echartC1.national = res.orgData.area9.card1[0].ZBPZ0097
  399. this.echartC1.province = res.orgData.area9.card1[0].ZBPZ0096
  400. this.echartC2.national = res.orgData.area9.card2[0].ZBPZ0099
  401. this.echartC2.province = res.orgData.area9.card2[0].ZBPZ0098
  402. // 数据整理
  403. dataL7[0].forEach((item, index) => {
  404. if (dataL7[1][index] < 0 && dataL7[0][index] > 0) {
  405. let obj = { value: [companyList[index].name, dataL7[0][index]], symbolSize: 15 }
  406. this.twinkle7.push(obj)
  407. }
  408. })
  409. // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  410. dataL8[0].forEach((item, index) => {
  411. if (dataL8[1][index] < 0 && dataL8[0][index] > 0) {
  412. let obj = { value: [companyList[index].name, dataL8[0][index]], symbolSize: 15 }
  413. this.twinkle8.push(obj)
  414. }
  415. })
  416. // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
  417. dataR6[0].forEach((item, index) => {
  418. if (dataR6[1][index] > 0 && dataR6[0][index] < 0) {
  419. let obj = { value: [companyList[index].name, dataR6[1][index]], symbolSize: 15 }
  420. this.twinkleR6.push(obj)
  421. }
  422. })
  423. this.generateEcharts()
  424. resolve(1)
  425. })
  426. });
  427. },
  428. // 获取地址栏参数
  429. getUrlParams (id) {
  430. let url = window.location.href
  431. // 通过 ? 分割获取后面的参数字符串
  432. let urlStr = url.split('?')[1]
  433. // 创建空对象存储参数
  434. let obj = {};
  435. // 再通过 & 将每一个参数单独分割出来
  436. let paramsArr = urlStr.split('&')
  437. for (let i = 0, len = paramsArr.length; i < len; i++) {
  438. // 再通过 = 将每一个参数分割为 key:value 的形式
  439. let arr = paramsArr[i].split('=')
  440. obj[arr[0]] = arr[1];
  441. }
  442. this.access_token = obj.access_token
  443. this.orgNumber = obj.id
  444. this.titleName = decodeURIComponent(obj.name)
  445. // Promise.all([this.getData(), this.getInstitutional()])
  446. // .then((arr) => {
  447. // this.generateEcharts()
  448. // })
  449. // .catch((err) => console.log(err));
  450. this.getInstitutional()
  451. },
  452. // 获取组织机构
  453. getInstitutional () {
  454. return new Promise((resolve, err) => {
  455. let value = {
  456. access_token: this.access_token,
  457. "Data": {
  458. "paramType": "ORG",
  459. "orgNumber": this.orgNumber
  460. // "orgNumber": '1494979736584079360'
  461. }
  462. }
  463. post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
  464. this.companyList = res.data.map(item => {
  465. return { name: item.orgName, id: item.orgNumber }
  466. })
  467. this.commonOption.xAxis.data = this.companyList.map(item => item.name)
  468. this.getData()
  469. resolve(1);
  470. })
  471. });
  472. },
  473. handleShowTip (index) {
  474. this.showTip = true
  475. this.tipNum = index
  476. },
  477. handleGoPage (id, name) {
  478. if (name == '山西煤炭运销集团长治有限公司') {
  479. window.location.href = './index3MT.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
  480. }else{
  481. window.location.href = './index3.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
  482. }
  483. },
  484. handleGoBack () {
  485. window.history.go(-1)
  486. },
  487. numFormat (value) {
  488. if (!value) return '0'
  489. // var intPart = Number(value).toFixed(0) // 获取整数部分
  490. var intPart = parseInt(value)// 获取整数部分
  491. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  492. var floatPart = '.00' // 预定义小数部分
  493. var value2Array = value.toString().split('.')
  494. // =2表示数据有小数位
  495. if (value2Array.length === 2) {
  496. floatPart = value2Array[1].toString() // 拿到小数部分
  497. if (floatPart.length === 1) {
  498. // 补0
  499. return intPartFormat + '.' + floatPart + '0'
  500. } else {
  501. return intPartFormat + '.' + floatPart
  502. }
  503. } else {
  504. return intPartFormat
  505. }
  506. },
  507. initChartL1 () {
  508. let myChart = echarts.init(this.$refs['echartL1'])
  509. let option = {
  510. ..._.cloneDeep(this.commonOption),
  511. series: [
  512. {
  513. name: '六个二级企业本部机构数核定上限',
  514. type: 'line',
  515. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  516. smooth: true, //平滑曲线显示
  517. showAllSymbol: true, //显示所有图形。
  518. symbol: 'circle', //标记的图形为实心圆
  519. symbolSize: 8, //标记的大小
  520. smooth: false,
  521. itemStyle: {
  522. //折线拐点标志的样式
  523. color: '#fbe138',
  524. borderColor: '#fbe138',
  525. width: 2,
  526. shadowColor: '#fbe138',
  527. shadowBlur: 4,
  528. },
  529. lineStyle: {
  530. color: '#fbe138',
  531. width: 2,
  532. },
  533. data: dataL1[2],
  534. },
  535. {
  536. name: '六定改革前各二级企业本部机构数',
  537. type: 'bar',
  538. barWidth: 15,
  539. itemStyle: {
  540. normal: {
  541. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  542. {
  543. offset: 0,
  544. color: '#43ede3',
  545. },
  546. {
  547. offset: 1,
  548. color: '#082550',
  549. },
  550. ]),
  551. },
  552. },
  553. data: dataL1[0],
  554. },
  555. {
  556. name: '当前各二级企业本部机构数',
  557. type: 'bar',
  558. barWidth: 15,
  559. itemStyle: {
  560. color: params => {
  561. if (params.value > 0 && dataL1[2][params.dataIndex]) {
  562. return 'red'
  563. } else {
  564. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  565. {
  566. offset: 0,
  567. color: '#69c0ff',
  568. },
  569. {
  570. offset: 1,
  571. color: '#082550',
  572. },
  573. ])
  574. }
  575. },
  576. },
  577. data: dataL1[1],
  578. },
  579. ],
  580. // tooltip: {
  581. // trigger: 'item',
  582. // position: 'top'
  583. // },
  584. }
  585. option.title.text = '本部机构数'
  586. option.legend.data = ['六定改革前各二级企业本部机构数', '当前各二级企业本部机构数', '六个二级企业本部机构数核定上限']
  587. option.yAxis.push({
  588. splitLine: {
  589. show: false,
  590. },
  591. axisLine: {
  592. show: false,
  593. },
  594. })
  595. myChart.setOption(option)
  596. },
  597. initChartL2 () {
  598. let myChart = echarts.init(this.$refs['echartL2'])
  599. let option = {
  600. ..._.cloneDeep(this.commonOption),
  601. series: [
  602. {
  603. name: '当前各二级企业所属架构数',
  604. type: 'bar',
  605. barWidth: 15,
  606. itemStyle: {
  607. normal: {
  608. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  609. {
  610. offset: 0,
  611. color: '#69c0ff',
  612. },
  613. {
  614. offset: 1,
  615. color: '#082550',
  616. },
  617. ]),
  618. },
  619. },
  620. data: dataL2[0]
  621. }
  622. ],
  623. }
  624. option.title.text = '各二级企业所属架构数'
  625. option.legend.data = ['当前各二级企业所属架构数']
  626. option.yAxis.push({
  627. splitLine: {
  628. show: false,
  629. },
  630. axisLine: {
  631. show: false,
  632. },
  633. })
  634. myChart.setOption(option)
  635. },
  636. initChartL3 () {
  637. let myChart = echarts.init(this.$refs['echartL3'])
  638. let option = {
  639. ..._.cloneDeep(this.commonOption),
  640. series: [
  641. {
  642. name: '当前本部中层管理人数',
  643. type: 'bar',
  644. barWidth: 15,
  645. itemStyle: {
  646. normal: {
  647. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  648. {
  649. offset: 0,
  650. color: '#5e7ae9',
  651. },
  652. {
  653. offset: 1,
  654. color: '#082550',
  655. },
  656. ]),
  657. },
  658. },
  659. data: dataL3[0],
  660. },
  661. ],
  662. }
  663. option.title.text = '各二级企业本部中层管理人数'
  664. option.legend.data = ['当前本部中层管理人数']
  665. option.yAxis.push({
  666. type: 'value',
  667. axisLine: {
  668. show: false,
  669. },
  670. splitLine: {
  671. show: false,
  672. },
  673. })
  674. myChart.setOption(option)
  675. },
  676. initChartL4 () {
  677. let myChart = echarts.init(this.$refs['echartL4'])
  678. let option = {
  679. ..._.cloneDeep(this.commonOption),
  680. series: [
  681. {
  682. name: '六定改革前各二级企业本部中层管理人数',
  683. type: 'bar',
  684. barWidth: 15,
  685. label: {
  686. normal: {
  687. show: true,
  688. position: 'top',
  689. textStyle: {
  690. color: '#69c0ff',
  691. fontStyle: 'normal',
  692. textAlign: 'left',
  693. fontSize: 16,
  694. },
  695. formatter: function (data) {
  696. if (data.name == '云时代') {
  697. return data.value
  698. } else {
  699. return ''
  700. }
  701. }
  702. }
  703. },
  704. itemStyle: {
  705. normal: {
  706. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  707. {
  708. offset: 0,
  709. color: '#69c0ff',
  710. },
  711. {
  712. offset: 1,
  713. color: '#082550',
  714. },
  715. ]),
  716. },
  717. },
  718. data: dataL4[0],
  719. },
  720. {
  721. name: '当前各二级企业本部中层管理人数',
  722. type: 'bar',
  723. barWidth: 15,
  724. label: {
  725. normal: {
  726. show: true,
  727. position: 'top',
  728. textStyle: {
  729. color: '#6480f3',
  730. fontStyle: 'normal',
  731. textAlign: 'left',
  732. fontSize: 16,
  733. },
  734. formatter: function (data) {
  735. if (data.name == '云时代') {
  736. return data.value
  737. } else {
  738. return ''
  739. }
  740. }
  741. }
  742. },
  743. itemStyle: {
  744. normal: {
  745. color: params => {
  746. if (params.value > 0 && dataL4[2][params.dataIndex] || params.value > 0 && dataL4[0][params.dataIndex]) {
  747. return 'red'
  748. } else {
  749. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  750. {
  751. offset: 0,
  752. color: '#6480f3',
  753. },
  754. {
  755. offset: 1,
  756. color: '#082550',
  757. },
  758. ])
  759. }
  760. },
  761. },
  762. },
  763. data: dataL4[1],
  764. },
  765. {
  766. name: '各二级企业本部中层管理人数核定上限',
  767. type: 'line',
  768. yAxisIndex: 1,
  769. smooth: true, //平滑曲线显示
  770. showAllSymbol: true, //显示所有图形。
  771. symbol: 'circle', //标记的图形为实心圆
  772. symbolSize: 8, //标记的大小
  773. smooth: false,
  774. label: {
  775. normal: {
  776. show: true,
  777. position: 'top',
  778. textStyle: {
  779. color: '#fbe138',
  780. fontStyle: 'normal',
  781. textAlign: 'left',
  782. fontSize: 16,
  783. },
  784. formatter: function (data) {
  785. if (data.name == '云时代') {
  786. return data.value
  787. } else {
  788. return ''
  789. }
  790. }
  791. }
  792. },
  793. itemStyle: {
  794. //折线拐点标志的样式
  795. color: '#fbe138',
  796. borderColor: '#fbe138',
  797. width: 2,
  798. shadowColor: '#fbe138',
  799. shadowBlur: 4,
  800. },
  801. lineStyle: {
  802. color: '#fbe138',
  803. width: 2,
  804. },
  805. data: dataL4[2],
  806. },
  807. ],
  808. }
  809. option.title.text = '各二级企业本部中层管理人数'
  810. option.legend.data = ['六定改革前各二级企业本部中层管理人数', '当前各二级企业本部中层管理人数', '各二级企业本部中层管理人数核定上限']
  811. option.legend.show = true
  812. option.yAxis.push({
  813. splitLine: {
  814. show: false,
  815. },
  816. axisLine: {
  817. show: false,
  818. },
  819. })
  820. myChart.setOption(option)
  821. },
  822. initChartL5 () {
  823. let myChart = echarts.init(this.$refs['echartL5'])
  824. let option = {
  825. ..._.cloneDeep(this.commonOption),
  826. series: [
  827. {
  828. name: '各二级企业总人数',
  829. type: 'bar',
  830. barWidth: 15,
  831. itemStyle: {
  832. normal: {
  833. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  834. {
  835. offset: 0,
  836. color: '#69c0ff',
  837. },
  838. {
  839. offset: 1,
  840. color: '#082550',
  841. },
  842. ]),
  843. },
  844. },
  845. data: dataL5[0],
  846. },
  847. {
  848. name: '去年同期人数变化率',
  849. type: 'line',
  850. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  851. smooth: true, //平滑曲线显示
  852. showAllSymbol: true, //显示所有图形。
  853. symbol: 'circle', //标记的图形为实心圆
  854. symbolSize: 8, //标记的大小
  855. smooth: false,
  856. itemStyle: {
  857. //折线拐点标志的样式
  858. color: '#b889ea',
  859. borderColor: '#b889ea',
  860. width: 2,
  861. shadowColor: '#b889ea',
  862. shadowBlur: 4,
  863. },
  864. lineStyle: {
  865. color: '#b889ea',
  866. width: 2,
  867. },
  868. data: dataL5[1],
  869. },
  870. ],
  871. }
  872. option.title.text = '各二级企业总人数'
  873. option.legend.data = ['各二级企业总人数', '去年同期人数变化率']
  874. option.legend.show = true
  875. option.tooltip = {
  876. trigger: 'axis',
  877. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  878. }
  879. option.yAxis.push({
  880. type: 'value',
  881. axisLine: {
  882. show: false,
  883. },
  884. splitLine: {
  885. show: false,
  886. },
  887. axisLabel: {
  888. show: true,
  889. formatter: '{value} %',
  890. textStyle: {
  891. color: 'rgba(250,250,250,0.6)',
  892. },
  893. },
  894. })
  895. myChart.setOption(option)
  896. },
  897. initChartL6 () {
  898. let myChart = echarts.init(this.$refs['echartL6'])
  899. let option = {
  900. ..._.cloneDeep(this.commonOption),
  901. series: [
  902. {
  903. name: '当前各二级企业本部员额数',
  904. type: 'bar',
  905. barWidth: 15,
  906. itemStyle: {
  907. normal: {
  908. barBorderRadius: [10, 10, 0, 0],
  909. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  910. {
  911. offset: 0,
  912. color: '#43ede3',
  913. },
  914. {
  915. offset: 1,
  916. color: '#082550',
  917. },
  918. ]),
  919. },
  920. },
  921. data: dataL6[0],
  922. },
  923. {
  924. name: '六定改革前各二级企业本部员额数',
  925. type: 'bar',
  926. barWidth: 15,
  927. itemStyle: {
  928. normal: {
  929. barBorderRadius: [10, 10, 0, 0],
  930. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  931. {
  932. offset: 0,
  933. color: '#43ede3',
  934. },
  935. {
  936. offset: 1,
  937. color: '#082550',
  938. },
  939. ]),
  940. },
  941. },
  942. data: dataL6[2],
  943. },
  944. {
  945. name: '各二级企业本部员额数核定上限值',
  946. type: 'line',
  947. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  948. smooth: true, //平滑曲线显示
  949. showAllSymbol: true, //显示所有图形。
  950. symbol: 'circle', //标记的图形为实心圆
  951. symbolSize: 8, //标记的大小
  952. smooth: false,
  953. itemStyle: {
  954. //折线拐点标志的样式
  955. color: '#fbe138',
  956. borderColor: '#fbe138',
  957. width: 2,
  958. shadowColor: '#fbe138',
  959. shadowBlur: 4,
  960. },
  961. lineStyle: {
  962. color: '#fbe138',
  963. width: 2,
  964. },
  965. data: dataL6[1],
  966. },
  967. ],
  968. }
  969. option.title.text = '各二级企业本部员额数'
  970. option.legend.data = ['当前各二级企业本部员额数', '六定改革前各二级企业本部员额数','各二级企业本部员额数核定上限值']
  971. option.legend.show = true
  972. option.yAxis.push({
  973. splitLine: {
  974. show: false,
  975. },
  976. axisLine: {
  977. show: false,
  978. },
  979. })
  980. myChart.setOption(option)
  981. },
  982. initChartL7 () {
  983. let myChart = echarts.init(this.$refs['echartL7'])
  984. let option = {
  985. ..._.cloneDeep(this.commonOption),
  986. color: ['#43ede3'],
  987. series: [
  988. {
  989. name: '人数变化',
  990. type: 'line',
  991. barWidth: 15,
  992. showAllSymbol: true, //显示所有图形。
  993. symbol: 'circle', //标记的图形为实心圆
  994. symbolSize: 15, //标记的大小
  995. smooth: false,
  996. itemStyle: {
  997. color: params => {
  998. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  999. return 'red'
  1000. } else {
  1001. return '#43ede3'
  1002. }
  1003. },
  1004. },
  1005. lineStyle: {
  1006. color: '#43ede3',
  1007. width: 2,
  1008. },
  1009. // markLine: {
  1010. // data: [{ type: 'average', name: 'Avg' }],
  1011. // },
  1012. data: dataL7[0],
  1013. },
  1014. {
  1015. name: '全员劳动生产率同比变化',
  1016. type: 'line',
  1017. barWidth: 15,
  1018. // yAxisIndex: 1,
  1019. showAllSymbol: true, //显示所有图形。
  1020. symbol: 'circle', //标记的图形为实心圆
  1021. symbolSize: 15, //标记的大小
  1022. itemStyle: {
  1023. //折线拐点标志的样式
  1024. color: '#b889ea',
  1025. borderColor: '#b889ea',
  1026. width: 2,
  1027. shadowColor: '#b889ea',
  1028. shadowBlur: 4,
  1029. },
  1030. // itemStyle: {
  1031. // normal: {
  1032. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1033. // {
  1034. // offset: 0,
  1035. // color: '#b889ea',
  1036. // },
  1037. // {
  1038. // offset: 1,
  1039. // color: '#b889ea',
  1040. // },
  1041. // ]),
  1042. // },
  1043. // },
  1044. data: dataL7[1],
  1045. },
  1046. {
  1047. type: 'effectScatter',
  1048. coordinateSystem: 'cartesian2d',
  1049. showEffectOn: 'render',
  1050. rippleEffect: {
  1051. period: 10,
  1052. scale: 4,
  1053. brushType: 'stroke'
  1054. },
  1055. hoverAnimation: true,
  1056. itemStyle: {
  1057. color: 'red'
  1058. },
  1059. lineStyle: {
  1060. color: '#43ede3',
  1061. width: 2,
  1062. },
  1063. data: this.twinkle7,
  1064. },
  1065. ],
  1066. }
  1067. option.title.text = '人数变化和全员劳动生产率变化率分析'
  1068. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  1069. option.legend.show = true
  1070. option.tooltip = {
  1071. trigger: 'axis',
  1072. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1073. }
  1074. option.yAxis = [
  1075. {
  1076. type: 'value',
  1077. axisLine: {
  1078. show: false,
  1079. },
  1080. splitLine: {
  1081. show: true,
  1082. lineStyle: {
  1083. color: '#68b4dd66',
  1084. type: 'dashed',
  1085. },
  1086. },
  1087. axisLabel: {
  1088. show: true,
  1089. formatter: '{value} %',
  1090. textStyle: {
  1091. color: 'rgba(250,250,250,0.6)',
  1092. },
  1093. },
  1094. },
  1095. {
  1096. type: 'value',
  1097. axisLine: {
  1098. show: false,
  1099. },
  1100. splitLine: {
  1101. show: false,
  1102. },
  1103. axisLabel: {
  1104. show: true,
  1105. formatter: '{value} %',
  1106. textStyle: {
  1107. color: 'rgba(250,250,250,0.6)',
  1108. },
  1109. },
  1110. }
  1111. ]
  1112. myChart.setOption(option)
  1113. },
  1114. initChartL8 () {
  1115. let myChart = echarts.init(this.$refs['echartL8'])
  1116. let option = {
  1117. ..._.cloneDeep(this.commonOption),
  1118. color: ['#43ede3'],
  1119. series: [
  1120. {
  1121. name: '人数变化',
  1122. type: 'line',
  1123. barWidth: 15,
  1124. showAllSymbol: true, //显示所有图形。
  1125. symbol: 'circle', //标记的图形为实心圆
  1126. symbolSize: 15, //标记的大小
  1127. smooth: false,
  1128. itemStyle: {
  1129. color: params => {
  1130. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1131. return 'red'
  1132. } else {
  1133. return '#43ede3'
  1134. }
  1135. },
  1136. },
  1137. lineStyle: {
  1138. color: '#43ede3',
  1139. width: 2,
  1140. },
  1141. // markLine: {
  1142. // data: [{ type: 'average', name: 'Avg' }],
  1143. // },
  1144. data: dataL8[0],
  1145. },
  1146. {
  1147. name: '人工成本利润率同比变化',
  1148. type: 'line',
  1149. barWidth: 15,
  1150. // yAxisIndex: 1,
  1151. showAllSymbol: true, //显示所有图形。
  1152. symbol: 'circle', //标记的图形为实心圆
  1153. symbolSize: 15, //标记的大小
  1154. smooth: false,
  1155. itemStyle: {
  1156. //折线拐点标志的样式
  1157. color: '#b889ea',
  1158. borderColor: '#b889ea',
  1159. width: 2,
  1160. shadowColor: '#b889ea',
  1161. shadowBlur: 4,
  1162. },
  1163. data: dataL8[1],
  1164. },
  1165. {
  1166. type: 'effectScatter',
  1167. coordinateSystem: 'cartesian2d',
  1168. showEffectOn: 'render',
  1169. rippleEffect: {
  1170. period: 10,
  1171. scale: 4,
  1172. brushType: 'stroke'
  1173. },
  1174. hoverAnimation: true,
  1175. itemStyle: {
  1176. color: 'red'
  1177. },
  1178. lineStyle: {
  1179. color: '#43ede3',
  1180. width: 2,
  1181. },
  1182. data: this.twinkle8,
  1183. },
  1184. ],
  1185. }
  1186. option.title.text = '人数变化和人工利润率变化分析'
  1187. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1188. option.legend.show = true
  1189. option.tooltip = {
  1190. trigger: 'axis',
  1191. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1192. }
  1193. option.yAxis = [
  1194. {
  1195. type: 'value',
  1196. axisLine: {
  1197. show: false,
  1198. },
  1199. splitLine: {
  1200. show: true,
  1201. lineStyle: {
  1202. color: '#68b4dd66',
  1203. type: 'dashed',
  1204. },
  1205. },
  1206. axisLabel: {
  1207. show: true,
  1208. formatter: '{value} %',
  1209. textStyle: {
  1210. color: 'rgba(250,250,250,0.6)',
  1211. },
  1212. },
  1213. },
  1214. {
  1215. type: 'value',
  1216. axisLine: {
  1217. show: false,
  1218. },
  1219. splitLine: {
  1220. show: false,
  1221. },
  1222. axisLabel: {
  1223. show: true,
  1224. formatter: '{value} %',
  1225. textStyle: {
  1226. color: 'rgba(250,250,250,0.6)',
  1227. },
  1228. },
  1229. }
  1230. ]
  1231. myChart.setOption(option)
  1232. },
  1233. // 中间图表---------------------------------------------开始
  1234. initChartC1 () {
  1235. let myChart = echarts.init(this.$refs['echartC1'])
  1236. let option = {
  1237. ..._.cloneDeep(this.commonOption),
  1238. color: ['#69c0ff'],
  1239. series: [
  1240. {
  1241. name: '全员劳动生产率(万/人)',
  1242. type: 'bar',
  1243. barWidth: 12,
  1244. smooth: true, //平滑曲线显示
  1245. showAllSymbol: true, //显示所有图形。
  1246. symbol: 'circle', //标记的图形为实心圆
  1247. symbolSize: 8, //标记的大小
  1248. smooth: false,
  1249. itemStyle: {
  1250. color: params => {
  1251. if (params.value < 0 && dataC1[1][params.dataIndex] < 0) {
  1252. return 'red'
  1253. } else if (params.value > this.echartC1.province) {
  1254. return 'green'
  1255. } else {
  1256. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1257. {
  1258. offset: 0,
  1259. color: '#69c0ff',
  1260. },
  1261. {
  1262. offset: 1,
  1263. color: '#082550',
  1264. },
  1265. ])
  1266. }
  1267. },
  1268. },
  1269. lineStyle: {
  1270. color: '#B889EA',
  1271. width: 2,
  1272. },
  1273. markLine: {
  1274. data: [
  1275. {
  1276. name: '省属企业平均水平',
  1277. yAxis: this.echartC1.national,
  1278. lineStyle: {
  1279. color: '#fff',
  1280. },
  1281. label: {
  1282. formatter: '{b}',
  1283. position: 'end',
  1284. padding: [20, 100, 10, 30],
  1285. color: '#fff',
  1286. },
  1287. },
  1288. {
  1289. name: '央企平均水平',
  1290. yAxis: this.echartC1.province,
  1291. lineStyle: {
  1292. color: '#fff',
  1293. },
  1294. label: {
  1295. formatter: '{b}',
  1296. position: 'end',
  1297. padding: [-4, 150, 10, 30],
  1298. color: '#fff',
  1299. },
  1300. },
  1301. ],
  1302. label: {
  1303. distance: [20, 8],
  1304. },
  1305. },
  1306. data: dataC1[0],
  1307. },
  1308. {
  1309. name: '全员劳动生产率同比变化',
  1310. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1311. type: 'line',
  1312. itemStyle: {
  1313. normal: {
  1314. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1315. {
  1316. offset: 0,
  1317. color: '#69c0ff',
  1318. },
  1319. {
  1320. offset: 1,
  1321. color: '#082550',
  1322. },
  1323. ]),
  1324. },
  1325. },
  1326. data: dataC1[1],
  1327. },
  1328. ],
  1329. }
  1330. option.title.text = '各二级企业全员劳动生产率'
  1331. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  1332. option.legend.show = true
  1333. option.grid.right = '15%'
  1334. option.tooltip = {
  1335. trigger: 'axis',
  1336. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1337. }
  1338. option.yAxis.push({
  1339. type: 'value',
  1340. axisLine: {
  1341. show: false,
  1342. },
  1343. splitLine: {
  1344. show: false,
  1345. },
  1346. axisLabel: {
  1347. show: true,
  1348. formatter: '{value} %',
  1349. textStyle: {
  1350. color: 'rgba(250,250,250,0.6)',
  1351. },
  1352. },
  1353. })
  1354. myChart.setOption(option)
  1355. tools.loopShowTooltip(myChart, option, {
  1356. nterval: 2000,
  1357. loopSeries: true,
  1358. });
  1359. },
  1360. initChartC2 () {
  1361. let myChart = echarts.init(this.$refs['echartC2'])
  1362. let option = {
  1363. ..._.cloneDeep(this.commonOption),
  1364. color: ['#69c0ff'],
  1365. series: [
  1366. {
  1367. name: '人工成本利润率同比变化',
  1368. type: 'line',
  1369. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1370. smooth: true, //平滑曲线显示
  1371. showAllSymbol: true, //显示所有图形。
  1372. symbol: 'circle', //标记的图形为实心圆
  1373. symbolSize: 8, //标记的大小
  1374. smooth: false,
  1375. itemStyle: {
  1376. //折线拐点标志的样式
  1377. color: '#B889EA',
  1378. borderColor: '#B889EA',
  1379. width: 2,
  1380. shadowColor: '#B889EA',
  1381. shadowBlur: 4,
  1382. },
  1383. lineStyle: {
  1384. color: '#B889EA',
  1385. width: 2,
  1386. },
  1387. data: dataC2[0],
  1388. },
  1389. {
  1390. name: '人工成本利润率',
  1391. type: 'bar',
  1392. barWidth: 15,
  1393. itemStyle: {
  1394. color: params => {
  1395. if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
  1396. return 'red'
  1397. } else if (params.value > this.echartC2.province) {
  1398. return 'green'
  1399. } else {
  1400. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1401. {
  1402. offset: 0,
  1403. color: '#69c0ff',
  1404. },
  1405. {
  1406. offset: 1,
  1407. color: '#082550',
  1408. },
  1409. ])
  1410. }
  1411. },
  1412. },
  1413. data: dataC2[1],
  1414. markLine: {
  1415. data: [
  1416. {
  1417. name: '省属企业平均水平',
  1418. yAxis: this.echartC2.province,
  1419. lineStyle: {
  1420. color: '#fff',
  1421. },
  1422. label: {
  1423. formatter: '{b}',
  1424. position: 'end',
  1425. padding: [24, 100, 10, 30],
  1426. color: '#fff',
  1427. },
  1428. },
  1429. {
  1430. name: '央企平均水平',
  1431. yAxis: this.echartC2.national,
  1432. lineStyle: {
  1433. color: '#fff',
  1434. },
  1435. label: {
  1436. formatter: '{b}',
  1437. position: 'end',
  1438. padding: [-24, 200, 10, 30],
  1439. color: '#fff',
  1440. },
  1441. },
  1442. ],
  1443. label: {
  1444. distance: [20, 8],
  1445. },
  1446. },
  1447. },
  1448. ],
  1449. }
  1450. option.title.text = '各二级企业人工成本利润率'
  1451. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  1452. option.legend.show = true
  1453. option.tooltip = {
  1454. trigger: 'axis',
  1455. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1456. }
  1457. option.grid.right = '15%'
  1458. option.yAxis = [
  1459. {
  1460. axisLine: {
  1461. show: false,
  1462. },
  1463. splitLine: {
  1464. show: true,
  1465. lineStyle: {
  1466. color: '#68b4dd66',
  1467. type: 'dashed',
  1468. },
  1469. },
  1470. axisLabel: {
  1471. show: true,
  1472. formatter: '{value} %',
  1473. textStyle: {
  1474. color: 'rgba(250,250,250,0.6)',
  1475. },
  1476. },
  1477. },
  1478. {
  1479. splitLine: {
  1480. show: false,
  1481. },
  1482. axisLine: {
  1483. show: false,
  1484. },
  1485. axisLabel: {
  1486. show: true,
  1487. formatter: '{value} %',
  1488. textStyle: {
  1489. color: 'rgba(250,250,250,0.6)',
  1490. },
  1491. },
  1492. }
  1493. ]
  1494. myChart.setOption(option)
  1495. tools.loopShowTooltip(myChart, option, {
  1496. nterval: 2000,
  1497. loopSeries: true,
  1498. });
  1499. },
  1500. // 右侧图表---------------------------------------------开始
  1501. initChartR1 () {
  1502. let myChart = echarts.init(this.$refs['echartR1'])
  1503. let commonOptions = this.commonOption
  1504. commonOptions.yAxis[0].splitNumber = 2
  1505. let option = {
  1506. ..._.cloneDeep(commonOptions),
  1507. series: [
  1508. {
  1509. name: '招聘需求公告次数',
  1510. type: 'bar',
  1511. barWidth: 15,
  1512. itemStyle: {
  1513. normal: {
  1514. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1515. {
  1516. offset: 0,
  1517. color: '#69c0ff',
  1518. },
  1519. {
  1520. offset: 1,
  1521. color: '#082550',
  1522. },
  1523. ]),
  1524. },
  1525. },
  1526. data: dataR1[0],
  1527. },
  1528. {
  1529. name: '招聘需求公告累计招聘人次',
  1530. type: 'bar',
  1531. barWidth: 15,
  1532. itemStyle: {
  1533. normal: {
  1534. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1535. {
  1536. offset: 0,
  1537. color: '#43ede3',
  1538. },
  1539. {
  1540. offset: 1,
  1541. color: '#082550',
  1542. },
  1543. ]),
  1544. },
  1545. },
  1546. data: dataR1[1],
  1547. },
  1548. ],
  1549. }
  1550. option.title.text = '各二级企业招聘需求公告人次情况'
  1551. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1552. option.legend.show = true
  1553. option.yAxis.push({
  1554. type: 'value',
  1555. splitLine: {
  1556. show: false,
  1557. },
  1558. axisLine: {
  1559. show: false,
  1560. },
  1561. })
  1562. myChart.setOption(option)
  1563. },
  1564. initChartR2 () {
  1565. let myChart = echarts.init(this.$refs['echartR2'])
  1566. let commonOptions = this.commonOption
  1567. commonOptions.yAxis[0].splitNumber = 2
  1568. let option = {
  1569. ..._.cloneDeep(commonOptions),
  1570. series: [
  1571. {
  1572. name: '录用结果公示次数',
  1573. type: 'bar',
  1574. barWidth: 15,
  1575. itemStyle: {
  1576. normal: {
  1577. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1578. {
  1579. offset: 0,
  1580. color: '#69c0ff',
  1581. },
  1582. {
  1583. offset: 1,
  1584. color: '#082550',
  1585. },
  1586. ]),
  1587. },
  1588. },
  1589. data: dataR2[0],
  1590. },
  1591. {
  1592. name: '录用结果公示累计公示人数',
  1593. type: 'bar',
  1594. barWidth: 15,
  1595. itemStyle: {
  1596. normal: {
  1597. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1598. {
  1599. offset: 0,
  1600. color: '#45DAD1',
  1601. },
  1602. {
  1603. offset: 1,
  1604. color: '#082550',
  1605. },
  1606. ]),
  1607. },
  1608. },
  1609. data: dataR2[1],
  1610. },
  1611. ],
  1612. }
  1613. option.title.text = '各二级企业录用结果公示人次'
  1614. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1615. option.legend.show = true
  1616. option.yAxis.push({
  1617. type: 'value',
  1618. splitLine: {
  1619. show: false,
  1620. },
  1621. axisLine: {
  1622. show: false,
  1623. },
  1624. })
  1625. myChart.setOption(option)
  1626. },
  1627. initChartR3 () {
  1628. let myChart = echarts.init(this.$refs['echartR3'])
  1629. let commonOptions = this.commonOption
  1630. commonOptions.yAxis[0].splitNumber = 2
  1631. let option = {
  1632. ..._.cloneDeep(commonOptions),
  1633. color: ['#45DAD1'],
  1634. series: [
  1635. {
  1636. name: '2022年利润(万)',
  1637. type: 'bar',
  1638. barWidth: 15,
  1639. itemStyle: {
  1640. normal: {
  1641. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1642. {
  1643. offset: 0,
  1644. color: '#69c0ff',
  1645. },
  1646. {
  1647. offset: 1,
  1648. color: '#082550',
  1649. },
  1650. ]),
  1651. },
  1652. },
  1653. data: dataR3[0],
  1654. },
  1655. {
  1656. name: '2022年累计招聘数',
  1657. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1658. type: 'bar',
  1659. barWidth: 15,
  1660. itemStyle: {
  1661. color: params => {
  1662. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1663. return 'red'
  1664. } else {
  1665. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1666. {
  1667. offset: 0,
  1668. color: '#45DAD1',
  1669. },
  1670. {
  1671. offset: 1,
  1672. color: '#082550',
  1673. },
  1674. ])
  1675. }
  1676. },
  1677. },
  1678. data: dataR3[1],
  1679. },
  1680. ],
  1681. }
  1682. option.title.text = '各二级企业年利润与招聘情况分析'
  1683. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1684. option.legend.show = true
  1685. option.yAxis.push({
  1686. type: 'value',
  1687. splitLine: {
  1688. show: false,
  1689. },
  1690. axisLine: {
  1691. show: false,
  1692. },
  1693. axisLabel: {
  1694. show: true,
  1695. formatter: '{value} ',
  1696. textStyle: {
  1697. color: 'rgba(250,250,250,0.6)',
  1698. },
  1699. },
  1700. })
  1701. myChart.setOption(option)
  1702. },
  1703. initChartR4 () {
  1704. let myChart = echarts.init(this.$refs['echartR4'])
  1705. let commonOptions = this.commonOption
  1706. commonOptions.yAxis[0].splitNumber = 2
  1707. let option = {
  1708. ..._.cloneDeep(commonOptions),
  1709. series: [
  1710. {
  1711. name: '2022年退出人数和2023年当前累计退出人数之和',
  1712. type: 'bar',
  1713. barWidth: 15,
  1714. itemStyle: {
  1715. normal: {
  1716. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1717. {
  1718. offset: 0,
  1719. color: '#69c0ff',
  1720. },
  1721. {
  1722. offset: 1,
  1723. color: '#082550',
  1724. },
  1725. ]),
  1726. },
  1727. },
  1728. data: dataR4[0],
  1729. },
  1730. {
  1731. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  1732. type: 'bar',
  1733. barWidth: 15,
  1734. itemStyle: {
  1735. normal: {
  1736. color: params => {
  1737. if (params.value / dataR4[0][params.dataIndex] > 3) {
  1738. return 'green'
  1739. } else if (params.value / 2 < dataR4[0][params.dataIndex]) {
  1740. return 'yellow'
  1741. }
  1742. else {
  1743. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1744. {
  1745. offset: 0,
  1746. color: '#6480f3',
  1747. },
  1748. {
  1749. offset: 1,
  1750. color: '#082550',
  1751. },
  1752. ])
  1753. }
  1754. },
  1755. },
  1756. },
  1757. data: dataR4[1],
  1758. },
  1759. ],
  1760. }
  1761. option.title.text = '各省属企业"退二进一"完成情况'
  1762. option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
  1763. option.legend.show = true
  1764. option.yAxis[0] = {
  1765. //type: 'log',
  1766. //min: 1,
  1767. //logBase: 3,
  1768. axisLine: {
  1769. show: false,
  1770. },
  1771. splitLine: {
  1772. show: true,
  1773. lineStyle: {
  1774. color: '#68b4dd66',
  1775. type: 'dashed',
  1776. },
  1777. },
  1778. axisLabel: {
  1779. show: true,
  1780. formatter: function (value) {
  1781. return value === 1 ? 0 : value
  1782. },
  1783. textStyle: {
  1784. color: 'rgba(250,250,250,0.6)',
  1785. },
  1786. },
  1787. }
  1788. myChart.setOption(option)
  1789. },
  1790. initChartR5 () {
  1791. let myChart = echarts.init(this.$refs['echartR5'])
  1792. let option = {
  1793. ..._.cloneDeep(this.commonOption),
  1794. series: [
  1795. {
  1796. name: '去年同期在岗职工平均薪酬',
  1797. type: 'bar',
  1798. barWidth: 15,
  1799. itemStyle: {
  1800. normal: {
  1801. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1802. {
  1803. offset: 0,
  1804. color: '#6682F5',
  1805. },
  1806. {
  1807. offset: 1,
  1808. color: '#082550',
  1809. },
  1810. ]),
  1811. },
  1812. },
  1813. data: dataR5[1],
  1814. },
  1815. {
  1816. name: '在岗职工平均薪酬',
  1817. type: 'bar',
  1818. barWidth: 15,
  1819. itemStyle: {
  1820. normal: {
  1821. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1822. {
  1823. offset: 0,
  1824. color: '#69c0ff',
  1825. },
  1826. {
  1827. offset: 1,
  1828. color: '#082550',
  1829. },
  1830. ]),
  1831. },
  1832. },
  1833. data: dataR5[0],
  1834. },
  1835. ],
  1836. }
  1837. option.title.text = '各二级企业在岗职工平均薪酬'
  1838. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1839. option.legend.show = true
  1840. option.yAxis.push({
  1841. type: 'value',
  1842. splitLine: {
  1843. show: false,
  1844. },
  1845. axisLine: {
  1846. show: false,
  1847. },
  1848. })
  1849. myChart.setOption(option)
  1850. },
  1851. initChartR6 () {
  1852. let myChart = echarts.init(this.$refs['echartR6'])
  1853. let option = {
  1854. ..._.cloneDeep(this.commonOption),
  1855. color: ['#69c0ff'],
  1856. series: [
  1857. {
  1858. name: '2022年利润累计涨幅率',
  1859. type: 'line',
  1860. smooth: true, //平滑曲线显示
  1861. showAllSymbol: true, //显示所有图形。
  1862. symbol: 'circle', //标记的图形为实心圆
  1863. symbolSize: 8, //标记的大小
  1864. smooth: false,
  1865. itemStyle: {
  1866. //折线拐点标志的样式
  1867. color: '#B889EA',
  1868. borderColor: '#B889EA',
  1869. width: 2,
  1870. shadowColor: '#B889EA',
  1871. shadowBlur: 4,
  1872. },
  1873. lineStyle: {
  1874. color: '#B889EA',
  1875. width: 2,
  1876. },
  1877. data: dataR6[0],
  1878. },
  1879. {
  1880. name: '2022年薪酬累计涨幅率',
  1881. type: 'line',
  1882. barWidth: 15,
  1883. yAxisIndex: 1,
  1884. itemStyle: {
  1885. color: params => {
  1886. if (params.value > 0 && dataR6[0][params.dataIndex] < 0) {
  1887. return 'yellow'
  1888. } else {
  1889. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1890. {
  1891. offset: 0,
  1892. color: '#69c0ff',
  1893. },
  1894. {
  1895. offset: 1,
  1896. color: '#082550',
  1897. },
  1898. ])
  1899. }
  1900. },
  1901. },
  1902. data: dataR6[1],
  1903. },
  1904. {
  1905. type: 'effectScatter',
  1906. coordinateSystem: 'cartesian2d',
  1907. showEffectOn: 'render',
  1908. rippleEffect: {
  1909. period: 10,
  1910. scale: 4,
  1911. brushType: 'stroke'
  1912. },
  1913. hoverAnimation: true,
  1914. itemStyle: {
  1915. color: 'red'
  1916. },
  1917. lineStyle: {
  1918. color: '#43ede3',
  1919. width: 2,
  1920. },
  1921. data: this.twinkleR6,
  1922. },
  1923. ],
  1924. }
  1925. option.title.text = '各二级企业利润与薪酬变动情况'
  1926. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1927. option.tooltip = {
  1928. trigger: 'axis',
  1929. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1930. }
  1931. option.yAxis = [
  1932. {
  1933. max: function (value) {
  1934. if (Math.abs(value.max) > Math.abs(value.min)) {
  1935. return (Math.abs(value.max) * 1.2).toFixed(2);
  1936. } else {
  1937. return (Math.abs(value.min) * 1.2).toFixed(2);
  1938. }
  1939. },
  1940. min: function (value) {
  1941. if (Math.abs(value.max) > Math.abs(value.min)) {
  1942. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1943. } else {
  1944. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1945. }
  1946. },
  1947. type: 'value',
  1948. axisLine: {
  1949. show: false,
  1950. },
  1951. splitLine: {
  1952. show: true,
  1953. lineStyle: {
  1954. color: '#68b4dd66',
  1955. type: 'dashed',
  1956. },
  1957. },
  1958. axisLabel: {
  1959. show: true,
  1960. formatter: '{value} %',
  1961. textStyle: {
  1962. color: 'rgba(250,250,250,0.6)',
  1963. },
  1964. },
  1965. },
  1966. {
  1967. max: function (value) {
  1968. if (Math.abs(value.max) > Math.abs(value.min)) {
  1969. return (Math.abs(value.max) * 1.2).toFixed(2);
  1970. } else {
  1971. return (Math.abs(value.min) * 1.2).toFixed(2);
  1972. }
  1973. },
  1974. min: function (value) {
  1975. if (Math.abs(value.max) > Math.abs(value.min)) {
  1976. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1977. } else {
  1978. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1979. }
  1980. },
  1981. type: 'value',
  1982. splitLine: {
  1983. show: false,
  1984. },
  1985. axisLine: {
  1986. show: false,
  1987. },
  1988. axisLabel: {
  1989. show: true,
  1990. formatter: '{value} %',
  1991. textStyle: {
  1992. color: 'rgba(250,250,250,0.6)',
  1993. },
  1994. },
  1995. }
  1996. ]
  1997. myChart.setOption(option)
  1998. },
  1999. initChartR7 () {
  2000. let myChart = echarts.init(this.$refs['echartR7'])
  2001. let option = {
  2002. ..._.cloneDeep(this.commonOption),
  2003. series: [
  2004. {
  2005. name: '全员绩效考核完成率',
  2006. type: 'bar',
  2007. barWidth: 15,
  2008. itemStyle: {
  2009. normal: {
  2010. color: params => {
  2011. if (params.value < 0.5) {
  2012. return 'yellow'
  2013. }
  2014. else {
  2015. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2016. {
  2017. offset: 0,
  2018. color: '#B889EA',
  2019. },
  2020. {
  2021. offset: 1,
  2022. color: '#082550',
  2023. },
  2024. ])
  2025. }
  2026. },
  2027. },
  2028. },
  2029. data: dataR7[0],
  2030. },
  2031. ],
  2032. }
  2033. option.title.text = '各二级企业全员绩效考核'
  2034. // option.legend.data = ['劳动合同签约完成率', '目标值']
  2035. option.tooltip = {
  2036. trigger: 'axis',
  2037. formatter: '{a0}:{c0}' + '%'
  2038. },
  2039. option.yAxis[0].axisLabel = {
  2040. show: true,
  2041. formatter: '{value} %',
  2042. textStyle: {
  2043. color: 'rgba(250,250,250,0.6)',
  2044. },
  2045. }
  2046. myChart.setOption(option)
  2047. },
  2048. initChartR8 () {
  2049. let myChart = echarts.init(this.$refs['echartR8'])
  2050. let option = {
  2051. ..._.cloneDeep(this.commonOption),
  2052. series: [
  2053. {
  2054. name: '任期制考核完成率',
  2055. type: 'bar',
  2056. barWidth: 15,
  2057. itemStyle: {
  2058. normal: {
  2059. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2060. {
  2061. offset: 0,
  2062. color: '#43ede3',
  2063. },
  2064. {
  2065. offset: 1,
  2066. color: '#082550',
  2067. },
  2068. ]),
  2069. },
  2070. },
  2071. data: dataR8[0],
  2072. },
  2073. ],
  2074. }
  2075. option.title.text = '各二级企业任期制契约化完成率'
  2076. option.tooltip = {
  2077. trigger: 'axis',
  2078. formatter: '{a0}:{c0}' + '%'
  2079. },
  2080. option.yAxis[0].axisLabel = {
  2081. show: true,
  2082. formatter: '{value} %',
  2083. textStyle: {
  2084. color: 'rgba(250,250,250,0.6)',
  2085. },
  2086. }
  2087. myChart.setOption(option)
  2088. },
  2089. },
  2090. })