index4SY.js 72 KB

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