humanResources.js 103 KB

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