index3MT.js 74 KB

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