index3MT.js 74 KB

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