index.js 76 KB

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