index4SY.js 72 KB

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