humanResources.js 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459
  1. Vue.use(scroll)
  2. let app = new Vue({
  3. el: "#app",
  4. data() {
  5. return {
  6. title: "内部人才市场双选服务平台",
  7. treeList: [
  8. {
  9. name: "岗位发布",
  10. flag: true,
  11. src: "./images/humanResources/post.png",
  12. onSrc: "./images/humanResources/post_on.png",
  13. style: {
  14. top: "55%",
  15. left: "15%",
  16. backgroundImage: "url(./images/humanResources/icon_bg_blue.png)"
  17. },
  18. onStyle: {
  19. top: "55%",
  20. left: "15%",
  21. backgroundImage: "url(./images/humanResources/iconBg_yellow.png)"
  22. }
  23. },
  24. {
  25. name: "简历投递",
  26. flag: false,
  27. src: "./images/humanResources/notes.png",
  28. onSrc: "./images/humanResources/notes_on.png",
  29. style: {
  30. top: "17%",
  31. left: "24%",
  32. backgroundImage: "url(./images/humanResources/icon_bg_blue.png)"
  33. },
  34. onStyle: {
  35. top: "17%",
  36. left: "24%",
  37. backgroundImage: "url(./images/humanResources/iconBg_yellow.png)"
  38. }
  39. },
  40. {
  41. name: "资格审查",
  42. flag: false,
  43. src: "./images/humanResources/qualification.png",
  44. onSrc: "./images/humanResources/qualification_on.png",
  45. style: {
  46. top: "-80px",
  47. left: "calc(50% - 202px)",
  48. backgroundImage: "url(./images/humanResources/icon_bg_blue.png)"
  49. },
  50. onStyle: {
  51. top: "-80px",
  52. left: "calc(50% - 202px)",
  53. backgroundImage: "url(./images/humanResources/iconBg_yellow.png)"
  54. }
  55. },
  56. {
  57. name: "综合测评",
  58. flag: false,
  59. src: "./images/humanResources/comprehensive.png",
  60. onSrc: "./images/humanResources/comprehensive_on.png",
  61. style: {
  62. top: "17%",
  63. right: "24%",
  64. backgroundImage: "url(./images/humanResources/icon_bg_blue.png)"
  65. },
  66. onStyle: {
  67. top: "17%",
  68. right: "24%",
  69. backgroundImage: "url(./images/humanResources/iconBg_yellow.png)"
  70. }
  71. },
  72. {
  73. name: "录用公式",
  74. flag: false,
  75. src: "./images/humanResources/publicity.png",
  76. onSrc: "./images/humanResources/publicity_on.png",
  77. style: {
  78. top: "55%",
  79. right: "15%",
  80. backgroundImage: "url(./images/humanResources/icon_bg_blue.png)"
  81. },
  82. onStyle: {
  83. top: "55%",
  84. right: "15%",
  85. backgroundImage: "url(./images/humanResources/iconBg_yellow.png)"
  86. }
  87. },
  88. ],
  89. treeIndex: 0,
  90. rollFlag: true,
  91. config1: {
  92. waitTime: 7300,
  93. header: ["招聘单位", "招聘岗位", "招聘人数", "投递人数", "发布时间"],
  94. headerHeight: 55,
  95. columnWidth: [230, 170, 100, 100],
  96. rowNum: 10,
  97. data: [
  98. ["西山煤电屯兰矿", '井下普工', '50', '100', "2023.07.01"],
  99. ["西山煤电斜沟煤矿", '井下钻探工', '10', '30', "2023.07.01"],
  100. ["汾西矿业高阳煤矿", '井下安全检查员', '5', '10', "2023.07.01"],
  101. ["汾西矿业柳湾煤矿", '井下设备管理员', '10', '50', "2023.07.01"],
  102. ["霍州煤电辛置煤矿", '矿井维修电工', '10', '30', "2023.07.01"],
  103. ["霍州煤电恒兴煤业", '生产调度员', '4', '10', "2023.07.01"],
  104. ["霍州煤电吕梁山煤电公司", '汽车驾驶员', '5', '10', "2023.07.01"],
  105. ["山煤国际凌志达煤业", '电工', '5', '16', "2023.07.01"],
  106. ["华晋焦煤沙曲一号煤矿", '井下普工', '40', '120', "2023.07.01"],
  107. ["山西焦化", '技术员', '2', '12', "2023.07.01"],
  108. ["汾西矿业高阳煤矿", '井下安全检查员', '5', '10', "2023.07.01"],
  109. ],
  110. align: ["center", "center", "center", "center", "center"],
  111. headerBGC: "#69c1ff2d",
  112. oddRowBGC: "rgba(105, 193, 255, 0)",
  113. evenRowBGC: "#69c1ff21",
  114. hoverPause: false,
  115. },
  116. configIndex: 1,
  117. config2: {
  118. waitTime: 2000,
  119. header: ["序号", "单位名称", "招聘岗位数"],
  120. headerHeight: 55,
  121. rowNum: 5,
  122. data: [
  123. ["<span class='yellow'>01</span>", "<span class='yellow'>西山煤电</span>", "<span class='yellow'>30个</span>"],
  124. ["<span class='red'>02</span>", "<span class='red'>山煤国际</span>", "<span class='red'>25个</span>"],
  125. ["<span class='green'>03</span>", "<span class='green'>汾西矿业</span>", "<span class='green'>20个</span>"],
  126. ["04", "汾西矿业", "10个"],
  127. ["05", "汾西矿业", "8个"],
  128. ["<span class='yellow'>01</span>", "<span class='yellow'>西山煤电</span>", "<span class='yellow'>30个</span>"],
  129. ["<span class='red'>02</span>", "<span class='red'>山煤国际</span>", "<span class='red'>25个</span>"],
  130. ["<span class='green'>03</span>", "<span class='green'>汾西矿业</span>", "<span class='green'>20个</span>"],
  131. ["06", "汾西矿业", "4个"],
  132. ["07", "山煤国际", "4个"],
  133. ],
  134. align: ["center", "center", "center", "center", "center"],
  135. headerBGC: "#69c1ff2d",
  136. oddRowBGC: "rgba(105, 193, 255, 0)",
  137. evenRowBGC: "#69c1ff21",
  138. carousel: 'page'
  139. },
  140. targetIndex: 0,
  141. classChange: false,
  142. listData: [{
  143. 'title': '无缝滚动第一行无缝滚动第一行',
  144. 'date': '2017-12-16'
  145. }, {
  146. 'title': '无缝滚动第二行无缝滚动第二行',
  147. 'date': '2017-12-16'
  148. }, {
  149. 'title': '无缝滚动第三行无缝滚动第三行',
  150. 'date': '2017-12-16'
  151. }, {
  152. 'title': '无缝滚动第四行无缝滚动第四行',
  153. 'date': '2017-12-16'
  154. }, {
  155. 'title': '无缝滚动第五行无缝滚动第五行',
  156. 'date': '2017-12-16'
  157. }, {
  158. 'title': '无缝滚动第六行无缝滚动第六行',
  159. 'date': '2017-12-16'
  160. }, {
  161. 'title': '无缝滚动第七行无缝滚动第七行',
  162. 'date': '2017-12-16'
  163. }, {
  164. 'title': '无缝滚动第八行无缝滚动第八行',
  165. 'date': '2017-12-16'
  166. }, {
  167. 'title': '无缝滚动第九行无缝滚动第九行',
  168. 'date': '2017-12-16'
  169. }],
  170. classOption: {
  171. step: 2
  172. },
  173. configMark: {
  174. waitTime: 2000,
  175. header: ["头像", "姓名", "投递岗位", "时间"],
  176. rowNum: 6,
  177. headerHeight: 55,
  178. columnWidth: [120],
  179. data: [
  180. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>王伟</span>", "<span class=''>技术员</span>", "<span class=''>2023.07.29</span>"],
  181. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>李丽丽</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.26</span>"],
  182. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>王亮</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.18</span>"],
  183. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>李星</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.11</span>"],
  184. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>韩梅</span>", "<span class=''>生产调度员</span>", "<span class=''>2023.07.08</span>"],
  185. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>郑凯</span>", "<span class=''>生产调度员</span>", "<span class=''>2023.07.01</span>"],
  186. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>吉宇晟</span>", "<span class=''>技术员</span>", "<span class=''>2023.06.29</span>"],
  187. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>李志桐</span>", "<span class=''>技术员</span>", "<span class=''>2023.07.29</span>"],
  188. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>赵建国</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.26</span>"],
  189. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>杜勇</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.18</span>"],
  190. ],
  191. align: ["center", "center", "center", "center", "center"],
  192. headerBGC: "#69c1ff2d",
  193. oddRowBGC: "rgba(105, 193, 255, 0)",
  194. evenRowBGC: "#69c1ff21",
  195. },
  196. configInterview: {
  197. waitTime: 2000,
  198. header: ["序号", "姓名", "会议厅", "场次", "时间"],
  199. headerHeight: 55,
  200. columnWidth: [70, 120, 170, 200],
  201. rowNum: 5,
  202. data: [
  203. ["01", '陈英', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  204. ["02", '李小曼', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  205. ["03", '王亮', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  206. ["04", '李鑫', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  207. ["05", '王伟', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  208. ["06", '张强', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  209. ["07", '王强', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  210. ["08", '程丽', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  211. ["09", '韩赢', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  212. ["10", '王丽', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  213. ],
  214. align: ["center", "center", "center", "center", "center"],
  215. headerBGC: "#69c1ff2d",
  216. oddRowBGC: "rgba(105, 193, 255, 0)",
  217. evenRowBGC: "#69c1ff21",
  218. },
  219. configWritten: {
  220. waitTime: 2000,
  221. header: ["序号", "姓名", "会议厅", "场次", "时间"],
  222. headerHeight: 55,
  223. columnWidth: [70, 120, 170, 200],
  224. rowNum: 5,
  225. data: [
  226. ["01", '陈英', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  227. ["02", '李小曼', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  228. ["03", '王亮', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  229. ["04", '李鑫', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  230. ["05", '王伟', '洽谈室1', '杜儿坪矿', "2023.07.01 09:30-10:30"],
  231. ["06", '张强', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  232. ["07", '王强', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  233. ["08", '程丽', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  234. ["08", '韩赢', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  235. ["09", '王丽', '洽谈室1', '杜儿坪矿', "2023.07.05 09:30-10:30"],
  236. ],
  237. align: ["center", "center", "center", "center", "center"],
  238. headerBGC: "#69c1ff2d",
  239. oddRowBGC: "rgba(105, 193, 255, 0)",
  240. evenRowBGC: "#69c1ff21",
  241. },
  242. mainList: [
  243. {
  244. name: "双选场次",
  245. value: 30,
  246. unit: "场",
  247. icon: "./images/humanResources/times.png"
  248. },
  249. {
  250. name: "参与人数",
  251. value: 3000,
  252. unit: "人",
  253. icon: "./images/humanResources/user.png"
  254. }
  255. ],
  256. employmentList1: {
  257. waitTime: 5000,
  258. header: ["序号", "姓名", "性别", "身份证号", "拟录单位"],
  259. rowNum: 4,
  260. headerHeight: 55,
  261. columnWidth: [100, 100, 100, 280],
  262. data: [
  263. ],
  264. align: ["center", "center", "center", "center", "center"],
  265. headerBGC: "#69c1ff2d",
  266. oddRowBGC: "rgba(105, 193, 255, 0)",
  267. evenRowBGC: "#69c1ff21",
  268. hoverPause: false,
  269. },
  270. employmentList2: {
  271. waitTime: 5000,
  272. header: ["序号", "姓名", "性别", "身份证号", "拟录单位"],
  273. rowNum: 4,
  274. headerHeight: 55,
  275. columnWidth: [100, 100, 100, 280],
  276. data: [
  277. ],
  278. align: ["center", "center", "center", "center", "center"],
  279. headerBGC: "#69c1ff2d",
  280. oddRowBGC: "rgba(105, 193, 255, 0)",
  281. evenRowBGC: "#69c1ff21",
  282. hoverPause: false,
  283. },
  284. typeList: {
  285. waitTime: 2000,
  286. header: ["单位名称", "岗位名称", "报名人数"],
  287. rowNum: 6,
  288. headerHeight: 55,
  289. columnWidth: [100, 200, 400,],
  290. data: [
  291. ["汾西矿业", "综合管理岗", "40"],
  292. ["西山煤电", "综合管理岗", "35"],
  293. ["西山煤电", "财务管理岗", "30"],
  294. ["汾西矿业", "综合管理岗", "25"],
  295. ["西山煤电", "综合管理岗", "20"],
  296. ["西山煤电", "财务管理岗", "15"],
  297. ["汾西矿业", "综合管理岗", "10"],
  298. ],
  299. align: ["center", "center", "center", "center", "center"],
  300. index: true,
  301. headerBGC: "#69c1ff2d",
  302. oddRowBGC: "rgba(105, 193, 255, 0)",
  303. evenRowBGC: "#69c1ff21",
  304. hoverPause: false,
  305. },
  306. vitaEcharts: null,
  307. newList: [],
  308. showMark: false,
  309. showSelect: false,
  310. showMonth: false,
  311. monthList,
  312. monthItem: "07",
  313. timeList1: ["2022-07", "2023-07"],
  314. timeList2: ["2022-07", "2023-07"],
  315. from: "",
  316. type: 0,
  317. echartsIndex: 1,
  318. downholeFlag: true,
  319. markStyle: {
  320. bottom: "4%",
  321. right: "5%"
  322. },
  323. rightList: [{
  324. name: "当前数",
  325. flag: true,
  326. num1: 100,
  327. num2: 60,
  328. num3: 60,
  329. }, {
  330. name: "累计数",
  331. flag: false,
  332. num1: 500,
  333. num2: 400,
  334. num3: 80,
  335. }],
  336. rightIndex: 0,
  337. leftList: [{
  338. name: "招聘岗位",
  339. flag: true
  340. }, {
  341. name: "招聘岗位种类",
  342. flag: false
  343. }],
  344. leftIndex: 0,
  345. roseEcharts: null,
  346. leftFlag: true,
  347. rollTitle: "山西焦煤西山煤电杜儿坪矿井下操作工招聘公告",
  348. leftTime: null,
  349. rightTime: null,
  350. }
  351. },
  352. created() {
  353. this.newList = listToChange(yearList, monthList)
  354. let employmentList1 = spArr(employmentList, 5)
  355. let arr1 = []
  356. let arr2 = []
  357. employmentList1.forEach((item, index) => {
  358. if (index % 2 == 0) {
  359. arr1.push(...item)
  360. } else {
  361. arr2.push(...item)
  362. }
  363. })
  364. this.employmentList1.data = arr1
  365. this.employmentList2.data = arr2
  366. },
  367. mounted() {
  368. let that = this;
  369. this.$nextTick(() => {
  370. let vita = this.$refs.vita
  371. this.initVitaEcharts(vita)
  372. let pageBtm = this.$refs.pageBtm
  373. this.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
  374. let rightOne = this.$refs.rightOne
  375. this.initLineRight(rightOne, { value: 50, total: 118 })
  376. let rightTwo = this.$refs.rightTwo
  377. this.initLineRight(rightTwo, { value: 30, total: 118 })
  378. let rightThree = this.$refs.rightThree
  379. this.initLineRight(rightThree, { value: 20, total: 118 })
  380. let rightFour = this.$refs.rightFour
  381. this.initLineRight(rightFour, { value: 12, total: 118 })
  382. let rightFive = this.$refs.rightFive
  383. this.initLineRight(rightFive, { value: 6, total: 118 })
  384. let c1 = this.$refs.c1
  385. this.initRightCycle(c1, 40)
  386. let c2 = this.$refs.c2
  387. this.initRightCycle(c2, 25)
  388. let c3 = this.$refs.c3
  389. this.initRightCycle(c3, 20)
  390. let c4 = this.$refs.c4
  391. this.initRightCycle(c4, 10)
  392. let c5 = this.$refs.c5
  393. this.initRightCycle(c5, 5)
  394. setTimeout(() => {
  395. let itemContent = document.getElementById("itemContent")
  396. let target = itemContent.getElementsByClassName("row-item")
  397. let targetList = target.item(0)
  398. targetList.style.background = "#302e2d50"
  399. targetList.style.color = "#E1AF27"
  400. }, 0)
  401. setTimeout(() => {
  402. that.classChange = true
  403. }, 5000);
  404. setInterval(() => {
  405. let that = this
  406. that.treeList.forEach(item => {
  407. item.flag = false
  408. })
  409. if (that.treeIndex > that.treeList.length - 1) {
  410. that.treeIndex = 0
  411. that.treeList[that.treeIndex].flag = true
  412. } else {
  413. that.treeList[that.treeIndex].flag = true
  414. that.treeIndex = that.treeIndex + 1
  415. }
  416. }, 2000)
  417. // setInterval(()=>{
  418. // if(that.configIndex > that.config1.data.length - 1){
  419. // that.configIndex = 0
  420. // return
  421. // } else {
  422. // that.configIndex = that.configIndex + 1
  423. // return
  424. // }
  425. // },5000)
  426. })
  427. this.leftTime = setInterval(() => {
  428. that.leftList.forEach((item, index) => {
  429. item.flag = !item.flag
  430. if(item.flag){
  431. if (index == 0) {
  432. that.leftFlag = true
  433. } else {
  434. that.leftFlag = false
  435. setTimeout(() => {
  436. let leftChange = that.$refs.leftChange
  437. that.initRoseEcharts(leftChange)
  438. })
  439. }
  440. }
  441. })
  442. }, 5000)
  443. this.rightTime = setInterval(()=>{
  444. that.rightList.forEach((item,index)=>{
  445. item.flag = !item.flag
  446. if(item.flag){
  447. that.rightIndex = index
  448. }
  449. })
  450. },5000)
  451. },
  452. methods: {
  453. initDownholeEcharts(el, data) {
  454. this.downhole = echarts.init(el);
  455. let series = []
  456. let grid = {
  457. top: "15%",
  458. bottom: 50,//也可设置left和right设置距离来控制图表的大小
  459. left: "3%",
  460. right: "1%"
  461. }
  462. option = {
  463. tooltip: {
  464. show: true,
  465. trigger: 'axis',
  466. textStyle: {
  467. fontSize: 30,
  468. color: '#A3E2F4'
  469. },
  470. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  471. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  472. }
  473. },
  474. grid,
  475. legend: {
  476. data: ["招聘人数", "报名人数", "录用人数"],
  477. align: 'left',
  478. itemGap: 50,
  479. right: 500,
  480. y: '2%',
  481. icon: 'rect',
  482. textStyle: {
  483. color: "#fff",
  484. fontSize: 30
  485. }
  486. },
  487. xAxis: {
  488. axisTick: {
  489. show: false,
  490. },
  491. axisLine: {
  492. show: false,
  493. },
  494. axisLabel: {
  495. interval: 0,
  496. show: true,
  497. fontSize: 30,
  498. textStyle: {
  499. color: "#fff" //X轴文字颜色
  500. },
  501. },
  502. data: data.x,
  503. },
  504. yAxis: {
  505. type: "value",
  506. name: "人",
  507. gridIndex: 0,
  508. // splitNumber: 4,
  509. splitLine: {
  510. show: false,
  511. lineStyle: {
  512. color: '#A3C0DF',
  513. width: 1
  514. },
  515. },
  516. nameTextStyle: {
  517. fontSize: 30,
  518. },
  519. axisTick: {
  520. show: false
  521. },
  522. axisLine: {
  523. show: false,
  524. lineStyle: {
  525. color: '#A3C0DF'
  526. }
  527. },
  528. axisLabel: {
  529. show: true,
  530. margin: 14,
  531. fontSize: 28,
  532. textStyle: {
  533. color: "#fff" //X轴文字颜色
  534. }
  535. },
  536. },
  537. series: [{
  538. type: 'bar',
  539. name: "招聘人数",
  540. barWidth: 26,
  541. itemStyle: {
  542. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  543. {
  544. offset: 1,
  545. color: '#40A9FF',
  546. },
  547. {
  548. offset: 0,
  549. color: '#082049',
  550. },
  551. ]),
  552. },
  553. data: data.y1,
  554. }, {
  555. type: 'bar',
  556. name: "报名人数",
  557. barWidth: 26,
  558. itemStyle: {
  559. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  560. {
  561. offset: 1,
  562. color: '#EAE179',
  563. },
  564. {
  565. offset: 0,
  566. color: '#082049',
  567. },
  568. ]),
  569. },
  570. data: data.y2,
  571. }, {
  572. type: 'bar',
  573. name: "录用人数",
  574. barWidth: 26,
  575. itemStyle: {
  576. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  577. {
  578. offset: 1,
  579. color: '#6A83FF',
  580. },
  581. {
  582. offset: 0,
  583. color: '#082049',
  584. },
  585. ]),
  586. },
  587. data: data.y3,
  588. }]
  589. };
  590. this.downhole.setOption(option);
  591. tools.loopShowTooltip(this.downhole, option, {
  592. nterval: 2000,
  593. loopSeries: true,
  594. });
  595. },
  596. scrollChange(index) {
  597. this.rollFlag = false;
  598. this.rollTitle = "山西焦煤西坪矿井下操作工招聘公告" + index,
  599. setTimeout(() => {
  600. this.rollFlag = true
  601. })
  602. },
  603. initRightCycle(el, data) {
  604. var getvalue = [data];
  605. let chat = echarts.init(el)
  606. option = {
  607. title: {
  608. text: getvalue + '%',
  609. textStyle: {
  610. color: '#fff',
  611. fontSize: 20
  612. },
  613. itemGap: 20,
  614. left: '55%',
  615. top: '38%'
  616. },
  617. // tooltip: {
  618. // formatter: function (params) {
  619. // return '<span style="color: #fff;">综合得分:' + getvalue + '分</span>';
  620. // }
  621. // },
  622. angleAxis: {
  623. max: 100,
  624. clockwise: true, // 逆时针
  625. // 隐藏刻度线
  626. show: false
  627. },
  628. radiusAxis: {
  629. type: 'category',
  630. show: true,
  631. axisLabel: {
  632. show: false,
  633. },
  634. axisLine: {
  635. show: false,
  636. },
  637. axisTick: {
  638. show: false
  639. },
  640. },
  641. polar: {
  642. center: ['70%', '50%'],
  643. radius: ['60%', '75%'],
  644. // radius: '100%' //图形大小
  645. },
  646. series: [{
  647. type: 'bar',
  648. data: getvalue,
  649. showBackground: true,
  650. backgroundStyle: {
  651. color: '#BDEBFF',
  652. },
  653. coordinateSystem: 'polar',
  654. roundCap: true,
  655. barWidth: 30,
  656. itemStyle: {
  657. normal: {
  658. opacity: 1,
  659. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  660. offset: 0,
  661. color: '#25BFFF'
  662. }, {
  663. offset: 1,
  664. color: '#5284DE'
  665. }]),
  666. shadowBlur: 5,
  667. shadowColor: '#2A95F9',
  668. }
  669. },
  670. }]
  671. };
  672. chat.setOption(option)
  673. },
  674. initLineRight(el, data) {
  675. let that = this;
  676. let myChart = echarts.init(el);
  677. let nameList = ["a"];
  678. let valueList = [data.value];
  679. let total = data.total; // 数据总数
  680. var category = nameList.map((item, index) => {
  681. return {
  682. value: valueList[index],
  683. itemStyle: {
  684. color: new echarts.graphic.LinearGradient(
  685. 1,
  686. 0,
  687. 0,
  688. 1,
  689. [
  690. {
  691. offset: 0,
  692. color: "#40A9FF50",
  693. },
  694. {
  695. offset: 1,
  696. color: "#40A9FF",
  697. },
  698. ],
  699. false
  700. ),
  701. },
  702. };
  703. });
  704. var totalList = [];
  705. var totalBorderList = [];
  706. nameList.map((item, index) => {
  707. totalList.push({
  708. value: total,
  709. itemStyle: {
  710. color: "rgba(51, 147, 236, 0.29)",
  711. },
  712. });
  713. totalBorderList.push({
  714. value: total,
  715. itemStyle: {
  716. borderColor: "rgba(51, 147, 236, 0.29)",
  717. color: "transparent",
  718. },
  719. });
  720. });
  721. var datas = [];
  722. category.forEach((value) => {
  723. datas.push(value.value);
  724. });
  725. option = {
  726. // backgroundColor: 'rgb(231,238,249)',
  727. xAxis: {
  728. max: total,
  729. splitLine: {
  730. show: false,
  731. },
  732. axisLine: {
  733. show: false,
  734. },
  735. axisLabel: {
  736. show: false,
  737. },
  738. axisTick: {
  739. show: false,
  740. },
  741. },
  742. grid: {
  743. left: "1%",
  744. top: 20, // 设置条形图的边距
  745. right: "20%",
  746. bottom: 20,
  747. },
  748. yAxis: [
  749. {
  750. type: "category",
  751. inverse: false,
  752. data: nameList,
  753. axisLine: {
  754. show: false,
  755. },
  756. axisTick: {
  757. show: false,
  758. },
  759. axisLabel: {
  760. show: false,
  761. },
  762. },
  763. ],
  764. series: [
  765. {
  766. // 内
  767. type: "bar",
  768. barWidth: 16,
  769. barGap: "20%",
  770. silent: true,
  771. // label: {
  772. // normal: {
  773. // formatter: (item) => {
  774. // return `${item['name']}:${item['value']} `;
  775. // },
  776. // textStyle: {
  777. // color: 'rgba(105, 120, 136, 1)',
  778. // fontSize: 14,
  779. // },
  780. // position: [0, '-25px'],
  781. // show: true,
  782. // },
  783. // },
  784. data: category,
  785. z: 1,
  786. itemStyle: {
  787. normal: {
  788. color: new echarts.graphic.LinearGradient(
  789. 1,
  790. 0,
  791. 0,
  792. 1,
  793. [
  794. {
  795. offset: 0,
  796. color: "rgba(81, 193, 156, 1)",
  797. },
  798. {
  799. offset: 1,
  800. color: "rgba(234, 177, 100, 1)",
  801. },
  802. ],
  803. false
  804. ),
  805. },
  806. },
  807. animationEasing: "elasticOut",
  808. },
  809. {
  810. // 分隔
  811. type: "pictorialBar",
  812. itemStyle: {
  813. normal: {
  814. color: "#143362",
  815. },
  816. },
  817. symbolRepeat: "fixed",
  818. symbolMargin: 8,
  819. symbol: "rect",
  820. symbolClip: false,
  821. symbolSize: [4, 20],
  822. symbolPosition: "start",
  823. symbolOffset: [0, -2],
  824. symbolBoundingData: total,
  825. data: [total, total, total, total],
  826. z: 2,
  827. animationEasing: "elasticOut",
  828. },
  829. {
  830. // label
  831. type: "pictorialBar",
  832. symbolBoundingData: total,
  833. itemStyle: {
  834. normal: {
  835. color: "none",
  836. },
  837. },
  838. label: {
  839. normal: {
  840. formatter: (params) => {
  841. var text;
  842. text = `${((params["data"] * 100) / total).toFixed(0)}人`;
  843. return text;
  844. },
  845. textStyle: {
  846. // 图列内容样式
  847. fontSize: "30",
  848. fontWeight: 800,
  849. },
  850. position: "right",
  851. offset: [0, -3],
  852. distance: 10, // 向右偏移位置
  853. show: true,
  854. color: "#FFF",
  855. },
  856. },
  857. data: datas,
  858. z: 0,
  859. },
  860. {
  861. name: "外框",
  862. type: "bar",
  863. barGap: "-130%", // 设置外框粗细
  864. data: totalBorderList,
  865. barWidth: 26,
  866. itemStyle: {
  867. normal: {
  868. // barBorderRadius: [5, 5, 5, 5],
  869. borderWidth: 1, // 边框宽度
  870. borderColor: "rgb(51, 147, 236)", // 边框色
  871. color: "rgb(231,238,249)",
  872. },
  873. },
  874. z: 0,
  875. },
  876. ],
  877. };
  878. //轮播
  879. // tools.loopShowTooltip(leftEcharts1, option, {
  880. // interval: 2000,
  881. // loopSeries: true,
  882. // });
  883. //注册
  884. myChart.setOption(option);
  885. },
  886. initVitaEcharts(el, data) {
  887. this.vitaEcharts = echarts.init(el)
  888. option = {
  889. tooltip: {
  890. show: true,
  891. trigger: 'axis',
  892. textStyle: {
  893. fontSize: 30,
  894. color: '#A3E2F4'
  895. },
  896. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  897. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  898. },
  899. formatter: "{a} : {c}份"
  900. },
  901. animation: true,
  902. grid: {
  903. top: "12%",
  904. bottom: "8%",
  905. right: "2%"
  906. },
  907. xAxis: {
  908. data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
  909. axisLine: {
  910. show: false //隐藏X轴轴线
  911. },
  912. axisTick: {
  913. show: false //隐藏X轴轴线
  914. },
  915. splitLine: {
  916. show: false,
  917. lineStyle: {
  918. color: "rgba(77, 128, 254, 0.2)",
  919. width: 2
  920. }
  921. },
  922. axisLabel: {
  923. show: true,
  924. interval: 0,
  925. fontSize: 24,
  926. textStyle: {
  927. color: "#fff" //X轴文字颜色
  928. }
  929. }
  930. },
  931. yAxis: [
  932. {
  933. name: "投递/份",
  934. type: "value",
  935. gridIndex: 0,
  936. min: 0,
  937. max: 100,
  938. interval: 25,
  939. // splitNumber: 4,
  940. splitLine: {
  941. show: false,
  942. lineStyle: {
  943. color: "rgba(77, 128, 254, 0.2)",
  944. width: 2
  945. }
  946. },
  947. axisTick: {
  948. show: false
  949. },
  950. nameTextStyle: {
  951. fontSize: 28,
  952. color: "#B6BFCE"
  953. },
  954. axisLine: {
  955. show: false,
  956. lineStyle: {
  957. color: "rgba(77, 128, 254, 0.2)"
  958. }
  959. },
  960. axisLabel: {
  961. show: true,
  962. margin: 14,
  963. fontSize: 26,
  964. textStyle: {
  965. color: "#65D5FF"
  966. }
  967. }
  968. }
  969. ],
  970. series: [
  971. {
  972. name: "简历投递数",
  973. type: "bar",
  974. barWidth: 16,
  975. itemStyle: {
  976. normal: {
  977. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  978. {
  979. offset: 1,
  980. color: "#004E8E"
  981. },
  982. {
  983. offset: 0,
  984. color: "#40A9FF"
  985. }
  986. ])
  987. }
  988. },
  989. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  990. z: 10,
  991. zlevel: 0
  992. },
  993. {
  994. // 分隔
  995. type: "pictorialBar",
  996. itemStyle: {
  997. normal: {
  998. color: "#0F375F"
  999. }
  1000. },
  1001. symbolRepeat: "fixed",
  1002. symbolMargin: 6,
  1003. symbol: "rect",
  1004. symbolClip: true,
  1005. symbolSize: [18, 2],
  1006. symbolPosition: "start",
  1007. symbolOffset: [1, 1],
  1008. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  1009. width: 2,
  1010. z: 0,
  1011. zlevel: 1
  1012. },
  1013. {
  1014. name: "外框",
  1015. type: "bar",
  1016. barGap: "-110%", // 设置外框粗细
  1017. data: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
  1018. barWidth: 16,
  1019. itemStyle: {
  1020. normal: {
  1021. color: "transparent", // 填充色
  1022. // barBorderRadius: 0, //圆角半径
  1023. label: {
  1024. // 标签显示位置
  1025. show: false,
  1026. position: "top" // insideTop 或者横向的 insideLeft
  1027. }
  1028. }
  1029. },
  1030. z: 0
  1031. },
  1032. {
  1033. name: "背影",
  1034. type: "line",
  1035. smooth: true, //平滑曲线显示
  1036. showAllSymbol: false, //显示所有图形。
  1037. symbolSize: 0,
  1038. lineStyle: {
  1039. width: 0
  1040. },
  1041. areaStyle: {
  1042. color: "rgba(0, 151, 251, 0.1)"
  1043. },
  1044. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  1045. z: 5
  1046. }
  1047. ],
  1048. dataZoom: [
  1049. {
  1050. type: "slider",
  1051. show: false,
  1052. xAxisIndex: [0],
  1053. endValue: 12,
  1054. startValue: 0
  1055. }
  1056. ]
  1057. }
  1058. this.vitaEcharts.setOption(option)
  1059. tools.loopShowTooltip(this.vitaEcharts, option, {
  1060. nterval: 2000,
  1061. loopSeries: true,
  1062. });
  1063. },
  1064. initRoseEcharts(el, myData = {
  1065. number: ['10', '13', '20'],
  1066. titlename: ["地面", "辅助", "一线"],
  1067. }) {
  1068. this.roseEcharts = echarts.init(el)
  1069. var colorArr = ["#218de0", "#01cbb3", "#85e647", "#5d5cda", "#f6d54a", "#f845f1"];
  1070. var colorAlpha = ['rgba(60,170,211,0.05)', 'rgba(1,203,179,0.05)', 'rgba(133,230,71,0.05)', 'rgba(93,92,218,0.05)', 'rgba(5,197,176,0.05)', 'rgba(194,153,39,0.05)'];
  1071. var myProperty = {
  1072. titlefontsize: 30,
  1073. polarradius: '60%',
  1074. pieradius: '60%',
  1075. length1: 10,
  1076. length2: 55,
  1077. };
  1078. var data = [];
  1079. var total = 0;
  1080. for (var i = 0; i < myData.number.length; i++) {
  1081. total += (Number)(myData.number[i]);
  1082. }
  1083. for (let index = 0; index < myData.titlename.length; index++) {
  1084. data.push({
  1085. value: myData.number[index],
  1086. name: myData.titlename[index],
  1087. itemStyle: {
  1088. normal: {
  1089. borderColor: colorArr[index],
  1090. borderWidth: 2,
  1091. shadowBlur: 20,
  1092. shadowColor: colorArr[index],
  1093. shadowOffsetx: 25,
  1094. shadowOffsety: 20,
  1095. color: colorAlpha[index]
  1096. }
  1097. },
  1098. label: {
  1099. normal: {
  1100. formatter: ['{b|{b}: {c}个}', '{d| {d}%}'].join('\n'), //join函数将数组中的元素用选择的分隔符拼接成一个字符串
  1101. rich: {
  1102. b: {
  1103. color: colorArr[index],
  1104. fontSize: myProperty.titlefontsize,
  1105. lineHeight: 20
  1106. },
  1107. d: {
  1108. color: '#d0fffc',
  1109. fontSize: myProperty.titlefontsize, //手动输入的字体大小
  1110. height: 50,
  1111. align: 'center', //这里是控制文本的位置 此时是居中
  1112. },
  1113. },
  1114. }
  1115. },
  1116. })
  1117. }
  1118. option = {
  1119. grid: {
  1120. left: -100,
  1121. top: 50,
  1122. bottom: 10,
  1123. right: 10,
  1124. containLabel: true
  1125. },
  1126. tooltip: {
  1127. show: true,
  1128. trigger: 'item',
  1129. textStyle: {
  1130. fontSize: 30,
  1131. color: '#A3E2F4'
  1132. },
  1133. },
  1134. polar: {
  1135. // radius: ['0%','60%'],
  1136. //radius:[0,200]
  1137. radius: myProperty.polarradius,
  1138. },
  1139. angleAxis: {
  1140. interval: 1,
  1141. type: 'category',
  1142. data: [],
  1143. z: 10,
  1144. axisLine: {
  1145. show: false,
  1146. lineStyle: {
  1147. color: "#0B4A6B",
  1148. width: 1,
  1149. type: "solid"
  1150. },
  1151. },
  1152. axisLabel: {
  1153. interval: 0,
  1154. show: true,
  1155. color: "#0B4A6B",
  1156. margin: 8,
  1157. fontSize: 16
  1158. },
  1159. },
  1160. radiusAxis: {
  1161. min: 20,
  1162. max: 120,
  1163. interval: 20,
  1164. axisLine: {
  1165. show: false,
  1166. lineStyle: {
  1167. color: "#0B3E5E",
  1168. width: 1,
  1169. type: "solid"
  1170. },
  1171. },
  1172. axisLabel: {
  1173. formatter: '{value} %',
  1174. show: false,
  1175. padding: [0, 0, 20, 0],
  1176. color: "#0B3E5E",
  1177. fontSize: 16
  1178. },
  1179. splitLine: {
  1180. lineStyle: {
  1181. color: "#07385e",
  1182. width: 2,
  1183. type: "dashed"
  1184. }
  1185. },
  1186. },
  1187. calculable: true,
  1188. series: [{
  1189. stack: 'a',
  1190. type: 'pie',
  1191. radius: myProperty.pieradius,
  1192. roseType: 'radius',
  1193. zlevel: 10,
  1194. startAngle: 100,
  1195. labelLine: {
  1196. normal: {
  1197. show: true,
  1198. length: myProperty.length1,
  1199. length2: myProperty.length2,
  1200. lineStyle: {
  1201. color: '#0096b1'
  1202. }
  1203. },
  1204. emphasis: {
  1205. show: false
  1206. }
  1207. },
  1208. data: data,
  1209. },]
  1210. };
  1211. this.roseEcharts.setOption(option)
  1212. tools.loopShowTooltip(this.roseEcharts, option, {
  1213. nterval: 2000,
  1214. loopSeries: true,
  1215. });
  1216. },
  1217. handleClick(from, type) {
  1218. this.handleMark()
  1219. this.from = from
  1220. this.type = type
  1221. let that = this;
  1222. if (from == "timeList1" && type == 1) {
  1223. that.markStyle = {
  1224. right: "1%",
  1225. bottom: "4%"
  1226. }
  1227. } else if (from == "timeList1" && type == 0) {
  1228. that.markStyle = {
  1229. right: "5%",
  1230. bottom: "4%"
  1231. }
  1232. } else if (from == "timeList2" && type == 0) {
  1233. that.markStyle = {
  1234. right: "87%",
  1235. bottom: "43%"
  1236. }
  1237. } else if (from == "timeList2" && type == 1) {
  1238. that.markStyle = {
  1239. right: "84%",
  1240. bottom: "43%"
  1241. }
  1242. }
  1243. this.showMark = true
  1244. this.showSelect = true
  1245. },
  1246. handleMark() {
  1247. this.showMark = false
  1248. this.showSelect = false
  1249. this.showMonth = false
  1250. },
  1251. handleOption(item) {
  1252. this[this.from][this.type] = item
  1253. this.handleMark()
  1254. },
  1255. handleMonthOption(item) {
  1256. this.monthItem = item
  1257. this.handleMark()
  1258. },
  1259. handleMonth() {
  1260. this.handleMark()
  1261. this.showMark = true
  1262. this.showMonth = true
  1263. },
  1264. ortherEcharts(el, data) {
  1265. this.vitaEcharts = echarts.init(el);
  1266. option = {
  1267. tooltip: {
  1268. show: true,
  1269. trigger: 'axis',
  1270. textStyle: {
  1271. fontSize: 30,
  1272. color: '#A3E2F4'
  1273. },
  1274. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  1275. type: 'none' // 默认为直线,可选为:'line' | 'shadow'
  1276. }
  1277. },
  1278. grid: {
  1279. top: '8%',
  1280. left: '1%',
  1281. right: '1%',
  1282. bottom: '8%',
  1283. containLabel: true,
  1284. },
  1285. xAxis: [{
  1286. type: 'category',
  1287. boundaryGap: false,
  1288. axisLine: { //坐标轴轴线相关设置。数学上的x轴
  1289. show: false,
  1290. lineStyle: {
  1291. color: '#233e64'
  1292. },
  1293. },
  1294. axisLabel: { //坐标轴刻度标签的相关设置
  1295. textStyle: {
  1296. color: '#fff',
  1297. fontSize: 26,
  1298. margin: 15,
  1299. },
  1300. },
  1301. axisTick: { show: false, },
  1302. data: ['6.1', '6.2', '6.3', '6.4', '6.5', '6.6', '6.7'],
  1303. }],
  1304. yAxis: [{
  1305. type: 'value',
  1306. min: 0,
  1307. max: 140,
  1308. splitLine: {
  1309. show: true,
  1310. lineStyle: {
  1311. color: '#233e64'
  1312. }
  1313. },
  1314. axisLine: { show: false, },
  1315. axisLabel: {
  1316. margin: 20,
  1317. textStyle: {
  1318. color: '#fff',
  1319. fontSize: 24,
  1320. },
  1321. },
  1322. axisTick: { show: false, },
  1323. }],
  1324. series: [{
  1325. name: '异常流量',
  1326. type: 'line',
  1327. smooth: true, //是否平滑曲线显示
  1328. symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
  1329. symbolSize: 0,
  1330. lineStyle: {
  1331. normal: {
  1332. color: "#3deaff" // 线条颜色
  1333. }
  1334. },
  1335. areaStyle: { //区域填充样式
  1336. normal: {
  1337. //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
  1338. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1339. { offset: 0, color: 'rgba(61,234,255, 0.9)' },
  1340. { offset: 0.7, color: 'rgba(61,234,255, 0.1)' }
  1341. ], false),
  1342. shadowColor: 'rgba(53,142,215, 0.9)', //阴影颜色
  1343. shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
  1344. }
  1345. },
  1346. data: [90, 105, 84, 125, 110, 92, 98]
  1347. }]
  1348. };
  1349. this.vitaEcharts.setOption(option);
  1350. tools.loopShowTooltip(this.vitaEcharts, option, {
  1351. nterval: 2000,
  1352. loopSeries: true,
  1353. });
  1354. },
  1355. hanleIcon() {
  1356. this.vitaEcharts.dispose()
  1357. this.downholeFlag = !this.downholeFlag
  1358. if (this.downholeFlag) {
  1359. setTimeout(() => {
  1360. let vita = this.$refs.vita
  1361. this.initVitaEcharts(vita)
  1362. })
  1363. }
  1364. // if (this.echartsIndex == 1) {
  1365. // this.ortherEcharts(vita)
  1366. // this.echartsIndex = 2
  1367. // } else {
  1368. // this.echartsIndex = 1
  1369. // }
  1370. },
  1371. handleChangeType(type, index) {
  1372. let that = this;
  1373. if (type) {
  1374. that.rightTime && clearInterval(that.rightTime)
  1375. that.rightList.forEach(item => {
  1376. item.flag = false
  1377. })
  1378. that.rightList[index].flag = true
  1379. that.rightIndex = index
  1380. this.rightTime = setInterval(()=>{
  1381. that.rightList.forEach((item,index)=>{
  1382. item.flag = !item.flag
  1383. if(item.flag){
  1384. that.rightIndex = index
  1385. }
  1386. })
  1387. },5000)
  1388. } else {
  1389. that.leftTime && clearInterval(that.leftTime)
  1390. that.leftList.forEach(item => {
  1391. item.flag = false
  1392. })
  1393. that.leftList[index].flag = true
  1394. that.leftIndex = index
  1395. if (index == 0) {
  1396. that.leftFlag = true
  1397. } else {
  1398. that.leftFlag = false
  1399. setTimeout(() => {
  1400. let leftChange = that.$refs.leftChange
  1401. that.initRoseEcharts(leftChange)
  1402. })
  1403. }
  1404. that.leftTime = setInterval(() => {
  1405. that.leftList.forEach((item, index) => {
  1406. item.flag = !item.flag
  1407. if(item.flag){
  1408. if (index == 0) {
  1409. that.leftFlag = true
  1410. } else {
  1411. that.leftFlag = false
  1412. setTimeout(() => {
  1413. let leftChange = that.$refs.leftChange
  1414. that.initRoseEcharts(leftChange)
  1415. })
  1416. }
  1417. }
  1418. })
  1419. }, 5000)
  1420. }
  1421. },
  1422. },
  1423. })