humanResources.js 57 KB

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