index3MT.js 76 KB

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