index4SY.js 71 KB

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