humanResources.js 117 KB

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