humanResources.js 109 KB

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