humanResources.js 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406
  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. config1: {
  91. waitTime: 5000,
  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: 5,
  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: 5,
  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. {
  243. name: "双选场次",
  244. value: 30,
  245. unit: "场",
  246. icon: "../images/humanResources/times.png"
  247. },
  248. {
  249. name: "参与人数",
  250. value: 3000,
  251. unit: "人",
  252. icon: "../images/humanResources/user.png"
  253. }
  254. ],
  255. employmentList1: {
  256. waitTime: 5000,
  257. header: ["序号", "姓名", "性别", "身份证号", "拟录单位"],
  258. rowNum: 4,
  259. headerHeight: 55,
  260. columnWidth: [100, 100, 100, 280],
  261. data: [
  262. ],
  263. align: ["center", "center", "center", "center", "center"],
  264. headerBGC: "#69c1ff2d",
  265. oddRowBGC: "rgba(105, 193, 255, 0)",
  266. evenRowBGC: "#69c1ff21",
  267. hoverPause: false,
  268. },
  269. employmentList2: {
  270. waitTime: 5000,
  271. header: ["序号", "姓名", "性别", "身份证号", "拟录单位"],
  272. rowNum: 4,
  273. headerHeight: 55,
  274. columnWidth: [100, 100, 100, 280],
  275. data: [
  276. ],
  277. align: ["center", "center", "center", "center", "center"],
  278. headerBGC: "#69c1ff2d",
  279. oddRowBGC: "rgba(105, 193, 255, 0)",
  280. evenRowBGC: "#69c1ff21",
  281. hoverPause: false,
  282. },
  283. typeList: {
  284. waitTime: 2000,
  285. header: ["单位名称", "岗位名称", "报名人数"],
  286. rowNum: 6,
  287. headerHeight: 55,
  288. columnWidth: [100, 200, 400,],
  289. data: [
  290. ["汾西矿业", "综合管理岗", "4"],
  291. ["西山煤电", "综合管理岗", "3"],
  292. ["西山煤电", "财务管理岗", "2"],
  293. ["汾西矿业", "综合管理岗", "4"],
  294. ["西山煤电", "综合管理岗", "3"],
  295. ["西山煤电", "财务管理岗", "2"],
  296. ["汾西矿业", "综合管理岗", "4"],
  297. ],
  298. align: ["center", "center", "center", "center", "center"],
  299. index: true,
  300. headerBGC: "#69c1ff2d",
  301. oddRowBGC: "rgba(105, 193, 255, 0)",
  302. evenRowBGC: "#69c1ff21",
  303. hoverPause: false,
  304. },
  305. vitaEcharts: null,
  306. newList: [],
  307. showMark: false,
  308. showSelect: false,
  309. showMonth: false,
  310. monthList,
  311. monthItem: "07",
  312. timeList1: ["2022-07", "2023-07"],
  313. timeList2: ["2022-07", "2023-07"],
  314. from: "",
  315. type: 0,
  316. echartsIndex: 1,
  317. downholeFlag: true,
  318. markStyle: {
  319. bottom: "4%",
  320. right: "5%"
  321. },
  322. rightList: [{
  323. name: "当前数",
  324. flag: true,
  325. num1: 100,
  326. num2: 60,
  327. num3: 60,
  328. }, {
  329. name: "累计数",
  330. flag: false,
  331. num1: 500,
  332. num2: 400,
  333. num3: 80,
  334. }],
  335. rightIndex: 0,
  336. leftList: [{
  337. name: "招聘岗位",
  338. flag: true
  339. }, {
  340. name: "招聘岗位种类",
  341. flag: false
  342. }],
  343. leftIndex: 0,
  344. roseEcharts: null,
  345. leftFlag: true
  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. // console.log("最后一条");
  416. // that.configIndex = 0
  417. // console.log(that.config1.data[that.configIndex]);
  418. // return
  419. // } else {
  420. // console.log(that.config1.data[that.configIndex]);
  421. // that.configIndex = that.configIndex + 1
  422. // return
  423. // }
  424. // },5000)
  425. })
  426. },
  427. methods: {
  428. initDownholeEcharts(el, data) {
  429. this.downhole = echarts.init(el);
  430. let series = []
  431. let grid = {
  432. top: "15%",
  433. bottom: 50,//也可设置left和right设置距离来控制图表的大小
  434. left: "3%",
  435. right: "1%"
  436. }
  437. option = {
  438. tooltip: {
  439. show: true,
  440. trigger: 'axis',
  441. textStyle: {
  442. fontSize: 30,
  443. color: '#A3E2F4'
  444. },
  445. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  446. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  447. }
  448. },
  449. grid,
  450. legend: {
  451. data: ["招聘人数", "报名人数", "录用人数"],
  452. align: 'left',
  453. itemGap: 50,
  454. right: 500,
  455. y: '2%',
  456. icon: 'rect',
  457. textStyle: {
  458. color: "#fff",
  459. fontSize: 30
  460. }
  461. },
  462. xAxis: {
  463. axisTick: {
  464. show: false,
  465. },
  466. axisLine: {
  467. show: false,
  468. },
  469. axisLabel: {
  470. interval: 0,
  471. show: true,
  472. fontSize: 30,
  473. textStyle: {
  474. color: "#fff" //X轴文字颜色
  475. },
  476. },
  477. data: data.x,
  478. },
  479. yAxis: {
  480. type: "value",
  481. name: "人",
  482. gridIndex: 0,
  483. // splitNumber: 4,
  484. splitLine: {
  485. show: false,
  486. lineStyle: {
  487. color: '#A3C0DF',
  488. width: 1
  489. },
  490. },
  491. nameTextStyle: {
  492. fontSize: 30,
  493. },
  494. axisTick: {
  495. show: false
  496. },
  497. axisLine: {
  498. show: false,
  499. lineStyle: {
  500. color: '#A3C0DF'
  501. }
  502. },
  503. axisLabel: {
  504. show: true,
  505. margin: 14,
  506. fontSize: 28,
  507. textStyle: {
  508. color: "#fff" //X轴文字颜色
  509. }
  510. },
  511. },
  512. series: [{
  513. type: 'bar',
  514. name: "招聘人数",
  515. barWidth: 26,
  516. itemStyle: {
  517. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  518. {
  519. offset: 1,
  520. color: '#40A9FF',
  521. },
  522. {
  523. offset: 0,
  524. color: '#082049',
  525. },
  526. ]),
  527. },
  528. data: data.y1,
  529. }, {
  530. type: 'bar',
  531. name: "报名人数",
  532. barWidth: 26,
  533. itemStyle: {
  534. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  535. {
  536. offset: 1,
  537. color: '#EAE179',
  538. },
  539. {
  540. offset: 0,
  541. color: '#082049',
  542. },
  543. ]),
  544. },
  545. data: data.y2,
  546. }, {
  547. type: 'bar',
  548. name: "录用人数",
  549. barWidth: 26,
  550. itemStyle: {
  551. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  552. {
  553. offset: 1,
  554. color: '#6A83FF',
  555. },
  556. {
  557. offset: 0,
  558. color: '#082049',
  559. },
  560. ]),
  561. },
  562. data: data.y3,
  563. }]
  564. };
  565. this.downhole.setOption(option);
  566. tools.loopShowTooltip(this.downhole, option, {
  567. nterval: 2000,
  568. loopSeries: true,
  569. });
  570. },
  571. scrollChange(index) {
  572. },
  573. initRightCycle(el, data) {
  574. var getvalue = [data];
  575. let chat = echarts.init(el)
  576. option = {
  577. title: {
  578. text: getvalue + '%',
  579. textStyle: {
  580. color: '#fff',
  581. fontSize: 20
  582. },
  583. itemGap: 20,
  584. left: '55%',
  585. top: '38%'
  586. },
  587. // tooltip: {
  588. // formatter: function (params) {
  589. // return '<span style="color: #fff;">综合得分:' + getvalue + '分</span>';
  590. // }
  591. // },
  592. angleAxis: {
  593. max: 100,
  594. clockwise: true, // 逆时针
  595. // 隐藏刻度线
  596. show: false
  597. },
  598. radiusAxis: {
  599. type: 'category',
  600. show: true,
  601. axisLabel: {
  602. show: false,
  603. },
  604. axisLine: {
  605. show: false,
  606. },
  607. axisTick: {
  608. show: false
  609. },
  610. },
  611. polar: {
  612. center: ['70%', '50%'],
  613. radius: ['60%', '75%'],
  614. // radius: '100%' //图形大小
  615. },
  616. series: [{
  617. type: 'bar',
  618. data: getvalue,
  619. showBackground: true,
  620. backgroundStyle: {
  621. color: '#BDEBFF',
  622. },
  623. coordinateSystem: 'polar',
  624. roundCap: true,
  625. barWidth: 30,
  626. itemStyle: {
  627. normal: {
  628. opacity: 1,
  629. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  630. offset: 0,
  631. color: '#25BFFF'
  632. }, {
  633. offset: 1,
  634. color: '#5284DE'
  635. }]),
  636. shadowBlur: 5,
  637. shadowColor: '#2A95F9',
  638. }
  639. },
  640. }]
  641. };
  642. chat.setOption(option)
  643. },
  644. initLineRight(el, data) {
  645. let that = this;
  646. let myChart = echarts.init(el);
  647. let nameList = ["a"];
  648. let valueList = [data.value];
  649. let total = data.total; // 数据总数
  650. var category = nameList.map((item, index) => {
  651. return {
  652. value: valueList[index],
  653. itemStyle: {
  654. color: new echarts.graphic.LinearGradient(
  655. 1,
  656. 0,
  657. 0,
  658. 1,
  659. [
  660. {
  661. offset: 0,
  662. color: "#40A9FF50",
  663. },
  664. {
  665. offset: 1,
  666. color: "#40A9FF",
  667. },
  668. ],
  669. false
  670. ),
  671. },
  672. };
  673. });
  674. var totalList = [];
  675. var totalBorderList = [];
  676. nameList.map((item, index) => {
  677. totalList.push({
  678. value: total,
  679. itemStyle: {
  680. color: "rgba(51, 147, 236, 0.29)",
  681. },
  682. });
  683. totalBorderList.push({
  684. value: total,
  685. itemStyle: {
  686. borderColor: "rgba(51, 147, 236, 0.29)",
  687. color: "transparent",
  688. },
  689. });
  690. });
  691. var datas = [];
  692. category.forEach((value) => {
  693. datas.push(value.value);
  694. });
  695. option = {
  696. // backgroundColor: 'rgb(231,238,249)',
  697. xAxis: {
  698. max: total,
  699. splitLine: {
  700. show: false,
  701. },
  702. axisLine: {
  703. show: false,
  704. },
  705. axisLabel: {
  706. show: false,
  707. },
  708. axisTick: {
  709. show: false,
  710. },
  711. },
  712. grid: {
  713. left: "1%",
  714. top: 20, // 设置条形图的边距
  715. right: "20%",
  716. bottom: 20,
  717. },
  718. yAxis: [
  719. {
  720. type: "category",
  721. inverse: false,
  722. data: nameList,
  723. axisLine: {
  724. show: false,
  725. },
  726. axisTick: {
  727. show: false,
  728. },
  729. axisLabel: {
  730. show: false,
  731. },
  732. },
  733. ],
  734. series: [
  735. {
  736. // 内
  737. type: "bar",
  738. barWidth: 16,
  739. barGap: "20%",
  740. silent: true,
  741. // label: {
  742. // normal: {
  743. // formatter: (item) => {
  744. // return `${item['name']}:${item['value']} `;
  745. // },
  746. // textStyle: {
  747. // color: 'rgba(105, 120, 136, 1)',
  748. // fontSize: 14,
  749. // },
  750. // position: [0, '-25px'],
  751. // show: true,
  752. // },
  753. // },
  754. data: category,
  755. z: 1,
  756. itemStyle: {
  757. normal: {
  758. color: new echarts.graphic.LinearGradient(
  759. 1,
  760. 0,
  761. 0,
  762. 1,
  763. [
  764. {
  765. offset: 0,
  766. color: "rgba(81, 193, 156, 1)",
  767. },
  768. {
  769. offset: 1,
  770. color: "rgba(234, 177, 100, 1)",
  771. },
  772. ],
  773. false
  774. ),
  775. },
  776. },
  777. animationEasing: "elasticOut",
  778. },
  779. {
  780. // 分隔
  781. type: "pictorialBar",
  782. itemStyle: {
  783. normal: {
  784. color: "#143362",
  785. },
  786. },
  787. symbolRepeat: "fixed",
  788. symbolMargin: 8,
  789. symbol: "rect",
  790. symbolClip: false,
  791. symbolSize: [4, 20],
  792. symbolPosition: "start",
  793. symbolOffset: [0, -2],
  794. symbolBoundingData: total,
  795. data: [total, total, total, total],
  796. z: 2,
  797. animationEasing: "elasticOut",
  798. },
  799. {
  800. // label
  801. type: "pictorialBar",
  802. symbolBoundingData: total,
  803. itemStyle: {
  804. normal: {
  805. color: "none",
  806. },
  807. },
  808. label: {
  809. normal: {
  810. formatter: (params) => {
  811. var text;
  812. text = `${((params["data"] * 100) / total).toFixed(0)}人`;
  813. return text;
  814. },
  815. textStyle: {
  816. // 图列内容样式
  817. fontSize: "30",
  818. fontWeight: 800,
  819. },
  820. position: "right",
  821. offset: [0, -3],
  822. distance: 10, // 向右偏移位置
  823. show: true,
  824. color: "#FFF",
  825. },
  826. },
  827. data: datas,
  828. z: 0,
  829. },
  830. {
  831. name: "外框",
  832. type: "bar",
  833. barGap: "-130%", // 设置外框粗细
  834. data: totalBorderList,
  835. barWidth: 26,
  836. itemStyle: {
  837. normal: {
  838. // barBorderRadius: [5, 5, 5, 5],
  839. borderWidth: 1, // 边框宽度
  840. borderColor: "rgb(51, 147, 236)", // 边框色
  841. color: "rgb(231,238,249)",
  842. },
  843. },
  844. z: 0,
  845. },
  846. ],
  847. };
  848. //轮播
  849. // tools.loopShowTooltip(leftEcharts1, option, {
  850. // interval: 2000,
  851. // loopSeries: true,
  852. // });
  853. //注册
  854. myChart.setOption(option);
  855. },
  856. initVitaEcharts(el, data) {
  857. this.vitaEcharts = echarts.init(el)
  858. option = {
  859. tooltip: {
  860. show: true,
  861. trigger: 'axis',
  862. textStyle: {
  863. fontSize: 30,
  864. color: '#A3E2F4'
  865. },
  866. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  867. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  868. },
  869. formatter: "{a} : {c}份"
  870. },
  871. animation: true,
  872. grid: {
  873. top: "12%",
  874. bottom: "8%",
  875. right: "2%"
  876. },
  877. xAxis: {
  878. data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
  879. axisLine: {
  880. show: false //隐藏X轴轴线
  881. },
  882. axisTick: {
  883. show: false //隐藏X轴轴线
  884. },
  885. splitLine: {
  886. show: false,
  887. lineStyle: {
  888. color: "rgba(77, 128, 254, 0.2)",
  889. width: 2
  890. }
  891. },
  892. axisLabel: {
  893. show: true,
  894. interval: 0,
  895. fontSize: 24,
  896. textStyle: {
  897. color: "#fff" //X轴文字颜色
  898. }
  899. }
  900. },
  901. yAxis: [
  902. {
  903. name:"投递/份",
  904. type: "value",
  905. gridIndex: 0,
  906. min: 0,
  907. max: 100,
  908. interval: 25,
  909. // splitNumber: 4,
  910. splitLine: {
  911. show: false,
  912. lineStyle: {
  913. color: "rgba(77, 128, 254, 0.2)",
  914. width: 2
  915. }
  916. },
  917. axisTick: {
  918. show: false
  919. },
  920. nameTextStyle:{
  921. fontSize: 28,
  922. color: "#B6BFCE"
  923. },
  924. axisLine: {
  925. show: false,
  926. lineStyle: {
  927. color: "rgba(77, 128, 254, 0.2)"
  928. }
  929. },
  930. axisLabel: {
  931. show: true,
  932. margin: 14,
  933. fontSize: 26,
  934. textStyle: {
  935. color: "#65D5FF"
  936. }
  937. }
  938. }
  939. ],
  940. series: [
  941. {
  942. name: "简历投递数",
  943. type: "bar",
  944. barWidth: 16,
  945. itemStyle: {
  946. normal: {
  947. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  948. {
  949. offset: 1,
  950. color: "#004E8E"
  951. },
  952. {
  953. offset: 0,
  954. color: "#40A9FF"
  955. }
  956. ])
  957. }
  958. },
  959. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  960. z: 10,
  961. zlevel: 0
  962. },
  963. {
  964. // 分隔
  965. type: "pictorialBar",
  966. itemStyle: {
  967. normal: {
  968. color: "#0F375F"
  969. }
  970. },
  971. symbolRepeat: "fixed",
  972. symbolMargin: 6,
  973. symbol: "rect",
  974. symbolClip: true,
  975. symbolSize: [18, 2],
  976. symbolPosition: "start",
  977. symbolOffset: [1, 1],
  978. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  979. width: 2,
  980. z: 0,
  981. zlevel: 1
  982. },
  983. {
  984. name: "外框",
  985. type: "bar",
  986. barGap: "-110%", // 设置外框粗细
  987. data: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
  988. barWidth: 16,
  989. itemStyle: {
  990. normal: {
  991. color: "transparent", // 填充色
  992. // barBorderRadius: 0, //圆角半径
  993. label: {
  994. // 标签显示位置
  995. show: false,
  996. position: "top" // insideTop 或者横向的 insideLeft
  997. }
  998. }
  999. },
  1000. z: 0
  1001. },
  1002. {
  1003. name: "背影",
  1004. type: "line",
  1005. smooth: true, //平滑曲线显示
  1006. showAllSymbol: false, //显示所有图形。
  1007. symbolSize: 0,
  1008. lineStyle: {
  1009. width: 0
  1010. },
  1011. areaStyle: {
  1012. color: "rgba(0, 151, 251, 0.1)"
  1013. },
  1014. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  1015. z: 5
  1016. }
  1017. ],
  1018. dataZoom: [
  1019. {
  1020. type: "slider",
  1021. show: false,
  1022. xAxisIndex: [0],
  1023. endValue: 12,
  1024. startValue: 0
  1025. }
  1026. ]
  1027. }
  1028. this.vitaEcharts.setOption(option)
  1029. tools.loopShowTooltip(this.vitaEcharts, option, {
  1030. nterval: 2000,
  1031. loopSeries: true,
  1032. });
  1033. },
  1034. initRoseEcharts(el, myData = {
  1035. number: ['10', '13', '20'],
  1036. titlename: ["地面", "辅助", "一线"],
  1037. }) {
  1038. this.roseEcharts = echarts.init(el)
  1039. var colorArr = ["#218de0", "#01cbb3", "#85e647", "#5d5cda", "#f6d54a", "#f845f1"];
  1040. 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)'];
  1041. var myProperty = {
  1042. titlefontsize: 30,
  1043. polarradius: '60%',
  1044. pieradius: '60%',
  1045. length1: 10,
  1046. length2: 55,
  1047. };
  1048. var data = [];
  1049. var total = 0;
  1050. for (var i = 0; i < myData.number.length; i++) {
  1051. total += (Number)(myData.number[i]);
  1052. }
  1053. for (let index = 0; index < myData.titlename.length; index++) {
  1054. data.push({
  1055. value: myData.number[index],
  1056. name: myData.titlename[index],
  1057. itemStyle: {
  1058. normal: {
  1059. borderColor: colorArr[index],
  1060. borderWidth: 2,
  1061. shadowBlur: 20,
  1062. shadowColor: colorArr[index],
  1063. shadowOffsetx: 25,
  1064. shadowOffsety: 20,
  1065. color: colorAlpha[index]
  1066. }
  1067. },
  1068. label: {
  1069. normal: {
  1070. formatter: ['{b|{b}: {c}个}', '{d| {d}%}'].join('\n'), //join函数将数组中的元素用选择的分隔符拼接成一个字符串
  1071. rich: {
  1072. b: {
  1073. color: colorArr[index],
  1074. fontSize: myProperty.titlefontsize,
  1075. lineHeight: 20
  1076. },
  1077. d: {
  1078. color: '#d0fffc',
  1079. fontSize: myProperty.titlefontsize, //手动输入的字体大小
  1080. height: 50,
  1081. align: 'center', //这里是控制文本的位置 此时是居中
  1082. },
  1083. },
  1084. }
  1085. },
  1086. })
  1087. }
  1088. option = {
  1089. grid: {
  1090. left: -100,
  1091. top: 50,
  1092. bottom: 10,
  1093. right: 10,
  1094. containLabel: true
  1095. },
  1096. tooltip: {
  1097. show: true,
  1098. trigger: 'item',
  1099. textStyle: {
  1100. fontSize: 30,
  1101. color: '#A3E2F4'
  1102. },
  1103. },
  1104. polar: {
  1105. // radius: ['0%','60%'],
  1106. //radius:[0,200]
  1107. radius: myProperty.polarradius,
  1108. },
  1109. angleAxis: {
  1110. interval: 1,
  1111. type: 'category',
  1112. data: [],
  1113. z: 10,
  1114. axisLine: {
  1115. show: false,
  1116. lineStyle: {
  1117. color: "#0B4A6B",
  1118. width: 1,
  1119. type: "solid"
  1120. },
  1121. },
  1122. axisLabel: {
  1123. interval: 0,
  1124. show: true,
  1125. color: "#0B4A6B",
  1126. margin: 8,
  1127. fontSize: 16
  1128. },
  1129. },
  1130. radiusAxis: {
  1131. min: 20,
  1132. max: 120,
  1133. interval: 20,
  1134. axisLine: {
  1135. show: false,
  1136. lineStyle: {
  1137. color: "#0B3E5E",
  1138. width: 1,
  1139. type: "solid"
  1140. },
  1141. },
  1142. axisLabel: {
  1143. formatter: '{value} %',
  1144. show: false,
  1145. padding: [0, 0, 20, 0],
  1146. color: "#0B3E5E",
  1147. fontSize: 16
  1148. },
  1149. splitLine: {
  1150. lineStyle: {
  1151. color: "#07385e",
  1152. width: 2,
  1153. type: "dashed"
  1154. }
  1155. },
  1156. },
  1157. calculable: true,
  1158. series: [{
  1159. stack: 'a',
  1160. type: 'pie',
  1161. radius: myProperty.pieradius,
  1162. roseType: 'radius',
  1163. zlevel: 10,
  1164. startAngle: 100,
  1165. labelLine: {
  1166. normal: {
  1167. show: true,
  1168. length: myProperty.length1,
  1169. length2: myProperty.length2,
  1170. lineStyle: {
  1171. color: '#0096b1'
  1172. }
  1173. },
  1174. emphasis: {
  1175. show: false
  1176. }
  1177. },
  1178. data: data,
  1179. },]
  1180. };
  1181. this.roseEcharts.setOption(option)
  1182. tools.loopShowTooltip(this.roseEcharts, option, {
  1183. nterval: 2000,
  1184. loopSeries: true,
  1185. });
  1186. },
  1187. handleClick(from, type) {
  1188. this.handleMark()
  1189. this.from = from
  1190. this.type = type
  1191. let that = this;
  1192. if (from == "timeList1" && type == 1) {
  1193. that.markStyle = {
  1194. right: "1%",
  1195. bottom: "4%"
  1196. }
  1197. } else if (from == "timeList1" && type == 0) {
  1198. that.markStyle = {
  1199. right: "5%",
  1200. bottom: "4%"
  1201. }
  1202. } else if (from == "timeList2" && type == 0) {
  1203. that.markStyle = {
  1204. right: "87%",
  1205. bottom: "43%"
  1206. }
  1207. } else if (from == "timeList2" && type == 1) {
  1208. that.markStyle = {
  1209. right: "84%",
  1210. bottom: "43%"
  1211. }
  1212. }
  1213. this.showMark = true
  1214. this.showSelect = true
  1215. },
  1216. handleMark() {
  1217. this.showMark = false
  1218. this.showSelect = false
  1219. this.showMonth = false
  1220. },
  1221. handleOption(item) {
  1222. this[this.from][this.type] = item
  1223. this.handleMark()
  1224. },
  1225. handleMonthOption(item) {
  1226. this.monthItem = item
  1227. this.handleMark()
  1228. },
  1229. handleMonth() {
  1230. this.handleMark()
  1231. this.showMark = true
  1232. this.showMonth = true
  1233. },
  1234. ortherEcharts(el, data) {
  1235. this.vitaEcharts = echarts.init(el);
  1236. option = {
  1237. tooltip: {
  1238. show: true,
  1239. trigger: 'axis',
  1240. textStyle: {
  1241. fontSize: 30,
  1242. color: '#A3E2F4'
  1243. },
  1244. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  1245. type: 'none' // 默认为直线,可选为:'line' | 'shadow'
  1246. }
  1247. },
  1248. grid: {
  1249. top: '8%',
  1250. left: '1%',
  1251. right: '1%',
  1252. bottom: '8%',
  1253. containLabel: true,
  1254. },
  1255. xAxis: [{
  1256. type: 'category',
  1257. boundaryGap: false,
  1258. axisLine: { //坐标轴轴线相关设置。数学上的x轴
  1259. show: false,
  1260. lineStyle: {
  1261. color: '#233e64'
  1262. },
  1263. },
  1264. axisLabel: { //坐标轴刻度标签的相关设置
  1265. textStyle: {
  1266. color: '#fff',
  1267. fontSize: 26,
  1268. margin: 15,
  1269. },
  1270. },
  1271. axisTick: { show: false, },
  1272. data: ['6.1', '6.2', '6.3', '6.4', '6.5', '6.6', '6.7'],
  1273. }],
  1274. yAxis: [{
  1275. type: 'value',
  1276. min: 0,
  1277. max: 140,
  1278. splitLine: {
  1279. show: true,
  1280. lineStyle: {
  1281. color: '#233e64'
  1282. }
  1283. },
  1284. axisLine: { show: false, },
  1285. axisLabel: {
  1286. margin: 20,
  1287. textStyle: {
  1288. color: '#fff',
  1289. fontSize: 24,
  1290. },
  1291. },
  1292. axisTick: { show: false, },
  1293. }],
  1294. series: [{
  1295. name: '异常流量',
  1296. type: 'line',
  1297. smooth: true, //是否平滑曲线显示
  1298. symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
  1299. symbolSize: 0,
  1300. lineStyle: {
  1301. normal: {
  1302. color: "#3deaff" // 线条颜色
  1303. }
  1304. },
  1305. areaStyle: { //区域填充样式
  1306. normal: {
  1307. //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
  1308. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1309. { offset: 0, color: 'rgba(61,234,255, 0.9)' },
  1310. { offset: 0.7, color: 'rgba(61,234,255, 0.1)' }
  1311. ], false),
  1312. shadowColor: 'rgba(53,142,215, 0.9)', //阴影颜色
  1313. shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
  1314. }
  1315. },
  1316. data: [90, 105, 84, 125, 110, 92, 98]
  1317. }]
  1318. };
  1319. this.vitaEcharts.setOption(option);
  1320. tools.loopShowTooltip(this.vitaEcharts, option, {
  1321. nterval: 2000,
  1322. loopSeries: true,
  1323. });
  1324. },
  1325. hanleIcon() {
  1326. this.vitaEcharts.dispose()
  1327. this.downholeFlag = !this.downholeFlag
  1328. if (this.downholeFlag) {
  1329. setTimeout(() => {
  1330. let vita = this.$refs.vita
  1331. console.log(vita);
  1332. this.initVitaEcharts(vita)
  1333. })
  1334. }
  1335. // if (this.echartsIndex == 1) {
  1336. // this.ortherEcharts(vita)
  1337. // this.echartsIndex = 2
  1338. // } else {
  1339. // this.echartsIndex = 1
  1340. // }
  1341. console.log(12312132132);
  1342. },
  1343. handleChangeType(type, index) {
  1344. let that = this;
  1345. if (type) {
  1346. that.rightList.forEach(item => {
  1347. item.flag = false
  1348. })
  1349. that.rightList[index].flag = true
  1350. that.rightIndex = index
  1351. } else {
  1352. that.leftList.forEach(item => {
  1353. item.flag = false
  1354. })
  1355. that.leftList[index].flag = true
  1356. that.leftIndex = index
  1357. if (index == 0) {
  1358. that.leftFlag = true
  1359. } else {
  1360. that.leftFlag = false
  1361. setTimeout(() => {
  1362. let leftChange = that.$refs.leftChange
  1363. console.log(leftChange);
  1364. that.initRoseEcharts(leftChange)
  1365. })
  1366. }
  1367. }
  1368. },
  1369. },
  1370. })