humanResources.js 117 KB

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