humanResources.js 113 KB

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