index2.js 70 KB

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