index3MT.js 73 KB

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