humanResources.js 111 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918
  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],
  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='./images/header/1.jpg' alt=''>", "<span class=''>程嘉鑫</span>", "<span class=''>技术员</span>", "<span class=''>2023.07.29</span>"],
  180. ["<img class='list_img' src='./images/header/2.jpg' alt=''>", "<span class=''>池富婕</span>", "<span class=''>生产调度员</span>", "<span class=''>2023.07.26</span>"],
  181. ["<img class='list_img' src='./images/header/3.jpg' alt=''>", "<span class=''>邓文奇</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.18</span>"],
  182. ["<img class='list_img' src='./images/header/4.jpg' alt=''>", "<span class=''>翟世佳</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.11</span>"],
  183. ["<img class='list_img' src='./images/header/5.jpg' alt=''>", "<span class=''>丁一帆</span>", "<span class=''>生产调度员</span>", "<span class=''>2023.07.08</span>"],
  184. ["<img class='list_img' src='./images/header/6.jpg' alt=''>", "<span class=''>董明霞</span>", "<span class=''>生产调度员</span>", "<span class=''>2023.07.01</span>"],
  185. ["<img class='list_img' src='./images/header/7.jpg' alt=''>", "<span class=''>杜沛宣</span>", "<span class=''>技术员</span>", "<span class=''>2023.06.29</span>"],
  186. ["<img class='list_img' src='./images/header/8.jpg' alt=''>", "<span class=''>樊宇浩</span>", "<span class=''>技术员</span>", "<span class=''>2023.07.29</span>"],
  187. ["<img class='list_img' src='./images/header/9.jpg' alt=''>", "<span class=''>冯凯</span>", "<span class=''>井下钻探工</span>", "<span class=''>2023.07.26</span>"],
  188. ["<img class='list_img' src='./images/header/10.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: [90, 120, 170, 200],
  200. rowNum: 6,
  201. data: [
  202. ["01", '陈英', '洽谈室1', '杜儿坪矿', "2023.08.18 09:30-10:30"],
  203. ["02", '李小曼', '洽谈室1', '杜儿坪矿', "2023.08.18 09:30-10:30"],
  204. ["03", '王亮', '洽谈室1', '柳湾煤矿', "2023.08.18 09:30-10:30"],
  205. ["04", '李鑫', '洽谈室1', '高阳煤矿', "2023.08.18 09:30-10:30"],
  206. ["05", '王杰', '洽谈室1', '柳湾煤矿', "2023.08.18 09:30-10:30"],
  207. ["06", '张强', '洽谈室1', '杜儿坪矿', "2023.08.18 09:30-10:30"],
  208. ["07", '王强', '洽谈室1', '高阳煤矿', "2023.08.19 09:30-10:30"],
  209. ["08", '程丽', '洽谈室1', '柳湾煤矿', "2023.08.19 09:30-10:30"],
  210. ["09", '韩赢', '洽谈室1', '杜儿坪矿', "2023.08.19 09:30-10:30"],
  211. ["10", '王丽', '洽谈室1', '柳湾煤矿', "2023.08.19 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: [90, 120, 170, 200],
  223. rowNum: 6,
  224. data: [
  225. ["01", '李志桐', '洽谈室1', '杜儿坪矿', "2023.08.22 09:30-10:30"],
  226. ["02", '赵建国', '洽谈室1', '柳湾煤矿', "2023.08.22 09:30-10:30"],
  227. ["03", '张耀杰', '洽谈室1', '高阳煤矿', "2023.08.22 09:30-10:30"],
  228. ["04", '崔诚', '洽谈室1', '杜儿坪矿', "2023.08.22 09:30-10:30"],
  229. ["05", '陈灵均', '洽谈室1', '杜儿坪矿', "2023.08.22 09:30-10:30"],
  230. ["06", '杜勇', '洽谈室1', '柳湾煤矿', "2023.08.23 09:30-10:30"],
  231. ["07", '李灵风', '洽谈室1', '高阳煤矿', "2023.08.23 09:30-10:30"],
  232. ["08", '卢晨', '洽谈室1', '杜儿坪矿', "2023.08.23 09:30-10:30"],
  233. ["08", '韩玉树', '洽谈室1', '柳湾煤矿', "2023.08.23 09:30-10:30"],
  234. ["09", '王杰', '洽谈室1', '杜儿坪矿', "2023.08.23 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: 29,
  244. unit: "场",
  245. icon: "./images/humanResources/times.png"
  246. },
  247. {
  248. name: "参与人数",
  249. value: 2957,
  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, 140, 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, 140, 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. employmentList3: {
  281. waitTime: 2000,
  282. header: ["序号", "姓名", "性别", "身份证号", "拟录用单位"],
  283. rowNum: 5,
  284. headerHeight: 55,
  285. columnWidth: [100, 140, 100, 280],
  286. data: [],
  287. align: ["center", "center", "center", "center", "center"],
  288. headerBGC: "#69c1ff2d",
  289. oddRowBGC: "rgba(105, 193, 255, 0)",
  290. evenRowBGC: "#69c1ff21",
  291. hoverPause: false,
  292. },
  293. typeList: {
  294. waitTime: 2000,
  295. header: ["单位名称", "岗位名称", "报名人数"],
  296. rowNum: 6,
  297. headerHeight: 55,
  298. columnWidth: [100, 200, 400,],
  299. data: [
  300. ["汾西矿业", "综合管理岗", "40"],
  301. ["西山煤电", "综合管理岗", "35"],
  302. ["西山煤电", "财务管理岗", "30"],
  303. ["汾西矿业", "综合管理岗", "25"],
  304. ["西山煤电", "综合管理岗", "20"],
  305. ["西山煤电", "财务管理岗", "15"],
  306. ["汾西矿业", "综合管理岗", "10"],
  307. ],
  308. align: ["center", "center", "center", "center", "center"],
  309. index: true,
  310. headerBGC: "#69c1ff2d",
  311. oddRowBGC: "rgba(105, 193, 255, 0)",
  312. evenRowBGC: "#69c1ff21",
  313. hoverPause: false,
  314. },
  315. vitaEcharts: null,
  316. newList: [],
  317. showMark: false,
  318. showSelect: false,
  319. showMonth: false,
  320. monthList,
  321. monthItem: "08",
  322. timeList1: ["2022-08", "2023-08"],
  323. timeList2: ["2022-08", "2023-08"],
  324. from: "",
  325. type: 0,
  326. echartsIndex: 1,
  327. downholeFlag: true,
  328. markStyle: {
  329. bottom: "4%",
  330. right: "5%"
  331. },
  332. rightList: [{
  333. name: "当前数",
  334. flag: true,
  335. num1: 292,
  336. num2: 248,
  337. num3: "85%",
  338. }, {
  339. name: "累计数",
  340. flag: false,
  341. num1: 571,
  342. num2: 492,
  343. num3: "84%",
  344. }],
  345. rightIndex: 0,
  346. leftList: [{
  347. name: "双选岗位",
  348. flag: true
  349. }, {
  350. name: "双选岗位类别",
  351. flag: false
  352. }],
  353. leftIndex: 0,
  354. roseEcharts: null,
  355. leftFlag: true,
  356. rollTitle: "西山煤电屯兰矿井下普工工双选公告",
  357. leftTime: null,
  358. rightTime: null,
  359. recruitInfoList: [],
  360. recruitInfoIndex: 0,
  361. vitaData: {
  362. x: ['4月', '5月', '6月', '7月', '8月', '9月'],
  363. y: [56, 32, 64, 81, 43, 13]
  364. },
  365. isChangeList: false,
  366. imageList: ["./images/humanResources/ppt1.jpg", "", ""],
  367. imageIndex: 0,
  368. imageFlag: false,
  369. pageFlag: true,
  370. hecharts: null,
  371. leftErrorList: ["信息不完整", "信息有误", "任职条件不符", "出勤不足", "工作年限不符"],
  372. isShowList: true,
  373. isListEnd: 0,
  374. address: "西山煤电屯兰矿。",
  375. interviewIndex: 0,
  376. examinationIndex: 0,
  377. showInterview: true, // 面试
  378. showExamination: true, //笔试
  379. noticeList: [],
  380. noticeIndex: 0,
  381. isShowInfoList: false,
  382. recruitTypeMax: 0,
  383. recruitTypeList: [],
  384. showBigList: true,
  385. rightData: [],
  386. noticIndex: 0,
  387. noticList: [],
  388. noticTime: null,
  389. configDataIndex: 1,
  390. itemClass: "item_content_6_false"
  391. }
  392. },
  393. created() {
  394. let date = new Date()
  395. let year = date.getFullYear()
  396. let month = "0" + date.getMonth()
  397. this.timeList1 = [(year - 1) + "-" + month, year + "-" + month]
  398. this.timeList2 = [(year - 1) + "-" + month, year + "-" + month]
  399. this.newList = listToChange(yearList, monthList)
  400. this.employmentList3.data = employmentList
  401. if (employmentList.length % 2 != 0) {
  402. employmentList.push([])
  403. }
  404. employmentList.forEach((item, index) => {
  405. if (index % 2 == 0) {
  406. this.employmentList1.data.push(item)
  407. } else {
  408. this.employmentList2.data.push(item)
  409. }
  410. })
  411. this.keyDown()
  412. },
  413. watch: {
  414. imageIndex() {
  415. let that = this
  416. if (this.imageIndex == this.imageList.length) {
  417. that.downhole.dispose()
  418. that.vitaEcharts.dispose()
  419. setTimeout(() => {
  420. let pageBtm = that.$refs.pageBtm
  421. that.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
  422. let vita = that.$refs.vita
  423. that.initVitaEcharts(vita)
  424. })
  425. this.imageIndex = 0
  426. this.imageFlag = false
  427. }
  428. },
  429. },
  430. mounted() {
  431. let that = this;
  432. this.$nextTick(() => {
  433. // let c1 = this.$refs.c1
  434. // this.initRightCycle(c1, 40)
  435. // let c2 = this.$refs.c2
  436. // this.initRightCycle(c2, 25)
  437. // let c3 = this.$refs.c3
  438. // this.initRightCycle(c3, 20)
  439. // let c4 = this.$refs.c4
  440. // this.initRightCycle(c4, 10)
  441. // let c5 = this.$refs.c5
  442. // this.initRightCycle(c5, 5)
  443. // setTimeout(() => {
  444. // let itemContent = document.getElementById("itemContent")
  445. // if (itemContent) {
  446. // let target = itemContent.getElementsByClassName("row-item")
  447. // let targetList = target.item(0)
  448. // targetList.style.background = "#302e2d50"
  449. // targetList.style.color = "#E1AF27"
  450. // }
  451. // }, 10)
  452. setInterval(() => {
  453. let that = this
  454. that.treeList.forEach(item => {
  455. item.flag = false
  456. })
  457. if (that.treeIndex >= that.treeList.length - 1) {
  458. that.treeIndex = 0
  459. } else {
  460. that.treeIndex = that.treeIndex + 1
  461. }
  462. that.treeList[that.treeIndex].flag = true
  463. }, 5000)
  464. // setInterval(()=>{
  465. // if(that.configIndex > that.config1.data.length - 1){
  466. // that.configIndex = 0
  467. // return
  468. // } else {
  469. // that.configIndex = that.configIndex + 1
  470. // return
  471. // }
  472. // },5000)
  473. })
  474. this.leftTime = setInterval(() => {
  475. that.leftList.forEach((item, index) => {
  476. item.flag = !item.flag
  477. if (item.flag) {
  478. if (index == 0) {
  479. that.leftFlag = true
  480. } else {
  481. that.leftFlag = false
  482. setTimeout(() => {
  483. let leftChange = that.$refs.leftChange
  484. that.initThreeBig(leftChange)
  485. })
  486. }
  487. }
  488. })
  489. }, 15000)
  490. this.rightTime = setInterval(() => {
  491. that.rightList.forEach((item, index) => {
  492. item.flag = !item.flag
  493. if (item.flag) {
  494. that.rightIndex = index
  495. }
  496. })
  497. }, 5000)
  498. localEnvAppToken().then(res => {
  499. localStorage.setItem("app_token", res.app_token)
  500. getLocalEnvAccessToken().then(res => {
  501. localStorage.setItem("access_token", res.access_token)
  502. that.getPlayers()
  503. that.getPostDetail()
  504. that.getHalfYearDelivcv()
  505. that.getHotDelivcv()
  506. that.arrToListArr()
  507. that.getDelivcvAndApply()
  508. that.getRecruitType()
  509. that.getFailReason()
  510. that.getQualAudits()
  511. that.getNoticePerson()
  512. that.getNotice()
  513. that.getDoubleChoice()
  514. that.getPositionAll()
  515. that.getTotalRate()
  516. })
  517. }).catch(err => {
  518. this.isChangeList = true
  519. this.isShowInfoList = true
  520. let pageBtm = this.$refs.pageBtm
  521. this.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
  522. let rightOne = this.$refs.rightOne
  523. this.initLineRight(rightOne, { value: 18, total: 44 })
  524. let rightTwo = this.$refs.rightTwo
  525. this.initLineRight(rightTwo, { value: 11, total: 44 })
  526. let rightThree = this.$refs.rightThree
  527. this.initLineRight(rightThree, { value: 9, total: 44 })
  528. let rightFour = this.$refs.rightFour
  529. this.initLineRight(rightFour, { value: 4, total: 44 })
  530. let rightFive = this.$refs.rightFive
  531. this.initLineRight(rightFive, { value: 2, total: 44 })
  532. let vita = this.$refs.vita
  533. that.initVitaEcharts(vita)
  534. })
  535. },
  536. methods: {
  537. handleClickIcon(item, index) {
  538. let that = this;
  539. if (index == 0) {
  540. if (that.showBigList) {
  541. that.configInterview.rowNum = 10
  542. that.configWritten.rowNum = 10
  543. that.employmentList3.rowNum = 20
  544. that.configInterview.columnWidth = []
  545. that.configInterview.columnWidth = [240, 320, 370, 460, 480]
  546. that.configWritten.columnWidth = []
  547. that.configWritten.columnWidth = [240, 320, 370, 460, 480]
  548. that.employmentList3.columnWidth = []
  549. that.employmentList3.columnWidth = [240, 320, 370, 460, 480]
  550. that.leftTime && clearInterval(that.leftTime)
  551. that.rightTime && clearInterval(that.rightTime)
  552. if (that.roseEcharts) {
  553. that.roseEcharts.dispose()
  554. }
  555. setTimeout(() => {
  556. that.showBigList = false
  557. }, 10)
  558. } else {
  559. that.configInterview.rowNum = 6
  560. that.configWritten.rowNum = 6
  561. that.configInterview.columnWidth = [90, 120, 170, 200]
  562. that.configWritten.columnWidth = [90, 120, 170, 200]
  563. that.leftFlag = true
  564. that.leftList = [{
  565. name: "双选岗位",
  566. flag: true
  567. }, {
  568. name: "双选岗位类别",
  569. flag: false
  570. }]
  571. setTimeout(() => {
  572. that.showBigList = true
  573. that.leftTime = setInterval(() => {
  574. that.leftList.forEach((item, index) => {
  575. item.flag = !item.flag
  576. if (item.flag) {
  577. if (index == 0) {
  578. that.leftFlag = true
  579. } else {
  580. that.leftFlag = false
  581. setTimeout(() => {
  582. let leftChange = that.$refs.leftChange
  583. that.initThreeBig(leftChange)
  584. })
  585. }
  586. }
  587. })
  588. }, 15000)
  589. }, 10)
  590. }
  591. setTimeout(() => {
  592. if (that.showBigList) {
  593. let total = 0
  594. that.rightData.forEach(item => {
  595. total = total + item.value
  596. })
  597. return new Promise(() => {
  598. that.getFailReason()
  599. that.getHalfYearDelivcv()
  600. })
  601. }
  602. }, 15)
  603. }
  604. },
  605. // 监听键盘
  606. keyDown() {
  607. let that = this;
  608. document.onkeydown = (e) => {
  609. //事件对象兼容
  610. if (this.imageFlag) {
  611. let e1 = e || event || window.event || arguments.callee.caller.arguments[0]
  612. //键盘按键判断:左箭头-37;上箭头-38;右箭头-39;下箭头-40
  613. if (e1 && e1.keyCode == 37) {
  614. if (that.imageIndex != 0) {
  615. that.imageIndex = that.imageIndex - 1
  616. }
  617. } else if (e1 && e1.keyCode == 38) {
  618. // that.imageIndex = that.imageIndex - 1
  619. if (that.imageIndex != 0) {
  620. that.imageIndex = that.imageIndex - 1
  621. }
  622. } else if (e1 && e1.keyCode == 33) {
  623. // that.imageIndex = that.imageIndex - 1
  624. if (that.imageIndex != 0) {
  625. that.imageIndex = that.imageIndex - 1
  626. }
  627. } else if (e1 && e1.keyCode == 39) {
  628. that.imageIndex = that.imageIndex + 1
  629. } else if (e1 && e1.keyCode == 40) {
  630. that.imageIndex = that.imageIndex + 1
  631. } else if (e1 && e1.keyCode == 34) {
  632. that.imageIndex = that.imageIndex + 1
  633. }
  634. }
  635. }
  636. },
  637. handleChangeImage() {
  638. this.imageIndex += 1
  639. },
  640. fullScreen() {
  641. let docElm = document.documentElement;
  642. if (docElm.requestFullscreen) {
  643. docElm.requestFullscreen();
  644. } else if (docElm.msRequestFullscreen) {
  645. docElm.msRequestFullscreen();
  646. } else if (docElm.mozRequestFullScreen) {
  647. docElm.mozRequestFullScreen();
  648. } else if (docElm.webkitRequestFullScreen) {
  649. docElm.webkitRequestFullScreen();
  650. }
  651. this.imageFlag = true
  652. this.pageFlag = false
  653. },
  654. initDownholeEcharts(el, data) {
  655. this.downhole = echarts.init(el);
  656. let series = []
  657. let grid = {
  658. top: "15%",
  659. bottom: 50, //也可设置left和right设置距离来控制图表的大小
  660. left: "3%",
  661. right: "1%"
  662. }
  663. option = {
  664. tooltip: {
  665. backgroundColor: 'rgba(0, 0, 0, 0.3)',
  666. borderColor: "rgba(0,0,0,0.5)",
  667. show: true,
  668. trigger: 'axis',
  669. textStyle: {
  670. fontSize: 30,
  671. color: '#A3E2F4'
  672. },
  673. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  674. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  675. }
  676. },
  677. grid,
  678. legend: {
  679. data: ["双选人数", "报名人数", "录用人数"],
  680. align: 'left',
  681. itemGap: 50,
  682. right: 500,
  683. y: '2%',
  684. icon: 'rect',
  685. textStyle: {
  686. color: "#fff",
  687. fontSize: 30
  688. }
  689. },
  690. xAxis: {
  691. axisTick: {
  692. show: false,
  693. },
  694. axisLine: {
  695. show: false,
  696. },
  697. axisLabel: {
  698. interval: 0,
  699. show: true,
  700. fontSize: 30,
  701. textStyle: {
  702. color: "#fff" //X轴文字颜色
  703. },
  704. },
  705. data: data.x,
  706. },
  707. yAxis: {
  708. type: "value",
  709. name: "人",
  710. gridIndex: 0,
  711. // splitNumber: 4,
  712. splitLine: {
  713. show: false,
  714. lineStyle: {
  715. color: '#A3C0DF',
  716. width: 1
  717. },
  718. },
  719. nameTextStyle: {
  720. fontSize: 30,
  721. },
  722. axisTick: {
  723. show: false
  724. },
  725. axisLine: {
  726. show: false,
  727. lineStyle: {
  728. color: '#A3C0DF'
  729. }
  730. },
  731. axisLabel: {
  732. show: true,
  733. margin: 14,
  734. fontSize: 28,
  735. textStyle: {
  736. color: "#fff" //X轴文字颜色
  737. }
  738. },
  739. },
  740. series: [{
  741. type: 'bar',
  742. name: "双选人数",
  743. barWidth: 26,
  744. itemStyle: {
  745. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  746. offset: 1,
  747. color: '#40A9FF',
  748. },
  749. {
  750. offset: 0,
  751. color: '#082049',
  752. },
  753. ]),
  754. },
  755. data: data.y1,
  756. }, {
  757. type: 'bar',
  758. name: "报名人数",
  759. barWidth: 26,
  760. itemStyle: {
  761. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  762. offset: 1,
  763. color: '#EAE179',
  764. },
  765. {
  766. offset: 0,
  767. color: '#082049',
  768. },
  769. ]),
  770. },
  771. data: data.y2,
  772. }, {
  773. type: 'bar',
  774. name: "录用人数",
  775. barWidth: 26,
  776. itemStyle: {
  777. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  778. offset: 1,
  779. color: '#6A83FF',
  780. },
  781. {
  782. offset: 0,
  783. color: '#082049',
  784. },
  785. ]),
  786. },
  787. data: data.y3,
  788. }]
  789. };
  790. this.downhole.setOption(option);
  791. tools.loopShowTooltip(this.downhole, option, {
  792. nterval: 2000,
  793. loopSeries: true,
  794. });
  795. },
  796. scrollChange(index) {
  797. this.rollFlag = false;
  798. let listIndex = index
  799. if (listIndex >= this.config1.data.length) {
  800. listIndex = index - 11
  801. }
  802. this.recruitInfoIndex = listIndex
  803. this.address = this.config1.data[listIndex][0] + "。"
  804. this.rollTitle = this.config1.data[listIndex][0] + this.config1.data[listIndex][1] + "双选公告"
  805. setTimeout(() => {
  806. this.rollFlag = true
  807. })
  808. },
  809. initRightCycle(el, data) {
  810. var getvalue = [data];
  811. let chat = echarts.init(el)
  812. option = {
  813. title: {
  814. text: getvalue + '%',
  815. textStyle: {
  816. color: '#fff',
  817. fontSize: 20
  818. },
  819. itemGap: 20,
  820. left: '55%',
  821. top: '38%'
  822. },
  823. // tooltip: {
  824. // formatter: function (params) {
  825. // return '<span style="color: #fff;">综合得分:' + getvalue + '分</span>';
  826. // }
  827. // },
  828. angleAxis: {
  829. max: 100,
  830. clockwise: true, // 逆时针
  831. // 隐藏刻度线
  832. show: false
  833. },
  834. radiusAxis: {
  835. type: 'category',
  836. show: true,
  837. axisLabel: {
  838. show: false,
  839. },
  840. axisLine: {
  841. show: false,
  842. },
  843. axisTick: {
  844. show: false
  845. },
  846. },
  847. polar: {
  848. center: ['70%', '50%'],
  849. radius: ['60%', '75%'],
  850. // radius: '100%' //图形大小
  851. },
  852. series: [{
  853. type: 'bar',
  854. data: getvalue,
  855. showBackground: true,
  856. backgroundStyle: {
  857. color: '#BDEBFF',
  858. },
  859. coordinateSystem: 'polar',
  860. roundCap: true,
  861. barWidth: 30,
  862. itemStyle: {
  863. normal: {
  864. opacity: 1,
  865. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  866. offset: 0,
  867. color: '#25BFFF'
  868. }, {
  869. offset: 1,
  870. color: '#5284DE'
  871. }]),
  872. shadowBlur: 5,
  873. shadowColor: '#2A95F9',
  874. }
  875. },
  876. }]
  877. };
  878. chat.setOption(option)
  879. },
  880. initLineRight(el, data) {
  881. let that = this;
  882. let myChart = echarts.init(el);
  883. let nameList = ["a"];
  884. let valueList = [data.value];
  885. let total = data.total; // 数据总数
  886. var category = nameList.map((item, index) => {
  887. return {
  888. value: valueList[index],
  889. itemStyle: {
  890. color: new echarts.graphic.LinearGradient(
  891. 1,
  892. 0,
  893. 0,
  894. 1, [{
  895. offset: 0,
  896. color: "#40A9FF50",
  897. },
  898. {
  899. offset: 1,
  900. color: "#40A9FF",
  901. },
  902. ],
  903. false
  904. ),
  905. },
  906. };
  907. });
  908. var totalList = [];
  909. var totalBorderList = [];
  910. nameList.map((item, index) => {
  911. totalList.push({
  912. value: total,
  913. itemStyle: {
  914. color: "rgba(51, 147, 236, 0.29)",
  915. },
  916. });
  917. totalBorderList.push({
  918. value: total,
  919. itemStyle: {
  920. borderColor: "rgba(51, 147, 236, 0.29)",
  921. color: "transparent",
  922. },
  923. });
  924. });
  925. var datas = [];
  926. category.forEach((value) => {
  927. datas.push(value.value);
  928. });
  929. if (total == 0) {
  930. total += 1
  931. }
  932. option = {
  933. // backgroundColor: 'rgb(231,238,249)',
  934. xAxis: {
  935. max: total,
  936. splitLine: {
  937. show: false,
  938. },
  939. axisLine: {
  940. show: false,
  941. },
  942. axisLabel: {
  943. show: false,
  944. },
  945. axisTick: {
  946. show: false,
  947. },
  948. },
  949. grid: {
  950. left: "1%",
  951. top: 20, // 设置条形图的边距
  952. right: "40%",
  953. bottom: 20,
  954. },
  955. yAxis: [{
  956. type: "category",
  957. inverse: false,
  958. data: nameList,
  959. axisLine: {
  960. show: false,
  961. },
  962. axisTick: {
  963. show: false,
  964. },
  965. axisLabel: {
  966. show: false,
  967. },
  968. },],
  969. series: [{
  970. // 内
  971. type: "bar",
  972. barWidth: 16,
  973. barGap: "20%",
  974. silent: true,
  975. // label: {
  976. // normal: {
  977. // formatter: (item) => {
  978. // return `${item['name']}:${item['value']} `;
  979. // },
  980. // textStyle: {
  981. // color: 'rgba(105, 120, 136, 1)',
  982. // fontSize: 14,
  983. // },
  984. // position: [0, '-25px'],
  985. // show: true,
  986. // },
  987. // },
  988. data: category,
  989. z: 1,
  990. itemStyle: {
  991. normal: {
  992. color: new echarts.graphic.LinearGradient(
  993. 1,
  994. 0,
  995. 0,
  996. 1, [{
  997. offset: 0,
  998. color: "rgba(81, 193, 156, 1)",
  999. },
  1000. {
  1001. offset: 1,
  1002. color: "rgba(234, 177, 100, 1)",
  1003. },
  1004. ],
  1005. false
  1006. ),
  1007. },
  1008. },
  1009. animationEasing: "elasticOut",
  1010. },
  1011. {
  1012. // 分隔
  1013. type: "pictorialBar",
  1014. itemStyle: {
  1015. normal: {
  1016. color: "#143362",
  1017. },
  1018. },
  1019. symbolRepeat: "fixed",
  1020. symbolMargin: 8,
  1021. symbol: "rect",
  1022. symbolClip: false,
  1023. symbolSize: [4, 20],
  1024. symbolPosition: "start",
  1025. symbolOffset: [0, -2],
  1026. symbolBoundingData: total,
  1027. data: [total, total, total, total],
  1028. z: 2,
  1029. animationEasing: "elasticOut",
  1030. },
  1031. {
  1032. // label
  1033. type: "pictorialBar",
  1034. symbolBoundingData: total,
  1035. itemStyle: {
  1036. normal: {
  1037. color: "none",
  1038. },
  1039. },
  1040. label: {
  1041. normal: {
  1042. formatter: (params) => {
  1043. var text;
  1044. if (total == 0) {
  1045. text = `0 人 | 0%`;
  1046. return text
  1047. }
  1048. if (params.value >= 10) {
  1049. if (((params.value / total) * 100).toFixed(0) < 10) {
  1050. text = `${(" " + params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
  1051. } else {
  1052. text = `${(params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
  1053. }
  1054. } else {
  1055. text = `${(" " + params.value)}人 | ${(((params.value) / total) * 100).toFixed(0)}%`;
  1056. }
  1057. return text;
  1058. },
  1059. textStyle: {
  1060. // 图列内容样式
  1061. fontSize: "30",
  1062. fontWeight: 800,
  1063. },
  1064. position: "right",
  1065. offset: [0, -3],
  1066. distance: 10, // 向右偏移位置
  1067. show: true,
  1068. color: "#FFF",
  1069. },
  1070. },
  1071. data: datas,
  1072. z: 0,
  1073. },
  1074. {
  1075. name: "外框",
  1076. type: "bar",
  1077. barGap: "-130%", // 设置外框粗细
  1078. data: totalBorderList,
  1079. barWidth: 26,
  1080. itemStyle: {
  1081. normal: {
  1082. // barBorderRadius: [5, 5, 5, 5],
  1083. borderWidth: 1, // 边框宽度
  1084. borderColor: "rgb(51, 147, 236)", // 边框色
  1085. color: "rgb(231,238,249)",
  1086. },
  1087. },
  1088. z: 0,
  1089. },
  1090. ],
  1091. };
  1092. //轮播
  1093. // tools.loopShowTooltip(leftEcharts1, option, {
  1094. // interval: 2000,
  1095. // loopSeries: true,
  1096. // });
  1097. //注册
  1098. myChart.setOption(option);
  1099. },
  1100. initVitaEcharts(el, data) {
  1101. let that = this;
  1102. this.vitaEcharts = echarts.init(el)
  1103. let dataList = [...that.vitaData.y]
  1104. let max = dataList.sort(function (a, b) {
  1105. return b - a
  1106. })[0]
  1107. let maxList = []
  1108. this.vitaData.x.forEach(item => {
  1109. maxList.push(max)
  1110. })
  1111. option = {
  1112. tooltip: {
  1113. show: true,
  1114. backgroundColor: 'rgba(0, 0, 0, 0.3)',
  1115. borderColor: "rgba(0,0,0,0.5)",
  1116. trigger: 'axis',
  1117. textStyle: {
  1118. fontSize: 30,
  1119. color: '#A3E2F4'
  1120. },
  1121. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  1122. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  1123. },
  1124. formatter: "{a} : {c}人"
  1125. },
  1126. animation: true,
  1127. grid: {
  1128. top: "12%",
  1129. bottom: "8%",
  1130. right: "2%"
  1131. },
  1132. xAxis: {
  1133. data: that.vitaData.x,
  1134. axisLine: {
  1135. show: false //隐藏X轴轴线
  1136. },
  1137. axisTick: {
  1138. show: false //隐藏X轴轴线
  1139. },
  1140. splitLine: {
  1141. show: false,
  1142. lineStyle: {
  1143. color: "rgba(77, 128, 254, 0.2)",
  1144. width: 2
  1145. }
  1146. },
  1147. axisLabel: {
  1148. show: true,
  1149. interval: 0,
  1150. fontSize: 24,
  1151. textStyle: {
  1152. color: "#fff" //X轴文字颜色
  1153. }
  1154. }
  1155. },
  1156. yAxis: [{
  1157. name: "报名/人",
  1158. type: "value",
  1159. gridIndex: 0,
  1160. min: 0,
  1161. max: 100,
  1162. interval: 25,
  1163. // splitNumber: 4,
  1164. splitLine: {
  1165. show: false,
  1166. lineStyle: {
  1167. color: "rgba(77, 128, 254, 0.2)",
  1168. width: 2
  1169. }
  1170. },
  1171. axisTick: {
  1172. show: false
  1173. },
  1174. nameTextStyle: {
  1175. fontSize: 28,
  1176. color: "#B6BFCE"
  1177. },
  1178. axisLine: {
  1179. show: false,
  1180. lineStyle: {
  1181. color: "rgba(77, 128, 254, 0.2)"
  1182. }
  1183. },
  1184. axisLabel: {
  1185. show: true,
  1186. margin: 14,
  1187. fontSize: 26,
  1188. textStyle: {
  1189. color: "#65D5FF"
  1190. }
  1191. }
  1192. }],
  1193. series: [{
  1194. name: "报名人数",
  1195. type: "bar",
  1196. barWidth: 16,
  1197. itemStyle: {
  1198. normal: {
  1199. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1200. offset: 1,
  1201. color: "#004E8E"
  1202. },
  1203. {
  1204. offset: 0,
  1205. color: "#40A9FF"
  1206. }
  1207. ])
  1208. }
  1209. },
  1210. data: that.vitaData.y,
  1211. z: 10,
  1212. zlevel: 0
  1213. },
  1214. {
  1215. // 分隔
  1216. type: "pictorialBar",
  1217. itemStyle: {
  1218. normal: {
  1219. color: "#0F375F"
  1220. }
  1221. },
  1222. symbolRepeat: "fixed",
  1223. symbolMargin: 6,
  1224. symbol: "rect",
  1225. symbolClip: true,
  1226. symbolSize: [18, 2],
  1227. symbolPosition: "start",
  1228. symbolOffset: [1, 1],
  1229. data: that.vitaData.y,
  1230. width: 2,
  1231. z: 0,
  1232. zlevel: 1
  1233. },
  1234. {
  1235. name: "外框",
  1236. type: "bar",
  1237. barGap: "-110%", // 设置外框粗细
  1238. data: maxList,
  1239. barWidth: 16,
  1240. itemStyle: {
  1241. normal: {
  1242. color: "transparent", // 填充色
  1243. // barBorderRadius: 0, //圆角半径
  1244. label: {
  1245. // 标签显示位置
  1246. show: false,
  1247. position: "top" // insideTop 或者横向的 insideLeft
  1248. }
  1249. }
  1250. },
  1251. z: 0
  1252. },
  1253. {
  1254. name: "背影",
  1255. type: "line",
  1256. smooth: true, //平滑曲线显示
  1257. showAllSymbol: false, //显示所有图形。
  1258. symbolSize: 0,
  1259. lineStyle: {
  1260. width: 0
  1261. },
  1262. areaStyle: {
  1263. color: "rgba(0, 151, 251, 0.1)"
  1264. },
  1265. data: that.vitaData.y,
  1266. z: 5
  1267. }
  1268. ],
  1269. dataZoom: [{
  1270. type: "slider",
  1271. show: false,
  1272. xAxisIndex: [0],
  1273. endValue: 12,
  1274. startValue: 0
  1275. }]
  1276. }
  1277. this.vitaEcharts.setOption(option)
  1278. tools.loopShowTooltip(this.vitaEcharts, option, {
  1279. nterval: 2000,
  1280. loopSeries: true,
  1281. });
  1282. },
  1283. initRoseEcharts(el, myData = {
  1284. number: ['10', '13', '20'],
  1285. titlename: ["地面", "辅助", "一线"],
  1286. }) {
  1287. this.roseEcharts = echarts.init(el)
  1288. var colorArr = ["#218de0", "#01cbb3", "#85e647", "#5d5cda", "#f6d54a", "#f845f1"];
  1289. 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)'];
  1290. var myProperty = {
  1291. titlefontsize: 30,
  1292. polarradius: '60%',
  1293. pieradius: '60%',
  1294. length1: 10,
  1295. length2: 55,
  1296. };
  1297. var data = [];
  1298. var total = 0;
  1299. for (var i = 0; i < myData.number.length; i++) {
  1300. total += (Number)(myData.number[i]);
  1301. }
  1302. for (let index = 0; index < myData.titlename.length; index++) {
  1303. data.push({
  1304. value: myData.number[index],
  1305. name: myData.titlename[index],
  1306. itemStyle: {
  1307. normal: {
  1308. borderColor: colorArr[index],
  1309. borderWidth: 2,
  1310. shadowBlur: 20,
  1311. shadowColor: colorArr[index],
  1312. shadowOffsetx: 25,
  1313. shadowOffsety: 20,
  1314. color: colorAlpha[index]
  1315. }
  1316. },
  1317. label: {
  1318. normal: {
  1319. formatter: ['{b|{b}: {c}个}', '{d| {d}%}'].join('\n'), //join函数将数组中的元素用选择的分隔符拼接成一个字符串
  1320. rich: {
  1321. b: {
  1322. color: colorArr[index],
  1323. fontSize: myProperty.titlefontsize,
  1324. lineHeight: 20
  1325. },
  1326. d: {
  1327. color: '#d0fffc',
  1328. fontSize: myProperty.titlefontsize, //手动输入的字体大小
  1329. height: 50,
  1330. align: 'center', //这里是控制文本的位置 此时是居中
  1331. },
  1332. },
  1333. }
  1334. },
  1335. })
  1336. }
  1337. option = {
  1338. grid: {
  1339. left: -100,
  1340. top: 50,
  1341. bottom: 10,
  1342. right: 10,
  1343. containLabel: true
  1344. },
  1345. tooltip: {
  1346. show: true,
  1347. backgroundColor: 'rgba(0, 0, 0, 0.3)',
  1348. borderColor: "rgba(0,0,0,0.5)",
  1349. trigger: 'item',
  1350. textStyle: {
  1351. fontSize: 30,
  1352. color: '#A3E2F4'
  1353. },
  1354. },
  1355. polar: {
  1356. // radius: ['0%','60%'],
  1357. //radius:[0,200]
  1358. radius: myProperty.polarradius,
  1359. },
  1360. angleAxis: {
  1361. interval: 1,
  1362. type: 'category',
  1363. data: [],
  1364. z: 10,
  1365. axisLine: {
  1366. show: false,
  1367. lineStyle: {
  1368. color: "#0B4A6B",
  1369. width: 1,
  1370. type: "solid"
  1371. },
  1372. },
  1373. axisLabel: {
  1374. interval: 0,
  1375. show: true,
  1376. color: "#0B4A6B",
  1377. margin: 8,
  1378. fontSize: 16
  1379. },
  1380. },
  1381. radiusAxis: {
  1382. min: 20,
  1383. max: 120,
  1384. interval: 20,
  1385. axisLine: {
  1386. show: false,
  1387. lineStyle: {
  1388. color: "#0B3E5E",
  1389. width: 1,
  1390. type: "solid"
  1391. },
  1392. },
  1393. axisLabel: {
  1394. formatter: '{value} %',
  1395. show: false,
  1396. padding: [0, 0, 20, 0],
  1397. color: "#0B3E5E",
  1398. fontSize: 16
  1399. },
  1400. splitLine: {
  1401. lineStyle: {
  1402. color: "#07385e",
  1403. width: 2,
  1404. type: "dashed"
  1405. }
  1406. },
  1407. },
  1408. calculable: true,
  1409. series: [{
  1410. stack: 'a',
  1411. type: 'pie',
  1412. radius: myProperty.pieradius,
  1413. roseType: 'radius',
  1414. zlevel: 10,
  1415. startAngle: 100,
  1416. labelLine: {
  1417. normal: {
  1418. show: true,
  1419. length: myProperty.length1,
  1420. length2: myProperty.length2,
  1421. lineStyle: {
  1422. color: '#0096b1'
  1423. }
  1424. },
  1425. emphasis: {
  1426. show: false
  1427. }
  1428. },
  1429. data: data,
  1430. },]
  1431. };
  1432. this.roseEcharts.setOption(option)
  1433. tools.loopShowTooltip(this.roseEcharts, option, {
  1434. nterval: 2000,
  1435. loopSeries: true,
  1436. });
  1437. },
  1438. initChartsBig(arr = [
  1439. {
  1440. name: '地面',
  1441. y: 10,
  1442. sliced: false,
  1443. selected: false,
  1444. },
  1445. {
  1446. name: '辅助',
  1447. y: 10,
  1448. sliced: false,
  1449. selected: false,
  1450. },
  1451. {
  1452. name: '一线',
  1453. y: 10,
  1454. sliced: false,
  1455. selected: false,
  1456. },
  1457. ]) {
  1458. let left5 = arr
  1459. var chartData = left5
  1460. var timer = null;
  1461. var i = 0;
  1462. let that = this
  1463. var option = {
  1464. colors: [
  1465. "#D9E1F2",
  1466. "#B4C6E7",
  1467. "#8EA9DB",
  1468. "#305496",
  1469. "#203764",
  1470. ],
  1471. chart: {
  1472. type: 'pie',
  1473. backgroundColor: 'rgba(0,0,0,0)',
  1474. options3d: {
  1475. enabled: true,
  1476. alpha: 45,
  1477. //beta: 0
  1478. },
  1479. events: {
  1480. // load,图表加载完成时触发
  1481. load: function () {
  1482. var chart = this;
  1483. var points = chart.series[0].points;
  1484. var len = points.length;
  1485. timer && clearInterval(timer);
  1486. timer = setInterval(function () {
  1487. autoTooltip(points[i]);
  1488. chartData.forEach((item, index) => {
  1489. item.sliced = false
  1490. item.selected = false
  1491. if (index == i) {
  1492. item.sliced = true
  1493. item.selected = true
  1494. }
  1495. })
  1496. chart.update({
  1497. series: [{
  1498. type: 'pie',
  1499. name: '占比',
  1500. data: chartData
  1501. }]
  1502. })
  1503. i++;
  1504. if (i === len) {
  1505. i = 0;
  1506. chartData.forEach((item, index) => {
  1507. item.sliced = false
  1508. item.selected = false
  1509. })
  1510. chart.update({
  1511. series: [{
  1512. type: 'pie',
  1513. name: '占比',
  1514. data: chartData
  1515. }]
  1516. })
  1517. }
  1518. }, 1000);
  1519. },
  1520. legendItemClick: function (event) {
  1521. return true;
  1522. }
  1523. }
  1524. },
  1525. credits: {
  1526. enabled: false //去掉hightchats水印
  1527. },
  1528. legend: {
  1529. align: 'right', //横向位置
  1530. verticalAlign: 'middle', // 纵向位置
  1531. layout: "vertical", //横排还是竖排
  1532. x: 10,
  1533. y: 100,
  1534. symbolWidth: 30,
  1535. itemStyle: {
  1536. fontSize: '30px',
  1537. color: '#fff',
  1538. x: 20,
  1539. fontWeight: 0,
  1540. fontFamily: 'Microsoft YaHei'
  1541. },
  1542. },
  1543. title: {
  1544. enabled: false,
  1545. text: "",
  1546. },
  1547. tooltip: {
  1548. crosshairs: false,
  1549. trigger: "axis",
  1550. backgroundColor: 'rgba(0, 0, 0, 0.5)',
  1551. borderColor: "rgba(0,0,0,0.5)",
  1552. style: {
  1553. fontSize: 30,
  1554. color: '#A3E2F4',
  1555. fontWeight: 0,
  1556. },
  1557. axisPointer: {
  1558. lineStyle: {
  1559. color: "#ddd",
  1560. },
  1561. },
  1562. formatter: function (e) {
  1563. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1564. return `${this.key}:<b><b>${this.y}</b>(${this.percentage}%)</b></b>`
  1565. },
  1566. },
  1567. plotOptions: {
  1568. pie: {
  1569. allowPointSelect: true,
  1570. showInLegend: true, // 图例
  1571. cursor: 'pointer',
  1572. size: 350,
  1573. innerSize: 0, //环形图中间空白,0为饼图
  1574. depth: 80, //立体高度
  1575. slicedOffset: 40, //动画距离
  1576. dataLabels: {
  1577. enabled: false, // 是否展示指示线
  1578. format: '{point.name}: {point.percentage}'
  1579. }
  1580. },
  1581. },
  1582. series: [{
  1583. type: 'pie',
  1584. name: '占比',
  1585. center: ['50%', '50%'],
  1586. point: {
  1587. events: {
  1588. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1589. chartData.forEach((item, index) => {
  1590. item.sliced = false
  1591. item.selected = false
  1592. })
  1593. chartData[e.target.index].sliced = true
  1594. chartData[e.target.index].selected = true
  1595. chart.update({
  1596. series: [{
  1597. type: 'pie',
  1598. name: '占比',
  1599. point: {
  1600. events: {
  1601. click: function (e) {
  1602. that.showChartLTipDouble(e.point.name)
  1603. }
  1604. }
  1605. },
  1606. data: chartData
  1607. }]
  1608. })
  1609. timer && clearInterval(timer);
  1610. },
  1611. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1612. var points = chart.series[0].points;
  1613. var len = points.length;
  1614. timer && clearInterval(timer);
  1615. timer = setInterval(function () {
  1616. autoTooltip(points[i]);
  1617. chartData.forEach((item, index) => {
  1618. item.sliced = false
  1619. item.selected = false
  1620. if (index == i) {
  1621. item.sliced = true
  1622. item.selected = true
  1623. }
  1624. })
  1625. chart.update({
  1626. series: [{
  1627. type: 'pie',
  1628. name: '占比',
  1629. data: chartData
  1630. }]
  1631. })
  1632. i++;
  1633. if (i === len) {
  1634. i = 0;
  1635. chartData.forEach((item, index) => {
  1636. item.sliced = false
  1637. item.selected = false
  1638. })
  1639. chart.update({
  1640. series: [{
  1641. type: 'pie',
  1642. name: '占比',
  1643. data: chartData
  1644. }]
  1645. })
  1646. }
  1647. }, 2000);
  1648. }
  1649. }
  1650. },
  1651. data: chartData
  1652. }]
  1653. }
  1654. if (that.hecharts) {
  1655. that.hecharts.destroy();
  1656. }
  1657. that.hecharts = Highcharts.chart('echartL2', option);
  1658. function autoTooltip(point) {
  1659. that.hecharts.tooltip.refresh(point);
  1660. }
  1661. },
  1662. initThreeBig(el) {
  1663. let that = this
  1664. this.roseEcharts = echarts.init(el)
  1665. var placeHolderStyle = {
  1666. normal: {
  1667. label: {
  1668. show: false
  1669. },
  1670. labelLine: {
  1671. show: false
  1672. },
  1673. color: "rgba(0,0,0,0)",
  1674. borderWidth: 0
  1675. },
  1676. emphasis: {
  1677. color: "rgba(0,0,0,0)",
  1678. borderWidth: 0
  1679. }
  1680. };
  1681. var dataStyle = {
  1682. normal: {
  1683. formatter: function (res) {
  1684. return res.data.value
  1685. },
  1686. position: 'center',
  1687. show: true,
  1688. textStyle: {
  1689. fontSize: '35',
  1690. fontWeight: 'bolder',
  1691. color: '#fff'
  1692. }
  1693. }
  1694. };
  1695. option = {
  1696. title: [{
  1697. text: '地面',
  1698. left: '19%',
  1699. top: '70%',
  1700. textAlign: 'center',
  1701. textStyle: {
  1702. fontWeight: 'normal',
  1703. fontSize: '30',
  1704. color: '#fff',
  1705. textAlign: 'center',
  1706. },
  1707. }, {
  1708. text: '辅助',
  1709. left: '49%',
  1710. top: '70%',
  1711. textAlign: 'center',
  1712. textStyle: {
  1713. color: '#fff',
  1714. fontWeight: 'normal',
  1715. fontSize: '30',
  1716. textAlign: 'center',
  1717. },
  1718. }, {
  1719. text: '一线',
  1720. left: '79%',
  1721. top: '70%',
  1722. textAlign: 'center',
  1723. textStyle: {
  1724. color: '#fff',
  1725. fontWeight: 'normal',
  1726. fontSize: '30',
  1727. textAlign: 'center',
  1728. },
  1729. }],
  1730. series: [{
  1731. type: 'pie',
  1732. hoverAnimation: false, //鼠标经过的特效
  1733. // radius: ['55%', '61%'],
  1734. radius: ['45%', '50%'],
  1735. center: ['20%', '50%'],
  1736. startAngle: 225,
  1737. labelLine: {
  1738. normal: {
  1739. show: false
  1740. }
  1741. },
  1742. label: {
  1743. normal: {
  1744. position: 'center'
  1745. }
  1746. },
  1747. data: [{
  1748. value: that.recruitTypeList[0] || 0,
  1749. itemStyle: {
  1750. normal: {
  1751. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1752. offset: 0,
  1753. color: '#99da69'
  1754. }, {
  1755. offset: 1,
  1756. color: '#01babc'
  1757. }]),
  1758. }
  1759. },
  1760. label: dataStyle,
  1761. }, {
  1762. value: that.recruitTypeMax || 0,
  1763. itemStyle: placeHolderStyle,
  1764. },
  1765. ]
  1766. },
  1767. {
  1768. type: 'pie',
  1769. hoverAnimation: false, //鼠标经过的特效
  1770. radius: ['45%', '50%'],
  1771. center: ['50%', '50%'],
  1772. startAngle: 225,
  1773. labelLine: {
  1774. normal: {
  1775. show: false
  1776. }
  1777. },
  1778. label: {
  1779. normal: {
  1780. position: 'center'
  1781. }
  1782. },
  1783. data: [{
  1784. value: that.recruitTypeList[1] || 0,
  1785. itemStyle: {
  1786. normal: {
  1787. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1788. offset: 0,
  1789. color: '#FBAB7E'
  1790. }, {
  1791. offset: 1,
  1792. color: '#F7CE68'
  1793. }]),
  1794. }
  1795. },
  1796. label: dataStyle,
  1797. }, {
  1798. value: that.recruitTypeMax || 0,
  1799. itemStyle: placeHolderStyle,
  1800. },
  1801. ]
  1802. },
  1803. {
  1804. type: 'pie',
  1805. hoverAnimation: false,
  1806. // radius: ['55%', '61%'],
  1807. radius: ['45%', '50%'],
  1808. center: ['80%', '50%'],
  1809. startAngle: 225,
  1810. labelLine: {
  1811. normal: {
  1812. show: false
  1813. }
  1814. },
  1815. label: {
  1816. normal: {
  1817. position: 'center'
  1818. }
  1819. },
  1820. data: [{
  1821. value: that.recruitTypeList[2] || 0,
  1822. itemStyle: {
  1823. normal: {
  1824. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1825. offset: 0,
  1826. color: '#9f3edd'
  1827. }, {
  1828. offset: 1,
  1829. color: '#4897f6'
  1830. }]),
  1831. }
  1832. },
  1833. label: dataStyle,
  1834. }, {
  1835. value: that.recruitTypeMax || 0,
  1836. itemStyle: placeHolderStyle,
  1837. },
  1838. ]
  1839. },
  1840. //外圈的边框
  1841. {
  1842. // name: '总人数',
  1843. type: 'pie',
  1844. hoverAnimation: false, //鼠标经过的特效
  1845. radius: ['51%', '52%'],
  1846. center: ['20%', '50%'],
  1847. startAngle: 225,
  1848. labelLine: {
  1849. normal: {
  1850. show: false
  1851. }
  1852. },
  1853. label: {
  1854. normal: {
  1855. position: 'center'
  1856. }
  1857. },
  1858. data: [{
  1859. value: 12,
  1860. itemStyle: {
  1861. normal: {
  1862. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1863. offset: 0,
  1864. color: '#01babc'
  1865. }, {
  1866. offset: 1,
  1867. color: '#99da69'
  1868. }]),
  1869. }
  1870. },
  1871. }, {
  1872. value: 4,
  1873. itemStyle: placeHolderStyle,
  1874. },
  1875. ]
  1876. },
  1877. {
  1878. // name: '总人数',
  1879. type: 'pie',
  1880. hoverAnimation: false, //鼠标经过的特效
  1881. // radius: ['61%', '62%'],
  1882. radius: ['51%', '52%'],
  1883. center: ['50%', '50%'],
  1884. startAngle: 225,
  1885. labelLine: {
  1886. normal: {
  1887. show: false
  1888. }
  1889. },
  1890. label: {
  1891. normal: {
  1892. position: 'center'
  1893. }
  1894. },
  1895. data: [{
  1896. value: 15,
  1897. itemStyle: {
  1898. normal: {
  1899. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1900. offset: 0,
  1901. color: '#FBAB7E'
  1902. }, {
  1903. offset: 1,
  1904. color: '#F7CE68'
  1905. }]),
  1906. }
  1907. },
  1908. }, {
  1909. value: 5,
  1910. itemStyle: placeHolderStyle,
  1911. },
  1912. ]
  1913. },
  1914. {
  1915. type: 'pie',
  1916. hoverAnimation: false,
  1917. // radius: ['61%', '62%'],
  1918. radius: ['51%', '52%'],
  1919. center: ['80%', '50%'],
  1920. startAngle: 225,
  1921. labelLine: {
  1922. normal: {
  1923. show: false
  1924. }
  1925. },
  1926. label: {
  1927. normal: {
  1928. position: 'center'
  1929. }
  1930. },
  1931. data: [{
  1932. value: 9,
  1933. itemStyle: {
  1934. normal: {
  1935. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1936. offset: 0,
  1937. color: '#4897f6'
  1938. }, {
  1939. offset: 1,
  1940. color: '#9f3edd'
  1941. }]),
  1942. }
  1943. },
  1944. }, {
  1945. value: 3,
  1946. itemStyle: placeHolderStyle,
  1947. },
  1948. ]
  1949. },
  1950. ]
  1951. };
  1952. this.roseEcharts.setOption(option)
  1953. // tools.loopShowTooltip(this.roseEcharts, option, {
  1954. // nterval: 2000,
  1955. // loopSeries: true,
  1956. // });
  1957. },
  1958. handleClick(from, type) {
  1959. this.handleMark()
  1960. this.from = from
  1961. this.type = type
  1962. let that = this;
  1963. if (from == "timeList1" && type == 1) {
  1964. that.markStyle = {
  1965. right: "1%",
  1966. bottom: "4%"
  1967. }
  1968. } else if (from == "timeList1" && type == 0) {
  1969. that.markStyle = {
  1970. right: "5%",
  1971. bottom: "4%"
  1972. }
  1973. } else if (from == "timeList2" && type == 0) {
  1974. that.markStyle = {
  1975. right: "87%",
  1976. bottom: "43%"
  1977. }
  1978. } else if (from == "timeList2" && type == 1) {
  1979. that.markStyle = {
  1980. right: "84%",
  1981. bottom: "43%"
  1982. }
  1983. }
  1984. this.showMark = true
  1985. this.showSelect = true
  1986. },
  1987. handleMark() {
  1988. this.showMark = false
  1989. this.showSelect = false
  1990. this.showMonth = false
  1991. },
  1992. handleOption(item) {
  1993. this[this.from][this.type] = item
  1994. this.handleMark()
  1995. if (this.from == "timeList2") {
  1996. this.getPositionAll()
  1997. }
  1998. if (this.from == "timeList1") {
  1999. this.getDelivcvAndApply()
  2000. }
  2001. console.log(this.from);
  2002. },
  2003. handleMonthOption(item) {
  2004. this.monthItem = item
  2005. this.handleMark()
  2006. },
  2007. handleMonth() {
  2008. this.handleMark()
  2009. this.showMark = true
  2010. this.showMonth = true
  2011. },
  2012. ortherEcharts(el, data) {
  2013. this.vitaEcharts = echarts.init(el);
  2014. option = {
  2015. tooltip: {
  2016. show: true,
  2017. trigger: 'axis',
  2018. textStyle: {
  2019. fontSize: 30,
  2020. color: '#A3E2F4'
  2021. },
  2022. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  2023. type: 'none' // 默认为直线,可选为:'line' | 'shadow'
  2024. }
  2025. },
  2026. grid: {
  2027. top: '8%',
  2028. left: '1%',
  2029. right: '1%',
  2030. bottom: '8%',
  2031. containLabel: true,
  2032. },
  2033. xAxis: [{
  2034. type: 'category',
  2035. boundaryGap: false,
  2036. axisLine: { //坐标轴轴线相关设置。数学上的x轴
  2037. show: false,
  2038. lineStyle: {
  2039. color: '#233e64'
  2040. },
  2041. },
  2042. axisLabel: { //坐标轴刻度标签的相关设置
  2043. textStyle: {
  2044. color: '#fff',
  2045. fontSize: 26,
  2046. margin: 15,
  2047. },
  2048. },
  2049. axisTick: { show: false, },
  2050. data: ['6.1', '6.2', '6.3', '6.4', '6.5', '6.6', '6.7'],
  2051. }],
  2052. yAxis: [{
  2053. type: 'value',
  2054. min: 0,
  2055. max: 140,
  2056. splitLine: {
  2057. show: true,
  2058. lineStyle: {
  2059. color: '#233e64'
  2060. }
  2061. },
  2062. axisLine: { show: false, },
  2063. axisLabel: {
  2064. margin: 20,
  2065. textStyle: {
  2066. color: '#fff',
  2067. fontSize: 24,
  2068. },
  2069. },
  2070. axisTick: { show: false, },
  2071. }],
  2072. series: [{
  2073. name: '异常流量',
  2074. type: 'line',
  2075. smooth: true, //是否平滑曲线显示
  2076. symbol: 'circle', // 默认是空心圆(中间是白色的),改成实心圆
  2077. symbolSize: 0,
  2078. lineStyle: {
  2079. normal: {
  2080. color: "#3deaff" // 线条颜色
  2081. }
  2082. },
  2083. areaStyle: { //区域填充样式
  2084. normal: {
  2085. //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。
  2086. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2087. { offset: 0, color: 'rgba(61,234,255, 0.9)' },
  2088. { offset: 0.7, color: 'rgba(61,234,255, 0.1)' }
  2089. ], false),
  2090. shadowColor: 'rgba(53,142,215, 0.9)', //阴影颜色
  2091. shadowBlur: 20 //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。
  2092. }
  2093. },
  2094. data: [90, 105, 84, 125, 110, 92, 98]
  2095. }]
  2096. };
  2097. this.vitaEcharts.setOption(option);
  2098. tools.loopShowTooltip(this.vitaEcharts, option, {
  2099. nterval: 2000,
  2100. loopSeries: true,
  2101. });
  2102. },
  2103. hanleIcon() {
  2104. this.vitaEcharts.dispose()
  2105. this.downholeFlag = !this.downholeFlag
  2106. if (this.downholeFlag) {
  2107. setTimeout(() => {
  2108. let vita = this.$refs.vita
  2109. this.initVitaEcharts(vita)
  2110. })
  2111. }
  2112. // if (this.echartsIndex == 1) {
  2113. // this.ortherEcharts(vita)
  2114. // this.echartsIndex = 2
  2115. // } else {
  2116. // this.echartsIndex = 1
  2117. // }
  2118. },
  2119. handleChangeType(type, index) {
  2120. let that = this;
  2121. if (type) {
  2122. that.rightTime && clearInterval(that.rightTime)
  2123. that.rightList.forEach(item => {
  2124. item.flag = false
  2125. })
  2126. that.rightList[index].flag = true
  2127. that.rightIndex = index
  2128. this.rightTime = setInterval(() => {
  2129. that.rightList.forEach((item, index) => {
  2130. item.flag = !item.flag
  2131. if (item.flag) {
  2132. that.rightIndex = index
  2133. }
  2134. })
  2135. }, 5000)
  2136. } else {
  2137. that.leftTime && clearInterval(that.leftTime)
  2138. that.leftList.forEach(item => {
  2139. item.flag = false
  2140. })
  2141. that.leftList[index].flag = true
  2142. that.leftIndex = index
  2143. if (index == 0) {
  2144. that.leftFlag = true
  2145. } else {
  2146. that.leftFlag = false
  2147. setTimeout(() => {
  2148. let leftChange = that.$refs.leftChange
  2149. that.initThreeBig(leftChange)
  2150. })
  2151. }
  2152. that.leftTime = setInterval(() => {
  2153. that.leftList.forEach((item, index) => {
  2154. item.flag = !item.flag
  2155. if (item.flag) {
  2156. if (index == 0) {
  2157. that.leftFlag = true
  2158. } else {
  2159. that.leftFlag = false
  2160. setTimeout(() => {
  2161. let leftChange = that.$refs.leftChange
  2162. that.initThreeBig(leftChange)
  2163. })
  2164. }
  2165. }
  2166. })
  2167. }, 15000)
  2168. }
  2169. },
  2170. getPlayers() {
  2171. let that = this;
  2172. let data = {
  2173. flag: true
  2174. };
  2175. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/Players", data).then(res => {
  2176. if (res) {
  2177. that.mainList[1].value = res.value
  2178. }
  2179. })
  2180. },
  2181. getPostDetail() {
  2182. let that = this;
  2183. let data = {
  2184. flag: true
  2185. };
  2186. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/PostDetail", data).then(res => {
  2187. let list = []
  2188. let a = []
  2189. res.data.forEach((item, index) => {
  2190. list.push([item[0], item[1], item[2], item[3], item[4]])
  2191. a[index] = []
  2192. item[5].split("&").forEach(i => {
  2193. let infos = i.split("\r\n")
  2194. let obj = {
  2195. title: infos[0],
  2196. content: infos[1]
  2197. }
  2198. a[index].push(obj)
  2199. })
  2200. })
  2201. that.config1.data = list
  2202. that.recruitInfoList.push(...a)
  2203. that.isShowInfoList = true
  2204. that.itemClass = "item_content_99"
  2205. if (that.config1.data.length <= that.config1.rowNum) {
  2206. setInterval(() => {
  2207. // that.configDataIndex
  2208. if (that.configDataIndex >= that.config1.data.length) {
  2209. that.configDataIndex = 1
  2210. that.itemClass = "item_content_99"
  2211. that.funChangeList(0)
  2212. return
  2213. }
  2214. that.itemClass = "item_content_" + (that.configDataIndex + 5)
  2215. that.funChangeList(that.configDataIndex)
  2216. // console.log(that.itemClass);
  2217. that.configDataIndex += 1
  2218. }, that.config1.waitTime)
  2219. } else {
  2220. setTimeout(() => {
  2221. // that.classChange = true
  2222. that.itemClass = "item_content_6"
  2223. setTimeout(() => {
  2224. let itemContent = document.getElementById("itemContent")
  2225. if (itemContent) {
  2226. let target = itemContent.getElementsByClassName("row-item")
  2227. let targetList = target.item(0)
  2228. targetList.style.background = "#302e2d50"
  2229. targetList.style.color = "#E1AF27"
  2230. }
  2231. }, 0)
  2232. }, 5000);
  2233. }
  2234. })
  2235. },
  2236. funChangeList(idnex) {
  2237. let listIndex = idnex
  2238. this.address = this.config1.data[listIndex][0] + "。"
  2239. this.rollTitle = this.config1.data[listIndex][0] + this.config1.data[listIndex][1] + "双选公告"
  2240. setTimeout(() => {
  2241. this.rollFlag = true
  2242. })
  2243. },
  2244. getHalfYearDelivcv() {
  2245. let that = this;
  2246. let data = {
  2247. flag: true
  2248. };
  2249. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/HalfYearDelivcv", data).then(res => {
  2250. if (res) {
  2251. let list = []
  2252. res.forEach(item => {
  2253. if (item.key == "月份") {
  2254. // that.vitaData.x = item.value
  2255. item.value.forEach(i => {
  2256. list.push(i + "月")
  2257. })
  2258. }
  2259. if (item.key == "数量") {
  2260. that.vitaData.y = item.value
  2261. }
  2262. })
  2263. that.vitaData.x = list
  2264. let vita = this.$refs.vita
  2265. that.initVitaEcharts(vita)
  2266. }
  2267. }).catch(err => {
  2268. let vita = this.$refs.vita
  2269. that.initVitaEcharts(vita)
  2270. })
  2271. },
  2272. getHotDelivcv() {
  2273. let that = this;
  2274. let data = {
  2275. flag: true
  2276. };
  2277. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/HotDelivcv", data).then(res => {
  2278. if (res) {
  2279. that.typeList.data = res.data
  2280. }
  2281. })
  2282. },
  2283. arrToListArr() {
  2284. this.isChangeList = false
  2285. let that = this;
  2286. let data = {
  2287. flag: true
  2288. }
  2289. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/Delivcv", data).then(res => {
  2290. let imageList = []
  2291. let nameList = []
  2292. let stationList = []
  2293. let timeList = []
  2294. let dataList = []
  2295. res.data.forEach(item => {
  2296. if (item.key == "头像地址") {
  2297. imageList.push(...item.value)
  2298. }
  2299. if (item.key == "姓名") {
  2300. nameList.push(...item.value)
  2301. }
  2302. if (item.key == "投递岗位") {
  2303. stationList.push(...item.value)
  2304. }
  2305. if (item.key == "申请时间") {
  2306. timeList.push(...item.value)
  2307. }
  2308. })
  2309. nameList.forEach((item, index) => {
  2310. dataList.push(["<img class='list_img' src='" + imageList[index] + "' alt=''>", item, stationList[index], timeList[index]])
  2311. })
  2312. this.configMark.data = dataList
  2313. this.isChangeList = true
  2314. delete imageList
  2315. delete nameList
  2316. delete stationList
  2317. delete timeList
  2318. })
  2319. },
  2320. getDelivcvAndApply() {
  2321. let that = this;
  2322. let data = {
  2323. flag: true,
  2324. data1: that.timeList1[0],
  2325. data2: that.timeList1[1]
  2326. };
  2327. let pageBtm = this.$refs.pageBtm
  2328. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/DelivcvAndApply", data).then(res => {
  2329. if (res) {
  2330. res.data.forEach(item => {
  2331. if (item.key == "单位名称") {
  2332. admissionList.x = item.value
  2333. }
  2334. if (item.key == "招聘人数") {
  2335. admissionList.y1 = item.value
  2336. }
  2337. if (item.key == "报名人数") {
  2338. admissionList.y2 = item.value
  2339. }
  2340. if (item.key == "录用人数") {
  2341. admissionList.y3 = item.value
  2342. }
  2343. })
  2344. }
  2345. this.initDownholeEcharts(pageBtm, { x: admissionList.x, y1: admissionList.y1, y2: admissionList.y2, y3: admissionList.y3 })
  2346. })
  2347. },
  2348. isRendering(data, type, key, flag) {
  2349. let that = this;
  2350. if (that[type] == 0) {
  2351. that[key].data = data
  2352. setTimeout(() => {
  2353. that[flag] = true
  2354. }, 10)
  2355. that[type] = 1
  2356. } else {
  2357. if (data[0][1] != that[key].data[0][1] || data[0][2] != that[key].data[0][2] || data[0][3] != that[key].data[0][3]) {
  2358. that[flag] = false
  2359. that[key].data = data
  2360. setTimeout(() => {
  2361. that[flag] = true
  2362. }, 10)
  2363. }
  2364. }
  2365. },
  2366. getRecruitType() {
  2367. let that = this;
  2368. let data = {
  2369. flag: true
  2370. }
  2371. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/RecruitType", data).then(res => {
  2372. if (res) {
  2373. res.data.forEach(item => {
  2374. that.recruitTypeMax += item.value
  2375. that.recruitTypeList.push(item.value)
  2376. })
  2377. }
  2378. })
  2379. },
  2380. getFailReason() {
  2381. let that = this;
  2382. let data = {
  2383. flag: true
  2384. };
  2385. let rightOne = this.$refs.rightOne
  2386. let rightTwo = this.$refs.rightTwo
  2387. let rightThree = this.$refs.rightThree
  2388. let rightFour = this.$refs.rightFour
  2389. let rightFive = this.$refs.rightFive
  2390. // leftErrorList:["信息不完整","信息有误","任职条件不符","出勤不足","工作年限不符"]
  2391. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/FailReason", data).then(res => {
  2392. if (res) {
  2393. let dataList = []
  2394. let total = 0
  2395. res.data.forEach((item, index) => {
  2396. // that.leftErrorList[index] = item[]
  2397. item.forEach(i => {
  2398. let obj = {}
  2399. if (i.key == "不通过原因") {
  2400. that.leftErrorList[index] = i.value
  2401. }
  2402. if (i.key == "不通过数量") {
  2403. obj.value = i.value
  2404. dataList[index] = obj
  2405. }
  2406. })
  2407. })
  2408. dataList.forEach(item => {
  2409. total = total + item.value
  2410. })
  2411. that.rightData.push(...dataList)
  2412. that.initLineRight(rightOne, { value: dataList[0].value, total })
  2413. that.initLineRight(rightTwo, { value: dataList[1].value, total })
  2414. that.initLineRight(rightThree, { value: dataList[2].value, total })
  2415. that.initLineRight(rightFour, { value: dataList[3].value, total })
  2416. that.initLineRight(rightFive, { value: dataList[4].value, total })
  2417. // that.initLineRight(rightOne, { value: 25, total: 67 })
  2418. // that.initLineRight(rightTwo, { value: 22, total: 67 })
  2419. // that.initLineRight(rightThree, { value: 10, total: 67 })
  2420. // that.initLineRight(rightFour, { value: 8, total: 67 })
  2421. // that.initLineRight(rightFive, { value: 2, total: 67 })
  2422. }
  2423. }).catch(err => {
  2424. that.initLineRight(rightOne, { value: 25, total: 67 })
  2425. that.initLineRight(rightTwo, { value: 22, total: 67 })
  2426. that.initLineRight(rightThree, { value: 10, total: 67 })
  2427. that.initLineRight(rightFour, { value: 8, total: 67 })
  2428. that.initLineRight(rightFive, { value: 2, total: 67 })
  2429. })
  2430. },
  2431. getQualAudits() {
  2432. let that = this;
  2433. let data = {
  2434. flag: true
  2435. };
  2436. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/QualAudits", data).then(res => {
  2437. if (res) {
  2438. res.data.forEach(item => {
  2439. if (item.key == "当前总人数") {
  2440. that.rightList[0].num1 = item.value
  2441. }
  2442. if (item.key == "通过总人数") {
  2443. that.rightList[0].num2 = item.value
  2444. }
  2445. if (item.key == "当前通过率") {
  2446. that.rightList[0].num3 = item.value
  2447. }
  2448. })
  2449. }
  2450. })
  2451. // rightList: [{
  2452. // name: "当前数",
  2453. // flag: true,
  2454. // num1: 100,
  2455. // num2: 60,
  2456. // num3: 60,
  2457. // }, {
  2458. // name: "累计数",
  2459. // flag: false,
  2460. // num1: 500,
  2461. // num2: 400,
  2462. // num3: 80,
  2463. // }],
  2464. },
  2465. getNo(arr) {
  2466. if (Array.isArray(arr)) {
  2467. arr.forEach((item, index) => {
  2468. if (index <= 8) {
  2469. item.unshift("0" + (index + 1))
  2470. } else {
  2471. item.unshift((index + 1).toString())
  2472. }
  2473. })
  2474. }
  2475. return arr
  2476. },
  2477. getNoticePerson(type = 3) {
  2478. let that = this;
  2479. if (type == 1) {
  2480. that.showExamination = false
  2481. } else if (type == 2) {
  2482. that.showInterview = false
  2483. } else {
  2484. this.showExamination = false
  2485. this.showInterview = false
  2486. }
  2487. let year = new Date().getFullYear()
  2488. let data = {
  2489. flag: true,
  2490. year,
  2491. month: 0
  2492. }
  2493. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/assessmentarrangement", data).then(res => {
  2494. if (res) {
  2495. for(let key in res){
  2496. if(Array.isArray(res[key])){
  2497. res[key].forEach(item=>{
  2498. item.splice(item.length - 2, 1);
  2499. item[item.length - 1] = item[item.length - 1].replaceAll("年","-")
  2500. item[item.length - 1] = item[item.length - 1].replaceAll("月","-")
  2501. item[item.length - 1] = item[item.length - 1].replaceAll("日"," ")
  2502. item[item.length - 1] = item[item.length - 1].replaceAll("/","-")
  2503. item[item.length - 1] = item[item.length - 1].replaceAll("|","-")
  2504. })
  2505. }
  2506. }
  2507. if (type == 1) {
  2508. that.configWritten.data = that.getNo(res.bishiList)
  2509. setTimeout(() => {
  2510. that.showExamination = true
  2511. }, 10)
  2512. } else if (type == 2) {
  2513. that.configInterview.data = that.getNo(res.mianshiList)
  2514. setTimeout(() => {
  2515. that.showInterview = true
  2516. }, 10)
  2517. } else {
  2518. that.configWritten.data = that.getNo(res.bishiList)
  2519. that.configInterview.data = that.getNo(res.mianshiList)
  2520. setTimeout(() => {
  2521. that.showInterview = true
  2522. that.showExamination = true
  2523. }, 10)
  2524. }
  2525. }
  2526. })
  2527. },
  2528. scrollChangeList(index) {
  2529. let that = this;
  2530. that.noticTime && clearInterval(that.noticTime)
  2531. setTimeout(() => {
  2532. if (index + 5 == that.employmentList1.data.length) {
  2533. that.isListEnd = that.isListEnd + 1
  2534. if (that.isListEnd == 2) {
  2535. that.isListEnd = 0
  2536. that.isShowList = false
  2537. that.employmentList1.data = []
  2538. that.employmentList2.data = []
  2539. that.noticeIndex = that.noticeIndex + 1
  2540. if (that.noticeIndex > that.noticeList.length - 1) {
  2541. that.noticeIndex = 0
  2542. }
  2543. // that.getNoticePerson("李四是五")
  2544. setTimeout(() => {
  2545. that.isShowList = true
  2546. }, 10)
  2547. }
  2548. }
  2549. }, 1700)
  2550. if (index == 0) {
  2551. console.log("index == 0");
  2552. }
  2553. if (index == that.employmentList1.data.length - 1) {
  2554. }
  2555. },
  2556. changeCardNo(str) {
  2557. let arr = []
  2558. let list = []
  2559. if (str.length != 0) {
  2560. arr = str.split("")
  2561. for (let i = 0; i <= arr.length - 1; i++) {
  2562. if (i < 5) {
  2563. list.push(arr[i])
  2564. } else if (i > 5 && i < 14) {
  2565. list.push("*")
  2566. } else {
  2567. list.push(arr[i])
  2568. }
  2569. }
  2570. }
  2571. return list.join("")
  2572. },
  2573. changeNoticList(arr) {
  2574. let list = []
  2575. let that = this;
  2576. if (Array.isArray(arr)) {
  2577. arr.forEach((item, index) => {
  2578. let a = []
  2579. if (index <= 8) {
  2580. a = ["0" + (index + 1), item.name, item.sex, that.changeCardNo(item.cardno), item.org1]
  2581. } else {
  2582. a = [(index + 1).toString(), item.name, item.sex, that.changeCardNo(item.cardno), item.org1]
  2583. }
  2584. list.push(a)
  2585. })
  2586. }
  2587. return list
  2588. },
  2589. getNotice() {
  2590. let that = this;
  2591. let data = {
  2592. flag: false
  2593. };
  2594. this.isShowList = false
  2595. that.employmentList1.data = []
  2596. that.employmentList2.data = []
  2597. that.employmentList3.data = []
  2598. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/getNotice", data).then(res => {
  2599. if (res) {
  2600. res.forEach((item, index) => {
  2601. if (index == 0) {
  2602. item.noticeUserList[0].sex = "南"
  2603. }
  2604. let obj = {
  2605. noticeDataList: item.noticeDataList,
  2606. noticeUserList: that.changeNoticList(item.noticeUserList)
  2607. }
  2608. that.noticList.push(obj)
  2609. })
  2610. that.noticList[that.noticIndex].noticeUserList.forEach((item, index) => {
  2611. if (index % 2 == 0) {
  2612. that.employmentList1.data.push(item)
  2613. } else {
  2614. that.employmentList2.data.push(item)
  2615. }
  2616. })
  2617. that.employmentList3.data.push(...that.noticList[that.noticIndex].noticeUserList)
  2618. that.noticIndex += 1
  2619. if (that.employmentList2.data.length <= that.employmentList2.rowNum) {
  2620. that.noticTime = setInterval(() => {
  2621. that.employmentList1.data = []
  2622. that.employmentList2.data = []
  2623. that.employmentList3.data = []
  2624. that.isShowList = false
  2625. that.noticList[that.noticIndex].noticeUserList.forEach((item, index) => {
  2626. if (index % 2 == 0) {
  2627. that.employmentList1.data.push(item)
  2628. } else {
  2629. that.employmentList2.data.push(item)
  2630. }
  2631. })
  2632. that.employmentList3.data.push(...that.noticList[that.noticIndex].noticeUserList)
  2633. console.log(that.employmentList3.data);
  2634. that.noticIndex += 1
  2635. if (that.noticIndex > that.noticList.length - 1) {
  2636. that.noticIndex = 0
  2637. }
  2638. setTimeout(() => {
  2639. that.isShowList = true
  2640. }, 10)
  2641. }, that.employmentList2.data.length * 2000)
  2642. }
  2643. setTimeout(() => {
  2644. that.isShowList = true
  2645. })
  2646. }
  2647. })
  2648. // that.noticeList = res.data
  2649. },
  2650. getDoubleChoice() {
  2651. let that = this;
  2652. let data = {
  2653. flag: true
  2654. }
  2655. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/DoubleChoice", data).then(res => {
  2656. if (res) {
  2657. that.mainList[0].value = res.value
  2658. }
  2659. })
  2660. },
  2661. getPositionAll() {
  2662. let that = this;
  2663. let data = {
  2664. flag: true,
  2665. start: that.timeList2[0],
  2666. end: that.timeList2[1],
  2667. }
  2668. this.leftTime && clearInterval(this.leftTime)
  2669. that.leftFlag = false
  2670. that.config2.data = []
  2671. let lastList = []
  2672. let topList = []
  2673. let mainList = []
  2674. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/PositionAll", data).then(res => {
  2675. if (res) {
  2676. res.data.forEach((item, index) => {
  2677. if (index <= 8) {
  2678. item.unshift("0" + (index + 1))
  2679. } else {
  2680. item.unshift((index + 1).toString())
  2681. }
  2682. })
  2683. if (res.data.length > 5) {
  2684. for (let i = 0; i < 3; i++) {
  2685. let color;
  2686. if (i == 0) {
  2687. color = "yellow"
  2688. } else if (i == 1) {
  2689. color = "red"
  2690. } else {
  2691. color = "green"
  2692. }
  2693. topList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
  2694. }
  2695. res.data.splice(0, 3)
  2696. mainList.push(...spArr(res.data, 2))
  2697. mainList.forEach(item => {
  2698. item.unshift(...topList)
  2699. lastList.push(...item)
  2700. })
  2701. } else if (res.data.length <= 5 && res.data.length >= 3) {
  2702. for (let i = 0; i < 3; i++) {
  2703. let color;
  2704. if (i == 0) {
  2705. color = "yellow"
  2706. } else if (i == 1) {
  2707. color = "red"
  2708. } else {
  2709. color = "green"
  2710. }
  2711. topList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
  2712. }
  2713. res.data.splice(0, 3)
  2714. lastList.push(...topList, ...res.data)
  2715. } else if (res.data.length < 3) {
  2716. for (let i = 0; i < res.data.length; i++) {
  2717. let color;
  2718. if (i == 0) {
  2719. color = "yellow"
  2720. } else if (i == 1) {
  2721. color = "red"
  2722. } else {
  2723. color = "green"
  2724. }
  2725. lastList.push(["<span class='" + color + "'>" + res.data[i][0] + "</span>", "<span class='" + color + "'>" + res.data[i][1] + "</span>", "<span class='" + color + "'>" + res.data[i][2] + "</span>"])
  2726. }
  2727. }
  2728. that.config2.data = lastList
  2729. setTimeout(() => {
  2730. that.leftFlag = true
  2731. that.leftTime = setInterval(() => {
  2732. that.leftList.forEach((item, index) => {
  2733. item.flag = !item.flag
  2734. if (item.flag) {
  2735. if (index == 0) {
  2736. that.leftFlag = true
  2737. } else {
  2738. that.leftFlag = false
  2739. setTimeout(() => {
  2740. let leftChange = that.$refs.leftChange
  2741. that.initThreeBig(leftChange)
  2742. })
  2743. }
  2744. }
  2745. })
  2746. }, 15000)
  2747. }, 10)
  2748. }
  2749. })
  2750. },
  2751. getTotalRate() {
  2752. let that = this;
  2753. let data = {
  2754. flag: true
  2755. };
  2756. fetchPostMethods("/ierp/kapi/v2/mdnb/mdnb_control/TotalRate", data).then(res => {
  2757. if (res) {
  2758. // that.rightList
  2759. res.data.forEach(item => {
  2760. if (item.key == "累计人数") {
  2761. that.rightList[1].num1 = item.value
  2762. }
  2763. if (item.key == "累计通过人数") {
  2764. that.rightList[1].num2 = item.value
  2765. }
  2766. if (item.key == "通过率") {
  2767. that.rightList[1].num3 = item.value
  2768. }
  2769. })
  2770. }
  2771. })
  2772. },
  2773. scrollChangeListW(index) {
  2774. let that = this;
  2775. if (index + 10 == that.configWritten.data.length) {
  2776. console.log("笔试更新");
  2777. setTimeout(() => {
  2778. that.getNoticePerson(1)
  2779. }, 1700)
  2780. }
  2781. },
  2782. scrollChangeListIn(index) {
  2783. let that = this;
  2784. if (index + 10 == that.configInterview.data.length) {
  2785. console.log("面试更新");
  2786. setTimeout(() => {
  2787. that.getNoticePerson(2)
  2788. }, 1700)
  2789. }
  2790. },
  2791. },
  2792. })