index3MT.js 71 KB

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