index4SY.js 74 KB

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