Commit b1629c80 by fairyly

fix: 修改接口

parent e77dec47
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.387c2c44303146438f1fb45dd08dd57e.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.398567a917962479a221.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.3d10c11148fe0867bd89.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.24.css><link href=./static/css/app.f4e3c195bd1e274484ad17c9ae2a330f.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.e2b1e01af78f4c97f3e1.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.95efe62aed666e148c98.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([20],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},AmOA:function(e,t){},LP53:function(e,t,n){"use strict";function o(e,t,n,o,r,a,i,s,u,c){"boolean"!=typeof i&&(u=s,s=i,i=!1);const p="function"==typeof n?n.options:n;let m;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,r&&(p.functional=!0)),o&&(p._scopeId=o),a?(m=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=m):t&&(m=i?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),m)if(p.functional){const e=p.render;p.render=function(t,n){return m.call(n),e(t,n)}}else{const e=p.beforeCreate;p.beforeCreate=e?[].concat(e,m):[m]}return n}n.d(t,"a",function(){return o});"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("fZjL"),r=n.n(o),a=(n("j1ja"),n("hKoQ")),i=n.n(a),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),p=n.n(c),m=n("pRNm"),g=n.n(m),d=n("5tgt"),l=n.n(d);p.a.use(g.a);var f=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var h,v=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:l()("login","index")},{path:"/index",name:"index",component:l()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:l()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:l()("business","contacts")},{path:"/orgStructSet",name:"组织架构管理",component:l()("business","orgStructSet")},{path:"/recycle",name:"组织架构管理",component:l()("business","recycle")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:l()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:l()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:l()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:l()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:l()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:l()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:l()("apps/customerApp","memberSearchSet")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:l()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:f},{path:"/404",name:"error404",component:f},{path:"/500",name:"error500",component:f},{path:"*",redirect:"/404",hidden:!0}],S=new g.a({routes:v,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),b=n.n(w),x=n("Rf8U"),A=n.n(x),V=n("mtWM"),M=n.n(V),y=n("bOdI"),R=n.n(y),D=n("SJI6"),_=n.n(D);p.a.use(_.a);var T=new _.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(h={},R()(h,"login",function(e,t){sessionStorage.token=t,e.token=t}),R()(h,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),R()(h,"title",function(e,t){e.title=t}),R()(h,"show",function(e,t){e.show=t}),h)}),E=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),o={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[r]:("00"+o[r]).substr((""+o[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+o+" "+a+":"+i+":"+s}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+o+" "+a+":"+i+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""}}),O=n("TUaa"),P=n.n(O),H=n("tyqE"),j=n.n(H),k=n("pRVe"),C=n.n(k),I=n("XsK6"),L=n.n(I),N=n("QRL9"),$=n.n(N),F=n("eMjc"),G=n.n(F),U=n("l9mu"),X=n.n(U),Y={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;G()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,r=n/592.28*841.89,a=o,i=0,s=592.28/n*o,u=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(a<r)c.addImage(u,"JPEG",0,0,595.28,s);else for(;a>0;)c.addImage(u,"JPEG",0,i,595.28,s),i-=841.89,(a-=r)>0&&c.addPage();c.save(e+".pdf")})}}},J=n("/IwO"),K=n.n(J),q=n("iUJ9");n("AmOA");i.a.polyfill(),Vue.use(q.a),Vue.use(K.a),K.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Y),Vue.use(L.a),Vue.use($.a),Vue.use(C.a),Vue.use(j.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(b.a,{size:"large"}),Vue.use(A.a,M.a),Vue.axios.defaults.withCredentials=!0,r()(E).forEach(function(e){Vue.filter(e,E[e])}),S.beforeEach(function(e,t,n){var o=window.location.origin;o.indexOf("localhost"),localStorage.getItem("userInfo"),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:S,store:T,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){var o={"./apps/customerApp/index.vue":["QHTa",0,7],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,15],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,12],"./apps/customerApp/memberShowSet.vue":["odfG",0,11],"./apps/index.vue":["K1Vb",0,16],"./business/contacts.vue":["/W60",0,2],"./business/index.vue":["jPcV",0,18],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,10],"./errorPage/403.vue":["6XGN",8],"./errorPage/404.vue":["AejC",9],"./errorPage/500.vue":["FskK",5],"./errorPage/gic-error.vue":["Q3j/",6],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,13],"./login/index.vue":["T+/8",0,4],"./overstore/index.vue":["Y55K",0,17],"./overstore/overStoreList.vue":["vuAV",0,14]};function r(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(o)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([20],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},AmOA:function(e,t){},LP53:function(e,t,n){"use strict";function o(e,t,n,o,r,a,i,s,u,c){"boolean"!=typeof i&&(u=s,s=i,i=!1);const p="function"==typeof n?n.options:n;let m;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,r&&(p.functional=!0)),o&&(p._scopeId=o),a?(m=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=m):t&&(m=i?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),m)if(p.functional){const e=p.render;p.render=function(t,n){return m.call(n),e(t,n)}}else{const e=p.beforeCreate;p.beforeCreate=e?[].concat(e,m):[m]}return n}n.d(t,"a",function(){return o});"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase())},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("fZjL"),r=n.n(o),a=(n("j1ja"),n("hKoQ")),i=n.n(a),s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var u=n("VU/8")({name:"App",data:function(){return{}}},s,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),p=n.n(c),m=n("pRNm"),d=n.n(m),g=n("5tgt"),l=n.n(g);p.a.use(d.a);var f=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var h,v=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:l()("login","index")},{path:"/index",name:"index",component:l()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:l()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:l()("business","contacts")},{path:"/orgStructSet",name:"组织架构管理",component:l()("business","orgStructSet")},{path:"/recycle",name:"组织架构管理",component:l()("business","recycle")}]},{path:"/overStore",name:"溢出门店",redirect:"unreview",component:l()("overstore","index"),children:[{path:"/overStoreList",name:"溢出门店",component:l()("overstore","overStoreList")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:l()("apps","index"),children:[{path:"/mycustomer",name:"我的顾客的",redirect:"/memberShowSet",component:l()("apps/customerApp","index"),children:[{path:"/memberShowSet",name:"会员展示设置",component:l()("apps/customerApp","memberShowSet")},{path:"/memberGroupSet",name:"会员分组设置",component:l()("apps/customerApp","memberGroupSet")},{path:"/memberSearchSet",name:"会员搜索设置",component:l()("apps/customerApp","memberSearchSet")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:l()("errorPage","gic-error")},{path:"/403",name:"无权访问",component:f},{path:"/404",name:"error404",component:f},{path:"/500",name:"error500",component:f},{path:"*",redirect:"/404",hidden:!0}],S=new d.a({routes:v,scrollBehavior:function(){return{y:0}}}),w=n("zL8q"),b=n.n(w),D=n("Rf8U"),x=n.n(D),A=n("mtWM"),V=n.n(A),M=n("bOdI"),y=n.n(M),R=n("SJI6"),E=n.n(R);p.a.use(E.a);var _=new E.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[]},mutations:(h={},y()(h,"login",function(e,t){sessionStorage.token=t,e.token=t}),y()(h,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),y()(h,"title",function(e,t){e.title=t}),y()(h,"show",function(e,t){e.show=t}),y()(h,"saveAdd",function(e,t){e.addDepartment.push(t)}),y()(h,"saveEdit",function(e,t){e.editDepartment.push(t)}),y()(h,"saveDel",function(e,t){e.delDepartment.push(t)}),y()(h,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),h),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearTreeData:function(e,t){e.commit("clearData")}}}),T=(n("4qCZ"),n("uKUT"),n("Xcu2"),{dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),o={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[r]:("00"+o[r]).substr((""+o[r]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+r+"-"+o+" "+a+":"+i+":"+s}},timeStampToYmd:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return t.getFullYear()+"-"+r+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),n=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,a=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+r+"."+o+" "+a+":"+i+":"+s}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""}}),O=n("TUaa"),P=n.n(O),H=n("tyqE"),I=n.n(H),j=n("pRVe"),k=n.n(j),C=n("XsK6"),L=n.n(C),N=n("QRL9"),$=n.n(N),F=n("eMjc"),G=n.n(F),U=n("l9mu"),X=n.n(U),Y={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;G()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,r=n/592.28*841.89,a=o,i=0,s=592.28/n*o,u=t.toDataURL("image/jpeg",1),c=new X.a("","pt","a4");if(a<r)c.addImage(u,"JPEG",0,0,595.28,s);else for(;a>0;)c.addImage(u,"JPEG",0,i,595.28,s),i-=841.89,(a-=r)>0&&c.addPage();c.save(e+".pdf")})}}},J=n("/IwO"),K=n.n(J),q=n("iUJ9");n("AmOA");i.a.polyfill(),Vue.use(q.a),Vue.use(K.a),K.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),Vue.use(Y),Vue.use(L.a),Vue.use($.a),Vue.use(k.a),Vue.use(I.a),Vue.use(P.a),Vue.config.productionTip=!1,Vue.use(b.a,{size:"large"}),Vue.use(x.a,V.a),Vue.axios.defaults.withCredentials=!0,r()(T).forEach(function(e){Vue.filter(e,T[e])}),S.beforeEach(function(e,t,n){var o=window.location.origin;o.indexOf("localhost"),localStorage.getItem("userInfo"),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:S,store:_,components:{App:u},template:"<App/>"})},Opzk:function(e,t,n){var o={"./apps/customerApp/index.vue":["QHTa",0,7],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,15],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,12],"./apps/customerApp/memberShowSet.vue":["odfG",0,11],"./apps/index.vue":["K1Vb",0,16],"./business/contacts.vue":["/W60",0,2],"./business/index.vue":["jPcV",0,18],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,10],"./errorPage/403.vue":["6XGN",8],"./errorPage/404.vue":["AejC",9],"./errorPage/500.vue":["FskK",5],"./errorPage/gic-error.vue":["Q3j/",6],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,13],"./login/index.vue":["T+/8",0,4],"./overstore/index.vue":["Y55K",0,17],"./overstore/overStoreList.vue":["vuAV",0,14]};function r(e){var t=o[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}r.keys=function(){return Object.keys(o)},r.id="Opzk",e.exports=r},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,i,u,b=0,d=[];b<r.length;b++)i=r[b],t[i]&&d.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);d.length;)d.shift()();if(o)for(b=0;b<o.length;b++)u=a(a.s=o[b]);return u};var r={},t={21:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,a.nc&&o.setAttribute("nonce",a.nc),o.src=a.p+"static/js/"+e+"."+{0:"cbd8baab911002c79be8",1:"9a1776fdc262362d75b8",2:"547e4f5a9275665724ed",3:"f81bf11e7b1990f1ec30",4:"7ff1e8704ade6a4a0bec",5:"afc7b726a46486df899a",6:"9e12ea68528f2ad5f9a5",7:"4c95fe66c59573d7da03",8:"c2a3c1c2b9ffb4687826",9:"4b8efecc95608bc88200",10:"9c5ebbe659b7a663ddb3",11:"29941951e052f4942eca",12:"c95e6e2e763aa2d73679",13:"28d4554055ef8599c8af",14:"6ddcbf8576b81570a798",15:"0a934f87a0f05eee4293",16:"ceb943561fcf2e88bc01",17:"30b2bb1593a5d6e55f0a",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(i,12e4);function i(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=i,c.appendChild(o),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,i,u,d=0,b=[];d<r.length;d++)i=r[d],t[i]&&b.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);b.length;)b.shift()();if(o)for(d=0;d<o.length;d++)u=a(a.s=o[d]);return u};var r={},t={21:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,a.nc&&o.setAttribute("nonce",a.nc),o.src=a.p+"static/js/"+e+"."+{0:"cbd8baab911002c79be8",1:"9a1776fdc262362d75b8",2:"547e4f5a9275665724ed",3:"4ef7eb77629d17ab87af",4:"6f5e38d2027852fcc0db",5:"afc7b726a46486df899a",6:"9e12ea68528f2ad5f9a5",7:"4c95fe66c59573d7da03",8:"c2a3c1c2b9ffb4687826",9:"4b8efecc95608bc88200",10:"9c5ebbe659b7a663ddb3",11:"29941951e052f4942eca",12:"c95e6e2e763aa2d73679",13:"28d4554055ef8599c8af",14:"6ddcbf8576b81570a798",15:"0a934f87a0f05eee4293",16:"ceb943561fcf2e88bc01",17:"30b2bb1593a5d6e55f0a",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(i,12e4);function i(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=i,c.appendChild(o),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-08-14 16:51:07 * @Date: 2019-08-14 16:51:07
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2020-02-25 12:15:05 * @LastEditTime : 2020-02-25 15:08:26
--> -->
<!-- <!--
<org-tree v-if="item.children.length" :itemData="item.children" ></org-tree> <org-tree v-if="item.children.length" :itemData="item.children" ></org-tree>
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
if (draggedElement.level == 0) { if (draggedElement.level == 0) {
return false; return false;
} }
// console.log(evt, !draggedElement.fixed); console.log('gic:move-->', evt, !draggedElement.fixed);
return !draggedElement.fixed; return !draggedElement.fixed;
}, },
/** /**
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-08-14 16:51:07 * @Date: 2019-08-14 16:51:07
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2020-02-25 09:39:38 * @LastEditTime : 2020-02-25 15:46:46
--> -->
<!-- <!--
<wx-tree v-model="itemData" ></wx-tree> <wx-tree v-model="itemData" ></wx-tree>
...@@ -23,11 +23,11 @@ import wxTree from './wx-tree.vue'; ...@@ -23,11 +23,11 @@ import wxTree from './wx-tree.vue';
<div class="tree-right"> <div class="tree-right">
<el-button v-if="item.isStore == 0" type="text" @click.stop="addChild(item)">添加子部门</el-button> <el-button v-if="item.isStore == 0" type="text" @click.stop="addChild(item)">添加子部门</el-button>
<el-button type="text" @click.stop="modChild(item)">修改名称</el-button> <el-button type="text" @click.stop="modChild(item)">修改名称</el-button>
<el-button v-if="item.level > 0" type="text" @click.stop="delChild(item)">删除</el-button> <el-button v-if="item.level > 0 && item.children" type="text" @click.stop="delChild(item)">删除</el-button>
</div> </div>
</div> </div>
</div> </div>
<li-row :itemObj="item" :itemData="item.children"></li-row <li-row v-if="item.expand" :itemObj="item" :itemData="item.children"></li-row
><!-- v-show="!!item.children.length && item.expand" --> ><!-- v-show="!!item.children.length && item.expand" -->
</li> </li>
</draggable> </draggable>
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
itemObj: { itemObj: {
type: [Object, Array], type: [Object, Array],
default() { default() {
return []; return {};
} }
} }
}, },
...@@ -112,7 +112,26 @@ export default { ...@@ -112,7 +112,26 @@ export default {
this.$emit('input', value); this.$emit('input', value);
}, },
changeData(value) { changeData(value) {
console.log('change:', value); const that = this;
// that.$store.dispatch('saveAddInfo', );
console.log('wx:change:', value, that.itemObj);
if (!!value['added']) {
let sort = '';
that.itemObj.children.forEach((ele, index) => {
if (value['added'].element.departmentId == ele.departmentId) {
sort = index;
}
});
let newEle = JSON.parse(JSON.stringify(value['added'].element));
newEle.parentId = that.itemObj.departmentId;
newEle.storeFlag = newEle.isStore;
newEle.sort = sort;
console.log(newEle);
that.$nextTick(() => {
that.$store.dispatch('saveAddInfo', newEle);
});
}
}, },
/** /**
* 展开或者关闭下级 * 展开或者关闭下级
......
...@@ -9,7 +9,10 @@ export default new Vuex.Store({ ...@@ -9,7 +9,10 @@ export default new Vuex.Store({
token: null, token: null,
title: '', title: '',
show: false, show: false,
bgHeight: window.screen.availHeight - 440 - 24 + 'px' bgHeight: window.screen.availHeight - 440 - 24 + 'px',
addDepartment: [], // 添加
editDepartment: [], // 编辑配置
delDepartment: [] // 删除配置
}, },
mutations: { mutations: {
[types.LOGIN]: (state, data) => { [types.LOGIN]: (state, data) => {
...@@ -25,6 +28,34 @@ export default new Vuex.Store({ ...@@ -25,6 +28,34 @@ export default new Vuex.Store({
}, },
[types.SHOW]: (state, data) => { [types.SHOW]: (state, data) => {
state.show = data; state.show = data;
},
saveAdd: (state, data) => {
state.addDepartment.push(data);
},
saveEdit: (state, data) => {
state.editDepartment.push(data);
},
saveDel: (state, data) => {
state.delDepartment.push(data);
},
clearData: state => {
state.addDepartment = [];
state.editDepartment = [];
state.delDepartment = [];
}
},
actions: {
saveAddInfo(context, data) {
context.commit('saveAdd', data);
},
saveEditInfo(context, data) {
context.commit('saveEdit', data);
},
saveDelInfo(context, data) {
context.commit('saveDel', data);
},
clearTreeData(context, data) {
context.commit('clearData');
} }
} }
}); });
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2020-02-25 13:42:46 * @LastEditTime : 2020-02-25 15:53:16
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -142,11 +142,18 @@ export default { ...@@ -142,11 +142,18 @@ export default {
*/ */
saveData: _debounce(function() { saveData: _debounce(function() {
const that = this; const that = this;
if (that.$store.state.addDepartment.length && that.$store.state.editDepartment.length) {
showMsg.showmsg('暂无修改,无法同步', 'warning');
return false;
}
that.postSaveData(); that.postSaveData();
}, 300), }, 300),
postSaveData() { postSaveData() {
const that = this; const that = this;
let para = {}; let para = {
addDepartment: JSON.stringify(that.$store.state.addDepartment),
editDepartment: JSON.stringify(that.$store.state.editDepartment)
};
postRequest('/haoban-manage3-web/department-batch-sync', para) postRequest('/haoban-manage3-web/department-batch-sync', para)
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors : 无尘 * @LastEditors : 无尘
* @LastEditTime : 2020-02-25 10:08:01 * @LastEditTime : 2020-02-25 15:57:20
--> -->
<template> <template>
<div class="login-wrap"> <div class="login-wrap">
...@@ -56,10 +56,10 @@ export default { ...@@ -56,10 +56,10 @@ export default {
// 企业列表 // 企业列表
enterpriseList: [ enterpriseList: [
/*{ /*{
enterpriseId : '1231', enterpriseId : '1231',
logoUrl: require("../../assets/logo.png"), logoUrl: require("../../assets/logo.png"),
enterpriseName: '达摩网络' enterpriseName: '达摩网络'
},*/ },*/
], ],
// 登录 // 登录
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
localStorage.removeItem('userInfo'); localStorage.removeItem('userInfo');
localStorage.setItem('userInfo', JSON.stringify(resData.result)); localStorage.setItem('userInfo', JSON.stringify(resData.result));
that.$router.push('/index'); // that.$router.push('/index');
return; return;
} }
if (resData.errorCode == 30004) { if (resData.errorCode == 30004) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment