humanResources.js 114 KB

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