humanResources.js 57 KB

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