index3MT.js 73 KB

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