index2JNKG.js 73 KB

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