index4SY.js 72 KB

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