humanResources.js 112 KB

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