index2JNKG.js 73 KB

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