humanResources.js 124 KB

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