chunk-2ff5e52d.453ffe48.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ff5e52d"],{"06a8":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div")},i=[],o=a("795b"),s=a.n(o),r=(a("7f7f"),a("ac6a"),a("f20c")),c=a("5cab"),u=a("f499"),l=a.n(u),d=a("8982"),h="/industryParkApi",f="/wx/data",p="/wx/public",g="/wx/dictController";function m(t){return Object(d["a"])({url:h+f+"/listBizAll/"+t,method:"post"})}function v(t){return Object(d["a"])({url:h+p+"/listProjectAll",method:"post",data:t})}function b(t){return Object(d["a"])({url:h+g+"/getByCodes",method:"post",data:t})}function _(t){var e={codes:l()(t)};return new s.a(function(t,a){b(e).then(function(e){t(e)}).catch(function(t,e){a(t,e)})})}var y=a("3089"),D={name:"BaseData",data:function(){return{currentPage:1,totalSize:0,pageSize:10,InitialLoading:!0,allLoaded:!1,bottomStatus:"",StaffData:[],StaffMap:{},BizData:[],BizMap:{},UserProject:[],ProjectData:[],ProjectMap:{},dialogImageUrl:"",dialogImageVisible:!1,dc_map:{},dc_data:{},dc_map_no_all:{},dc_data_no_all:{}}},mounted:function(){},methods:{initDict:function(t){var e=this;return t||(t=e.dc_key),_(t).then(function(t){t.data&&e.dc_key.forEach(function(a){var n=e.getDictValue(t.data,a,!0);e.dc_data[a]=n,e.dc_map[a]=e.$common.transDcMap(n);var i=e.getDictValue(t.data,a,!1);e.dc_data_no_all[a]=i,e.dc_map_no_all[a]=e.$common.transDcMap(i)})})},initDict2:function(t){var e=this;return t||(t=e.dc_key),_(t).then(function(t){t.data&&e.dc_key.forEach(function(a){var n=e.getDictValue(t.data,a,!1);e.dc_data[a]=n,e.dc_map[a]=e.$common.transDcMap(n);var i=e.getDictValue(t.data,a,!1);e.dc_data_no_all[a]=i,e.dc_map_no_all[a]=e.$common.transDcMap(i)})})},initBiz:function(){var t=this;return this.BizData=[],m(c["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var a={label:e.businessName,value:e.id};t.BizData.push(a),t.BizMap[e.id]=e.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],v(c["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var a={label:e.name,value:e.id};t.ProjectData.push(a),t.ProjectMap[a.value]=e})}).catch(function(){})},pagination:function(t){var e=this.currentPage,a=this.pageSize,n=e*a-a,i=e*a;return t.slice(n,i)},getDictValue:function(t,e,a){var n=t[e]?r["a"].castEval(t[e].dictValue):[],i=[];if(n.forEach(function(t){var e={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};i.push(e)}),a){var o={label:"全部",value:"",active:!0};i.unshift(o)}return i},confirm:function(t,e){return new s.a(function(a,n){y["Dialog"].confirm({title:e,message:t}).then(function(t){a(t)}).catch(function(t){Object(y["Toast"])("已取消"),n(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,e=this;console.log("loadBottom"),setTimeout(function(){e.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,e){var a=e.indexOf(t);e.splice(a,1)},noImg:function(){var t=event.srcElement;t.src=a("aed7"),t.onerror=null}}},L=D,w=a("2877"),j=Object(w["a"])(L,n,i,!1,null,"3fa5b905",null);e["a"]=j.exports},"20fd":function(t,e,a){"use strict";var n=a("d9f6"),i=a("aebd");t.exports=function(t,e,a){e in t?n.f(t,e,i(0,a)):t[e]=a}},"39aa":function(t,e,a){"use strict";a.d(e,"b",function(){return s}),a.d(e,"a",function(){return r}),a.d(e,"c",function(){return c}),a.d(e,"d",function(){return u});var n=a("8982"),i="/industryParkApi",o="/wx/recruit";function s(t){return Object(n["a"])({url:i+o+"/getRecruitList",method:"post",data:t})}function r(t){return Object(n["a"])({url:i+o+"/getRecruitListOder",method:"post",data:t})}function c(t){return Object(n["a"])({url:i+o+"/operationRecruit",method:"post",data:t})}function u(t){return Object(n["a"])({url:i+o+"/operationState",method:"post",data:t})}},"3a1d":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"peripheral"},[a("div",{staticClass:"tabs-box"},[a("div",{staticClass:"white-box part-1"},[a("div",{staticClass:"search-box"},[a("div",{staticClass:"search-input-box"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.requestData.positionName,expression:"requestData.positionName"}],attrs:{type:"text",placeholder:"意向职位模糊"},domProps:{value:t.requestData.positionName},on:{input:function(e){e.target.composing||t.$set(t.requestData,"positionName",e.target.value)}}})]),a("div",{staticClass:"search-icon-box"},[a("i",{staticClass:"iconfont icon-sousuo",on:{click:t.zpSeach}})])])]),a("div",{staticClass:"part-2",staticStyle:{height:"100vh"}},[a("van-pull-refresh",{staticStyle:{"min-height":"60vh"},on:{refresh:t.onZpRefresh},model:{value:t.zpRefreshing,callback:function(e){t.zpRefreshing=e},expression:"zpRefreshing"}},[a("van-list",{attrs:{finished:t.zpFinished,"finished-text":"没有更多了",offset:10,"immediate-check":!1},on:{load:t.onZpLoad},model:{value:t.zpLoading,callback:function(e){t.zpLoading=e},expression:"zpLoading"}},t._l(t.dataList,function(e){return a("div",{key:e.id,staticClass:"card-item white-card",on:{click:function(a){return t.goNavigator("talentService-recruitDetial",e)}}},[a("div",{staticClass:"card-left"},[a("p",{staticClass:"tit"},[t._v(t._s(e.position))]),a("p",{staticClass:"txt"},[t._v(t._s(e.qymc))]),a("p",{staticClass:"date"},[t._v("发布日期:"+t._s(t.$common.transDate(e.created_at,"yyyy-MM-dd hh:mm:ss")))])]),a("div",{staticClass:"card-right"},[t.compareDate(e.validity_date)?a("span",{staticClass:"normal-tip yd z-bg"},[t._v("有效")]):a("span",{staticClass:"normal-tip yd y-bg"},[t._v("到期")])])])}),0)],1)],1)])])},i=[],o=a("75fc"),s=(a("ac6a"),a("06a8")),r=a("6382"),c=a("39aa"),u=a("ed41"),l={mixins:[s["a"]],components:{PositionNav:r["a"]},data:function(){return{active:0,dc_key:["specialty"],zpLoading:!1,zpFinished:!1,zpRefreshing:!1,requestData:{positionName:"",pageNum:1,pageSize:10},dataList:[],zpTotal:0,rcLoading:!1,rcFinished:!1,rcRefreshing:!1,paramRequest:{followPosition:"",pageNum:1,pageSize:5},personnelList:[],rcTotal:0,list1:[],tipsList:[],tip:"",list2:[]}},mounted:function(){this.getList(),this.initDict(this.dc_key).then(function(t){})},methods:{zpSeach:function(){this.requestData.pageNum=1,this.getList()},onZpRefresh:function(){this.dataList=[],console.log(this.dataList.length),this.requestData.pageNum=1,this.getList()},onZpLoad:function(){var t=this;console.log(123),this.zpRefreshing&&(this.dataList=[],this.zpRefreshing=!1),this.dataList.length>=this.zpTotal||(this.requestData.pageNum++,list(this.requestData).then(function(e){e.rows.forEach(function(e){t.dataList.push(e)}),t.zpTotal=e.total,t.zpLoading=!1}))},getList:function(){var t=this;Object(c["a"])(this.requestData).then(function(e){var a;(a=t.dataList).push.apply(a,Object(o["a"])(e.rows)),t.zpTotal=e.total,t.zpRefreshing=!1,console.log("接口数据——:",t.zpTotal),console.log("接口数据——:",t.dataList),t.zpFinished=!1})},rcSeach:function(){this.paramRequest.pageNum=1,this.getPersonnelList()},onRcRefresh:function(){this.paramRequest.pageNum=1,this.getPersonnelList()},onRcLoad:function(){var t=this;this.rcRefreshing&&(this.dataList=[],this.rcRefreshing=!1),this.personnelList.length>=this.rcTotal?this.rcFinished=!0:(this.paramRequest.pageNum++,this.paramRequest.specialty=this.tip,list(this.paramRequest).then(function(e){e.rows.forEach(function(e){t.personnelList.push(e)}),t.rcTotal=e.total})),this.rcLoading=!1},getPersonnelList:function(){var t=this;this.paramRequest.specialty=this.tip,Object(u["a"])(this.paramRequest).then(function(e){t.personnelList=e.rows,t.rcTotal=e.total,t.rcRefreshing=!1})},tabOnClick:function(){0==this.active?this.getList():this.getPersonnelList()},getTips:function(t){this.tip=t.value,this.rcSeach()},resumeDetial:function(t){this.goNavigator("talentService-iAmATalentShow",{id:t})},compareDate:function(t){return new Date(t).getTime()>(new Date).getTime()}}},d=l,h=(a("9e1f"),a("2877")),f=Object(h["a"])(d,n,i,!1,null,"6fed0e90",null);e["default"]=f.exports},"549b":function(t,e,a){"use strict";var n=a("d864"),i=a("63b6"),o=a("241e"),s=a("b0dc"),r=a("3702"),c=a("b447"),u=a("20fd"),l=a("7cd6");i(i.S+i.F*!a("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,a,i,d,h=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,b=l(h);if(m&&(g=n(g,p>2?arguments[2]:void 0,2)),void 0==b||f==Array&&r(b))for(e=c(h.length),a=new f(e);e>v;v++)u(a,v,m?g(h[v],v):h[v]);else for(d=b.call(h),a=new f;!(i=d.next()).done;v++)u(a,v,m?s(d,g,[i.value,v],!0):i.value);return a.length=v,a}})},"54a1":function(t,e,a){a("6c1c"),a("1654"),t.exports=a("95d5")},"75fc":function(t,e,a){"use strict";var n=a("a745"),i=a.n(n);function o(t){if(i()(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}var s=a("774e"),r=a.n(s),c=a("c8bb"),u=a.n(c);function l(t){if(u()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return r()(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function h(t){return o(t)||l(t)||d()}a.d(e,"a",function(){return h})},"774e":function(t,e,a){t.exports=a("d2d5")},"7f7f":function(t,e,a){var n=a("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||a("9e1e")&&n(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8982:function(t,e,a){"use strict";a.d(e,"a",function(){return f}),a.d(e,"b",function(){return p});var n=a("795b"),i=a.n(n),o=a("bc3a"),s=a.n(o),r=a("4328"),c=a.n(r),u=a("4360"),l=a("5cab"),d=a("a18c"),h=a("3089");function f(t,e){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var a={method:t.method,url:t.url,data:c.a.stringify(t.data)};return e&&(a.data=t.data),t.headers&&(a.headers=t.headers),new i.a(function(e,n){s()(a).then(function(t){if(t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(h["Toast"])(a.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),n(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(a.errmsg),n(a.errmsg);break}e(a)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),n(e,a)})})}function p(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new i.a(function(a,n){s.a.defaults.withCredentials=!0,s()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(h["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){d["a"].push("/login")})},1500),n(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(h["Toast"])(e.errmsg),n(e.errmsg);break}a(e)}else console.log(t),n(t)}).catch(function(e,a){console.log(t.url+" fail",e,a),Object(h["Toast"])(e),n(e,a)})})}},"95d5":function(t,e,a){var n=a("40c3"),i=a("5168")("iterator"),o=a("481b");t.exports=a("584a").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(n(e))}},"9e1f":function(t,e,a){"use strict";var n=a("b67b"),i=a.n(n);i.a},aed7:function(t,e,a){t.exports=a.p+"assets/img/no-result.b05bdcd3.jpg"},b67b:function(t,e,a){},c8bb:function(t,e,a){t.exports=a("54a1")},d2d5:function(t,e,a){a("1654"),a("549b"),t.exports=a("584a").Array.from},ed41:function(t,e,a){"use strict";a.d(e,"a",function(){return s}),a.d(e,"b",function(){return r}),a.d(e,"c",function(){return c});var n=a("8982"),i="/industryParkApi",o="/wx/personnel";function s(t){return Object(n["a"])({url:i+o+"/getPersonnelList",method:"post",data:t})}function r(t){return Object(n["a"])({url:i+o+"/operationPersonnel",method:"post",data:t})}function c(t){return Object(n["a"])({url:i+o+"/personnelDetial",method:"post",data:t})}}}]);