index.js 77 KB

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