humanResources.js 109 KB

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