index4.js 70 KB

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