humanResources.js 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463
  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: 2000,
  256. header: ["序号", "姓名", "性别", "身份证号", "拟录单位"],
  257. rowNum: 5,
  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: 2000,
  269. header: ["序号", "姓名", "性别", "身份证号", "拟录单位"],
  270. rowNum: 5,
  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. if (employmentList.length % 2 != 0) {
  351. employmentList.push([])
  352. }
  353. employmentList.forEach((item, index) => {
  354. if (index % 2 == 0) {
  355. this.employmentList1.data.push(item)
  356. } else {
  357. this.employmentList2.data.push(item)
  358. }
  359. })
  360. console.log();
  361. },
  362. mounted() {
  363. let that = this;
  364. this.$nextTick(() => {
  365. let vita = this.$refs.vita
  366. this.initVitaEcharts(vita)
  367. let pageBtm = this.$refs.pageBtm
  368. this.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
  369. let rightOne = this.$refs.rightOne
  370. this.initLineRight(rightOne, { value: 50, total: 118 })
  371. let rightTwo = this.$refs.rightTwo
  372. this.initLineRight(rightTwo, { value: 30, total: 118 })
  373. let rightThree = this.$refs.rightThree
  374. this.initLineRight(rightThree, { value: 20, total: 118 })
  375. let rightFour = this.$refs.rightFour
  376. this.initLineRight(rightFour, { value: 12, total: 118 })
  377. let rightFive = this.$refs.rightFive
  378. this.initLineRight(rightFive, { value: 6, total: 118 })
  379. // let c1 = this.$refs.c1
  380. // this.initRightCycle(c1, 40)
  381. // let c2 = this.$refs.c2
  382. // this.initRightCycle(c2, 25)
  383. // let c3 = this.$refs.c3
  384. // this.initRightCycle(c3, 20)
  385. // let c4 = this.$refs.c4
  386. // this.initRightCycle(c4, 10)
  387. // let c5 = this.$refs.c5
  388. // this.initRightCycle(c5, 5)
  389. setTimeout(() => {
  390. let itemContent = document.getElementById("itemContent")
  391. let target = itemContent.getElementsByClassName("row-item")
  392. let targetList = target.item(0)
  393. targetList.style.background = "#302e2d50"
  394. targetList.style.color = "#E1AF27"
  395. }, 0)
  396. setTimeout(() => {
  397. that.classChange = true
  398. }, 5000);
  399. setInterval(() => {
  400. let that = this
  401. that.treeList.forEach(item => {
  402. item.flag = false
  403. })
  404. if (that.treeIndex > that.treeList.length - 1) {
  405. that.treeIndex = 0
  406. that.treeList[that.treeIndex].flag = true
  407. } else {
  408. that.treeList[that.treeIndex].flag = true
  409. that.treeIndex = that.treeIndex + 1
  410. }
  411. }, 2000)
  412. // setInterval(()=>{
  413. // if(that.configIndex > that.config1.data.length - 1){
  414. // that.configIndex = 0
  415. // return
  416. // } else {
  417. // that.configIndex = that.configIndex + 1
  418. // return
  419. // }
  420. // },5000)
  421. })
  422. this.leftTime = setInterval(() => {
  423. that.leftList.forEach((item, index) => {
  424. item.flag = !item.flag
  425. if (item.flag) {
  426. if (index == 0) {
  427. that.leftFlag = true
  428. } else {
  429. that.leftFlag = false
  430. setTimeout(() => {
  431. let leftChange = that.$refs.leftChange
  432. that.initRoseEcharts(leftChange)
  433. })
  434. }
  435. }
  436. })
  437. }, 5000)
  438. this.rightTime = setInterval(() => {
  439. that.rightList.forEach((item, index) => {
  440. item.flag = !item.flag
  441. if (item.flag) {
  442. that.rightIndex = index
  443. }
  444. })
  445. }, 5000)
  446. localEnvAppToken().then(res => {
  447. localStorage.setItem("app_token", res.app_token)
  448. getLocalEnvAccessToken().then(res => {
  449. localStorage.setItem("access_token", res.access_token)
  450. that.getPlayers()
  451. })
  452. }).catch(err => {
  453. })
  454. },
  455. methods: {
  456. initDownholeEcharts(el, data) {
  457. this.downhole = echarts.init(el);
  458. let series = []
  459. let grid = {
  460. top: "15%",
  461. bottom: 50, //也可设置left和right设置距离来控制图表的大小
  462. left: "3%",
  463. right: "1%"
  464. }
  465. option = {
  466. tooltip: {
  467. show: true,
  468. trigger: 'axis',
  469. textStyle: {
  470. fontSize: 30,
  471. color: '#A3E2F4'
  472. },
  473. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  474. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  475. }
  476. },
  477. grid,
  478. legend: {
  479. data: ["招聘人数", "报名人数", "录用人数"],
  480. align: 'left',
  481. itemGap: 50,
  482. right: 500,
  483. y: '2%',
  484. icon: 'rect',
  485. textStyle: {
  486. color: "#fff",
  487. fontSize: 30
  488. }
  489. },
  490. xAxis: {
  491. axisTick: {
  492. show: false,
  493. },
  494. axisLine: {
  495. show: false,
  496. },
  497. axisLabel: {
  498. interval: 0,
  499. show: true,
  500. fontSize: 30,
  501. textStyle: {
  502. color: "#fff" //X轴文字颜色
  503. },
  504. },
  505. data: data.x,
  506. },
  507. yAxis: {
  508. type: "value",
  509. name: "人",
  510. gridIndex: 0,
  511. // splitNumber: 4,
  512. splitLine: {
  513. show: false,
  514. lineStyle: {
  515. color: '#A3C0DF',
  516. width: 1
  517. },
  518. },
  519. nameTextStyle: {
  520. fontSize: 30,
  521. },
  522. axisTick: {
  523. show: false
  524. },
  525. axisLine: {
  526. show: false,
  527. lineStyle: {
  528. color: '#A3C0DF'
  529. }
  530. },
  531. axisLabel: {
  532. show: true,
  533. margin: 14,
  534. fontSize: 28,
  535. textStyle: {
  536. color: "#fff" //X轴文字颜色
  537. }
  538. },
  539. },
  540. series: [{
  541. type: 'bar',
  542. name: "招聘人数",
  543. barWidth: 26,
  544. itemStyle: {
  545. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  546. offset: 1,
  547. color: '#40A9FF',
  548. },
  549. {
  550. offset: 0,
  551. color: '#082049',
  552. },
  553. ]),
  554. },
  555. data: data.y1,
  556. }, {
  557. type: 'bar',
  558. name: "报名人数",
  559. barWidth: 26,
  560. itemStyle: {
  561. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  562. offset: 1,
  563. color: '#EAE179',
  564. },
  565. {
  566. offset: 0,
  567. color: '#082049',
  568. },
  569. ]),
  570. },
  571. data: data.y2,
  572. }, {
  573. type: 'bar',
  574. name: "录用人数",
  575. barWidth: 26,
  576. itemStyle: {
  577. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  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. let listIndex = index
  599. if (listIndex >= this.config1.data.length) {
  600. listIndex = index - 11
  601. }
  602. this.rollTitle = this.config1.data[listIndex][0] + this.config1.data[listIndex][1] + "招聘公告"
  603. setTimeout(() => {
  604. this.rollFlag = true
  605. })
  606. },
  607. initRightCycle(el, data) {
  608. var getvalue = [data];
  609. let chat = echarts.init(el)
  610. option = {
  611. title: {
  612. text: getvalue + '%',
  613. textStyle: {
  614. color: '#fff',
  615. fontSize: 20
  616. },
  617. itemGap: 20,
  618. left: '55%',
  619. top: '38%'
  620. },
  621. // tooltip: {
  622. // formatter: function (params) {
  623. // return '<span style="color: #fff;">综合得分:' + getvalue + '分</span>';
  624. // }
  625. // },
  626. angleAxis: {
  627. max: 100,
  628. clockwise: true, // 逆时针
  629. // 隐藏刻度线
  630. show: false
  631. },
  632. radiusAxis: {
  633. type: 'category',
  634. show: true,
  635. axisLabel: {
  636. show: false,
  637. },
  638. axisLine: {
  639. show: false,
  640. },
  641. axisTick: {
  642. show: false
  643. },
  644. },
  645. polar: {
  646. center: ['70%', '50%'],
  647. radius: ['60%', '75%'],
  648. // radius: '100%' //图形大小
  649. },
  650. series: [{
  651. type: 'bar',
  652. data: getvalue,
  653. showBackground: true,
  654. backgroundStyle: {
  655. color: '#BDEBFF',
  656. },
  657. coordinateSystem: 'polar',
  658. roundCap: true,
  659. barWidth: 30,
  660. itemStyle: {
  661. normal: {
  662. opacity: 1,
  663. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  664. offset: 0,
  665. color: '#25BFFF'
  666. }, {
  667. offset: 1,
  668. color: '#5284DE'
  669. }]),
  670. shadowBlur: 5,
  671. shadowColor: '#2A95F9',
  672. }
  673. },
  674. }]
  675. };
  676. chat.setOption(option)
  677. },
  678. initLineRight(el, data) {
  679. let that = this;
  680. console.log(data);
  681. let myChart = echarts.init(el);
  682. let nameList = ["a"];
  683. let valueList = [data.value];
  684. let total = data.total; // 数据总数
  685. var category = nameList.map((item, index) => {
  686. return {
  687. value: valueList[index],
  688. itemStyle: {
  689. color: new echarts.graphic.LinearGradient(
  690. 1,
  691. 0,
  692. 0,
  693. 1, [{
  694. offset: 0,
  695. color: "#40A9FF50",
  696. },
  697. {
  698. offset: 1,
  699. color: "#40A9FF",
  700. },
  701. ],
  702. false
  703. ),
  704. },
  705. };
  706. });
  707. var totalList = [];
  708. var totalBorderList = [];
  709. nameList.map((item, index) => {
  710. totalList.push({
  711. value: total,
  712. itemStyle: {
  713. color: "rgba(51, 147, 236, 0.29)",
  714. },
  715. });
  716. totalBorderList.push({
  717. value: total,
  718. itemStyle: {
  719. borderColor: "rgba(51, 147, 236, 0.29)",
  720. color: "transparent",
  721. },
  722. });
  723. });
  724. var datas = [];
  725. category.forEach((value) => {
  726. datas.push(value.value);
  727. });
  728. option = {
  729. // backgroundColor: 'rgb(231,238,249)',
  730. xAxis: {
  731. max: total,
  732. splitLine: {
  733. show: false,
  734. },
  735. axisLine: {
  736. show: false,
  737. },
  738. axisLabel: {
  739. show: false,
  740. },
  741. axisTick: {
  742. show: false,
  743. },
  744. },
  745. grid: {
  746. left: "1%",
  747. top: 20, // 设置条形图的边距
  748. right: "25%",
  749. bottom: 20,
  750. },
  751. yAxis: [{
  752. type: "category",
  753. inverse: false,
  754. data: nameList,
  755. axisLine: {
  756. show: false,
  757. },
  758. axisTick: {
  759. show: false,
  760. },
  761. axisLabel: {
  762. show: false,
  763. },
  764. }, ],
  765. series: [{
  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. offset: 0,
  794. color: "rgba(81, 193, 156, 1)",
  795. },
  796. {
  797. offset: 1,
  798. color: "rgba(234, 177, 100, 1)",
  799. },
  800. ],
  801. false
  802. ),
  803. },
  804. },
  805. animationEasing: "elasticOut",
  806. },
  807. {
  808. // 分隔
  809. type: "pictorialBar",
  810. itemStyle: {
  811. normal: {
  812. color: "#143362",
  813. },
  814. },
  815. symbolRepeat: "fixed",
  816. symbolMargin: 8,
  817. symbol: "rect",
  818. symbolClip: false,
  819. symbolSize: [4, 20],
  820. symbolPosition: "start",
  821. symbolOffset: [0, -2],
  822. symbolBoundingData: total,
  823. data: [total, total, total, total],
  824. z: 2,
  825. animationEasing: "elasticOut",
  826. },
  827. {
  828. // label
  829. type: "pictorialBar",
  830. symbolBoundingData: total,
  831. itemStyle: {
  832. normal: {
  833. color: "none",
  834. },
  835. },
  836. label: {
  837. normal: {
  838. formatter: (params) => {
  839. var text;
  840. console.log(params.value);
  841. text = `${(params.value <= 9 ? " "+params.value : params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
  842. return text;
  843. },
  844. textStyle: {
  845. // 图列内容样式
  846. fontSize: "30",
  847. fontWeight: 800,
  848. },
  849. position: "right",
  850. offset: [0, -3],
  851. distance: 10, // 向右偏移位置
  852. show: true,
  853. color: "#FFF",
  854. },
  855. },
  856. data: datas,
  857. z: 0,
  858. },
  859. {
  860. name: "外框",
  861. type: "bar",
  862. barGap: "-130%", // 设置外框粗细
  863. data: totalBorderList,
  864. barWidth: 26,
  865. itemStyle: {
  866. normal: {
  867. // barBorderRadius: [5, 5, 5, 5],
  868. borderWidth: 1, // 边框宽度
  869. borderColor: "rgb(51, 147, 236)", // 边框色
  870. color: "rgb(231,238,249)",
  871. },
  872. },
  873. z: 0,
  874. },
  875. ],
  876. };
  877. //轮播
  878. // tools.loopShowTooltip(leftEcharts1, option, {
  879. // interval: 2000,
  880. // loopSeries: true,
  881. // });
  882. //注册
  883. myChart.setOption(option);
  884. },
  885. initVitaEcharts(el, data) {
  886. this.vitaEcharts = echarts.init(el)
  887. option = {
  888. tooltip: {
  889. show: true,
  890. trigger: 'axis',
  891. textStyle: {
  892. fontSize: 30,
  893. color: '#A3E2F4'
  894. },
  895. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  896. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  897. },
  898. formatter: "{a} : {c}份"
  899. },
  900. animation: true,
  901. grid: {
  902. top: "12%",
  903. bottom: "8%",
  904. right: "2%"
  905. },
  906. xAxis: {
  907. data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
  908. axisLine: {
  909. show: false //隐藏X轴轴线
  910. },
  911. axisTick: {
  912. show: false //隐藏X轴轴线
  913. },
  914. splitLine: {
  915. show: false,
  916. lineStyle: {
  917. color: "rgba(77, 128, 254, 0.2)",
  918. width: 2
  919. }
  920. },
  921. axisLabel: {
  922. show: true,
  923. interval: 0,
  924. fontSize: 24,
  925. textStyle: {
  926. color: "#fff" //X轴文字颜色
  927. }
  928. }
  929. },
  930. yAxis: [{
  931. name: "投递/份",
  932. type: "value",
  933. gridIndex: 0,
  934. min: 0,
  935. max: 100,
  936. interval: 25,
  937. // splitNumber: 4,
  938. splitLine: {
  939. show: false,
  940. lineStyle: {
  941. color: "rgba(77, 128, 254, 0.2)",
  942. width: 2
  943. }
  944. },
  945. axisTick: {
  946. show: false
  947. },
  948. nameTextStyle: {
  949. fontSize: 28,
  950. color: "#B6BFCE"
  951. },
  952. axisLine: {
  953. show: false,
  954. lineStyle: {
  955. color: "rgba(77, 128, 254, 0.2)"
  956. }
  957. },
  958. axisLabel: {
  959. show: true,
  960. margin: 14,
  961. fontSize: 26,
  962. textStyle: {
  963. color: "#65D5FF"
  964. }
  965. }
  966. }],
  967. series: [{
  968. name: "简历投递数",
  969. type: "bar",
  970. barWidth: 16,
  971. itemStyle: {
  972. normal: {
  973. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  974. offset: 1,
  975. color: "#004E8E"
  976. },
  977. {
  978. offset: 0,
  979. color: "#40A9FF"
  980. }
  981. ])
  982. }
  983. },
  984. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  985. z: 10,
  986. zlevel: 0
  987. },
  988. {
  989. // 分隔
  990. type: "pictorialBar",
  991. itemStyle: {
  992. normal: {
  993. color: "#0F375F"
  994. }
  995. },
  996. symbolRepeat: "fixed",
  997. symbolMargin: 6,
  998. symbol: "rect",
  999. symbolClip: true,
  1000. symbolSize: [18, 2],
  1001. symbolPosition: "start",
  1002. symbolOffset: [1, 1],
  1003. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  1004. width: 2,
  1005. z: 0,
  1006. zlevel: 1
  1007. },
  1008. {
  1009. name: "外框",
  1010. type: "bar",
  1011. barGap: "-110%", // 设置外框粗细
  1012. data: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
  1013. barWidth: 16,
  1014. itemStyle: {
  1015. normal: {
  1016. color: "transparent", // 填充色
  1017. // barBorderRadius: 0, //圆角半径
  1018. label: {
  1019. // 标签显示位置
  1020. show: false,
  1021. position: "top" // insideTop 或者横向的 insideLeft
  1022. }
  1023. }
  1024. },
  1025. z: 0
  1026. },
  1027. {
  1028. name: "背影",
  1029. type: "line",
  1030. smooth: true, //平滑曲线显示
  1031. showAllSymbol: false, //显示所有图形。
  1032. symbolSize: 0,
  1033. lineStyle: {
  1034. width: 0
  1035. },
  1036. areaStyle: {
  1037. color: "rgba(0, 151, 251, 0.1)"
  1038. },
  1039. data: [21, 43, 56, 32, 64, 21, 43, 56, 32, 64, 21, 43],
  1040. z: 5
  1041. }
  1042. ],
  1043. dataZoom: [{
  1044. type: "slider",
  1045. show: false,
  1046. xAxisIndex: [0],
  1047. endValue: 12,
  1048. startValue: 0
  1049. }]
  1050. }
  1051. this.vitaEcharts.setOption(option)
  1052. tools.loopShowTooltip(this.vitaEcharts, option, {
  1053. nterval: 2000,
  1054. loopSeries: true,
  1055. });
  1056. },
  1057. initRoseEcharts(el, myData = {
  1058. number: ['10', '13', '20'],
  1059. titlename: ["地面", "辅助", "一线"],
  1060. }) {
  1061. this.roseEcharts = echarts.init(el)
  1062. var colorArr = ["#218de0", "#01cbb3", "#85e647", "#5d5cda", "#f6d54a", "#f845f1"];
  1063. 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)'];
  1064. var myProperty = {
  1065. titlefontsize: 30,
  1066. polarradius: '60%',
  1067. pieradius: '60%',
  1068. length1: 10,
  1069. length2: 55,
  1070. };
  1071. var data = [];
  1072. var total = 0;
  1073. for (var i = 0; i < myData.number.length; i++) {
  1074. total += (Number)(myData.number[i]);
  1075. }
  1076. for (let index = 0; index < myData.titlename.length; index++) {
  1077. data.push({
  1078. value: myData.number[index],
  1079. name: myData.titlename[index],
  1080. itemStyle: {
  1081. normal: {
  1082. borderColor: colorArr[index],
  1083. borderWidth: 2,
  1084. shadowBlur: 20,
  1085. shadowColor: colorArr[index],
  1086. shadowOffsetx: 25,
  1087. shadowOffsety: 20,
  1088. color: colorAlpha[index]
  1089. }
  1090. },
  1091. label: {
  1092. normal: {
  1093. formatter: ['{b|{b}: {c}个}', '{d| {d}%}'].join('\n'), //join函数将数组中的元素用选择的分隔符拼接成一个字符串
  1094. rich: {
  1095. b: {
  1096. color: colorArr[index],
  1097. fontSize: myProperty.titlefontsize,
  1098. lineHeight: 20
  1099. },
  1100. d: {
  1101. color: '#d0fffc',
  1102. fontSize: myProperty.titlefontsize, //手动输入的字体大小
  1103. height: 50,
  1104. align: 'center', //这里是控制文本的位置 此时是居中
  1105. },
  1106. },
  1107. }
  1108. },
  1109. })
  1110. }
  1111. option = {
  1112. grid: {
  1113. left: -100,
  1114. top: 50,
  1115. bottom: 10,
  1116. right: 10,
  1117. containLabel: true
  1118. },
  1119. tooltip: {
  1120. show: true,
  1121. trigger: 'item',
  1122. textStyle: {
  1123. fontSize: 30,
  1124. color: '#A3E2F4'
  1125. },
  1126. },
  1127. polar: {
  1128. // radius: ['0%','60%'],
  1129. //radius:[0,200]
  1130. radius: myProperty.polarradius,
  1131. },
  1132. angleAxis: {
  1133. interval: 1,
  1134. type: 'category',
  1135. data: [],
  1136. z: 10,
  1137. axisLine: {
  1138. show: false,
  1139. lineStyle: {
  1140. color: "#0B4A6B",
  1141. width: 1,
  1142. type: "solid"
  1143. },
  1144. },
  1145. axisLabel: {
  1146. interval: 0,
  1147. show: true,
  1148. color: "#0B4A6B",
  1149. margin: 8,
  1150. fontSize: 16
  1151. },
  1152. },
  1153. radiusAxis: {
  1154. min: 20,
  1155. max: 120,
  1156. interval: 20,
  1157. axisLine: {
  1158. show: false,
  1159. lineStyle: {
  1160. color: "#0B3E5E",
  1161. width: 1,
  1162. type: "solid"
  1163. },
  1164. },
  1165. axisLabel: {
  1166. formatter: '{value} %',
  1167. show: false,
  1168. padding: [0, 0, 20, 0],
  1169. color: "#0B3E5E",
  1170. fontSize: 16
  1171. },
  1172. splitLine: {
  1173. lineStyle: {
  1174. color: "#07385e",
  1175. width: 2,
  1176. type: "dashed"
  1177. }
  1178. },
  1179. },
  1180. calculable: true,
  1181. series: [{
  1182. stack: 'a',
  1183. type: 'pie',
  1184. radius: myProperty.pieradius,
  1185. roseType: 'radius',
  1186. zlevel: 10,
  1187. startAngle: 100,
  1188. labelLine: {
  1189. normal: {
  1190. show: true,
  1191. length: myProperty.length1,
  1192. length2: myProperty.length2,
  1193. lineStyle: {
  1194. color: '#0096b1'
  1195. }
  1196. },
  1197. emphasis: {
  1198. show: false
  1199. }
  1200. },
  1201. data: data,
  1202. }, ]
  1203. };
  1204. this.roseEcharts.setOption(option)
  1205. tools.loopShowTooltip(this.roseEcharts, option, {
  1206. nterval: 2000,
  1207. loopSeries: true,
  1208. });
  1209. },
  1210. handleClick(from, type) {
  1211. this.handleMark()
  1212. this.from = from
  1213. this.type = type
  1214. let that = this;
  1215. if (from == "timeList1" && type == 1) {
  1216. that.markStyle = {
  1217. right: "1%",
  1218. bottom: "4%"
  1219. }
  1220. } else if (from == "timeList1" && type == 0) {
  1221. that.markStyle = {
  1222. right: "5%",
  1223. bottom: "4%"
  1224. }
  1225. } else if (from == "timeList2" && type == 0) {
  1226. that.markStyle = {
  1227. right: "87%",
  1228. bottom: "43%"
  1229. }
  1230. } else if (from == "timeList2" && type == 1) {
  1231. that.markStyle = {
  1232. right: "84%",
  1233. bottom: "43%"
  1234. }
  1235. }
  1236. this.showMark = true
  1237. this.showSelect = true
  1238. },
  1239. handleMark() {
  1240. this.showMark = false
  1241. this.showSelect = false
  1242. this.showMonth = false
  1243. },
  1244. handleOption(item) {
  1245. this[this.from][this.type] = item
  1246. this.handleMark()
  1247. },
  1248. handleMonthOption(item) {
  1249. this.monthItem = item
  1250. this.handleMark()
  1251. },
  1252. handleMonth() {
  1253. this.handleMark()
  1254. this.showMark = true
  1255. this.showMonth = true
  1256. },
  1257. ortherEcharts(el, data) {
  1258. this.vitaEcharts = echarts.init(el);
  1259. option = {
  1260. tooltip: {
  1261. show: true,
  1262. trigger: 'axis',
  1263. textStyle: {
  1264. fontSize: 30,
  1265. color: '#A3E2F4'
  1266. },
  1267. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  1268. type: 'none' // 默认为直线,可选为:'line' | 'shadow'
  1269. }
  1270. },
  1271. grid: {
  1272. top: '8%',
  1273. left: '1%',
  1274. right: '1%',
  1275. bottom: '8%',
  1276. containLabel: true,
  1277. },
  1278. xAxis: [{
  1279. type: 'category',
  1280. boundaryGap: false,
  1281. axisLine: { //坐标轴轴线相关设置。数学上的x轴
  1282. show: false,
  1283. lineStyle: {
  1284. color: '#233e64'
  1285. },
  1286. },
  1287. axisLabel: { //坐标轴刻度标签的相关设置
  1288. textStyle: {
  1289. color: '#fff',
  1290. fontSize: 26,
  1291. margin: 15,
  1292. },
  1293. },
  1294. axisTick: { show: false, },
  1295. data: ['6.1', '6.2', '6.3', '6.4', '6.5', '6.6', '6.7'],
  1296. }],
  1297. yAxis: [{
  1298. type: 'value',
  1299. min: 0,
  1300. max: 140,
  1301. splitLine: {
  1302. show: true,
  1303. lineStyle: {
  1304. color: '#233e64'
  1305. }
  1306. },
  1307. axisLine: { show: false, },
  1308. axisLabel: {
  1309. margin: 20,
  1310. textStyle: {
  1311. color: '#fff',
  1312. fontSize: 24,
  1313. },
  1314. },
  1315. axisTick: { show: false, },
  1316. }],
  1317. series: [{
  1318. name: '异常流量',
  1319. type: 'line',
  1320. smooth: true, //是否平滑曲线显示
  1321. symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
  1322. symbolSize: 0,
  1323. lineStyle: {
  1324. normal: {
  1325. color: "#3deaff" // 线条颜色
  1326. }
  1327. },
  1328. areaStyle: { //区域填充样式
  1329. normal: {
  1330. //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
  1331. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1332. { offset: 0, color: 'rgba(61,234,255, 0.9)' },
  1333. { offset: 0.7, color: 'rgba(61,234,255, 0.1)' }
  1334. ], false),
  1335. shadowColor: 'rgba(53,142,215, 0.9)', //阴影颜色
  1336. shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
  1337. }
  1338. },
  1339. data: [90, 105, 84, 125, 110, 92, 98]
  1340. }]
  1341. };
  1342. this.vitaEcharts.setOption(option);
  1343. tools.loopShowTooltip(this.vitaEcharts, option, {
  1344. nterval: 2000,
  1345. loopSeries: true,
  1346. });
  1347. },
  1348. hanleIcon() {
  1349. this.vitaEcharts.dispose()
  1350. this.downholeFlag = !this.downholeFlag
  1351. if (this.downholeFlag) {
  1352. setTimeout(() => {
  1353. let vita = this.$refs.vita
  1354. this.initVitaEcharts(vita)
  1355. })
  1356. }
  1357. // if (this.echartsIndex == 1) {
  1358. // this.ortherEcharts(vita)
  1359. // this.echartsIndex = 2
  1360. // } else {
  1361. // this.echartsIndex = 1
  1362. // }
  1363. },
  1364. handleChangeType(type, index) {
  1365. let that = this;
  1366. if (type) {
  1367. that.rightTime && clearInterval(that.rightTime)
  1368. that.rightList.forEach(item => {
  1369. item.flag = false
  1370. })
  1371. that.rightList[index].flag = true
  1372. that.rightIndex = index
  1373. this.rightTime = setInterval(() => {
  1374. that.rightList.forEach((item, index) => {
  1375. item.flag = !item.flag
  1376. if (item.flag) {
  1377. that.rightIndex = index
  1378. }
  1379. })
  1380. }, 5000)
  1381. } else {
  1382. that.leftTime && clearInterval(that.leftTime)
  1383. that.leftList.forEach(item => {
  1384. item.flag = false
  1385. })
  1386. that.leftList[index].flag = true
  1387. that.leftIndex = index
  1388. if (index == 0) {
  1389. that.leftFlag = true
  1390. } else {
  1391. that.leftFlag = false
  1392. setTimeout(() => {
  1393. let leftChange = that.$refs.leftChange
  1394. that.initRoseEcharts(leftChange)
  1395. })
  1396. }
  1397. that.leftTime = setInterval(() => {
  1398. that.leftList.forEach((item, index) => {
  1399. item.flag = !item.flag
  1400. if (item.flag) {
  1401. if (index == 0) {
  1402. that.leftFlag = true
  1403. } else {
  1404. that.leftFlag = false
  1405. setTimeout(() => {
  1406. let leftChange = that.$refs.leftChange
  1407. that.initRoseEcharts(leftChange)
  1408. })
  1409. }
  1410. }
  1411. })
  1412. }, 5000)
  1413. }
  1414. },
  1415. getPlayers() {
  1416. let that = this;
  1417. let data = {};
  1418. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/Players", data).then(res => {
  1419. if (res) {
  1420. that.mainList[1].value = res.value
  1421. }
  1422. })
  1423. },
  1424. },
  1425. })