index4SY.js 69 KB

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