Commit 7693efba by fairyly

fix:修改树形数据

parent 280e4bba
<!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.0ae7ce63c1c1b32e84a7e3831561d173.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.045eda77180209a1ac9b.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.4ad545414a2bd6f8aef7.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.958dcd7513d724c90185d55a61bc3211.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.603d9dd1066352ad0c6a.js></script><script type=text/javascript src=./static/js/vendor.2cff6c68669f76f7bb26.js></script><script type=text/javascript src=./static/js/app.4ad545414a2bd6f8aef7.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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([0],{"//Fk":function(t,e,r){t.exports={default:r("U5ju"),__esModule:!0}},"1H6C":function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("HhN8"),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},"2KxR":function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},"2SpP":function(t,e){},"3E4D":function(t,e,r){"use strict";var n=r("zL8q");r.n(n);e.a={showmsg:function(t,e){Object(n.Message)({duration:1e3,message:t,type:e})}}},"3Xzz":function(t,e,r){"use strict";var n=r("P9l9"),o=r("Ch4/"),i={name:"navpath",data:function(){return{projectName:"member"}},props:{navpath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},methods:{changeRoute:function(t,e){e?window.location.href=t:this.$router.push(t)},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(n.c)("/api-auth/get-current-memu-data",e).then(function(e){var r=e.data;if(0==r.errorCode)return!!r.result&&(t.navpath=[],void(r.result.list&&r.result.list.length&&r.result.list.forEach(function(e,n){e.name=e.menuName,e.path="",n==r.result.list.length-1&&(e.path="/"+e.menuUrl),n>0&&t.navpath.push(e)})));o.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},a={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"navwrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,function(e,n){return[e.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(r){return t.changeRoute(e.path,e.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var s=r("VU/8")(i,a,!1,function(t){r("jd4q")},"data-v-0c26364e",null);e.a=s.exports},"3fs2":function(t,e,r){var n=r("RY/4"),o=r("dSzd")("iterator"),i=r("/bQp");t.exports=r("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},"82Mu":function(t,e,r){var n=r("7KvD"),o=r("L42u").set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r("R9M2")(a);t.exports=function(){var t,e,r,u=function(){var n,o;for(c&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!i||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){o.call(n,u)};else{var f=!0,p=document.createTextNode("");new i(u).observe(p,{characterData:!0}),r=function(){p.data=f=!f}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},CXw9:function(t,e,r){"use strict";var n,o,i,a,s=r("O4g8"),c=r("7KvD"),u=r("+ZMJ"),l=r("RY/4"),f=r("kM2E"),p=r("EqjI"),h=r("lOnJ"),d=r("2KxR"),v=r("NWt+"),m=r("t8x9"),g=r("L42u").set,y=r("82Mu")(),w=r("qARP"),b=r("dNDb"),x=r("iUbK"),j=r("fJUb"),_=c.TypeError,P=c.process,O=P&&P.versions,N=O&&O.v8||"",C=c.Promise,R="process"==l(P),L=function(){},E=o=w.f,k=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[r("dSzd")("species")]=function(t){t(L,L)};return(R||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==N.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),S=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,o=1==t._s,i=0,a=function(e){var r,i,a,s=o?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(o||(2==t._h&&M(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?u(_("Promise-chain cycle")):(i=S(r))?i.call(r,c,u):c(r)):u(n)}catch(t){l&&!a&&l.exit(),u(t)}};r.length>i;)a(r[i++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){g.call(c,function(){var e,r,n,o=t._v,i=F(t);if(i&&(e=b(function(){R?P.emit("unhandledRejection",o,t):(r=c.onunhandledrejection)?r({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=R||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){g.call(c,function(){var e;R?P.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},T=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(e=S(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,u(T,n,1),u(I,n,1))}catch(t){I.call(n,t)}}):(r._v=t,r._s=1,A(r,!1))}catch(t){I.call({_w:r,_d:!1},t)}}};k||(C=function(t){d(this,C,"Promise","_h"),h(t),n.call(this);try{t(u(T,this,1),u(I,this,1))}catch(t){I.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("xH/j")(C.prototype,{then:function(t,e){var r=E(m(this,C));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?P.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&A(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=u(T,t,1),this.reject=u(I,t,1)},w.f=E=function(t){return t===C||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!k,{Promise:C}),r("e6n0")(C,"Promise"),r("bRrM")("Promise"),a=r("FeBl").Promise,f(f.S+f.F*!k,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!k),"Promise",{resolve:function(t){return j(s&&this===a?C:this,t)}}),f(f.S+f.F*!(k&&r("dY0y")(function(t){C.all(t).catch(L)})),"Promise",{all:function(t){var e=this,r=E(e),n=r.resolve,o=r.reject,i=b(function(){var r=[],i=0,a=1;v(t,!1,function(t){var s=i++,c=!1;r.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,r[s]=t,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=E(e),n=r.reject,o=b(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},"Ch4/":function(t,e,r){"use strict";var n=r("zL8q");r.n(n);e.a={errorMsg:function(t){var e=window.location.origin;if(1!=t.errorCode){if(10==t.errorCode)return window.location.href=e+"/haoban-manage3-web/#/index",!1;n.Message.error({duration:1e3,message:t.message})}}}},CwSZ:function(t,e,r){"use strict";var n=r("p8xL"),o=r("XgCd"),i={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},c=function t(e,r,o,i,a,c,u,l,f,p,h,d){var v=e;if("function"==typeof u)v=u(r,v);else if(v instanceof Date)v=p(v);else if(null===v){if(i)return c&&!d?c(r,s.encoder):r;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||n.isBuffer(v))return c?[h(d?r:c(r,s.encoder))+"="+h(c(v,s.encoder))]:[h(r)+"="+h(String(v))];var m,g=[];if(void 0===v)return g;if(Array.isArray(u))m=u;else{var y=Object.keys(v);m=l?y.sort(l):y}for(var w=0;w<m.length;++w){var b=m[w];a&&null===v[b]||(g=Array.isArray(v)?g.concat(t(v[b],o(r,b),o,i,a,c,u,l,f,p,h,d)):g.concat(t(v[b],r+(f?"."+b:"["+b+"]"),o,i,a,c,u,l,f,p,h,d)))}return g};t.exports=function(t,e){var r=t,a=e?n.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===a.delimiter?s.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,f="boolean"==typeof a.skipNulls?a.skipNulls:s.skipNulls,p="boolean"==typeof a.encode?a.encode:s.encode,h="function"==typeof a.encoder?a.encoder:s.encoder,d="function"==typeof a.sort?a.sort:null,v=void 0!==a.allowDots&&a.allowDots,m="function"==typeof a.serializeDate?a.serializeDate:s.serializeDate,g="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if(void 0===a.format)a.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,a.format))throw new TypeError("Unknown format option provided.");var y,w,b=o.formatters[a.format];"function"==typeof a.filter?r=(w=a.filter)("",r):Array.isArray(a.filter)&&(y=w=a.filter);var x,j=[];if("object"!=typeof r||null===r)return"";x=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var _=i[x];y||(y=Object.keys(r)),d&&y.sort(d);for(var P=0;P<y.length;++P){var O=y[P];f&&null===r[O]||(j=j.concat(c(r[O],O,_,l,f,p?h:null,w,d,v,m,b,g)))}var N=j.join(u),C=!0===a.addQueryPrefix?"?":"";return N.length>0?C+N:""}},DDCP:function(t,e,r){"use strict";var n=r("p8xL"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,c=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var u=0;null!==(a=i.exec(n))&&u<r.depth;){if(u+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(t,e,r){for(var n=e,o=t.length-1;o>=0;--o){var i,a=t[o];if("[]"===a)i=(i=[]).concat(n);else{i=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[s]=n}n=i}return n}(c,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===t||null===t||void 0===t)return r.plainObjects?Object.create(null):{};for(var s="string"==typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,s=n.split(e.delimiter,a),c=0;c<s.length;++c){var u,l,f=s[c],p=f.indexOf("]="),h=-1===p?f.indexOf("="):p+1;-1===h?(u=e.decoder(f,i.decoder),l=e.strictNullHandling?null:""):(u=e.decoder(f.slice(0,h),i.decoder),l=e.decoder(f.slice(h+1),i.decoder)),o.call(r,u)?r[u]=[].concat(r[u]).concat(l):r[u]=l}return r}(t,r):t,c=r.plainObjects?Object.create(null):{},u=Object.keys(s),l=0;l<u.length;++l){var f=u[l],p=a(f,s[f],r);c=n.merge(c,p,r)}return n.compact(c)}},EqBC:function(t,e,r){"use strict";var n=r("kM2E"),o=r("FeBl"),i=r("7KvD"),a=r("t8x9"),s=r("fJUb");n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then(function(){return r})}:t,r?function(r){return s(e,t()).then(function(){throw r})}:t)}})},HhN8:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=P.prototype=j.prototype=Object.create(m);_.prototype=w.constructor=P,P.constructor=_,P[c]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,P):(t.__proto__=P,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(w),t},l.awrap=function(t){return{__await:t}},O(N.prototype),N.prototype[s]=function(){return this},l.AsyncIterator=N,l.async=function(t,e,r,n){var o=new N(b(t,e,r,n));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},O(w),w[c]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=k,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function b(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=C(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=x(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function j(){}function _(){}function P(){}function O(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function N(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,a){var s=x(t[r],t,n);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(u).then(function(t){c.value=t,i(c)},a)}a(s.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,C(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},L42u:function(t,e,r){var n,o,i,a=r("+ZMJ"),s=r("knuC"),c=r("RPLV"),u=r("ON07"),l=r("7KvD"),f=l.process,p=l.setImmediate,h=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){y.call(t.data)};p&&h||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},h=function(t){delete g[t]},"process"==r("R9M2")(f)?n=function(t){f.nextTick(a(y,t,1))}:v&&v.now?n=function(t){v.now(a(y,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=w,n=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",w,!1)):n="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:h}},Mhyx:function(t,e,r){var n=r("/bQp"),o=r("dSzd")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},NKg7:function(t,e,r){"use strict";var n=r("mvHQ"),o=r.n(n),i=r("mw3O"),a=r.n(i),s={name:"vue-office-header",props:["menuRouter","collapseFlag","projectName"],data:function(){return{repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],baseUrl:"",routePathName:"",userInfo:{name:"",phoneNumber:"",headPic:""}}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=t},methods:{changeRouter:function(t){this.$router.push(t)},handleCollapse:function(){this.isCollapse=1!=this.isCollapse,this.$emit("collapseTag",this.isCollapse)},toGicLogin:function(){var t=window.location.origin.includes("demogic.com")?window.location.origin:"https://hope.demogic.com";window.location.href=t+"/gic-web/#/"},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){t.axios.post(t.baseUrl+"/haoban-manage-web/logout",{}).then(function(e){var r=e.data;if(1==r.errorCode)return t.$message({message:"退出成功",type:"success"}),void(window.location.href=window.location.origin+"/haoban-manage3-web/#/login");t.$message.error({duration:1e3,message:r.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}).catch(function(){})},toRouter:function(t,e,r){var n={path:"/"+t,name:e};this.$emit("toRouterView",n)},treeData:function(t){return t.filter(function(e){var r=t.filter(function(t){return e.haobanMenuRightId==t.parentRightId});return r.length>0&&(e.children=r),-1==e.parentRightId})},getMenuDetail:function(){var t=this,e={router:t.routePathName,project:t.repProjectName,requestProject:t.repProjectName};t.axios.post(t.baseUrl+"/haoban-manage-web/menu-detail",a.a.stringify(e)).then(function(e){var r=e.data;1!=r.errorCode?t.$message.error({duration:1e3,message:r.message}):t.pathName="/"+r.result.top.url}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getHeaderMenu:function(){var t=this,e={project:t.repProjectName,requestProject:t.repProjectName};t.axios.post(t.baseUrl+"/haoban-manage-web/menu-list",a.a.stringify(e)).then(function(e){var r=e.data;if(1==r.errorCode)return r.result.forEach(function(t,e){t.url="/"+t.url}),t.menuHead=t.treeData(r.result),void t.$nextTick(function(){t.userInfo=JSON.parse(localStorage.getItem("userInfo")),t.userInfo||(t.userInfo={name:"",headPic:"",phoneNumber:""},t.getUserData())});t.$message.error({duration:1e3,message:r.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;t.axios.get(t.baseUrl+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var r=e.data;if(1==r.errorCode)return t.userInfo=r.result,void localStorage.setItem("userInfo",o()(r.result));t.$message.error({duration:1e3,message:r.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0},collapseFlag:function(t,e){this.isCollapse=t},projectName:function(t,e){this.repProjectName=t||"haoban-manage-web"}},mounted:function(){this.pathName=this.$route.path,this.routePathName=window.location.hash.split("/")[1],-1!=this.routePathName.indexOf("?")&&(this.routePathName=this.routePathName.split("?")[0]),-1!=this.routePathName.indexOf("/")&&(this.routePathName=this.routePathName.split("/")[0]),this.repProjectName=this.projectName||"haoban-manage-web",this.isCollapse=this.collapseFlag,this.userInfo=JSON.parse(localStorage.getItem("userInfo"))}},c={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"navheader"},[r("div",{staticClass:"navheader-logo fl",class:{moveleft:t.isCollapse,moveright:!t.isCollapse}},[r("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),t._v(" "),r("div",{staticClass:"navheader-item fl"},[t._l(t.menuHead,function(e,n){return[r("a",{key:n,class:["itemlink bottom menu-mall menu-font-16",t.pathName==e.url?"current-module":""],on:{click:function(r){return t.changeRouter(e.url)}}},[t._v("\n "+t._s(e.rightName)+"\n ")])]}),t._v(" "),r("div",{staticClass:"navuserinfo fr"},[r("span",{staticClass:"span-log color-909399 iconfont iconrizhifuwu"}),t._v(" "),r("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[r("ul",{staticClass:"navsuerwrap"},[r("li",{staticClass:"user-item loginout",staticStyle:{"text-align":"center"},on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[r("a",{staticClass:"usertext"},[t._v("退出登录")])])]),t._v(" "),r("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[r("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffDTO.staffName||"--"))]),t._v(" "),r("i",{staticClass:"iconfont iconxiala arrowico"})])])],1)],2)])},staticRenderFns:[]};var u=r("VU/8")(s,c,!1,function(t){r("2SpP")},"data-v-0143babf",null);e.a=u.exports},"NWt+":function(t,e,r){var n=r("+ZMJ"),o=r("msXi"),i=r("Mhyx"),a=r("77Pl"),s=r("QRG4"),c=r("3fs2"),u={},l={};(e=t.exports=function(t,e,r,f,p){var h,d,v,m,g=p?function(){return t}:c(t),y=n(r,f,e?2:1),w=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=s(t.length);h>w;w++)if((m=e?y(a(d=t[w])[0],d[1]):y(t[w]))===u||m===l)return m}else for(v=g.call(t);!(d=v.next()).done;)if((m=o(v,y,d.value,e))===u||m===l)return m}).BREAK=u,e.RETURN=l},P9l9:function(t,e,r){"use strict";r.d(e,"a",function(){return p}),r.d(e,"c",function(){return h}),r.d(e,"b",function(){return d});var n=r("//Fk"),o=r.n(n),i=r("lRwf"),a=r.n(i),s=r("mw3O"),c=r.n(s),u=r("zL8q");r.n(u);if(localStorage.getItem("userInfo")){var l=JSON.parse(localStorage.getItem("userInfo")).enterpriseId;a.a.axios.defaults.headers.post.haobansign=l,a.a.axios.defaults.headers.get.haobansign=l}a.a.axios.defaults.timeout=25e3;var f=window.location.origin;a.a.axios.interceptors.request.use(function(t){return t},function(t){return u.Message.error({message:"请求超时!"}),o.a.resolve(t)}),a.a.axios.interceptors.response.use(function(t){if(t.status&&200==t.status&&1!=t.data.errorCode){if(4==t.data.errorCode){if(-1!=window.location.href.indexOf("gic-error"))return!1;window.location.href=f+"/haoban-manage3-web/#/login"}return 10!=t.data.errorCode&&7!=t.data.errorCode||(window.location.href=f+"/haoban-manage3-web/#/index"),t}return t},function(t){return 504==t.response.status||404==t.response.status||t.response.status,o.a.resolve(t)});var p=function(t,e){return e.requestProject="haoban-manage-web",a.a.axios({method:"get",url:""+f+t,data:{},params:e,headers:{"Content-type":"application/x-www-form-urlencoded"}})},h=function(t,e){return e.requestProject="haoban-manage-web",a.a.axios({method:"post",url:""+f+t,data:c.a.stringify(e),headers:{"Content-type":"application/x-www-form-urlencoded"}})},d=function(t,e){return a.a.axios({method:"post",url:""+f+t,data:e,params:{requestProject:"haoban-manage-web"},headers:{"Content-Type":"application/json;charset=UTF-8"}})}},PI0u:function(t,e,r){"use strict";e.a=function(t,e){var r,e=e||200;return function(){var n=this,o=arguments;r&&clearTimeout(r),r=setTimeout(function(){r=null,t.apply(n,o)},e)}}},"RY/4":function(t,e,r){var n=r("R9M2"),o=r("dSzd")("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},U5ju:function(t,e,r){r("M6a0"),r("zQR9"),r("+tPU"),r("CXw9"),r("EqBC"),r("jKW+"),t.exports=r("FeBl").Promise},XgCd:function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},Xxa5:function(t,e,r){t.exports=r("1H6C")},bRrM:function(t,e,r){"use strict";var n=r("7KvD"),o=r("FeBl"),i=r("evD5"),a=r("+E39"),s=r("dSzd")("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dY0y:function(t,e,r){var n=r("dSzd")("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(t){}return r}},exGp:function(t,e,r){"use strict";e.__esModule=!0;var n,o=r("//Fk"),i=(n=o)&&n.__esModule?n:{default:n};e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,r){return function n(o,a){try{var s=e[o](a),c=s.value}catch(t){return void r(t)}if(!s.done)return i.default.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}("next")})}}},fJUb:function(t,e,r){var n=r("77Pl"),o=r("EqjI"),i=r("qARP");t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},iUbK:function(t,e,r){var n=r("7KvD").navigator;t.exports=n&&n.userAgent||""},"jKW+":function(t,e,r){"use strict";var n=r("kM2E"),o=r("qARP"),i=r("dNDb");n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},jd4q:function(t,e){},knuC:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},msXi:function(t,e,r){var n=r("77Pl");t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},mvHQ:function(t,e,r){t.exports={default:r("qkKv"),__esModule:!0}},mw3O:function(t,e,r){"use strict";var n=r("CwSZ"),o=r("DDCP"),i=r("XgCd");t.exports={formats:i,parse:o,stringify:n}},p8xL:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:i,prop:c}),r.push(u))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],o=0;o<e.length;++o)void 0!==e[o]&&n.push(e[o]);r.obj[r.prop]=n}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),r="",n=0;n<e.length;++n){var i=e.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=e.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(Array.isArray(e))e.push(r);else{if("object"!=typeof e)return[e,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!=typeof e)return[e].concat(r);var a=e;return Array.isArray(e)&&!Array.isArray(r)&&(a=i(e,o)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,i){n.call(e,i)?e[i]&&"object"==typeof e[i]?e[i]=t(e[i],r,o):e.push(r):e[i]=r}),e):Object.keys(r).reduce(function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e},a)}}},qARP:function(t,e,r){"use strict";var n=r("lOnJ");t.exports.f=function(t){return new function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)}(t)}},qkKv:function(t,e,r){var n=r("FeBl"),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},t8x9:function(t,e,r){var n=r("77Pl"),o=r("lOnJ"),i=r("dSzd")("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},"xH/j":function(t,e,r){var n=r("hJx8");t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}}});
\ No newline at end of file
webpackJsonp([0],{"//Fk":function(t,e,r){t.exports={default:r("U5ju"),__esModule:!0}},"1H6C":function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r("HhN8"),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},"2KxR":function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},"3E4D":function(t,e,r){"use strict";var n=r("zL8q");r.n(n);e.a={showmsg:function(t,e){Object(n.Message)({duration:1e3,message:t,type:e})}}},"3Xzz":function(t,e,r){"use strict";var n=r("P9l9"),o=r("Ch4/"),i={name:"navpath",data:function(){return{projectName:"member"}},props:{navpath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},methods:{changeRoute:function(t,e){e?window.location.href=t:this.$router.push(t)},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(n.c)("/api-auth/get-current-memu-data",e).then(function(e){var r=e.data;if(0==r.errorCode)return!!r.result&&(t.navpath=[],void(r.result.list&&r.result.list.length&&r.result.list.forEach(function(e,n){e.name=e.menuName,e.path="",n==r.result.list.length-1&&(e.path="/"+e.menuUrl),n>0&&t.navpath.push(e)})));o.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},a={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"navwrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,function(e,n){return[e.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(r){return t.changeRoute(e.path,e.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]})],2)],1)},staticRenderFns:[]};var s=r("VU/8")(i,a,!1,function(t){r("jd4q")},"data-v-0c26364e",null);e.a=s.exports},"3fs2":function(t,e,r){var n=r("RY/4"),o=r("dSzd")("iterator"),i=r("/bQp");t.exports=r("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},"7TH0":function(t,e){},"82Mu":function(t,e,r){var n=r("7KvD"),o=r("L42u").set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r("R9M2")(a);t.exports=function(){var t,e,r,u=function(){var n,o;for(c&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!i||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){o.call(n,u)};else{var f=!0,p=document.createTextNode("");new i(u).observe(p,{characterData:!0}),r=function(){p.data=f=!f}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},CXw9:function(t,e,r){"use strict";var n,o,i,a,s=r("O4g8"),c=r("7KvD"),u=r("+ZMJ"),l=r("RY/4"),f=r("kM2E"),p=r("EqjI"),h=r("lOnJ"),d=r("2KxR"),v=r("NWt+"),m=r("t8x9"),g=r("L42u").set,y=r("82Mu")(),w=r("qARP"),b=r("dNDb"),x=r("iUbK"),j=r("fJUb"),_=c.TypeError,O=c.process,P=O&&O.versions,N=P&&P.v8||"",C=c.Promise,R="process"==l(O),L=function(){},E=o=w.f,k=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[r("dSzd")("species")]=function(t){t(L,L)};return(R||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==N.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),S=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,o=1==t._s,i=0,a=function(e){var r,i,a,s=o?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(o||(2==t._h&&M(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?u(_("Promise-chain cycle")):(i=S(r))?i.call(r,c,u):c(r)):u(n)}catch(t){l&&!a&&l.exit(),u(t)}};r.length>i;)a(r[i++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){g.call(c,function(){var e,r,n,o=t._v,i=F(t);if(i&&(e=b(function(){R?O.emit("unhandledRejection",o,t):(r=c.onunhandledrejection)?r({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=R||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){g.call(c,function(){var e;R?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},T=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(e=S(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,u(T,n,1),u(I,n,1))}catch(t){I.call(n,t)}}):(r._v=t,r._s=1,A(r,!1))}catch(t){I.call({_w:r,_d:!1},t)}}};k||(C=function(t){d(this,C,"Promise","_h"),h(t),n.call(this);try{t(u(T,this,1),u(I,this,1))}catch(t){I.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("xH/j")(C.prototype,{then:function(t,e){var r=E(m(this,C));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&A(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=u(T,t,1),this.reject=u(I,t,1)},w.f=E=function(t){return t===C||t===a?new i(t):o(t)}),f(f.G+f.W+f.F*!k,{Promise:C}),r("e6n0")(C,"Promise"),r("bRrM")("Promise"),a=r("FeBl").Promise,f(f.S+f.F*!k,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!k),"Promise",{resolve:function(t){return j(s&&this===a?C:this,t)}}),f(f.S+f.F*!(k&&r("dY0y")(function(t){C.all(t).catch(L)})),"Promise",{all:function(t){var e=this,r=E(e),n=r.resolve,o=r.reject,i=b(function(){var r=[],i=0,a=1;v(t,!1,function(t){var s=i++,c=!1;r.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,r[s]=t,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=E(e),n=r.reject,o=b(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},"Ch4/":function(t,e,r){"use strict";var n=r("zL8q");r.n(n);e.a={errorMsg:function(t){var e=window.location.origin;if(1!=t.errorCode){if(10==t.errorCode)return window.location.href=e+"/haoban-3/#/index",!1;n.Message.error({duration:1e3,message:t.message})}}}},CwSZ:function(t,e,r){"use strict";var n=r("p8xL"),o=r("XgCd"),i={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},c=function t(e,r,o,i,a,c,u,l,f,p,h,d){var v=e;if("function"==typeof u)v=u(r,v);else if(v instanceof Date)v=p(v);else if(null===v){if(i)return c&&!d?c(r,s.encoder):r;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||n.isBuffer(v))return c?[h(d?r:c(r,s.encoder))+"="+h(c(v,s.encoder))]:[h(r)+"="+h(String(v))];var m,g=[];if(void 0===v)return g;if(Array.isArray(u))m=u;else{var y=Object.keys(v);m=l?y.sort(l):y}for(var w=0;w<m.length;++w){var b=m[w];a&&null===v[b]||(g=Array.isArray(v)?g.concat(t(v[b],o(r,b),o,i,a,c,u,l,f,p,h,d)):g.concat(t(v[b],r+(f?"."+b:"["+b+"]"),o,i,a,c,u,l,f,p,h,d)))}return g};t.exports=function(t,e){var r=t,a=e?n.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var u=void 0===a.delimiter?s.delimiter:a.delimiter,l="boolean"==typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,f="boolean"==typeof a.skipNulls?a.skipNulls:s.skipNulls,p="boolean"==typeof a.encode?a.encode:s.encode,h="function"==typeof a.encoder?a.encoder:s.encoder,d="function"==typeof a.sort?a.sort:null,v=void 0!==a.allowDots&&a.allowDots,m="function"==typeof a.serializeDate?a.serializeDate:s.serializeDate,g="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if(void 0===a.format)a.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,a.format))throw new TypeError("Unknown format option provided.");var y,w,b=o.formatters[a.format];"function"==typeof a.filter?r=(w=a.filter)("",r):Array.isArray(a.filter)&&(y=w=a.filter);var x,j=[];if("object"!=typeof r||null===r)return"";x=a.arrayFormat in i?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var _=i[x];y||(y=Object.keys(r)),d&&y.sort(d);for(var O=0;O<y.length;++O){var P=y[O];f&&null===r[P]||(j=j.concat(c(r[P],P,_,l,f,p?h:null,w,d,v,m,b,g)))}var N=j.join(u),C=!0===a.addQueryPrefix?"?":"";return N.length>0?C+N:""}},DDCP:function(t,e,r){"use strict";var n=r("p8xL"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,c=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var u=0;null!==(a=i.exec(n))&&u<r.depth;){if(u+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(t,e,r){for(var n=e,o=t.length-1;o>=0;--o){var i,a=t[o];if("[]"===a)i=(i=[]).concat(n);else{i=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[s]=n}n=i}return n}(c,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===t||null===t||void 0===t)return r.plainObjects?Object.create(null):{};for(var s="string"==typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,s=n.split(e.delimiter,a),c=0;c<s.length;++c){var u,l,f=s[c],p=f.indexOf("]="),h=-1===p?f.indexOf("="):p+1;-1===h?(u=e.decoder(f,i.decoder),l=e.strictNullHandling?null:""):(u=e.decoder(f.slice(0,h),i.decoder),l=e.decoder(f.slice(h+1),i.decoder)),o.call(r,u)?r[u]=[].concat(r[u]).concat(l):r[u]=l}return r}(t,r):t,c=r.plainObjects?Object.create(null):{},u=Object.keys(s),l=0;l<u.length;++l){var f=u[l],p=a(f,s[f],r);c=n.merge(c,p,r)}return n.compact(c)}},EqBC:function(t,e,r){"use strict";var n=r("kM2E"),o=r("FeBl"),i=r("7KvD"),a=r("t8x9"),s=r("fJUb");n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then(function(){return r})}:t,r?function(r){return s(e,t()).then(function(){throw r})}:t)}})},HhN8:function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"==typeof t,l=e.regeneratorRuntime;if(l)u&&(t.exports=l);else{(l=e.regeneratorRuntime=u?t.exports:{}).wrap=b;var f="suspendedStart",p="suspendedYield",h="executing",d="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=O.prototype=j.prototype=Object.create(m);_.prototype=w.constructor=O,O.constructor=_,O[c]=_.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(w),t},l.awrap=function(t){return{__await:t}},P(N.prototype),N.prototype[s]=function(){return this},l.AsyncIterator=N,l.async=function(t,e,r,n){var o=new N(b(t,e,r,n));return l.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},P(w),w[c]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},l.values=k,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function b(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=C(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=x(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function j(){}function _(){}function O(){}function P(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function N(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,a){var s=x(t[r],t,n);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(u).then(function(t){c.value=t,i(c)},a)}a(s.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function C(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,C(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},L42u:function(t,e,r){var n,o,i,a=r("+ZMJ"),s=r("knuC"),c=r("RPLV"),u=r("ON07"),l=r("7KvD"),f=l.process,p=l.setImmediate,h=l.clearImmediate,d=l.MessageChannel,v=l.Dispatch,m=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){y.call(t.data)};p&&h||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},h=function(t){delete g[t]},"process"==r("R9M2")(f)?n=function(t){f.nextTick(a(y,t,1))}:v&&v.now?n=function(t){v.now(a(y,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=w,n=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",w,!1)):n="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:h}},Mhyx:function(t,e,r){var n=r("/bQp"),o=r("dSzd")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},NKg7:function(t,e,r){"use strict";var n=r("mvHQ"),o=r.n(n),i=r("mw3O"),a=r.n(i),s={name:"vue-office-header",props:["menuRouter","collapseFlag","projectName"],data:function(){return{repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],baseUrl:"",routePathName:"",userInfo:{name:"",phoneNumber:"",headPic:""}}},beforeMount:function(){var t=window.location.origin;"-1"!=t.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=t},methods:{changeRouter:function(t){this.$router.push(t)},handleCollapse:function(){this.isCollapse=1!=this.isCollapse,this.$emit("collapseTag",this.isCollapse)},toGicLogin:function(){var t=window.location.origin.includes("demogic.com")?window.location.origin:"https://hope.demogic.com";window.location.href=t+"/gic-web/#/"},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then(function(){t.axios.post("/haoban-manage3-web/logout",{}).then(function(e){var r=e.data;if(1==r.errorCode)return t.$message({message:"退出成功",type:"success"}),void(window.location.href=window.location.origin+"/haoban-3/#/login");t.$message.error({duration:1e3,message:r.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}).catch(function(){})},toRouter:function(t,e,r){var n={path:"/"+t,name:e};this.$emit("toRouterView",n)},treeData:function(t){return t.filter(function(e){var r=t.filter(function(t){return e.haobanMenuRightId==t.parentRightId});return r.length>0&&(e.children=r),-1==e.parentRightId})},getMenuDetail:function(){var t=this,e={router:t.routePathName,project:t.repProjectName,requestProject:t.repProjectName};t.axios.post(t.baseUrl+"/haoban-manage-web/menu-detail",a.a.stringify(e)).then(function(e){var r=e.data;1!=r.errorCode?t.$message.error({duration:1e3,message:r.message}):t.pathName="/"+r.result.top.url}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getHeaderMenu:function(){var t=this,e={project:t.repProjectName,requestProject:t.repProjectName};t.axios.post(t.baseUrl+"/haoban-manage-web/menu-list",a.a.stringify(e)).then(function(e){var r=e.data;if(1==r.errorCode)return r.result.forEach(function(t,e){t.url="/"+t.url}),t.menuHead=t.treeData(r.result),void t.$nextTick(function(){t.userInfo=JSON.parse(localStorage.getItem("userInfo")),t.userInfo||(t.userInfo={name:"",headPic:"",phoneNumber:""},t.getUserData())});t.$message.error({duration:1e3,message:r.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getUserData:function(){var t=this;t.axios.get(t.baseUrl+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var r=e.data;if(1==r.errorCode)return t.userInfo=r.result,void localStorage.setItem("userInfo",o()(r.result));t.$message.error({duration:1e3,message:r.message})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0},collapseFlag:function(t,e){this.isCollapse=t},projectName:function(t,e){this.repProjectName=t||"haoban-manage-web"}},mounted:function(){this.pathName=this.$route.path,this.routePathName=window.location.hash.split("/")[1],-1!=this.routePathName.indexOf("?")&&(this.routePathName=this.routePathName.split("?")[0]),-1!=this.routePathName.indexOf("/")&&(this.routePathName=this.routePathName.split("/")[0]),this.repProjectName=this.projectName||"haoban-manage-web",this.isCollapse=this.collapseFlag,this.userInfo=JSON.parse(localStorage.getItem("userInfo"))}},c={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"navheader"},[r("div",{staticClass:"navheader-logo fl",class:{moveleft:t.isCollapse,moveright:!t.isCollapse}},[r("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),t._v(" "),r("div",{staticClass:"navheader-item fl"},[t._l(t.menuHead,function(e,n){return[r("a",{key:n,class:["itemlink bottom menu-mall menu-font-16",t.pathName==e.url?"current-module":""],on:{click:function(r){return t.changeRouter(e.url)}}},[t._v("\n "+t._s(e.rightName)+"\n ")])]}),t._v(" "),r("div",{staticClass:"navuserinfo fr"},[r("span",{staticClass:"span-log color-909399 iconfont iconrizhifuwu"}),t._v(" "),r("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[r("ul",{staticClass:"navsuerwrap"},[r("li",{staticClass:"user-item loginout",staticStyle:{"text-align":"center"},on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[r("a",{staticClass:"usertext"},[t._v("退出登录")])])]),t._v(" "),r("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[r("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffDTO.staffName||"--"))]),t._v(" "),r("i",{staticClass:"iconfont iconxiala arrowico"})])])],1)],2)])},staticRenderFns:[]};var u=r("VU/8")(s,c,!1,function(t){r("7TH0")},"data-v-26488f70",null);e.a=u.exports},"NWt+":function(t,e,r){var n=r("+ZMJ"),o=r("msXi"),i=r("Mhyx"),a=r("77Pl"),s=r("QRG4"),c=r("3fs2"),u={},l={};(e=t.exports=function(t,e,r,f,p){var h,d,v,m,g=p?function(){return t}:c(t),y=n(r,f,e?2:1),w=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=s(t.length);h>w;w++)if((m=e?y(a(d=t[w])[0],d[1]):y(t[w]))===u||m===l)return m}else for(v=g.call(t);!(d=v.next()).done;)if((m=o(v,y,d.value,e))===u||m===l)return m}).BREAK=u,e.RETURN=l},P9l9:function(t,e,r){"use strict";r.d(e,"a",function(){return p}),r.d(e,"c",function(){return h}),r.d(e,"b",function(){return d});var n=r("//Fk"),o=r.n(n),i=r("lRwf"),a=r.n(i),s=r("mw3O"),c=r.n(s),u=r("zL8q");r.n(u);if(localStorage.getItem("userInfo")){var l=JSON.parse(localStorage.getItem("userInfo")).enterpriseId;a.a.axios.defaults.headers.post.haobansign=l,a.a.axios.defaults.headers.get.haobansign=l}a.a.axios.defaults.timeout=25e3;var f=window.location.origin;a.a.axios.interceptors.request.use(function(t){return t},function(t){return u.Message.error({message:"请求超时!"}),o.a.resolve(t)}),a.a.axios.interceptors.response.use(function(t){if(t.status&&200==t.status&&1!=t.data.errorCode){if(4==t.data.errorCode){if(-1!=window.location.href.indexOf("gic-error"))return!1;window.location.href=f+"/haoban-3/#/login"}return 10!=t.data.errorCode&&7!=t.data.errorCode||(window.location.href=f+"/haoban-3/#/index"),t}return t},function(t){return 504==t.response.status||404==t.response.status||t.response.status,o.a.resolve(t)});var p=function(t,e){return e.requestProject="haoban-manage-web",a.a.axios({method:"get",url:""+f+t,data:{},params:e,headers:{"Content-type":"application/x-www-form-urlencoded"}})},h=function(t,e){return e.requestProject="haoban-manage-web",a.a.axios({method:"post",url:""+f+t,data:c.a.stringify(e),headers:{"Content-type":"application/x-www-form-urlencoded"}})},d=function(t,e){return a.a.axios({method:"post",url:""+f+t,data:e,params:{requestProject:"haoban-manage-web"},headers:{"Content-Type":"application/json;charset=UTF-8"}})}},PI0u:function(t,e,r){"use strict";e.a=function(t,e){var r,e=e||200;return function(){var n=this,o=arguments;r&&clearTimeout(r),r=setTimeout(function(){r=null,t.apply(n,o)},e)}}},"RY/4":function(t,e,r){var n=r("R9M2"),o=r("dSzd")("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},U5ju:function(t,e,r){r("M6a0"),r("zQR9"),r("+tPU"),r("CXw9"),r("EqBC"),r("jKW+"),t.exports=r("FeBl").Promise},XgCd:function(t,e,r){"use strict";var n=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return n.call(t,o,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},Xxa5:function(t,e,r){t.exports=r("1H6C")},bRrM:function(t,e,r){"use strict";var n=r("7KvD"),o=r("FeBl"),i=r("evD5"),a=r("+E39"),s=r("dSzd")("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dY0y:function(t,e,r){var n=r("dSzd")("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(t){}return r}},exGp:function(t,e,r){"use strict";e.__esModule=!0;var n,o=r("//Fk"),i=(n=o)&&n.__esModule?n:{default:n};e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,r){return function n(o,a){try{var s=e[o](a),c=s.value}catch(t){return void r(t)}if(!s.done)return i.default.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}("next")})}}},fJUb:function(t,e,r){var n=r("77Pl"),o=r("EqjI"),i=r("qARP");t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},iUbK:function(t,e,r){var n=r("7KvD").navigator;t.exports=n&&n.userAgent||""},"jKW+":function(t,e,r){"use strict";var n=r("kM2E"),o=r("qARP"),i=r("dNDb");n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},jd4q:function(t,e){},knuC:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},msXi:function(t,e,r){var n=r("77Pl");t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},mvHQ:function(t,e,r){t.exports={default:r("qkKv"),__esModule:!0}},mw3O:function(t,e,r){"use strict";var n=r("CwSZ"),o=r("DDCP"),i=r("XgCd");t.exports={formats:i,parse:o,stringify:n}},p8xL:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=i[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:i,prop:c}),r.push(u))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var n=[],o=0;o<e.length;++o)void 0!==e[o]&&n.push(e[o]);r.obj[r.prop]=n}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),r="",n=0;n<e.length;++n){var i=e.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=e.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(Array.isArray(e))e.push(r);else{if("object"!=typeof e)return[e,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if("object"!=typeof e)return[e].concat(r);var a=e;return Array.isArray(e)&&!Array.isArray(r)&&(a=i(e,o)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,i){n.call(e,i)?e[i]&&"object"==typeof e[i]?e[i]=t(e[i],r,o):e.push(r):e[i]=r}),e):Object.keys(r).reduce(function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e},a)}}},qARP:function(t,e,r){"use strict";var n=r("lOnJ");t.exports.f=function(t){return new function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)}(t)}},qkKv:function(t,e,r){var n=r("FeBl"),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},t8x9:function(t,e,r){var n=r("77Pl"),o=r("lOnJ"),i=r("dSzd")("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},"xH/j":function(t,e,r){var n=r("hJx8");t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,c){for(var f,i,u,d=0,b=[];d<r.length;d++)i=r[d],a[i]&&b.push(a[i][0]),a[i]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,c);b.length;)b.shift()();if(c)for(d=0;d<c.length;d++)u=t(t.s=c[d]);return u};var r={},a={21:0};function t(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}t.e=function(e){var n=a[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=a[e]=[r,t]});n[2]=r;var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,t.nc&&c.setAttribute("nonce",t.nc),c.src=t.p+"static/js/"+e+"."+{0:"1d32d63fa419a4b86bba",1:"9a1776fdc262362d75b8",2:"036a333a663344cf67d9",3:"aff73457228a6df23650",4:"59cbb98ef3301b7d1be0",5:"afc7b726a46486df899a",6:"9e12ea68528f2ad5f9a5",7:"4c95fe66c59573d7da03",8:"c2a3c1c2b9ffb4687826",9:"4b8efecc95608bc88200",10:"ac7009c4a56552235c6f",11:"cdcdaabe8dd05b754b5f",12:"2bf38ff033ad1f7a922b",13:"b13f744cd55ac3168789",14:"840b162a636493a5d4f9",15:"b2964c8a20328a2a5e5f",16:"188fa59e318626239ae8",17:"17423916aa77b50f2ee3",18:"b918fbf8403d96eac90a"}[e]+".js";var f=setTimeout(i,12e4);function i(){c.onerror=c.onload=null,clearTimeout(f);var n=a[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return c.onerror=c.onload=i,o.appendChild(c),r},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!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:"e024953879088085b363",1:"9a1776fdc262362d75b8",2:"036a333a663344cf67d9",3:"3f6c375482ebae11669c",4:"59cbb98ef3301b7d1be0",5:"afc7b726a46486df899a",6:"9e12ea68528f2ad5f9a5",7:"4c95fe66c59573d7da03",8:"c2a3c1c2b9ffb4687826",9:"4b8efecc95608bc88200",10:"ac7009c4a56552235c6f",11:"cdcdaabe8dd05b754b5f",12:"2bf38ff033ad1f7a922b",13:"b13f744cd55ac3168789",14:"840b162a636493a5d4f9",15:"b2964c8a20328a2a5e5f",16:"188fa59e318626239ae8",17:"17423916aa77b50f2ee3",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
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: 1.0.0 * @version: 1.0.0
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors : 无尘
* @LastEditTime: 2019-10-29 10:05:39 * @LastEditTime : 2020-02-23 10:40:44
*/ */
import Vue from 'vue'; import Vue from 'vue';
// import axios from 'axios'; // import axios from 'axios';
...@@ -45,10 +45,10 @@ Vue.axios.interceptors.response.use( ...@@ -45,10 +45,10 @@ Vue.axios.interceptors.response.use(
if (window.location.href.indexOf('gic-error') != -1) { if (window.location.href.indexOf('gic-error') != -1) {
return false; return false;
} }
window.location.href = local + '/haoban-manage3-web/#/login'; window.location.href = local + '/haoban-3/#/login';
} }
if (data.data.errorCode == 10 || data.data.errorCode == 7) { if (data.data.errorCode == 10 || data.data.errorCode == 7) {
window.location.href = local + '/haoban-manage3-web/#/index'; window.location.href = local + '/haoban-3/#/index';
} }
return data; return data;
} }
......
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
// return false; // return false;
// } // }
if (response.errorCode == 10) { if (response.errorCode == 10) {
window.location.href = local + '/haoban-manage3-web/#/index'; window.location.href = local + '/haoban-3/#/index';
return false; return false;
} }
Message.error({ Message.error({
......
...@@ -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-22 15:49:36 * @LastEditTime : 2020-02-23 11:55:10
--> -->
<!-- <!--
<wx-tree v-model="itemData" ></wx-tree> <wx-tree v-model="itemData" ></wx-tree>
...@@ -13,12 +13,12 @@ import wxTree from './wx-tree.vue'; ...@@ -13,12 +13,12 @@ import wxTree from './wx-tree.vue';
--> -->
<template> <template>
<ul class=""> <ul class="">
<draggable :list="itemData" class="wx-component" :options="rightOption" @input="emitter" @change="changeData"> <draggable :list="itemData" class="wx-component" :options="rightOption" @input="emitter" @change="changeData" :move="onMove" @start="isDragging = true" @end="itemMoveEnd">
<li v-for="(item, index) in itemData" :key="index + 'gic'"> <li v-for="(item, index) in itemData" :key="index + 'wx'">
<div class="li-cell cursor-pointer" @click="toggleExpand(item)"> <div class="li-cell cursor-pointer" @click="toggleExpand(item)">
<div class="flex flex-space-between boder-box p-r-20" :style="{ 'padding-left': item.level * 10 + 'px' }"> <div class="flex flex-space-between boder-box p-r-20" :style="{ 'padding-left': (item.level + 1) * 10 + 'px' }">
<div class="tree-left"> <div class="tree-left">
<span v-if="!item.isStore" :class="['font-12 color-606266', item.expand ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></span><span :class="['font-14 p-l-10 p-r-10 iconfont', item.isStore == 1 ? 'icondianpu-kuai' : 'iconqiye-tianchong', item.bindFlag == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ item.label }}</span> <span :class="['font-12 color-606266', item.isStore == 1 ? 'color-fff' : '', item.expand ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></span><span :class="['font-14 p-l-10 p-r-10 iconfont', item.isStore == 1 ? 'icondianpu-kuai' : 'iconqiye-tianchong', item.bindFlag == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ item.label }}</span>
</div> </div>
<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>
...@@ -78,6 +78,26 @@ export default { ...@@ -78,6 +78,26 @@ export default {
}, },
computed: {}, computed: {},
methods: { methods: {
onMove(evt) {
// const that = this;
// 判断中间是否存在父级
const draggedElement = evt.draggedContext.element;
// 首级不能移动
if (draggedElement.level == 0) {
return false;
}
console.log(evt, draggedElement, !draggedElement.fixed);
return !draggedElement.fixed;
},
/**
* move end
*/
itemMoveEnd(evt) {
const that = this;
// 判断中间是否已经添加
console.log(evt, that.itemData);
that.$forceUpdate();
},
/** /**
* 改变数组数据 * 改变数组数据
*/ */
...@@ -91,9 +111,6 @@ export default { ...@@ -91,9 +111,6 @@ export default {
/** /**
* 展开或者关闭下级 * 展开或者关闭下级
*/ */
/**
* 展开或者关闭下级
*/
async toggleExpand(item) { async toggleExpand(item) {
const that = this; const that = this;
// console.log(item); // console.log(item);
...@@ -144,8 +161,8 @@ export default { ...@@ -144,8 +161,8 @@ export default {
if (name == 'close') { if (name == 'close') {
return false; return false;
} }
// 添加子部门的时候判断是否有子级 // 添加子部门的时候判断是否有子级且不是新添加
const arr = !that.additem.addFlag ? await that.getChildData(that.additem) : []; const arr = !that.additem.addFlag && !that.additem.children.length ? await that.getChildData(that.additem) : [];
if (arr.length && !that.additem.addFlag) { if (arr.length && !that.additem.addFlag) {
arr.forEach(ele => { arr.forEach(ele => {
that.additem.children.push(ele); that.additem.children.push(ele);
...@@ -165,7 +182,7 @@ export default { ...@@ -165,7 +182,7 @@ export default {
}, },
/** /**
* 搜索查询列表 * 删除
*/ */
delPost(item) { delPost(item) {
const that = this; const that = this;
...@@ -304,11 +321,21 @@ export default { ...@@ -304,11 +321,21 @@ export default {
.li-cell { .li-cell {
min-height: 26px; min-height: 26px;
line-height: 26px; line-height: 26px;
.tree-left {
.color-fff {
color: #fff;
}
}
.tree-right { .tree-right {
display: none; display: none;
} }
&:hover { &:hover {
background: rgba(47, 84, 235, 0.05); background: rgba(47, 84, 235, 0.05);
.tree-left {
.color-fff {
color: rgba(47, 84, 235, 0.05);
}
}
.tree-right { .tree-right {
display: block; display: block;
} }
......
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
}) })
.then(() => { .then(() => {
that.axios that.axios
.post(that.baseUrl + '/haoban-manage-web/logout', {}) .post('/haoban-manage3-web/logout', {})
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
if (resData.errorCode == 1) { if (resData.errorCode == 1) {
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
type: 'success' type: 'success'
}); });
// 跳转登录页 // 跳转登录页
window.location.href = window.location.origin + '/haoban-manage3-web/#/login'; window.location.href = window.location.origin + '/haoban-3/#/login';
return; return;
} }
that.$message.error({ that.$message.error({
......
...@@ -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-21 10:22:54 * @LastEditTime : 2020-02-23 11:53:25
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -45,7 +45,22 @@ ...@@ -45,7 +45,22 @@
<el-button type="text" @click="toRecycle">回收站()</el-button> <el-button type="text" @click="toRecycle">回收站()</el-button>
</div> </div>
<div class="content-wx"> <div class="content-wx">
<wx-tree :itemData="wxData" v-model="wxData"></wx-tree> <ul class="">
<li v-for="(item, index) in wxData" :key="index + 'wx'">
<div class="li-cell cursor-pointer" @click="toggleExpand(item)">
<div class="flex flex-space-between boder-box p-r-20" :style="{ 'padding-left': (item.level + 1) * 10 + 'px' }">
<div class="tree-left">
<span v-if="!item.isStore" :class="['font-12 color-606266', item.expand ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></span><span :class="['font-14 p-l-10 p-r-10 iconfont', item.isStore == 1 ? 'icondianpu-kuai' : 'iconqiye-tianchong', item.bindFlag == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ item.label }}</span>
</div>
<div class="tree-right">
<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>
</div>
</div>
</div>
<wx-tree v-if="item.expand" :itemData="item.children" v-model="item.children"></wx-tree>
</li>
</ul>
</div> </div>
</div> </div>
</div> </div>
...@@ -57,6 +72,7 @@ ...@@ -57,6 +72,7 @@
</div> </div>
</div> </div>
<add-enterprise v-if="addShow" @refreshData="refreshData"></add-enterprise> <add-enterprise v-if="addShow" @refreshData="refreshData"></add-enterprise>
<add-depart v-if="addDepartShow" :departObj="departObj" @refreshData="refreshDepartData"></add-depart>
</div> </div>
<vue-gic-footer></vue-gic-footer> <vue-gic-footer></vue-gic-footer>
</div> </div>
...@@ -66,9 +82,11 @@ import navCrumb from '@/components/nav/nav.vue'; ...@@ -66,9 +82,11 @@ import navCrumb from '@/components/nav/nav.vue';
import addEnterprise from '@/components/company/add-enterprise.vue'; import addEnterprise from '@/components/company/add-enterprise.vue';
import orgTree from '@/components/company/org-tree.vue'; import orgTree from '@/components/company/org-tree.vue';
import wxTree from '@/components/company/wx-tree.vue'; import wxTree from '@/components/company/wx-tree.vue';
import addDepart from '@/components/company/add-depart.vue';
import { getRequest, postRequest } from '@/api/api'; import { getRequest, postRequest } from '@/api/api';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
import localforage from 'localforage';
export default { export default {
name: 'reviewed', name: 'reviewed',
data() { data() {
...@@ -110,7 +128,8 @@ export default { ...@@ -110,7 +128,8 @@ export default {
// }] // }]
// } // }
], ],
addShow: false addDepartShow: false,
additem: {}
}; };
}, },
computed: {}, computed: {},
...@@ -190,6 +209,7 @@ export default { ...@@ -190,6 +209,7 @@ export default {
}); });
} }
that.wxData = resData.result || []; that.wxData = resData.result || [];
that.getLocalData();
return false; return false;
} }
errMsg.errorMsg(resData); errMsg.errorMsg(resData);
...@@ -201,6 +221,148 @@ export default { ...@@ -201,6 +221,148 @@ export default {
}); });
}); });
}, },
/**
* 添加子部门
*/
addChild(item) {
const that = this;
// console.log('添加:', item);
that.addDepartShow = true;
that.additem = item;
},
/**
* 修改名称
*/
modChild(item) {
const that = this;
// console.log('修改:', item);
item.label = 2222;
that.addDepartShow = true;
that.$forceUpdate();
},
async refreshDepartData(name) {
const that = this;
that.addDepartShow = false;
if (name == 'close') {
return false;
}
// 添加子部门的时候判断是否有子级且不是新添加
const arr = !that.additem.addFlag && !that.additem.children.length ? await that.getChildData(that.additem) : [];
if (arr.length && !that.additem.addFlag) {
arr.forEach(ele => {
that.additem.children.push(ele);
});
}
that.additem.children.push({
id: String(new Date().getTime()),
expand: true,
level: that.additem.level + 1,
isStore: 0,
label: name,
departmentName: name,
addFlag: true,
children: []
});
that.$forceUpdate();
},
/**
* 展开或者关闭下级
*/
async toggleExpand(item) {
const that = this;
// console.log(item);
item.expand = item.expand ? false : true;
// 新增加子部门不存本地数据
if (item.addFlag) {
return false;
}
// 点击的时候,如果非门店且子级是空的需要请求获取子级
if (item.isStore == 0 && !item.children.length) {
item.children = await that.getChildData(item);
}
// 只有展开且不是门店的才会保存
if (item.expand && !item.isStore) {
localforage.setItem('org' + item.departmentId, item);
}
if (!item.expand) {
localforage.removeItem('org' + item.departmentId);
}
that.$forceUpdate();
},
/**
* 获取下级数据
*/
getChildData(item) {
const that = this;
let para = {
parentId: item.departmentId, //
isStore: item.isStore, //
keyword: '' //
};
return new Promise((resolve, reject) => {
getRequest('/haoban-manage3-web/department-list-level', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.result.length) {
resData.result.forEach(ele => {
ele.expand = false;
ele.children = [];
ele.label = ele.departmentName;
});
}
resolve(resData.result || []);
return false;
}
resolve([]);
errMsg.errorMsg(resData);
})
.catch(function(error) {
resolve([]);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
async checkLocal(data) {
// const that = this;
return new Promise((resolve, reject) => {
localforage
.getItem('org' + data.departmentId)
.then(value => {
// 当离线仓库中的值被载入时,此处代码运行
// console.log(value);
value ? resolve(true) : resolve(false);
})
.catch(function(err) {
// 当出错时,此处代码运行
resolve(false);
// console.log(err);
});
});
},
/**
* 获取存储的数据
*/
async getLocalData() {
const that = this;
for (let index = 0; index < that.wxData.length; index++) {
const flag = await that.checkLocal(that.wxData[index]);
if (flag) {
that.wxData[index].expand = true;
that.wxData[index].children = await that.getChildData(that.wxData[index]);
}
}
},
/** /**
* 新增 * 新增
*/ */
...@@ -267,7 +429,8 @@ export default { ...@@ -267,7 +429,8 @@ export default {
navCrumb, navCrumb,
addEnterprise, addEnterprise,
orgTree, orgTree,
wxTree wxTree,
addDepart
} }
}; };
</script> </script>
...@@ -410,6 +573,10 @@ export default { ...@@ -410,6 +573,10 @@ export default {
.content-wx { .content-wx {
padding: 10px 0 20px 0; padding: 10px 0 20px 0;
box-sizing: border-box; box-sizing: border-box;
.li-cell {
min-height: 26px;
line-height: 26px;
}
} }
} }
} }
......
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