humanResources.js 96 KB

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