index3MT.js 71 KB

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