index3MT.js 76 KB

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