humanResources.js 116 KB

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