index4SY.js 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124
  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. color: params => {
  509. if (params.value > 0 && dataL1[2][params.dataIndex]) {
  510. return 'red'
  511. } else {
  512. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  513. {
  514. offset: 0,
  515. color: '#69c0ff',
  516. },
  517. {
  518. offset: 1,
  519. color: '#082550',
  520. },
  521. ])
  522. }
  523. },
  524. },
  525. data: dataL1[1],
  526. },
  527. ],
  528. // tooltip: {
  529. // trigger: 'item',
  530. // position: 'top'
  531. // },
  532. }
  533. option.title.text = '本部机构数'
  534. option.legend.data = ['六定改革前各二级企业本部机构数', '当前各二级企业本部机构数', '六个二级企业本部机构数核定上限']
  535. option.yAxis.push({
  536. splitLine: {
  537. show: false,
  538. },
  539. axisLine: {
  540. show: false,
  541. },
  542. })
  543. myChart.setOption(option)
  544. },
  545. initChartL2 () {
  546. let myChart = echarts.init(this.$refs['echartL2'])
  547. let option = {
  548. ..._.cloneDeep(this.commonOption),
  549. series: [
  550. {
  551. name: '当前各四级企业所属架构数',
  552. type: 'bar',
  553. barWidth: 15,
  554. itemStyle: {
  555. normal: {
  556. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  557. {
  558. offset: 0,
  559. color: '#69c0ff',
  560. },
  561. {
  562. offset: 1,
  563. color: '#082550',
  564. },
  565. ]),
  566. },
  567. },
  568. data: dataL2[0]
  569. }
  570. ],
  571. }
  572. option.title.text = '各四级企业所属架构数'
  573. option.legend.data = ['当前各四级企业所属架构数']
  574. option.yAxis.push({
  575. splitLine: {
  576. show: false,
  577. },
  578. axisLine: {
  579. show: false,
  580. },
  581. })
  582. myChart.setOption(option)
  583. },
  584. initChartL3 () {
  585. let myChart = echarts.init(this.$refs['echartL3'])
  586. let option = {
  587. ..._.cloneDeep(this.commonOption),
  588. series: [
  589. {
  590. name: '当前各四级管理人员数',
  591. type: 'bar',
  592. barWidth: 15,
  593. itemStyle: {
  594. normal: {
  595. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  596. {
  597. offset: 0,
  598. color: '#5e7ae9',
  599. },
  600. {
  601. offset: 1,
  602. color: '#082550',
  603. },
  604. ]),
  605. },
  606. },
  607. data: dataL3[0],
  608. },
  609. {
  610. name: '各四级管理人员数占总人数比值',
  611. type: 'line',
  612. yAxisIndex: 1,
  613. smooth: true, //平滑曲线显示
  614. showAllSymbol: true, //显示所有图形。
  615. symbol: 'circle', //标记的图形为实心圆
  616. symbolSize: 8, //标记的大小
  617. smooth: false,
  618. itemStyle: {
  619. //折线拐点标志的样式
  620. color: '#fbe138',
  621. borderColor: '#fbe138',
  622. width: 2,
  623. shadowColor: '#fbe138',
  624. shadowBlur: 4,
  625. },
  626. lineStyle: {
  627. color: '#fbe138',
  628. width: 2,
  629. },
  630. markLine: {
  631. data: [
  632. {
  633. name: '管理人员数占总人数的合理比值线',
  634. yAxis: 15,
  635. lineStyle: {
  636. color: '#fff',
  637. },
  638. label: {
  639. formatter: '{b}',
  640. position: 'middle',
  641. color: '#fff',
  642. fontSize: 16,
  643. },
  644. },
  645. ],
  646. label: {
  647. distance: [20, 8],
  648. },
  649. },
  650. data: dataL3[1],
  651. },
  652. ],
  653. }
  654. option.title.text = '各四级企业管理人员数'
  655. option.legend.data = ['当前各四级管理人员数', '各四级管理人员数占总人数比值']
  656. option.yAxis[0] = {
  657. type: 'log',
  658. min: 1,
  659. logBase: 10,
  660. axisLine: {
  661. show: false,
  662. },
  663. splitLine: {
  664. show: true,
  665. lineStyle: {
  666. color: '#68b4dd66',
  667. type: 'dashed',
  668. },
  669. },
  670. axisLabel: {
  671. show: true,
  672. formatter: function (value) {
  673. return value === 1 ? 0 : value
  674. },
  675. textStyle: {
  676. color: 'rgba(250,250,250,0.6)',
  677. },
  678. },
  679. }
  680. option.yAxis.push({
  681. type: 'value',
  682. max: 15,
  683. axisLine: {
  684. show: false,
  685. },
  686. splitLine: {
  687. show: false,
  688. },
  689. axisLabel: {
  690. show: true,
  691. formatter: '{value} %',
  692. textStyle: {
  693. color: 'rgba(250,250,250,0.6)',
  694. },
  695. },
  696. })
  697. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  698. myChart.setOption(option)
  699. },
  700. initChartL4 () {
  701. let myChart = echarts.init(this.$refs['echartL4'])
  702. let option = {
  703. ..._.cloneDeep(this.commonOption),
  704. series: [
  705. {
  706. name: '六定改革前各四级中层管理人数',
  707. type: 'bar',
  708. barWidth: 15,
  709. label: {
  710. normal: {
  711. show: true,
  712. position: 'top',
  713. textStyle: {
  714. color: '#69c0ff',
  715. fontStyle: 'normal',
  716. textAlign: 'left',
  717. fontSize: 16,
  718. },
  719. formatter: function (data) {
  720. if (data.name == '云时代') {
  721. return data.value
  722. } else {
  723. return ''
  724. }
  725. }
  726. }
  727. },
  728. itemStyle: {
  729. normal: {
  730. color: params => {
  731. if (params.value > 0 && dataL4[2][params.dataIndex] || params.value > 0 && dataL4[0][params.dataIndex]) {
  732. return 'red'
  733. } else {
  734. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  735. {
  736. offset: 0,
  737. color: '#6480f3',
  738. },
  739. {
  740. offset: 1,
  741. color: '#082550',
  742. },
  743. ])
  744. }
  745. },
  746. },
  747. },
  748. data: dataL4[0],
  749. },
  750. {
  751. name: '当前各四级中层管理人数',
  752. type: 'bar',
  753. barWidth: 15,
  754. label: {
  755. normal: {
  756. show: true,
  757. position: 'top',
  758. textStyle: {
  759. color: '#6480f3',
  760. fontStyle: 'normal',
  761. textAlign: 'left',
  762. fontSize: 16,
  763. },
  764. formatter: function (data) {
  765. if (data.name == '云时代') {
  766. return data.value
  767. } else {
  768. return ''
  769. }
  770. }
  771. }
  772. },
  773. itemStyle: {
  774. normal: {
  775. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  776. {
  777. offset: 0,
  778. color: '#6480f3',
  779. },
  780. {
  781. offset: 1,
  782. color: '#082550',
  783. },
  784. ]),
  785. },
  786. },
  787. data: dataL4[1],
  788. },
  789. {
  790. name: '各四级中层管理人数核定上限',
  791. type: 'line',
  792. yAxisIndex: 1,
  793. smooth: true, //平滑曲线显示
  794. showAllSymbol: true, //显示所有图形。
  795. symbol: 'circle', //标记的图形为实心圆
  796. symbolSize: 8, //标记的大小
  797. smooth: false,
  798. label: {
  799. normal: {
  800. show: true,
  801. position: 'top',
  802. textStyle: {
  803. color: '#fbe138',
  804. fontStyle: 'normal',
  805. textAlign: 'left',
  806. fontSize: 16,
  807. },
  808. formatter: function (data) {
  809. if (data.name == '云时代') {
  810. return data.value
  811. } else {
  812. return ''
  813. }
  814. }
  815. }
  816. },
  817. itemStyle: {
  818. //折线拐点标志的样式
  819. color: '#fbe138',
  820. borderColor: '#fbe138',
  821. width: 2,
  822. shadowColor: '#fbe138',
  823. shadowBlur: 4,
  824. },
  825. lineStyle: {
  826. color: '#fbe138',
  827. width: 2,
  828. },
  829. data: dataL4[2],
  830. },
  831. ],
  832. }
  833. option.title.text = '各四级企业本部中层管理人数'
  834. option.legend.data = ['六定改革前各四级中层管理人数', '当前各四级中层管理人数', '各四级中层管理人数核定上限']
  835. option.legend.show = true
  836. option.yAxis.push({
  837. splitLine: {
  838. show: false,
  839. },
  840. axisLine: {
  841. show: false,
  842. },
  843. })
  844. myChart.setOption(option)
  845. },
  846. initChartL5 () {
  847. let myChart = echarts.init(this.$refs['echartL5'])
  848. let option = {
  849. ..._.cloneDeep(this.commonOption),
  850. series: [
  851. {
  852. name: '各四级企业总人数',
  853. type: 'bar',
  854. barWidth: 15,
  855. itemStyle: {
  856. normal: {
  857. color: params => {
  858. if (params.dataIndex > 0 && Math.abs(params.value - dataL5[0][params.dataIndex - 1]) > 0.1) {
  859. return 'yellow'
  860. } else {
  861. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  862. {
  863. offset: 0,
  864. color: '#69c0ff',
  865. },
  866. {
  867. offset: 1,
  868. color: '#082550',
  869. },
  870. ])
  871. }
  872. }
  873. },
  874. },
  875. data: dataL5[0],
  876. },
  877. {
  878. name: '去年同期人数变化率',
  879. type: 'line',
  880. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  881. smooth: true, //平滑曲线显示
  882. showAllSymbol: true, //显示所有图形。
  883. symbol: 'circle', //标记的图形为实心圆
  884. symbolSize: 8, //标记的大小
  885. smooth: false,
  886. itemStyle: {
  887. //折线拐点标志的样式
  888. color: '#b889ea',
  889. borderColor: '#b889ea',
  890. width: 2,
  891. shadowColor: '#b889ea',
  892. shadowBlur: 4,
  893. },
  894. lineStyle: {
  895. color: '#b889ea',
  896. width: 2,
  897. },
  898. data: dataL5[1],
  899. },
  900. ],
  901. }
  902. option.title.text = '各四级企业总人数'
  903. option.legend.data = ['各四级企业总人数', '去年同期人数变化率']
  904. option.legend.show = true
  905. option.tooltip = {
  906. trigger: 'axis',
  907. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  908. }
  909. option.yAxis.push({
  910. type: 'value',
  911. axisLine: {
  912. show: false,
  913. },
  914. splitLine: {
  915. show: false,
  916. },
  917. axisLabel: {
  918. show: true,
  919. formatter: '{value} %',
  920. textStyle: {
  921. color: 'rgba(250,250,250,0.6)',
  922. },
  923. },
  924. })
  925. myChart.setOption(option)
  926. },
  927. initChartL6 () {
  928. let myChart = echarts.init(this.$refs['echartL6'])
  929. let option = {
  930. ..._.cloneDeep(this.commonOption),
  931. series: [
  932. {
  933. name: '各四级员额数',
  934. type: 'bar',
  935. barWidth: 15,
  936. itemStyle: {
  937. normal: {
  938. barBorderRadius: [10, 10, 0, 0],
  939. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  940. {
  941. offset: 0,
  942. color: '#43ede3',
  943. },
  944. {
  945. offset: 1,
  946. color: '#082550',
  947. },
  948. ]),
  949. },
  950. },
  951. data: dataL6[0],
  952. },
  953. {
  954. name: '六定改革前各四级员额数',
  955. type: 'bar',
  956. barWidth: 15,
  957. itemStyle: {
  958. normal: {
  959. barBorderRadius: [10, 10, 0, 0],
  960. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  961. {
  962. offset: 0,
  963. color: '#43ede3',
  964. },
  965. {
  966. offset: 1,
  967. color: '#082550',
  968. },
  969. ]),
  970. },
  971. },
  972. data: dataL6[2],
  973. },
  974. {
  975. name: '各四级员额数核定上限',
  976. type: 'line',
  977. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  978. smooth: true, //平滑曲线显示
  979. showAllSymbol: true, //显示所有图形。
  980. symbol: 'circle', //标记的图形为实心圆
  981. symbolSize: 8, //标记的大小
  982. smooth: false,
  983. itemStyle: {
  984. //折线拐点标志的样式
  985. color: '#fbe138',
  986. borderColor: '#fbe138',
  987. width: 2,
  988. shadowColor: '#fbe138',
  989. shadowBlur: 4,
  990. },
  991. lineStyle: {
  992. color: '#fbe138',
  993. width: 2,
  994. },
  995. data: dataL6[1],
  996. },
  997. ],
  998. }
  999. option.title.text = '各四级企业本部员额数'
  1000. option.legend.data = ['各四级员额数', '六定改革前各四级员额数','各四级员额数核定上限']
  1001. option.legend.show = true
  1002. option.yAxis.push({
  1003. splitLine: {
  1004. show: false,
  1005. },
  1006. axisLine: {
  1007. show: false,
  1008. },
  1009. })
  1010. myChart.setOption(option)
  1011. },
  1012. initChartL7 () {
  1013. let myChart = echarts.init(this.$refs['echartL7'])
  1014. let option = {
  1015. ..._.cloneDeep(this.commonOption),
  1016. color: ['#43ede3'],
  1017. series: [
  1018. {
  1019. name: '人数变化',
  1020. type: 'line',
  1021. barWidth: 15,
  1022. showAllSymbol: true, //显示所有图形。
  1023. symbol: 'circle', //标记的图形为实心圆
  1024. symbolSize: 15, //标记的大小
  1025. smooth: false,
  1026. itemStyle: {
  1027. color: params => {
  1028. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  1029. return 'red'
  1030. } else if (params.value < 0 && dataL7[1][params.dataIndex] > 0) {
  1031. return 'green'
  1032. }
  1033. else {
  1034. return '#43ede3'
  1035. }
  1036. },
  1037. },
  1038. // markLine: {
  1039. // data: [{ type: 'average', name: 'Avg' }],
  1040. // },
  1041. data: dataL7[0],
  1042. },
  1043. {
  1044. name: '劳动生产率同比变化',
  1045. type: 'line',
  1046. barWidth: 15,
  1047. // yAxisIndex: 1,
  1048. showAllSymbol: true, //显示所有图形。
  1049. symbol: 'circle', //标记的图形为实心圆
  1050. symbolSize: 15, //标记的大小
  1051. smooth: false,
  1052. itemStyle: {
  1053. //折线拐点标志的样式
  1054. color: '#b889ea',
  1055. borderColor: '#b889ea',
  1056. width: 2,
  1057. shadowColor: '#b889ea',
  1058. shadowBlur: 4,
  1059. },
  1060. data: dataL7[1],
  1061. },
  1062. {
  1063. type: 'effectScatter',
  1064. coordinateSystem: 'cartesian2d',
  1065. showEffectOn: 'render',
  1066. rippleEffect: {
  1067. period: 10,
  1068. scale: 4,
  1069. brushType: 'stroke'
  1070. },
  1071. hoverAnimation: true,
  1072. itemStyle: {
  1073. color: 'red'
  1074. },
  1075. lineStyle: {
  1076. color: '#43ede3',
  1077. width: 2,
  1078. },
  1079. data: this.twinkle7,
  1080. },
  1081. ],
  1082. }
  1083. option.title.text = '人数变化和全员劳动生产率变化分析'
  1084. option.legend.data = ['人数变化', '劳动生产率同比变化']
  1085. option.legend.show = true
  1086. option.tooltip = {
  1087. trigger: 'axis',
  1088. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1089. }
  1090. option.yAxis = [
  1091. {
  1092. type: 'value',
  1093. axisLine: {
  1094. show: false,
  1095. },
  1096. splitLine: {
  1097. show: true,
  1098. lineStyle: {
  1099. color: '#68b4dd66',
  1100. type: 'dashed',
  1101. },
  1102. },
  1103. axisLabel: {
  1104. show: true,
  1105. formatter: '{value} %',
  1106. textStyle: {
  1107. color: 'rgba(250,250,250,0.6)',
  1108. },
  1109. },
  1110. },
  1111. {
  1112. type: 'value',
  1113. axisLine: {
  1114. show: false,
  1115. },
  1116. splitLine: {
  1117. show: false,
  1118. },
  1119. axisLabel: {
  1120. show: true,
  1121. formatter: '{value} %',
  1122. textStyle: {
  1123. color: 'rgba(250,250,250,0.6)',
  1124. },
  1125. },
  1126. }
  1127. ]
  1128. myChart.setOption(option)
  1129. },
  1130. initChartL8 () {
  1131. let myChart = echarts.init(this.$refs['echartL8'])
  1132. let option = {
  1133. ..._.cloneDeep(this.commonOption),
  1134. color: ['#43ede3'],
  1135. series: [
  1136. {
  1137. name: '人数变化',
  1138. type: 'line',
  1139. barWidth: 15,
  1140. showAllSymbol: true, //显示所有图形。
  1141. symbol: 'circle', //标记的图形为实心圆
  1142. symbolSize: 15, //标记的大小
  1143. smooth: false,
  1144. itemStyle: {
  1145. color: params => {
  1146. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1147. return 'red'
  1148. } else if (params.value < 0 && dataL8[1][params.dataIndex] > 0) {
  1149. return 'green'
  1150. }
  1151. else {
  1152. return '#43ede3'
  1153. }
  1154. },
  1155. },
  1156. lineStyle: {
  1157. color: '#43ede3',
  1158. width: 2,
  1159. },
  1160. // markLine: {
  1161. // data: [{ type: 'average', name: 'Avg' }],
  1162. // },
  1163. data: dataL8[0],
  1164. },
  1165. {
  1166. name: '人工成本利润率同比变化',
  1167. type: 'line',
  1168. barWidth: 15,
  1169. // yAxisIndex: 1,
  1170. showAllSymbol: true, //显示所有图形。
  1171. symbol: 'circle', //标记的图形为实心圆
  1172. symbolSize: 15, //标记的大小
  1173. smooth: false,
  1174. itemStyle: {
  1175. //折线拐点标志的样式
  1176. color: '#b889ea',
  1177. borderColor: '#b889ea',
  1178. width: 2,
  1179. shadowColor: '#b889ea',
  1180. shadowBlur: 4,
  1181. },
  1182. data: dataL8[1],
  1183. },
  1184. {
  1185. type: 'effectScatter',
  1186. coordinateSystem: 'cartesian2d',
  1187. showEffectOn: 'render',
  1188. rippleEffect: {
  1189. period: 10,
  1190. scale: 4,
  1191. brushType: 'stroke'
  1192. },
  1193. hoverAnimation: true,
  1194. itemStyle: {
  1195. color: 'red'
  1196. },
  1197. lineStyle: {
  1198. color: '#43ede3',
  1199. width: 2,
  1200. },
  1201. data: this.twinkle8,
  1202. },
  1203. ],
  1204. }
  1205. option.title.text = '人数变化和人工成本利润率变化分析'
  1206. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1207. option.legend.show = true
  1208. option.tooltip = {
  1209. trigger: 'axis',
  1210. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1211. }
  1212. option.yAxis = [
  1213. {
  1214. type: 'value',
  1215. axisLine: {
  1216. show: false,
  1217. },
  1218. splitLine: {
  1219. show: true,
  1220. lineStyle: {
  1221. color: '#68b4dd66',
  1222. type: 'dashed',
  1223. },
  1224. },
  1225. axisLabel: {
  1226. show: true,
  1227. formatter: '{value} %',
  1228. textStyle: {
  1229. color: 'rgba(250,250,250,0.6)',
  1230. },
  1231. },
  1232. },
  1233. {
  1234. type: 'value',
  1235. axisLine: {
  1236. show: false,
  1237. },
  1238. splitLine: {
  1239. show: false,
  1240. },
  1241. axisLabel: {
  1242. show: true,
  1243. formatter: '{value} %',
  1244. textStyle: {
  1245. color: 'rgba(250,250,250,0.6)',
  1246. },
  1247. },
  1248. }
  1249. ]
  1250. myChart.setOption(option)
  1251. },
  1252. // 中间图表---------------------------------------------开始
  1253. initChartC1 () {
  1254. let myChart = echarts.init(this.$refs['echartC1'])
  1255. let option = {
  1256. ..._.cloneDeep(this.commonOption),
  1257. color: ['#69c0ff'],
  1258. series: [
  1259. {
  1260. name: '全员劳动生产率(万/人)',
  1261. type: 'bar',
  1262. barWidth: 12,
  1263. smooth: true, //平滑曲线显示
  1264. showAllSymbol: true, //显示所有图形。
  1265. symbol: 'circle', //标记的图形为实心圆
  1266. symbolSize: 8, //标记的大小
  1267. smooth: false,
  1268. itemStyle: {
  1269. color: params => {
  1270. if (params.value < 0 && dataC1[1][params.dataIndex] < 0) {
  1271. return 'red'
  1272. } else if (params.value > this.echartC1.province) {
  1273. return 'green'
  1274. } else {
  1275. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1276. {
  1277. offset: 0,
  1278. color: '#69c0ff',
  1279. },
  1280. {
  1281. offset: 1,
  1282. color: '#082550',
  1283. },
  1284. ])
  1285. }
  1286. },
  1287. },
  1288. lineStyle: {
  1289. color: '#B889EA',
  1290. width: 2,
  1291. },
  1292. // data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  1293. data: dataC1[0],
  1294. markLine: {
  1295. data: [
  1296. {
  1297. name: '省属企业平均水平',
  1298. yAxis: this.echartC1.national,
  1299. lineStyle: {
  1300. color: '#fff',
  1301. },
  1302. label: {
  1303. formatter: '{b}',
  1304. position: 'end',
  1305. padding: [20, 100, 10, 30],
  1306. color: '#fff',
  1307. },
  1308. },
  1309. {
  1310. name: '央企平均水平',
  1311. yAxis: this.echartC1.province,
  1312. lineStyle: {
  1313. color: '#fff',
  1314. },
  1315. label: {
  1316. formatter: '{b}',
  1317. position: 'end',
  1318. padding: [-4, 150, 10, 30],
  1319. color: '#fff',
  1320. },
  1321. },
  1322. ],
  1323. label: {
  1324. distance: [20, 8],
  1325. },
  1326. },
  1327. },
  1328. {
  1329. name: '全员劳动生产率同比变化',
  1330. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1331. type: 'line',
  1332. itemStyle: {
  1333. normal: {
  1334. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1335. {
  1336. offset: 0,
  1337. color: '#69c0ff',
  1338. },
  1339. {
  1340. offset: 1,
  1341. color: '#082550',
  1342. },
  1343. ]),
  1344. },
  1345. },
  1346. data: dataC1[1],
  1347. },
  1348. ],
  1349. }
  1350. option.title.text = '各四级全员劳动生产率'
  1351. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  1352. option.legend.show = true
  1353. option.grid.right = '15%'
  1354. option.tooltip = {
  1355. trigger: 'axis',
  1356. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1357. }
  1358. option.yAxis.push({
  1359. type: 'value',
  1360. axisLine: {
  1361. show: false,
  1362. },
  1363. splitLine: {
  1364. show: false,
  1365. },
  1366. axisLabel: {
  1367. show: true,
  1368. formatter: '{value} %',
  1369. textStyle: {
  1370. color: 'rgba(250,250,250,0.6)',
  1371. },
  1372. },
  1373. })
  1374. myChart.setOption(option)
  1375. tools.loopShowTooltip(myChart, option, {
  1376. nterval: 2000,
  1377. loopSeries: true,
  1378. });
  1379. },
  1380. initChartC2 () {
  1381. let myChart = echarts.init(this.$refs['echartC2'])
  1382. let option = {
  1383. ..._.cloneDeep(this.commonOption),
  1384. color: ['#69c0ff'],
  1385. series: [
  1386. {
  1387. name: '人工成本利润率同比变化',
  1388. type: 'line',
  1389. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1390. smooth: true, //平滑曲线显示
  1391. showAllSymbol: true, //显示所有图形。
  1392. symbol: 'circle', //标记的图形为实心圆
  1393. symbolSize: 8, //标记的大小
  1394. smooth: false,
  1395. itemStyle: {
  1396. //折线拐点标志的样式
  1397. color: '#B889EA',
  1398. borderColor: '#B889EA',
  1399. width: 2,
  1400. shadowColor: '#B889EA',
  1401. shadowBlur: 4,
  1402. },
  1403. lineStyle: {
  1404. color: '#B889EA',
  1405. width: 2,
  1406. },
  1407. data: dataC2[0],
  1408. },
  1409. {
  1410. name: '人工成本利润率',
  1411. type: 'bar',
  1412. barWidth: 15,
  1413. itemStyle: {
  1414. color: params => {
  1415. if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
  1416. return 'red'
  1417. } else if (params.value > this.echartC2.province) {
  1418. return 'green'
  1419. } else {
  1420. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1421. {
  1422. offset: 0,
  1423. color: '#69c0ff',
  1424. },
  1425. {
  1426. offset: 1,
  1427. color: '#082550',
  1428. },
  1429. ])
  1430. }
  1431. },
  1432. },
  1433. data: dataC2[1],
  1434. markLine: {
  1435. data: [
  1436. {
  1437. name: '省属企业平均水平',
  1438. yAxis: this.echartC2.province,
  1439. lineStyle: {
  1440. color: '#fff',
  1441. },
  1442. label: {
  1443. formatter: '{b}',
  1444. position: 'end',
  1445. padding: [24, 100, 10, 30],
  1446. color: '#fff',
  1447. },
  1448. },
  1449. {
  1450. name: '央企平均水平',
  1451. yAxis: this.echartC2.national,
  1452. lineStyle: {
  1453. color: '#fff',
  1454. },
  1455. label: {
  1456. formatter: '{b}',
  1457. position: 'end',
  1458. padding: [-24, 200, 10, 30],
  1459. color: '#fff',
  1460. },
  1461. },
  1462. ],
  1463. label: {
  1464. distance: [20, 8],
  1465. },
  1466. },
  1467. },
  1468. ],
  1469. }
  1470. option.title.text = '各四级人工成本利润率'
  1471. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  1472. option.legend.show = true
  1473. option.tooltip = {
  1474. trigger: 'axis',
  1475. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1476. }
  1477. option.grid.right = '15%'
  1478. option.yAxis = [
  1479. {
  1480. splitLine: {
  1481. show: true,
  1482. lineStyle: {
  1483. color: '#68b4dd66',
  1484. type: 'dashed',
  1485. },
  1486. },
  1487. axisLine: {
  1488. show: false,
  1489. },
  1490. axisLabel: {
  1491. show: true,
  1492. formatter: '{value} %',
  1493. textStyle: {
  1494. color: 'rgba(250,250,250,0.6)',
  1495. },
  1496. },
  1497. },
  1498. {
  1499. splitLine: {
  1500. show: false,
  1501. },
  1502. axisLine: {
  1503. show: false,
  1504. },
  1505. axisLabel: {
  1506. show: true,
  1507. formatter: '{value} %',
  1508. textStyle: {
  1509. color: 'rgba(250,250,250,0.6)',
  1510. },
  1511. },
  1512. }
  1513. ]
  1514. myChart.setOption(option)
  1515. tools.loopShowTooltip(myChart, option, {
  1516. nterval: 2000,
  1517. loopSeries: true,
  1518. });
  1519. },
  1520. // 右侧图表---------------------------------------------开始
  1521. initChartR1 () {
  1522. let myChart = echarts.init(this.$refs['echartR1'])
  1523. let commonOptions = this.commonOption
  1524. commonOptions.yAxis[0].splitNumber = 2
  1525. let option = {
  1526. ..._.cloneDeep(commonOptions),
  1527. series: [
  1528. {
  1529. name: '招聘需求公告次数',
  1530. type: 'bar',
  1531. barWidth: 15,
  1532. itemStyle: {
  1533. normal: {
  1534. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1535. {
  1536. offset: 0,
  1537. color: '#69c0ff',
  1538. },
  1539. {
  1540. offset: 1,
  1541. color: '#082550',
  1542. },
  1543. ]),
  1544. },
  1545. },
  1546. data: dataR1[0],
  1547. },
  1548. {
  1549. name: '招聘需求公告累计招聘人次',
  1550. type: 'bar',
  1551. barWidth: 15,
  1552. itemStyle: {
  1553. normal: {
  1554. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1555. {
  1556. offset: 0,
  1557. color: '#43ede3',
  1558. },
  1559. {
  1560. offset: 1,
  1561. color: '#082550',
  1562. },
  1563. ]),
  1564. },
  1565. },
  1566. data: dataR1[1],
  1567. },
  1568. ],
  1569. }
  1570. option.title.text = '各四级企业招聘招聘需求公示人次'
  1571. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1572. option.legend.show = true
  1573. option.yAxis.push({
  1574. splitLine: {
  1575. show: false,
  1576. },
  1577. axisLine: {
  1578. show: false,
  1579. },
  1580. })
  1581. myChart.setOption(option)
  1582. },
  1583. initChartR2 () {
  1584. let myChart = echarts.init(this.$refs['echartR2'])
  1585. let commonOptions = this.commonOption
  1586. commonOptions.yAxis[0].splitNumber = 2
  1587. let option = {
  1588. ..._.cloneDeep(commonOptions),
  1589. series: [
  1590. {
  1591. name: '录用结果公示次数',
  1592. type: 'bar',
  1593. barWidth: 15,
  1594. itemStyle: {
  1595. normal: {
  1596. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1597. {
  1598. offset: 0,
  1599. color: '#69c0ff',
  1600. },
  1601. {
  1602. offset: 1,
  1603. color: '#082550',
  1604. },
  1605. ]),
  1606. },
  1607. },
  1608. data: dataR2[0],
  1609. },
  1610. {
  1611. name: '录用结果公示累计公示人数',
  1612. type: 'bar',
  1613. barWidth: 15,
  1614. itemStyle: {
  1615. normal: {
  1616. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1617. {
  1618. offset: 0,
  1619. color: '#45DAD1',
  1620. },
  1621. {
  1622. offset: 1,
  1623. color: '#082550',
  1624. },
  1625. ]),
  1626. },
  1627. },
  1628. data: dataR2[1],
  1629. },
  1630. ],
  1631. }
  1632. option.title.text = '各四级企业录用结果公示人次'
  1633. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1634. option.legend.show = true
  1635. option.yAxis.push({
  1636. splitLine: {
  1637. show: false,
  1638. },
  1639. axisLine: {
  1640. show: false,
  1641. },
  1642. })
  1643. myChart.setOption(option)
  1644. },
  1645. initChartR3 () {
  1646. let myChart = echarts.init(this.$refs['echartR3'])
  1647. let commonOptions = this.commonOption
  1648. commonOptions.yAxis[0].splitNumber = 2
  1649. let option = {
  1650. ..._.cloneDeep(commonOptions),
  1651. color: ['#45DAD1'],
  1652. series: [
  1653. {
  1654. name: '2022年利润(万)',
  1655. type: 'bar',
  1656. barWidth: 15,
  1657. itemStyle: {
  1658. normal: {
  1659. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1660. {
  1661. offset: 0,
  1662. color: '#69c0ff',
  1663. },
  1664. {
  1665. offset: 1,
  1666. color: '#082550',
  1667. },
  1668. ]),
  1669. },
  1670. },
  1671. data: dataR3[0],
  1672. },
  1673. {
  1674. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  1675. type: 'bar',
  1676. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1677. barWidth: 15,
  1678. itemStyle: {
  1679. color: params => {
  1680. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1681. return 'red'
  1682. } else {
  1683. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1684. {
  1685. offset: 0,
  1686. color: '#45DAD1',
  1687. },
  1688. {
  1689. offset: 1,
  1690. color: '#082550',
  1691. },
  1692. ])
  1693. }
  1694. },
  1695. },
  1696. data: dataR3[1],
  1697. },
  1698. ],
  1699. }
  1700. option.title.text = '各四级企业年利润与当年累计招聘人数'
  1701. option.legend.data = ['2022年利润(万)', '2022年招聘人数和2023年当前累计招聘人数之和']
  1702. option.legend.show = true
  1703. option.yAxis[0].max = function (value) {
  1704. if (Math.abs(value.max) > Math.abs(value.min)) {
  1705. return (Math.abs(value.max) * 1.2).toFixed(2);
  1706. } else {
  1707. return (Math.abs(value.min) * 1.2).toFixed(2);
  1708. }
  1709. }
  1710. option.yAxis[0].min = function (value) {
  1711. if (Math.abs(value.max) > Math.abs(value.min)) {
  1712. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1713. } else {
  1714. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1715. }
  1716. }
  1717. option.yAxis.push({
  1718. max: function (val) {
  1719. if (Math.abs(val.max) > Math.abs(val.min)) {
  1720. return (Math.abs(val.max) * 1.2).toFixed(0)
  1721. } else {
  1722. return (Math.abs(val.min) * 1.2).toFixed(0)
  1723. }
  1724. },
  1725. min: function (val) {
  1726. if (Math.abs(val.max) > Math.abs(val.min)) {
  1727. return (-Math.abs(val.max) * 1.2).toFixed(0)
  1728. } else {
  1729. return (Math.abs(val.min) * 1.2).toFixed(0)
  1730. }
  1731. },
  1732. splitLine: {
  1733. show: false,
  1734. },
  1735. axisLine: {
  1736. show: false,
  1737. },
  1738. axisLabel: {
  1739. show: true,
  1740. formatter: '{value}',
  1741. textStyle: {
  1742. color: 'rgba(250,250,250,0.6)',
  1743. },
  1744. },
  1745. })
  1746. myChart.setOption(option)
  1747. },
  1748. initChartR4 () {
  1749. let myChart = echarts.init(this.$refs['echartR4'])
  1750. let commonOptions = this.commonOption
  1751. commonOptions.yAxis[0].splitNumber = 2
  1752. let option = {
  1753. ..._.cloneDeep(commonOptions),
  1754. series: [
  1755. {
  1756. name: '2022年退出人数和2023年当前累计退出人数之和',
  1757. type: 'bar',
  1758. barWidth: 15,
  1759. itemStyle: {
  1760. normal: {
  1761. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1762. {
  1763. offset: 0,
  1764. color: '#69c0ff',
  1765. },
  1766. {
  1767. offset: 1,
  1768. color: '#082550',
  1769. },
  1770. ]),
  1771. },
  1772. },
  1773. data: dataR4[0],
  1774. },
  1775. {
  1776. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  1777. type: 'bar',
  1778. barWidth: 15,
  1779. itemStyle: {
  1780. normal: {
  1781. color: params => {
  1782. if (params.value / dataR4[0][params.dataIndex] > 3) {
  1783. return 'green'
  1784. } else if (params.value / 2 < dataR4[0][params.dataIndex]) {
  1785. return 'yellow'
  1786. }
  1787. else {
  1788. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1789. {
  1790. offset: 0,
  1791. color: '#6480f3',
  1792. },
  1793. {
  1794. offset: 1,
  1795. color: '#082550',
  1796. },
  1797. ])
  1798. }
  1799. },
  1800. },
  1801. },
  1802. data: dataR4[1],
  1803. },
  1804. ],
  1805. }
  1806. option.title.text = '各四级企业"退二进一"完成情况'
  1807. option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
  1808. option.legend.show = true
  1809. option.yAxis.push({
  1810. splitLine: {
  1811. show: false,
  1812. },
  1813. axisLine: {
  1814. show: false,
  1815. },
  1816. })
  1817. myChart.setOption(option)
  1818. },
  1819. initChartR5 () {
  1820. let myChart = echarts.init(this.$refs['echartR5'])
  1821. let option = {
  1822. ..._.cloneDeep(this.commonOption),
  1823. series: [
  1824. {
  1825. name: '在岗职工平均薪酬',
  1826. type: 'bar',
  1827. barWidth: 15,
  1828. itemStyle: {
  1829. normal: {
  1830. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1831. {
  1832. offset: 0,
  1833. color: '#6682F5',
  1834. },
  1835. {
  1836. offset: 1,
  1837. color: '#082550',
  1838. },
  1839. ]),
  1840. },
  1841. },
  1842. data: dataR5[0],
  1843. },
  1844. {
  1845. name: '去年同期在岗职工平均薪酬',
  1846. type: 'bar',
  1847. barWidth: 15,
  1848. itemStyle: {
  1849. normal: {
  1850. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1851. {
  1852. offset: 0,
  1853. color: '#69c0ff',
  1854. },
  1855. {
  1856. offset: 1,
  1857. color: '#082550',
  1858. },
  1859. ]),
  1860. },
  1861. },
  1862. data: dataR5[1],
  1863. }
  1864. ],
  1865. }
  1866. option.title.text = '各四级企业在岗职工平均薪酬'
  1867. option.legend.data = ['在岗职工平均薪酬', '去年同期在岗职工平均薪酬']
  1868. option.legend.show = true
  1869. option.yAxis.push({
  1870. splitLine: {
  1871. show: false,
  1872. },
  1873. axisLine: {
  1874. show: false,
  1875. },
  1876. })
  1877. myChart.setOption(option)
  1878. },
  1879. initChartR6 () {
  1880. let myChart = echarts.init(this.$refs['echartR6'])
  1881. let option = {
  1882. ..._.cloneDeep(this.commonOption),
  1883. color: ['#69c0ff'],
  1884. series: [
  1885. {
  1886. name: '各四级月利润总额同期变化率',
  1887. type: 'line',
  1888. smooth: true, //平滑曲线显示
  1889. showAllSymbol: true, //显示所有图形。
  1890. symbol: 'circle', //标记的图形为实心圆
  1891. symbolSize: 8, //标记的大小
  1892. smooth: false,
  1893. label: {
  1894. normal: {
  1895. show: true,
  1896. lineHeight: '20',
  1897. position: 'top',
  1898. textStyle: {
  1899. color: '#B889EA',
  1900. fontStyle: 'normal',
  1901. textAlign: 'left',
  1902. fontSize: 16,
  1903. },
  1904. formatter: function (data) {
  1905. if (data.name == '文旅集团') {
  1906. return data.value
  1907. } else {
  1908. return ''
  1909. }
  1910. }
  1911. }
  1912. },
  1913. itemStyle: {
  1914. //折线拐点标志的样式
  1915. color: '#B889EA',
  1916. borderColor: '#B889EA',
  1917. width: 2,
  1918. shadowColor: '#B889EA',
  1919. shadowBlur: 4,
  1920. },
  1921. lineStyle: {
  1922. color: '#B889EA',
  1923. width: 2,
  1924. },
  1925. data: fjxdataL2[0],
  1926. },
  1927. {
  1928. name: '各四级月薪酬总额同期变化率',
  1929. type: 'line',
  1930. smooth: true, //平滑曲线显示
  1931. showAllSymbol: true, //显示所有图形。
  1932. symbol: 'circle', //标记的图形为实心圆
  1933. symbolSize: 12, //标记的大小
  1934. smooth: false,
  1935. label: {
  1936. normal: {
  1937. show: true,
  1938. position: 'top',
  1939. lineHeight: '35',
  1940. textStyle: {
  1941. color: '#69c0ff',
  1942. fontStyle: 'normal',
  1943. textAlign: 'left',
  1944. fontSize: 16,
  1945. },
  1946. formatter: function (data) {
  1947. if (data.name == '文旅集团') {
  1948. return data.value
  1949. } else {
  1950. return ''
  1951. }
  1952. }
  1953. }
  1954. },
  1955. itemStyle: {
  1956. color: params => {
  1957. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  1958. return 'yellow'
  1959. } else if (params.value < 0 && fjxdataL2[0][params.dataIndex] > 0) {
  1960. return 'green'
  1961. }
  1962. else {
  1963. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1964. {
  1965. offset: 0,
  1966. color: '#69c0ff',
  1967. },
  1968. {
  1969. offset: 1,
  1970. color: '#082550',
  1971. },
  1972. ])
  1973. }
  1974. },
  1975. },
  1976. lineStyle: {
  1977. color: '#69C0FF',
  1978. width: 2,
  1979. },
  1980. data: fjxdataL2[1],
  1981. },
  1982. {
  1983. type: 'effectScatter',
  1984. coordinateSystem: 'cartesian2d',
  1985. showEffectOn: 'render',
  1986. rippleEffect: {
  1987. period: 10,
  1988. scale: 4,
  1989. brushType: 'stroke'
  1990. },
  1991. hoverAnimation: true,
  1992. itemStyle: {
  1993. color: 'yellow'
  1994. },
  1995. lineStyle: {
  1996. color: '#43ede3',
  1997. width: 2,
  1998. },
  1999. data: this.twinkleR6,
  2000. },
  2001. ],
  2002. }
  2003. option.title.text = '各四级企业利润与薪酬变动情况'
  2004. option.legend.data = ['各四级月利润总额同期变化率', '各四级月薪酬总额同期变化率']
  2005. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2006. option.yAxis[0].axisLabel.formatter = '{value} %'
  2007. myChart.setOption(option)
  2008. },
  2009. initChartR7 () {
  2010. let myChart = echarts.init(this.$refs['echartR7'])
  2011. let option = {
  2012. ..._.cloneDeep(this.commonOption),
  2013. series: [
  2014. {
  2015. name: '全员绩效考核完成率',
  2016. type: 'bar',
  2017. barWidth: 15,
  2018. itemStyle: {
  2019. normal: {
  2020. color: params => {
  2021. if (params.value < 0.5) {
  2022. return 'yellow'
  2023. }
  2024. else {
  2025. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2026. {
  2027. offset: 0,
  2028. color: '#B889EA',
  2029. },
  2030. {
  2031. offset: 1,
  2032. color: '#082550',
  2033. },
  2034. ])
  2035. }
  2036. },
  2037. },
  2038. },
  2039. data: dataR7[0],
  2040. },
  2041. ],
  2042. }
  2043. option.title.text = '各四级企业全员绩效考核'
  2044. // option.legend.data = ['劳动合同签约完成率', '目标值']
  2045. option.tooltip = {
  2046. trigger: 'axis',
  2047. formatter: '{a0}:{c0}' + '%'
  2048. }
  2049. option.yAxis[0].axisLabel = {
  2050. show: true,
  2051. formatter: '{value} %',
  2052. textStyle: {
  2053. color: 'rgba(250,250,250,0.6)',
  2054. },
  2055. }
  2056. myChart.setOption(option)
  2057. },
  2058. initChartR8 () {
  2059. let myChart = echarts.init(this.$refs['echartR8'])
  2060. let option = {
  2061. ..._.cloneDeep(this.commonOption),
  2062. series: [
  2063. {
  2064. name: '任期制契约化管理',
  2065. type: 'bar',
  2066. barWidth: 15,
  2067. itemStyle: {
  2068. normal: {
  2069. color: params => {
  2070. if (params.value < 0.5) {
  2071. return 'yellow'
  2072. }
  2073. else {
  2074. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2075. {
  2076. offset: 0,
  2077. color: '#43ede3',
  2078. },
  2079. {
  2080. offset: 1,
  2081. color: '#082550',
  2082. },
  2083. ])
  2084. }
  2085. },
  2086. },
  2087. },
  2088. data: dataR8[0],
  2089. },
  2090. ],
  2091. }
  2092. option.title.text = '各四级企业任期制契约化管理'
  2093. option.tooltip = {
  2094. trigger: 'axis',
  2095. formatter: '{a0}:{c0}' + '%'
  2096. }
  2097. option.yAxis[0].axisLabel = {
  2098. show: true,
  2099. formatter: '{value} %',
  2100. textStyle: {
  2101. color: 'rgba(250,250,250,0.6)',
  2102. },
  2103. }
  2104. myChart.setOption(option)
  2105. },
  2106. },
  2107. })