index2JNKG.js 61 KB

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