humanResources.js 118 KB

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