index2.js 73 KB

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