chunk-2c7a2288.648b55cf.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c7a2288"],{"06a8":function(t,n,e){"use strict";var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div")},a=[],o=e("795b"),i=e.n(o),c=(e("7f7f"),e("ac6a"),e("f20c")),u=e("5cab"),s=e("f499"),l=e.n(s),f=e("8982"),d="/industryParkApi",h="/wx/data",p="/wx/public",v="/wx/dictController";function g(t){return Object(f["a"])({url:d+h+"/listBizAll/"+t,method:"post"})}function m(t){return Object(f["a"])({url:d+p+"/listProjectAll",method:"post",data:t})}function y(t){return Object(f["a"])({url:d+v+"/getByCodes",method:"post",data:t})}function b(t){var n={codes:l()(t)};return new i.a(function(t,e){y(n).then(function(n){t(n)}).catch(function(t,n){e(t,n)})})}var w=e("3089"),x={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 n=this;return t||(t=n.dc_key),b(t).then(function(t){t.data&&n.dc_key.forEach(function(e){var r=n.getDictValue(t.data,e,!0);n.dc_data[e]=r,n.dc_map[e]=n.$common.transDcMap(r);var a=n.getDictValue(t.data,e,!1);n.dc_data_no_all[e]=a,n.dc_map_no_all[e]=n.$common.transDcMap(a)})})},initDict2:function(t){var n=this;return t||(t=n.dc_key),b(t).then(function(t){t.data&&n.dc_key.forEach(function(e){var r=n.getDictValue(t.data,e,!1);n.dc_data[e]=r,n.dc_map[e]=n.$common.transDcMap(r);var a=n.getDictValue(t.data,e,!1);n.dc_data_no_all[e]=a,n.dc_map_no_all[e]=n.$common.transDcMap(a)})})},initBiz:function(){var t=this;return this.BizData=[],g(u["a"].uid()).then(function(n){n.data&&n.data.forEach(function(n){var e={label:n.businessName,value:n.id};t.BizData.push(e),t.BizMap[n.id]=n.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],m(u["a"].uid()).then(function(n){n.data&&n.data.forEach(function(n){var e={label:n.name,value:n.id};t.ProjectData.push(e),t.ProjectMap[e.value]=n})}).catch(function(){})},pagination:function(t){var n=this.currentPage,e=this.pageSize,r=n*e-e,a=n*e;return t.slice(r,a)},getDictValue:function(t,n,e){var r=t[n]?c["a"].castEval(t[n].dictValue):[],a=[];if(r.forEach(function(t){var n={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};a.push(n)}),e){var o={label:"全部",value:"",active:!0};a.unshift(o)}return a},confirm:function(t,n){return new i.a(function(e,r){w["Dialog"].confirm({title:n,message:t}).then(function(t){e(t)}).catch(function(t){Object(w["Toast"])("已取消"),r(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,n=this;console.log("loadBottom"),setTimeout(function(){n.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,n){var e=n.indexOf(t);n.splice(e,1)},noImg:function(){var t=event.srcElement;t.src=e("aed7"),t.onerror=null}}},_=x,j=e("2877"),k=Object(j["a"])(_,r,a,!1,null,"3fa5b905",null);n["a"]=k.exports},"16cc":function(t,n,e){},"20fd":function(t,n,e){"use strict";var r=e("d9f6"),a=e("aebd");t.exports=function(t,n,e){n in t?r.f(t,n,a(0,e)):t[n]=e}},"386d":function(t,n,e){"use strict";var r=e("cb7c"),a=e("83a1"),o=e("5f1b");e("214f")("search",1,function(t,n,e,i){return[function(e){var r=t(this),a=void 0==e?void 0:e[n];return void 0!==a?a.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=i(e,t,this);if(n.done)return n.value;var c=r(t),u=String(this),s=c.lastIndex;a(s,0)||(c.lastIndex=0);var l=o(c,u);return a(c.lastIndex,s)||(c.lastIndex=s),null===l?-1:l.index}]})},"3b8d":function(t,n,e){"use strict";e.d(n,"a",function(){return i});var r=e("795b"),a=e.n(r);function o(t,n,e,r,o,i,c){try{var u=t[i](c),s=u.value}catch(l){return void e(l)}u.done?n(s):a.a.resolve(s).then(r,o)}function i(t){return function(){var n=this,e=arguments;return new a.a(function(r,a){var i=t.apply(n,e);function c(t){o(i,r,a,c,u,"next",t)}function u(t){o(i,r,a,c,u,"throw",t)}c(void 0)})}}},"549b":function(t,n,e){"use strict";var r=e("d864"),a=e("63b6"),o=e("241e"),i=e("b0dc"),c=e("3702"),u=e("b447"),s=e("20fd"),l=e("7cd6");a(a.S+a.F*!e("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,a,f,d=o(t),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,m=0,y=l(d);if(g&&(v=r(v,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&c(y))for(n=u(d.length),e=new h(n);n>m;m++)s(e,m,g?v(d[m],m):d[m]);else for(f=y.call(d),e=new h;!(a=f.next()).done;m++)s(e,m,g?i(f,v,[a.value,m],!0):a.value);return e.length=m,e}})},"54a1":function(t,n,e){e("6c1c"),e("1654"),t.exports=e("95d5")},"6a91":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"zhaozu"},[e("div",{staticClass:"head-tabs"},[e("van-tabs",{attrs:{color:"#2A5095","title-active-color":"#2A5095"},on:{click:t.onClick},model:{value:t.active,callback:function(n){t.active=n},expression:"active"}},[e("van-tab",{attrs:{title:"全部",value:null}}),e("van-tab",{attrs:{title:"上架",value:1}}),e("van-tab",{attrs:{title:"下架",value:2}})],1),e("div",{staticClass:"header-btn",on:{click:function(n){return t.goNavigator("zhaozu-add")}}},[e("span",[t._v("+ 新增招租")])])],1),e("div",{staticStyle:{height:"100vh"}},[e("van-list",{attrs:{finished:t.finished,"immediate-check":!0,offset:200,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(n){t.loading=n},expression:"loading"}},t._l(t.list,function(n){return e("div",{staticClass:"card",on:{click:function(e){return t.jumpDetails(n.id)}}},[e("div",{staticClass:"card-header"},[e("div",{staticClass:"title"},[t._v("招租信息")]),e("div",{staticClass:"status"},[t._v(t._s(1==n.pushType?"上架":"下架"))])]),e("div",{staticClass:"info overhidden",staticStyle:{color:"#356cd1"}},[t._v("\n "+t._s(n.types)+"\n ")]),e("div",{staticClass:"info overhidden"},[t._v("\n "+t._s(n.info)+"\n ")]),e("div",{staticClass:"time"},[t._v(t._s(t.$common.transServDate(n.createdAt)))])])}),0)],1)])},a=[],o=e("75fc"),i=(e("96cf"),e("3b8d")),c=(e("386d"),e("3089"),e("c961")),u=(e("06a8"),e("5cab"),{name:"zhaozu",data:function(){return{active:"",loading:!1,finished:!1,refreshing:!1,search:{pageNum:1,pageSize:10},total:0,list:[]}},mounted:function(){this.getPageList()},methods:{jumpDetails:function(t){this.$router.push({path:"/zhaozu-detail",query:{id:t}})},loadMore:function(){this.search.pageNum+=1,this.getPageList()},onClick:function(t,n){console.log(t),console.log(n),this.search.pageNum=1,this.search.pushType=t,this.list=[],this.getPageList()},onLoad:function(){this.loading=!1,this.search.pageNum+=1,console.log(2222222),this.list.length>=this.total||this.getPageList()},getPageList:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var n,e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["h"])(this.search);case 2:e=t.sent,this.total=e.total,(n=this.list).push.apply(n,Object(o["a"])(e.rows));case 5:case"end":return t.stop()}},t,this)}));function n(){return t.apply(this,arguments)}return n}()}}),s=u,l=(e("7c96"),e("2877")),f=Object(l["a"])(s,r,a,!1,null,null,null);n["default"]=f.exports},"75fc":function(t,n,e){"use strict";var r=e("a745"),a=e.n(r);function o(t){if(a()(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}var i=e("774e"),c=e.n(i),u=e("c8bb"),s=e.n(u);function l(t){if(s()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return c()(t)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){return o(t)||l(t)||f()}e.d(n,"a",function(){return d})},"774e":function(t,n,e){t.exports=e("d2d5")},"7c96":function(t,n,e){"use strict";var r=e("16cc"),a=e.n(r);a.a},"7f7f":function(t,n,e){var r=e("86cc").f,a=Function.prototype,o=/^\s*function ([^ (]*)/,i="name";i in a||e("9e1e")&&r(a,i,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},"83a1":function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t===1/n:t!=t&&n!=n}},8982:function(t,n,e){"use strict";e.d(n,"a",function(){return h}),e.d(n,"b",function(){return p});var r=e("795b"),a=e.n(r),o=e("bc3a"),i=e.n(o),c=e("4328"),u=e.n(c),s=e("4360"),l=e("5cab"),f=e("a18c"),d=e("3089");function h(t,n){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var e={method:t.method,url:t.url,data:u.a.stringify(t.data)};return n&&(e.data=t.data),t.headers&&(e.headers=t.headers),new a.a(function(n,r){i()(e).then(function(t){if(t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(d["Toast"])(e.errmsg),setTimeout(function(){s["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),r(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(e.errmsg),r(e.errmsg);break}n(e)}else console.log(t),r(t)}).catch(function(n,e){console.log(t.url+" fail",n,e),Object(d["Toast"])(n),r(n,e)})})}function p(t){t.headers||(t.headers={}),t.headers&&l["a"].getToken()&&(t.headers["RC-Token"]=l["a"].getToken());var n={method:t.method,url:t.url};return n.data=t.data,t.headers&&(n.headers=t.headers,n.headers["MVVM-Key"]=String((new Date).getTime()),n.headers["xx"]="anything",n.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new a.a(function(e,r){i.a.defaults.withCredentials=!0,i()(n).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(d["Toast"])(n.errmsg),setTimeout(function(){s["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),r(n.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(n.errmsg),r(n.errmsg);break}e(n)}else console.log(t),r(t)}).catch(function(n,e){console.log(t.url+" fail",n,e),Object(d["Toast"])(n),r(n,e)})})}},"95d5":function(t,n,e){var r=e("40c3"),a=e("5168")("iterator"),o=e("481b");t.exports=e("584a").isIterable=function(t){var n=Object(t);return void 0!==n[a]||"@@iterator"in n||o.hasOwnProperty(r(n))}},"96cf":function(t,n,e){var r=function(t){"use strict";var n,e=Object.prototype,r=e.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,n,e,r){var a=n&&n.prototype instanceof v?n:v,o=Object.create(a.prototype),i=new S(r||[]);return o._invoke=k(t,e,i),o}function s(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(r){return{type:"throw",arg:r}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",d="executing",h="completed",p={};function v(){}function g(){}function m(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==e&&r.call(w,o)&&(y=w);var x=m.prototype=v.prototype=Object.create(y);function _(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function j(t){function n(e,a,o,i){var c=s(t[e],t,a);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){n("next",t,o,i)},function(t){n("throw",t,o,i)}):Promise.resolve(l).then(function(t){u.value=t,o(u)},function(t){return n("throw",t,o,i)})}i(c.arg)}var e;function a(t,r){function a(){return new Promise(function(e,a){n(t,r,e,a)})}return e=e?e.then(a,a):a()}this._invoke=a}function k(t,n,e){var r=l;return function(a,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw o;return E()}e.method=a,e.arg=o;while(1){var i=e.delegate;if(i){var c=O(i,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===l)throw r=h,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=d;var u=s(t,n,e);if("normal"===u.type){if(r=e.done?h:f,u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(r=h,e.method="throw",e.arg=u.arg)}}}function O(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=s(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,p;var o=a.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function L(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function C(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function e(){while(++a<t.length)if(r.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:E}}function E(){return{value:n,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,m[c]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"===typeof t&&t.constructor;return!!n&&(n===g||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},_(j.prototype),j.prototype[i]=function(){return this},t.AsyncIterator=j,t.async=function(n,e,r,a){var o=new j(u(n,e,r,a));return t.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},_(x),x[c]="Generator",x[o]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){while(n.length){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=C,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],n=t.completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return c.type="throw",c.arg=t,e.next=r,a&&(e.method="next",e.arg=n),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=n,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),p},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var a=r.arg;P(e)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),p}},t}(t.exports);try{regeneratorRuntime=r}catch(a){Function("r","regeneratorRuntime = r")(r)}},aed7:function(t,n,e){t.exports=e.p+"assets/img/no-result.b05bdcd3.jpg"},c8bb:function(t,n,e){t.exports=e("54a1")},c961:function(t,n,e){"use strict";e.d(n,"e",function(){return i}),e.d(n,"a",function(){return c}),e.d(n,"b",function(){return u}),e.d(n,"g",function(){return s}),e.d(n,"d",function(){return l}),e.d(n,"h",function(){return f}),e.d(n,"l",function(){return d}),e.d(n,"f",function(){return h}),e.d(n,"c",function(){return p}),e.d(n,"i",function(){return v}),e.d(n,"k",function(){return g}),e.d(n,"j",function(){return m});var r=e("8982"),a="/industryParkApi",o="/wx/CommonController";function i(){return Object(r["a"])({url:a+o+"/findYuanQuList",method:"post",data:{}})}function c(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/add",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/add",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/getTmpInfoByUserId",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanYuanquInfoManagementController/findTypeListByYuanQuId",method:"post",data:{id:t}})}function f(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/list",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/list",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/getById",method:"post",data:{id:t}})}function p(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanYuanquInfoManagementController/findListByYuanQuIdAndType",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/pushDown",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/remove",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/industryParkApi/wx/SunanRentingController/pushUp",method:"post",data:t})}},d2d5:function(t,n,e){e("1654"),e("549b"),t.exports=e("584a").Array.from}}]);