humanResources.js 116 KB

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