index3MT.js 75 KB

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