index2.js 74 KB

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