humanResources.js 108 KB

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