index3.js 69 KB

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