index2JNKG.js 69 KB

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