index3.js 69 KB

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