提交 853ea889 authored 作者: yyf's avatar yyf

首页时间筛选限制修改

上级 957d4f5a
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
font-size: 13px; font-size: 13px;
color: #FFF; color: #FFF;
opacity: 0.5; opacity: 0.5;
}</style><link href=/static/css/chunk-libs.144811ca.css rel=stylesheet><link href=/static/css/app.c1dccd43.css rel=stylesheet></head><body><div id=app><div id=loader-wrapper><div id=loader></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div><div class=load_title>正在加载系统资源,请耐心等待</div></div></div><script src=/static/js/chunk-elementUI.0d97c934.js></script><script src=/static/js/chunk-libs.8c488edd.js></script><script>(function(e){function c(c){for(var t,u,d=c[0],f=c[1],o=c[2],h=0,i=[];h<d.length;h++)u=d[h],r[u]&&i.push(r[u][0]),r[u]=0;for(t in f)Object.prototype.hasOwnProperty.call(f,t)&&(e[t]=f[t]);k&&k(c);while(i.length)i.shift()();return a.push.apply(a,o||[]),n()}function n(){for(var e,c=0;c<a.length;c++){for(var n=a[c],t=!0,u=1;u<n.length;u++){var d=n[u];0!==r[d]&&(t=!1)}t&&(a.splice(c--,1),e=f(f.s=n[0]))}return e}var t={},u={runtime:0},r={runtime:0},a=[];function d(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-0a90d205":"9a509995","chunk-0e4c32e6":"748f3a21","chunk-1f0c0c63":"58fe0601","chunk-25665c90":"826f8b28","chunk-2a9cac1a":"9d3b0952","chunk-2aa784f0":"0bb7e135","chunk-2d0c7ece":"3d31eeb7","chunk-2d0c84d3":"cdf8b2d0","chunk-0b4a9e9a":"2b4ce1ce","chunk-2d0d6345":"e4d18775","chunk-2d0e2366":"13651a23","chunk-6c397c40":"ac70dab6","chunk-2d0e28b6":"15bd9cc2","chunk-68d5bf9e":"fb1b5444","chunk-2d0d67a2":"e2fbc027","chunk-08486bce":"bf4fcc65","chunk-2d0f012d":"c5cdd7ec","chunk-2d22db58":"1e7a3b55","chunk-3d2ff5d1":"ce4e7db0","chunk-41a7be60":"e9a4abff","chunk-48888c23":"b050d4a9","chunk-60e8ce96":"6fb2f713","chunk-68f14320":"23e15078","chunk-6c237b40":"d2729254","chunk-7c2f4fe6":"27e19c9b"}[e]+".js"}function f(c){if(t[c])return t[c].exports;var n=t[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,f),n.l=!0,n.exports}f.e=function(e){var c=[],n={"chunk-0a90d205":1,"chunk-0e4c32e6":1,"chunk-25665c90":1,"chunk-2a9cac1a":1,"chunk-2aa784f0":1,"chunk-6c397c40":1,"chunk-68d5bf9e":1,"chunk-3d2ff5d1":1,"chunk-41a7be60":1,"chunk-48888c23":1,"chunk-60e8ce96":1,"chunk-68f14320":1,"chunk-6c237b40":1};u[e]?c.push(u[e]):0!==u[e]&&n[e]&&c.push(u[e]=new Promise((function(c,n){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-0a90d205":"265d9d9a","chunk-0e4c32e6":"59ca527c","chunk-1f0c0c63":"31d6cfe0","chunk-25665c90":"7d7576c8","chunk-2a9cac1a":"89d64632","chunk-2aa784f0":"e647c98b","chunk-2d0c7ece":"31d6cfe0","chunk-2d0c84d3":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-2d0d6345":"31d6cfe0","chunk-2d0e2366":"31d6cfe0","chunk-6c397c40":"f368e025","chunk-2d0e28b6":"31d6cfe0","chunk-68d5bf9e":"f4c0cfcb","chunk-2d0d67a2":"31d6cfe0","chunk-08486bce":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2d22db58":"31d6cfe0","chunk-3d2ff5d1":"f84ff33b","chunk-41a7be60":"ae66b2e5","chunk-48888c23":"9d5b40c1","chunk-60e8ce96":"590b2cbd","chunk-68f14320":"bc8ac7fc","chunk-6c237b40":"f1b3c50c","chunk-7c2f4fe6":"31d6cfe0"}[e]+".css",r=f.p+t,a=document.getElementsByTagName("link"),d=0;d<a.length;d++){var o=a[d],h=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(h===t||h===r))return c()}var i=document.getElementsByTagName("style");for(d=0;d<i.length;d++){o=i[d],h=o.getAttribute("data-href");if(h===t||h===r)return c()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=c,k.onerror=function(c){var t=c&&c.target&&c.target.src||r,a=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");a.request=t,delete u[e],k.parentNode.removeChild(k),n(a)},k.href=r;var b=document.getElementsByTagName("head")[0];b.appendChild(k)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)c.push(t[2]);else{var a=new Promise((function(c,n){t=r[e]=[c,n]}));c.push(t[2]=a);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,f.nc&&h.setAttribute("nonce",f.nc),h.src=d(e),o=function(c){h.onerror=h.onload=null,clearTimeout(i);var n=r[e];if(0!==n){if(n){var t=c&&("load"===c.type?"missing":c.type),u=c&&c.target&&c.target.src,a=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");a.type=t,a.request=u,n[1](a)}r[e]=void 0}};var i=setTimeout((function(){o({type:"timeout",target:h})}),12e4);h.onerror=h.onload=o,document.head.appendChild(h)}return Promise.all(c)},f.m=e,f.c=t,f.d=function(e,c,n){f.o(e,c)||Object.defineProperty(e,c,{enumerable:!0,get:n})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,c){if(1&c&&(e=f(e)),8&c)return e;if(4&c&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&c&&"string"!=typeof e)for(var t in e)f.d(n,t,function(c){return e[c]}.bind(null,t));return n},f.n=function(e){var c=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="/",f.oe=function(e){throw console.error(e),e};var o=window["webpackJsonp"]=window["webpackJsonp"]||[],h=o.push.bind(o);o.push=c,o=o.slice();for(var i=0;i<o.length;i++)c(o[i]);var k=h;n()})([]);</script><script src=/static/js/app.da7377f1.js></script></body><script>// window.onload = function() { }</style><link href=/static/css/chunk-libs.144811ca.css rel=stylesheet><link href=/static/css/app.8668e90d.css rel=stylesheet></head><body><div id=app><div id=loader-wrapper><div id=loader></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div><div class=load_title>正在加载系统资源,请耐心等待</div></div></div><script src=/static/js/chunk-elementUI.fad8bab3.js></script><script src=/static/js/chunk-libs.cd322b68.js></script><script>(function(e){function n(n){for(var t,u,a=n[0],f=n[1],o=n[2],h=0,i=[];h<a.length;h++)u=a[h],r[u]&&i.push(r[u][0]),r[u]=0;for(t in f)Object.prototype.hasOwnProperty.call(f,t)&&(e[t]=f[t]);k&&k(n);while(i.length)i.shift()();return d.push.apply(d,o||[]),c()}function c(){for(var e,n=0;n<d.length;n++){for(var c=d[n],t=!0,u=1;u<c.length;u++){var a=c[u];0!==r[a]&&(t=!1)}t&&(d.splice(n--,1),e=f(f.s=c[0]))}return e}var t={},u={runtime:0},r={runtime:0},d=[];function a(e){return f.p+"static/js/"+({}[e]||e)+"."+{"chunk-000b7a4b":"476028f8","chunk-19f84996":"e2e5cef1","chunk-2a78bde0":"83a88f38","chunk-2d0c741e":"9a348a52","chunk-8e67e28e":"3290e0bd","chunk-2d0c7ece":"a8817165","chunk-2d0cbf05":"598ccefa","chunk-08486bce":"f5745037","chunk-2d0d67a2":"ebcb7940","chunk-2d0f012d":"4b8e0c40","chunk-2d226555":"e093ec60","chunk-0b4a9e9a":"5d8aa87b","chunk-2d0e28b6":"089b4c9c","chunk-3d051ad0":"0a4ac80e","chunk-e2c2d1f8":"4362be0b","chunk-2d22db58":"91f56f58","chunk-ff0474da":"d4f96352","chunk-57872cf8":"6ff4e0ce","chunk-5a72892d":"a550c4ec","chunk-6edc8597":"ccc832e9","chunk-7c2f4fe6":"d0178d71","chunk-d2bffd5a":"ac4fc42c","chunk-d585dbc8":"e2167e4c","chunk-e11d247e":"92743545","chunk-fa6b139a":"9198fb95"}[e]+".js"}function f(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,f),c.l=!0,c.exports}f.e=function(e){var n=[],c={"chunk-000b7a4b":1,"chunk-19f84996":1,"chunk-2a78bde0":1,"chunk-8e67e28e":1,"chunk-e2c2d1f8":1,"chunk-ff0474da":1,"chunk-57872cf8":1,"chunk-5a72892d":1,"chunk-6edc8597":1,"chunk-d2bffd5a":1,"chunk-d585dbc8":1,"chunk-e11d247e":1,"chunk-fa6b139a":1};u[e]?n.push(u[e]):0!==u[e]&&c[e]&&n.push(u[e]=new Promise((function(n,c){for(var t="static/css/"+({}[e]||e)+"."+{"chunk-000b7a4b":"1de74879","chunk-19f84996":"268e71da","chunk-2a78bde0":"752ae0d2","chunk-2d0c741e":"31d6cfe0","chunk-8e67e28e":"3c72d4e5","chunk-2d0c7ece":"31d6cfe0","chunk-2d0cbf05":"31d6cfe0","chunk-08486bce":"31d6cfe0","chunk-2d0d67a2":"31d6cfe0","chunk-2d0f012d":"31d6cfe0","chunk-2d226555":"31d6cfe0","chunk-0b4a9e9a":"31d6cfe0","chunk-2d0e28b6":"31d6cfe0","chunk-3d051ad0":"31d6cfe0","chunk-e2c2d1f8":"0fcbd28f","chunk-2d22db58":"31d6cfe0","chunk-ff0474da":"c9812cf2","chunk-57872cf8":"9183fc08","chunk-5a72892d":"c379e330","chunk-6edc8597":"70c612a3","chunk-7c2f4fe6":"31d6cfe0","chunk-d2bffd5a":"b3923dfc","chunk-d585dbc8":"9f06e5c2","chunk-e11d247e":"2f7b5683","chunk-fa6b139a":"fe6be668"}[e]+".css",r=f.p+t,d=document.getElementsByTagName("link"),a=0;a<d.length;a++){var o=d[a],h=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(h===t||h===r))return n()}var i=document.getElementsByTagName("style");for(a=0;a<i.length;a++){o=i[a],h=o.getAttribute("data-href");if(h===t||h===r)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var t=n&&n.target&&n.target.src||r,d=new Error("Loading CSS chunk "+e+" failed.\n("+t+")");d.request=t,delete u[e],k.parentNode.removeChild(k),c(d)},k.href=r;var l=document.getElementsByTagName("head")[0];l.appendChild(k)})).then((function(){u[e]=0})));var t=r[e];if(0!==t)if(t)n.push(t[2]);else{var d=new Promise((function(n,c){t=r[e]=[n,c]}));n.push(t[2]=d);var o,h=document.createElement("script");h.charset="utf-8",h.timeout=120,f.nc&&h.setAttribute("nonce",f.nc),h.src=a(e),o=function(n){h.onerror=h.onload=null,clearTimeout(i);var c=r[e];if(0!==c){if(c){var t=n&&("load"===n.type?"missing":n.type),u=n&&n.target&&n.target.src,d=new Error("Loading chunk "+e+" failed.\n("+t+": "+u+")");d.type=t,d.request=u,c[1](d)}r[e]=void 0}};var i=setTimeout((function(){o({type:"timeout",target:h})}),12e4);h.onerror=h.onload=o,document.head.appendChild(h)}return Promise.all(n)},f.m=e,f.c=t,f.d=function(e,n,c){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)f.d(c,t,function(n){return e[n]}.bind(null,t));return c},f.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="/",f.oe=function(e){throw console.error(e),e};var o=window["webpackJsonp"]=window["webpackJsonp"]||[],h=o.push.bind(o);o.push=n,o=o.slice();for(var i=0;i<o.length;i++)n(o[i]);var k=h;c()})([]);</script><script src=/static/js/app.cd6e57d6.js></script></body><script>// window.onload = function() {
// var op = 'open' // var op = 'open'
// var ssa = window.location.host // var ssa = window.location.host
// var xhttp = new XMLHttpRequest(); // var xhttp = new XMLHttpRequest();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
.dashboard-promote .el-row[data-v-17e0ac5e]{margin-bottom:20px;font-size:14px}.dashboard-promote[data-v-17e0ac5e]{margin-left:21px}.header[data-v-17e0ac5e]{width:100%;overflow:hidden;margin-top:20px;background:#fff;border-radius:8px}.header .header-top[data-v-17e0ac5e]{margin-top:29px}.header .sp[data-v-17e0ac5e]{width:63px;height:16px;margin-left:24px;font:400 16px/5px Alibaba PuHuiTi;color:#000}.header-foot[data-v-17e0ac5e]{width:100%;height:100px;margin-top:39px;overflow:hidden}.foot-le[data-v-17e0ac5e]{width:66%;text-align:center;display:inline-block}.header-img[data-v-17e0ac5e]{vertical-align:middle}.header-span[data-v-17e0ac5e]{font:600 14px/11px Lantinghei SC;color:#333}.header-p[data-v-17e0ac5e]{font:600 24px/17px Lantinghei SC;color:#344750}.foot-ri[data-v-17e0ac5e]{width:33%;height:80px;display:inline-block;text-align:center;border-left:2px solid #e6edfe}@media screen and (max-width:1600px){.main-left-top .tp-col .tp-img[data-v-17e0ac5e]{display:none}}@media screen and (max-width:1490px){.footer-top-two[data-v-17e0ac5e]{margin-top:15px}}@media screen and (max-width:1637px){.footer-top-two[data-v-17e0ac5e]{margin-top:15px}}@media screen and (max-width:1200px){.main-left-top .tp-le[data-v-17e0ac5e]{width:100%;text-align:center}.footer-right[data-v-17e0ac5e],.main-right-top[data-v-17e0ac5e]{margin-top:20px;margin-left:-15px}.main-right-foot[data-v-17e0ac5e]{margin-left:-15px}.footer-top-one[data-v-17e0ac5e]{margin-top:15px}}.main[data-v-17e0ac5e]{width:100%;margin-top:20px}.main .main-left[data-v-17e0ac5e]{height:592px}.main-left-top .tp-le[data-v-17e0ac5e],.tp-img[data-v-17e0ac5e]{display:inline-block;text-align:center;margin-top:27px}.main-left-top .tp-col[data-v-17e0ac5e]{cursor:pointer;height:106px;background:linear-gradient(180deg,#fff,#f5f8ff);border-radius:4px}.main-left-top .tp-le[data-v-17e0ac5e]{width:163px}.main-left-top .tp-col span[data-v-17e0ac5e]{font:400 14px/11px Alibaba PuHuiTi;color:#333}.main-left-top .tp-col p[data-v-17e0ac5e]{font:700 24px/17px Alibaba PuHuiTi;color:#19191a}.main-left-foot[data-v-17e0ac5e]{height:466px;margin-top:20px;background:#fff;border-radius:4px;overflow:hidden}.main-left-foot .ft-sp[data-v-17e0ac5e]{font:400 16px/5px Alibaba PuHuiTi;color:#000}.main-left-foot-top[data-v-17e0ac5e]{float:right;margin-right:49px}.main-right[data-v-17e0ac5e]{z-index:10000;height:592px;margin-left:15px}.main-right-top[data-v-17e0ac5e]{height:198px;background:#fff;border-radius:4px}.main-right-top .sa[data-v-17e0ac5e]{display:inline-block;margin:30px 0 0 26px;font:400 16px/5px Alibaba PuHuiTi;color:#000}.main-right-top .right-top-item[data-v-17e0ac5e]{width:70px;height:70px;margin:auto;display:flex;justify-content:center;align-items:center;background:#f0f6ff;border-radius:10px}.main-right-top-point[data-v-17e0ac5e]{cursor:pointer}.main-right-foot[data-v-17e0ac5e]{height:374px;margin-top:20px;background:#fff;border-radius:4px}.main-right-foot ul[data-v-17e0ac5e]{margin:24px 0 0 25px}.main-right-foot ul li[data-v-17e0ac5e]{margin-bottom:16px;cursor:pointer}.main-right-foot-sn[data-v-17e0ac5e]{display:inline-block;margin:30px 0 0 25px;cursor:pointer;font:400 16px Alibaba PuHuiTi;color:#000}.main-right-foot .main-right-foot-sa[data-v-17e0ac5e]{float:right;margin:30px 25px 0 0;cursor:pointer;font:400 14px Alibaba PuHuiTi;color:#999}.main-right-foot .main-right-foot-le[data-v-17e0ac5e]{display:none;width:37px;height:22px;display:inline-block;background:#fff5f6;border-radius:4px}.main-right-foot .main-right-foot-ri[data-v-17e0ac5e]{display:none;width:23px;height:22px;display:inline-block;border-radius:4px}.foot-color[data-v-17e0ac5e]{background:#fff6ed}.main-right-foot-le[data-v-17e0ac5e],.main-right-foot-ri div[data-v-17e0ac5e]{text-align:center;line-height:22px;font:400 14px Alibaba PuHuiTi;font-style:italic}.main-right-foot .foot-le-text[data-v-17e0ac5e]{margin-left:46px;font:400 14px Alibaba PuHuiTi;color:#000}.footer-left[data-v-17e0ac5e]{height:448px;background:#fff;border-radius:4px}.footer-left .footer-sp[data-v-17e0ac5e]{margin:30px 0 0 23px;display:inline-block;font:400 16px/5px Alibaba PuHuiTi;color:#000}.footer-right-top[data-v-17e0ac5e]{width:100%;background:#fff;border-radius:4px;display:inline-block;margin-left:15px}.footer-right-top-text[data-v-17e0ac5e]{font:400 16px Alibaba PuHuiTi;color:#000;line-height:5px;display:inline-block;margin:30px 0 0 24px}.footer-right-top-item[data-v-17e0ac5e]{width:88%;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:24px auto}.footer-right-top-img[data-v-17e0ac5e]{cursor:pointer;width:177px;height:81px;border:1px dotted #000}.footer-top-one[data-v-17e0ac5e]{background-image:url(../../static/img/background-item1.c6868d4e.png)}.footer-top-two[data-v-17e0ac5e]{background-image:url(../../static/img/background-item2.4120fb67.png)}.footer-top-thr[data-v-17e0ac5e]{background-image:url(../../static/img/background-item3.8679f57b.png)}.footer-right-top-img span[data-v-17e0ac5e]{display:inline-block;font:400 14px/2px Microsoft YaHei;color:#000;margin:20px 0 0 23px}.footer-right-top-img p[data-v-17e0ac5e]{font:400 14px/2px FZZhengHeiS-B-GB;color:#c7cad7;margin:14px 0 0 23px}.footer-right-bot[data-v-17e0ac5e]{width:100%;margin-top:20px;display:inline-block;margin-left:15px}.foot-table-img[data-v-17e0ac5e]{position:absolute;vertical-align:middle;left:36%;top:14%}.foot-table-imgone[data-v-17e0ac5e]{position:absolute;vertical-align:middle;left:41%;top:14%}.foot-table[data-v-17e0ac5e]{position:relative}.dia-text[data-v-17e0ac5e]{text-align:center;font:600 24px FZZhengHeiS-B-GB;color:#000}.foot-index[data-v-17e0ac5e]{margin:auto;width:48px;height:19px;background:#feeee5;border-radius:10px}.foot-indexone[data-v-17e0ac5e]{margin:auto;width:48px;height:19px;background:#f5f7fa;border-radius:10px}li[data-v-17e0ac5e],ul[data-v-17e0ac5e]{padding:0;margin:0;list-style:none}.dashboard-editor-container[data-v-17e0ac5e]{background-color:#f1f4fa;position:relative;height:100%;overflow-y:scroll;overflow-x:hidden}
\ No newline at end of file
.dashboard-promote .el-row[data-v-25504f30]{margin-bottom:20px;font-size:14px}.dashboard-promote[data-v-25504f30]{margin-left:21px}.header[data-v-25504f30]{width:100%;overflow:hidden;margin-top:20px;background:#fff;border-radius:8px}.header .header-top[data-v-25504f30]{margin-top:29px}.header .sp[data-v-25504f30]{width:63px;height:16px;margin-left:24px;font:400 16px/5px Alibaba PuHuiTi;color:#000}.header-foot[data-v-25504f30]{width:100%;height:100px;margin-top:39px;overflow:hidden}.foot-le[data-v-25504f30]{width:66%;text-align:center;display:inline-block}.header-img[data-v-25504f30]{vertical-align:middle}.header-span[data-v-25504f30]{font:600 14px/11px Lantinghei SC;color:#333}.header-p[data-v-25504f30]{font:600 24px/17px Lantinghei SC;color:#344750}.foot-ri[data-v-25504f30]{width:33%;height:80px;display:inline-block;text-align:center;border-left:2px solid #e6edfe}@media screen and (max-width:1600px){.main-left-top .tp-col .tp-img[data-v-25504f30]{display:none}}@media screen and (max-width:1490px){.footer-top-two[data-v-25504f30]{margin-top:15px}}@media screen and (max-width:1637px){.footer-top-two[data-v-25504f30]{margin-top:15px}}@media screen and (max-width:1200px){.main-left-top .tp-le[data-v-25504f30]{width:100%;text-align:center}.footer-right[data-v-25504f30],.main-right-top[data-v-25504f30]{margin-top:20px;margin-left:-15px}.main-right-foot[data-v-25504f30]{margin-left:-15px}.footer-top-one[data-v-25504f30]{margin-top:15px}}.main[data-v-25504f30]{width:100%;margin-top:20px}.main .main-left[data-v-25504f30]{height:592px}.main-left-top .tp-le[data-v-25504f30],.tp-img[data-v-25504f30]{display:inline-block;text-align:center;margin-top:27px}.main-left-top .tp-col[data-v-25504f30]{cursor:pointer;height:106px;background:linear-gradient(180deg,#fff,#f5f8ff);border-radius:4px}.main-left-top .tp-le[data-v-25504f30]{width:163px}.main-left-top .tp-col span[data-v-25504f30]{font:400 14px/11px Alibaba PuHuiTi;color:#333}.main-left-top .tp-col p[data-v-25504f30]{font:700 24px/17px Alibaba PuHuiTi;color:#19191a}.main-left-foot[data-v-25504f30]{height:466px;margin-top:20px;background:#fff;border-radius:4px;overflow:hidden}.main-left-foot .ft-sp[data-v-25504f30]{font:400 16px/5px Alibaba PuHuiTi;color:#000}.main-left-foot-top[data-v-25504f30]{float:right;margin-right:49px}.main-right[data-v-25504f30]{z-index:10000;height:592px;margin-left:15px}.main-right-top[data-v-25504f30]{height:198px;background:#fff;border-radius:4px}.main-right-top .sa[data-v-25504f30]{display:inline-block;margin:30px 0 0 26px;font:400 16px/5px Alibaba PuHuiTi;color:#000}.main-right-top .right-top-item[data-v-25504f30]{width:70px;height:70px;margin:auto;display:flex;justify-content:center;align-items:center;background:#f0f6ff;border-radius:10px}.main-right-top-point[data-v-25504f30]{cursor:pointer}.main-right-foot[data-v-25504f30]{height:374px;margin-top:20px;background:#fff;border-radius:4px}.main-right-foot ul[data-v-25504f30]{margin:24px 0 0 25px}.main-right-foot ul li[data-v-25504f30]{margin-bottom:16px;cursor:pointer}.main-right-foot-sn[data-v-25504f30]{display:inline-block;margin:30px 0 0 25px;cursor:pointer;font:400 16px Alibaba PuHuiTi;color:#000}.main-right-foot .main-right-foot-sa[data-v-25504f30]{float:right;margin:30px 25px 0 0;cursor:pointer;font:400 14px Alibaba PuHuiTi;color:#999}.main-right-foot .main-right-foot-le[data-v-25504f30]{display:none;width:37px;height:22px;display:inline-block;background:#fff5f6;border-radius:4px}.main-right-foot .main-right-foot-ri[data-v-25504f30]{display:none;width:23px;height:22px;display:inline-block;border-radius:4px}.foot-color[data-v-25504f30]{background:#fff6ed}.main-right-foot-le[data-v-25504f30],.main-right-foot-ri div[data-v-25504f30]{text-align:center;line-height:22px;font:400 14px Alibaba PuHuiTi;font-style:italic}.main-right-foot .foot-le-text[data-v-25504f30]{margin-left:46px;font:400 14px Alibaba PuHuiTi;color:#000}.footer-left[data-v-25504f30]{height:448px;background:#fff;border-radius:4px}.footer-left .footer-sp[data-v-25504f30]{margin:30px 0 0 23px;display:inline-block;font:400 16px/5px Alibaba PuHuiTi;color:#000}.footer-right-top[data-v-25504f30]{width:100%;background:#fff;border-radius:4px;display:inline-block;margin-left:15px}.footer-right-top-text[data-v-25504f30]{font:400 16px Alibaba PuHuiTi;color:#000;line-height:5px;display:inline-block;margin:30px 0 0 24px}.footer-right-top-item[data-v-25504f30]{width:88%;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:24px auto}.footer-right-top-img[data-v-25504f30]{cursor:pointer;width:177px;height:81px;border:1px dotted #000}.footer-top-one[data-v-25504f30]{background-image:url(../../static/img/background-item1.c6868d4e.png)}.footer-top-two[data-v-25504f30]{background-image:url(../../static/img/background-item2.4120fb67.png)}.footer-top-thr[data-v-25504f30]{background-image:url(../../static/img/background-item3.8679f57b.png)}.footer-right-top-img span[data-v-25504f30]{display:inline-block;font:400 14px/2px Microsoft YaHei;color:#000;margin:20px 0 0 23px}.footer-right-top-img p[data-v-25504f30]{font:400 14px/2px FZZhengHeiS-B-GB;color:#c7cad7;margin:14px 0 0 23px}.footer-right-bot[data-v-25504f30]{width:100%;margin-top:20px;display:inline-block;margin-left:15px}.foot-table-img[data-v-25504f30]{position:absolute;vertical-align:middle;left:36%;top:14%}.foot-table-imgone[data-v-25504f30]{position:absolute;vertical-align:middle;left:41%;top:14%}.foot-table[data-v-25504f30]{position:relative}.dia-text[data-v-25504f30]{text-align:center;font:600 24px FZZhengHeiS-B-GB;color:#000}.foot-index[data-v-25504f30]{margin:auto;width:48px;height:19px;background:#feeee5;border-radius:10px}.foot-indexone[data-v-25504f30]{margin:auto;width:48px;height:19px;background:#f5f7fa;border-radius:10px}li[data-v-25504f30],ul[data-v-25504f30]{padding:0;margin:0;list-style:none}.dashboard-editor-container[data-v-25504f30]{background-color:#f1f4fa;position:relative;height:100%;overflow-y:scroll;overflow-x:hidden}
\ 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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-000b7a4b"],{"6b1f":function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"l",(function(){return d})),a.d(e,"j",(function(){return m})),a.d(e,"c",(function(){return c})),a.d(e,"m",(function(){return h})),a.d(e,"e",(function(){return u})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return p})),a.d(e,"k",(function(){return b}));var i=a("b775");function r(t){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}function g(t){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:t})}function b(t){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:t})}},a6b9:function(t,e,a){},b176:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fill-brand-inf"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写品牌信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main-con"},[a("el-form",{ref:"brandForm",attrs:{model:t.brandForm,rules:t.brandRules,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"经营品牌类型:"}},[a("el-radio-group",{on:{change:t.chooseBrandType},model:{value:t.brandForm.brand_type,callback:function(e){t.$set(t.brandForm,"brand_type",e)},expression:"brandForm.brand_type"}},[a("el-radio",{attrs:{label:1}},[t._v("自有品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("品牌厂商授权")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("无品牌")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],staticClass:"spe-brand-text"},[t._v("\n 品牌一\n ")]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌中文名:",prop:"brand_cn"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_cn,callback:function(e){t.$set(t.brandForm,"brand_cn",e)},expression:"brandForm.brand_cn"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌英文名:",prop:"brand_en"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_en,callback:function(e){t.$set(t.brandForm,"brand_en",e)},expression:"brandForm.brand_en"}})],1),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{ref:"logoImg",attrs:{label:"品牌LOGO:",prop:"brand_logo"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadLogoImgs,limit:1,"on-exceed":t.showTip,"before-upload":t.beforeUpLogoImg,"on-preview":t.handlePictureCardPreview,"on-remove":t.handleRemove,"file-list":t.brandImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌商标注册号:",prop:"brand_number"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_number,callback:function(e){t.$set(t.brandForm,"brand_number",e)},expression:"brandForm.brand_number"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌类型:",prop:"brand_range"}},[a("el-radio-group",{model:{value:t.brandForm.brand_range,callback:function(e){t.$set(t.brandForm,"brand_range",e)},expression:"brandForm.brand_range"}},[a("el-radio",{attrs:{label:1}},[t._v("国内品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("国外品牌")])],1)],1),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌方授权书:",prop:"brand_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#",limit:1,"list-type":"picture-card","http-request":t.uploadFactoryImgs,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview2,"on-remove":t.handleRemove2,"file-list":t.factoryImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible2},on:{"update:visible":function(e){t.dialogVisible2=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl2,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]):t._e(),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"授权有效期至:",prop:"brand_auth_time"}},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:t.validityConcrete},model:{value:t.validityConcreteTime,callback:function(e){t.validityConcreteTime=e},expression:"validityConcreteTime"}}),t._v(" "),a("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:t.validityLongTerm},model:{value:t.validityLongTermVal,callback:function(e){t.validityLongTermVal=e},expression:"validityLongTermVal"}},[t._v("长期\n ")])],1):t._e(),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌经营授权:",prop:"brand_business_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","http-request":t.uploadShopImgs,"list-type":"picture-card",limit:1,"on-exceed":t.showTip,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview3,"on-remove":t.handleRemove3,"file-list":t.shopImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible3},on:{"update:visible":function(e){t.dialogVisible3=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl3,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:""}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("a",{staticClass:"download-Template-btn",attrs:{href:t.downTemplatehttp}},[a("i",{staticClass:"el-icon-download"}),t._v("下载模板")]),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("请您点击下载授权书模板,打印并签字盖章,拍照上传。\n 如暂时无法上传该授权,可选择【无品牌】,稍后在店铺信息里面完善品牌信息")])])])]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}]},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.next("brandForm")}}},[t._v("下一步")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasBrand,expression:"!hasBrand"}],staticClass:"no-brand"},[a("p",[t._v("您当前选择的是无品牌")]),t._v(" "),a("p",[t._v("这不会影响您入驻的审核")]),t._v(" "),a("p",[t._v("入驻成功后,您可以在店铺信息里,添加您的品牌")]),t._v(" "),a("div",{staticClass:"no-brand-btn"},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.noBrandNext}},[t._v("下一步")])],1)])],1)])],1)},r=[],n=(a("fc02"),a("6b1f")),s={name:"FillBrandInf",data:function(){var t=this,e=function(e,a,i){2===t.brandForm.brand_type&&null===t.validityConcreteTime&&!1===t.validityLongTermVal?i(new Error("授权有效期具体时间和长期必须填写其中一个")):i()},a=function(e,a,i){t.brandImgFileList.length>0?i():0===t.brandImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))},i=function(e,a,i){t.shopImgFileList.length>0?i():0===t.shopImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))};return{shopTemplatehttp:"http://img3.jxhh.com/shop/brand.doc",factoryTemplatehttp:"http://img3.jxhh.com/shop/factory.doc",hasBrand:!0,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogImageUrl3:"",dialogVisible3:!1,validityConcreteTime:null,validityLongTermVal:!1,downTemplatehttp:"",brandImgFileList:[],factoryImgFileList:[],shopImgFileList:[],brandForm:{id:0,brand_type:1,brand_cn:"",brand_en:"",brand_logo:"",brand_number:"",brand_range:"",brand_auth_time:"",brand_auth:"",brand_business_auth:""},brandRules:{brand_cn:[{required:!0,message:"品牌中文名称不能为空",trigger:"blur"}],brand_logo:[{required:!0,message:"品牌logo图片至少上传一张",validator:a}],brand_range:[{required:!0,message:"品牌类型需要选择其一",trigger:"blur"}],brand_auth:[{required:!0,message:"品牌授权至少上传一张图片"}],brand_auth_time:[{validator:e,required:!0,trigger:"change"}],brand_business_auth:[{required:!0,message:"品牌经营授权至少上传一张图片",validator:i}]}}},watch:{factoryImgFileList:{handler:function(t,e){var a=this;2===this.brandForm.brand_type&&(this.$refs.brandForm.validateField("brand_auth"),0!==t.length&&this.$nextTick((function(){a.$refs.brandForm.clearValidate("brand_auth")})))},deep:!0}},created:function(){this.getBrands()},mounted:function(){this.downTemplatehttp=this.factoryTemplatehttp},methods:{beforeUpImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500k",type:"warning"}),!1):void 0},beforeUpLogoImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500 kb",type:"warning"}),!1):void 0},uploadLogoImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img,type:2};Object(n["m"])(i).then((function(t){1==t.code?(e.brandImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_logo")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadShopImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img,type:2};Object(n["m"])(i).then((function(t){1==t.code?(e.shopImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_business_auth")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadFactoryImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img,type:2};Object(n["m"])(i).then((function(t){1==t.code?(e.factoryImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"})):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},getBase64:function(t){return new Promise((function(e,a){var i=new FileReader,r="";i.readAsDataURL(t),i.onload=function(){r=i.result},i.onerror=function(t){a(t)},i.onloadend=function(){e(r)}}))},chooseBrandType:function(){this.downTemplatehttp="",1===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.shopTemplatehttp):2===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.factoryTemplatehttp,this.factoryImgFileList=[],this.brandForm.brand_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1):3===this.brandForm.brand_type&&(this.hasBrand=!1)},clearImg:function(){this.brandImgFileList=[],this.factoryImgFileList=[],this.shopImgFileList=[],this.brandForm.brand_logo="",this.brandForm.brand_auth="",this.brandForm.brand_business_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleRemove:function(t,e){for(var a=0;a<this.brandImgFileList.length;a++)t.uid===this.brandImgFileList[a].uid&&this.brandImgFileList.splice(a,1)},handlePictureCardPreview2:function(t){this.dialogImageUrl2=t.url,this.dialogVisible2=!0},handleRemove2:function(t){for(var e=0;e<this.factoryImgFileList.length;e++)t.uid===this.factoryImgFileList[e].uid&&this.factoryImgFileList.splice(e,1)},handlePictureCardPreview3:function(t){this.dialogImageUrl3=t.url,this.dialogVisible3=!0},handleRemove3:function(t){for(var e=0;e<this.shopImgFileList.length;e++)t.uid===this.shopImgFileList[e].uid&&this.shopImgFileList.splice(e,1)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},getBrands:function(){var t=this;Object(n["d"])().then((function(e){if(1==e.code){t.brandForm=e.data[0];var a={},i=[];if(t.brandForm.brand_logo.indexOf(",")>0){i=t.brandForm.brand_logo.split(",");for(var r=0;r<i.length;r++)a={},a.url=i[r],t.brandImgFileList.push(a)}else a.url=t.brandForm.brand_logo,t.brandImgFileList=[],t.brandImgFileList.push(a);var n={},s=[];if(t.brandForm.brand_auth.indexOf(",")>0){s=t.brandForm.brand_auth.split(",");for(var o=0;o<s.length;o++)n={},n.url=s[o],t.factoryImgFileList.push(n)}else n.url=t.brandForm.brand_auth,t.factoryImgFileList=[],t.factoryImgFileList.push(n);var l={},d=[];if(t.brandForm.brand_business_auth.indexOf(",")>0){d=t.brandForm.brand_business_auth.split(",");for(var m=0;m<d.length;m++)l={},l.url=d[m],t.shopImgFileList.push(l)}else l.url=t.brandForm.brand_business_auth,t.shopImgFileList=[],t.shopImgFileList.push(l);0===t.brandForm.brand_auth_time?t.validityLongTermVal=!0:t.validityConcreteTime=t.toStandTime(t.brandForm.brand_auth_time)}else t.$message({type:"error",message:e.message?e.message:""})}))},toStandTime:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+i+r+n+s+o},showTip:function(t,e){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/fillMainInf")},next:function(t){var e=this;if(this.validityLongTermVal?this.brandForm.brand_auth_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.brandForm.brand_auth_time=new Date(this.validityConcreteTime).getTime()/1e3:this.brandForm.brand_auth_time="",this.brandImgFileList.length>0){for(var a=0;a<this.brandImgFileList.length;a++)0===a?this.brandForm.brand_logo=this.brandImgFileList[a].url:this.brandForm.brand_logo+=","+this.brandImgFileList[a].url;this.brandForm.brand_register_cert=this.brandImgFileList[0].url}if(this.factoryImgFileList.length>0)for(var i=0;i<this.factoryImgFileList.length;i++)0===i?this.brandForm.brand_auth=this.factoryImgFileList[i].url:this.brandForm.brand_auth+=","+this.factoryImgFileList[i].url;if(this.shopImgFileList.length>0)for(var r=0;r<this.shopImgFileList.length;r++)0===r?this.brandForm.brand_business_auth=this.shopImgFileList[r].url:this.brandForm.brand_business_auth+=","+this.shopImgFileList[r].url;this.$refs[t].validate((function(t){if(t){var a={},i=[];i.push(e.brandForm),0===e.brandForm.id?(a.brands=i,Object(n["a"])(a).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))):Object(n["l"])(i).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))}}))},noBrandNext:function(){this.$router.push("/fillShopInf")}}},o=s,l=(a("b54e"),a("cba8")),d=Object(l["a"])(o,i,r,!1,null,"f32bd074",null);e["default"]=d.exports},b54e:function(t,e,a){"use strict";a("a6b9")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08486bce"],{"1e8b":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"用户昵称",prop:"user_nickname"}},[r("el-input",{model:{value:e.user.user_nickname,callback:function(t){e.$set(e.user,"user_nickname",t)},expression:"user.user_nickname"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[r("el-input",{attrs:{maxlength:"11"},model:{value:e.user.mobile,callback:function(t){e.$set(e.user,"mobile",t)},expression:"user.mobile"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"邮箱",prop:"user_email"}},[r("el-input",{attrs:{maxlength:"50"},model:{value:e.user.user_email,callback:function(t){e.$set(e.user,"user_email",t)},expression:"user.user_email"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"性别"}},[r("el-radio-group",{model:{value:e.user.sex,callback:function(t){e.$set(e.user,"sex",t)},expression:"user.sex"}},[r("el-radio",{attrs:{label:0}},[e._v("保密")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),e._v(" "),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},a=[],i=r("c0c7"),o={props:{user:{type:Object}},data:function(){return{rules:{user_nickname:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],user_email:[{required:!0,message:"邮箱地址不能为空",trigger:"blur"},{type:"email",message:"'请输入正确的邮箱地址",trigger:["blur","change"]}],mobile:[{required:!0,message:"手机号码不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(i["l"])(e.user).then((function(t){0===t.code?e.msgSuccess("修改成功"):e.msgError(t.msg)}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},n=o,l=r("2877"),u=Object(l["a"])(n,s,a,!1,null,null,null);t["default"]=u.exports},"4c1b":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6,xs:24}},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[e._v("个人信息")])]),e._v(" "),r("div",[r("div",{staticClass:"text-center"},[r("userAvatar",{attrs:{user:e.user}})],1),e._v(" "),r("ul",{staticClass:"list-group list-group-striped"},[r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"user"}}),e._v("用户名称\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.user_name))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"phone"}}),e._v("手机号码\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.mobile))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"email"}}),e._v("用户邮箱\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.user_email))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"tree"}}),e._v("所属部门\n "),e.user.dept_info?r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.dept_info.deptName)+" / "+e._s(e.postGroup))]):e._e()],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"peoples"}}),e._v("所属角色\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.roleGroup))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"date"}}),e._v("创建日期\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.parseTime(e.user.create_time)))])],1)])])])],1),e._v(" "),r("el-col",{attrs:{span:18,xs:24}},[r("el-card",[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[e._v("基本资料")])]),e._v(" "),r("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[r("el-tab-pane",{attrs:{label:"基本资料",name:"userinfo"}},[r("userInfo",{attrs:{user:e.user}})],1),e._v(" "),r("el-tab-pane",{attrs:{label:"修改密码",name:"resetPwd"}},[r("resetPwd",{attrs:{user:e.user}})],1)],1)],1)],1)],1)],1)},a=[],i=(r("7f7f"),r("9429")),o=r("1e8b"),n=r("ee46"),l=r("c0c7"),u={name:"Profile",components:{userAvatar:i["default"],userInfo:o["default"],resetPwd:n["default"]},data:function(){return{user:{},activeTab:"userinfo"}},created:function(){this.getUser()},computed:{postGroup:function(){return Array.isArray(this.user.posts)?this.user.posts.reduce((function(e,t,r,s){return e+t.post_name+" "}),""):""},roleGroup:function(){return Array.isArray(this.user.roles)?this.user.roles.reduce((function(e,t,r,s){return e+t.name+" "}),""):""}},methods:{getUser:function(){var e=this;Object(l["g"])().then((function(t){e.user=t.data}))}}},c=u,d=r("2877"),p=Object(d["a"])(c,s,a,!1,null,null,null);t["default"]=p.exports},9429:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("img",{staticClass:"img-circle img-lg",attrs:{src:e.options.img,title:"点击上传头像"},on:{click:function(t){return e.editCropper()}}}),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-row",[r("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[r("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),e._v(" "),r("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[r("div",{staticClass:"avatar-upload-preview"},[r("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),e._v(" "),r("br"),e._v(" "),r("el-row",[r("el-col",{attrs:{lg:2,md:2}},[r("el-upload",{attrs:{action:"#","http-request":e.requestUpload,"show-file-list":!1,"before-upload":e.beforeUpload}},[r("el-button",{attrs:{size:"small"}},[e._v("\n 上传\n "),r("i",{staticClass:"el-icon-upload el-icon--right"})])],1)],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[r("el-button",{attrs:{icon:"el-icon-plus",size:"small"},on:{click:function(t){return e.changeScale(1)}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[r("el-button",{attrs:{icon:"el-icon-minus",size:"small"},on:{click:function(t){return e.changeScale(-1)}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[r("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small"},on:{click:function(t){return e.rotateLeft()}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[r("el-button",{attrs:{icon:"el-icon-refresh-right",size:"small"},on:{click:function(t){return e.rotateRight()}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.uploadImg()}}},[e._v("提 交")])],1)],1)],1)],1)},a=[],i=r("bd86"),o=r("4360"),n=r("7e79"),l=r("c0c7"),u={components:{VueCropper:n["VueCropper"]},props:{user:{type:Object}},data:function(){var e;return{open:!1,title:"修改头像",options:(e={img:o["a"].getters.avatar},Object(i["a"])(e,"img",""),Object(i["a"])(e,"autoCrop",!0),Object(i["a"])(e,"autoCropWidth",200),Object(i["a"])(e,"autoCropHeight",200),Object(i["a"])(e,"fixedBox",!0),e),previews:{}}},methods:{editCropper:function(){this.open=!0},requestUpload:function(){},rotateLeft:function(){this.$refs.cropper.rotateLeft()},rotateRight:function(){this.$refs.cropper.rotateRight()},changeScale:function(e){e=e||1,this.$refs.cropper.changeScale(e)},beforeUpload:function(e){var t=this;if(-1==e.type.indexOf("image/"))this.msgError("文件格式错误,请上传图片类型,如:JPG,PNG后缀的文件。");else{var r=new FileReader;r.readAsDataURL(e),r.onload=function(){t.options.img=r.result}}},uploadImg:function(){var e=this;this.$refs.cropper.getCropBlob((function(t){var r=t.type,s={"image/jpeg":"jpeg","image/png":"png"},a="temp.jpg";s[r]&&(a="temp."+s[r]);var i=new FormData;i.append("avatarfile",t,a),Object(l["n"])(i).then((function(t){0===t.code?(e.open=!1,e.options.img="/api/v1/"+t.data.fileInfo.fileUrl,e.msgSuccess("修改成功")):e.msgError(t.msg),e.$refs.cropper.clearCrop()}))}))},realTime:function(e){this.previews=e},setAvatarBase64:function(e,t){var r=this,s=new Image;s.src=e+"?v="+Math.random(),s.crossOrigin="*",s.onload=function(){var e=r.transBase64FromImage(s);t&&t(e)}},transBase64FromImage:function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height;var r=t.getContext("2d");return r.drawImage(e,0,0,e.width,e.height),t.toDataURL("image/png")}},watch:{user:function(e){var t=this;e.avatar&&this.setAvatarBase64("/api/v1/"+e.avatar,(function(e){t.options.img=e}))}}},c=u,d=r("2877"),p=Object(d["a"])(c,s,a,!1,null,null,null);t["default"]=p.exports},c0c7:function(e,t,r){"use strict";r.d(t,"i",(function(){return a})),r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"a",(function(){return n})),r.d(t,"k",(function(){return l})),r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return c})),r.d(t,"j",(function(){return d})),r.d(t,"b",(function(){return p})),r.d(t,"g",(function(){return m})),r.d(t,"l",(function(){return f})),r.d(t,"m",(function(){return v})),r.d(t,"n",(function(){return g})),r.d(t,"h",(function(){return h}));var s=r("b775");r("c38a");function a(e){return Object(s["a"])({url:"/system/auth/userList",method:"get",params:e})}function i(){return Object(s["a"])({url:"/system/auth/addUser",method:"get"})}function o(e){return Object(s["a"])({url:"/system/auth/editUser?id="+e,method:"get"})}function n(e){return Object(s["a"])({url:"/system/auth/addUser",method:"post",data:e})}function l(e){return Object(s["a"])({url:"/system/auth/editUser",method:"post",data:e})}function u(e){return Object(s["a"])({url:"/system/auth/deleteAdmin",method:"delete",params:{ids:e}})}function c(e){return Object(s["a"])({url:"/system/user/export",method:"get",params:e})}function d(e,t){var r={userId:e,password:t};return Object(s["a"])({url:"/system/auth/resetUserPwd",method:"put",data:r})}function p(e,t){var r={userId:e,status:t};return Object(s["a"])({url:"/system/auth/changeUserStatus ",method:"put",data:r})}function m(){return Object(s["a"])({url:"/system/user/profile",method:"get"})}function f(e){return Object(s["a"])({url:"/system/user/edit",method:"post",data:e})}function v(e,t){var r={oldPassword:e,newPassword:t};return Object(s["a"])({url:"/system/user/updatePwd",method:"post",data:r})}function g(e){return Object(s["a"])({url:"/system/user/avatar",method:"post",data:e})}function h(){return Object(s["a"])({url:"/system/user/importTemplate",method:"get"})}},ee46:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"旧密码",prop:"oldPassword"}},[r("el-input",{attrs:{placeholder:"请输入旧密码",type:"password"},model:{value:e.user.oldPassword,callback:function(t){e.$set(e.user,"oldPassword",t)},expression:"user.oldPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[r("el-input",{attrs:{placeholder:"请输入新密码",type:"password"},model:{value:e.user.newPassword,callback:function(t){e.$set(e.user,"newPassword",t)},expression:"user.newPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[r("el-input",{attrs:{placeholder:"请确认密码",type:"password"},model:{value:e.user.confirmPassword,callback:function(t){e.$set(e.user,"confirmPassword",t)},expression:"user.confirmPassword"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),e._v(" "),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},a=[],i=r("c0c7"),o={data:function(){var e=this,t=function(t,r,s){e.user.newPassword!==r?s(new Error("两次输入的密码不一致")):s()};return{test:"1test",user:{oldPassword:void 0,newPassword:void 0,confirmPassword:void 0},rules:{oldPassword:[{required:!0,message:"旧密码不能为空",trigger:"blur"}],newPassword:[{required:!0,message:"新密码不能为空",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}],confirmPassword:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{required:!0,validator:t,trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(i["m"])(e.user.oldPassword,e.user.newPassword).then((function(t){0===t.code?e.msgSuccess("修改成功"):e.msgError(t.msg)}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},n=o,l=r("2877"),u=Object(l["a"])(n,s,a,!1,null,null,null);t["default"]=u.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08486bce"],{"1e8b":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"用户昵称",prop:"user_nickname"}},[r("el-input",{model:{value:e.user.user_nickname,callback:function(t){e.$set(e.user,"user_nickname",t)},expression:"user.user_nickname"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号码",prop:"mobile"}},[r("el-input",{attrs:{maxlength:"11"},model:{value:e.user.mobile,callback:function(t){e.$set(e.user,"mobile",t)},expression:"user.mobile"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"邮箱",prop:"user_email"}},[r("el-input",{attrs:{maxlength:"50"},model:{value:e.user.user_email,callback:function(t){e.$set(e.user,"user_email",t)},expression:"user.user_email"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"性别"}},[r("el-radio-group",{model:{value:e.user.sex,callback:function(t){e.$set(e.user,"sex",t)},expression:"user.sex"}},[r("el-radio",{attrs:{label:0}},[e._v("保密")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),e._v(" "),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},a=[],i=r("c0c7"),o={props:{user:{type:Object}},data:function(){return{rules:{user_nickname:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],user_email:[{required:!0,message:"邮箱地址不能为空",trigger:"blur"},{type:"email",message:"'请输入正确的邮箱地址",trigger:["blur","change"]}],mobile:[{required:!0,message:"手机号码不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(i["l"])(e.user).then((function(t){0===t.code?e.msgSuccess("修改成功"):e.msgError(t.msg)}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},n=o,l=r("cba8"),u=Object(l["a"])(n,s,a,!1,null,null,null);t["default"]=u.exports},"4c1b":function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6,xs:24}},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[e._v("个人信息")])]),e._v(" "),r("div",[r("div",{staticClass:"text-center"},[r("userAvatar",{attrs:{user:e.user}})],1),e._v(" "),r("ul",{staticClass:"list-group list-group-striped"},[r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"user"}}),e._v("用户名称\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.user_name))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"phone"}}),e._v("手机号码\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.mobile))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"email"}}),e._v("用户邮箱\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.user_email))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"tree"}}),e._v("所属部门\n "),e.user.dept_info?r("div",{staticClass:"pull-right"},[e._v(e._s(e.user.dept_info.deptName)+" / "+e._s(e.postGroup))]):e._e()],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"peoples"}}),e._v("所属角色\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.roleGroup))])],1),e._v(" "),r("li",{staticClass:"list-group-item"},[r("svg-icon",{attrs:{"icon-class":"date"}}),e._v("创建日期\n "),r("div",{staticClass:"pull-right"},[e._v(e._s(e.parseTime(e.user.create_time)))])],1)])])])],1),e._v(" "),r("el-col",{attrs:{span:18,xs:24}},[r("el-card",[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("span",[e._v("基本资料")])]),e._v(" "),r("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[r("el-tab-pane",{attrs:{label:"基本资料",name:"userinfo"}},[r("userInfo",{attrs:{user:e.user}})],1),e._v(" "),r("el-tab-pane",{attrs:{label:"修改密码",name:"resetPwd"}},[r("resetPwd",{attrs:{user:e.user}})],1)],1)],1)],1)],1)],1)},a=[],i=(r("a450"),r("9429")),o=r("1e8b"),n=r("ee46"),l=r("c0c7"),u={name:"Profile",components:{userAvatar:i["default"],userInfo:o["default"],resetPwd:n["default"]},data:function(){return{user:{},activeTab:"userinfo"}},created:function(){this.getUser()},computed:{postGroup:function(){return Array.isArray(this.user.posts)?this.user.posts.reduce((function(e,t,r,s){return e+t.post_name+" "}),""):""},roleGroup:function(){return Array.isArray(this.user.roles)?this.user.roles.reduce((function(e,t,r,s){return e+t.name+" "}),""):""}},methods:{getUser:function(){var e=this;Object(l["g"])().then((function(t){e.user=t.data}))}}},c=u,d=r("cba8"),p=Object(d["a"])(c,s,a,!1,null,null,null);t["default"]=p.exports},9429:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("img",{staticClass:"img-circle img-lg",attrs:{src:e.options.img,title:"点击上传头像"},on:{click:function(t){return e.editCropper()}}}),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.open,width:"800px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[r("el-row",[r("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[r("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,autoCrop:e.options.autoCrop,autoCropWidth:e.options.autoCropWidth,autoCropHeight:e.options.autoCropHeight,fixedBox:e.options.fixedBox},on:{realTime:e.realTime}})],1),e._v(" "),r("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[r("div",{staticClass:"avatar-upload-preview"},[r("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),e._v(" "),r("br"),e._v(" "),r("el-row",[r("el-col",{attrs:{lg:2,md:2}},[r("el-upload",{attrs:{action:"#","http-request":e.requestUpload,"show-file-list":!1,"before-upload":e.beforeUpload}},[r("el-button",{attrs:{size:"small"}},[e._v("\n 上传\n "),r("i",{staticClass:"el-icon-upload el-icon--right"})])],1)],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[r("el-button",{attrs:{icon:"el-icon-plus",size:"small"},on:{click:function(t){return e.changeScale(1)}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[r("el-button",{attrs:{icon:"el-icon-minus",size:"small"},on:{click:function(t){return e.changeScale(-1)}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[r("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small"},on:{click:function(t){return e.rotateLeft()}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[r("el-button",{attrs:{icon:"el-icon-refresh-right",size:"small"},on:{click:function(t){return e.rotateRight()}}})],1),e._v(" "),r("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.uploadImg()}}},[e._v("提 交")])],1)],1)],1)],1)},a=[],i=r("5b3c"),o=r("4360"),n=r("4c99"),l=r("c0c7"),u={components:{VueCropper:n["VueCropper"]},props:{user:{type:Object}},data:function(){var e;return{open:!1,title:"修改头像",options:(e={img:o["a"].getters.avatar},Object(i["a"])(e,"img",""),Object(i["a"])(e,"autoCrop",!0),Object(i["a"])(e,"autoCropWidth",200),Object(i["a"])(e,"autoCropHeight",200),Object(i["a"])(e,"fixedBox",!0),e),previews:{}}},methods:{editCropper:function(){this.open=!0},requestUpload:function(){},rotateLeft:function(){this.$refs.cropper.rotateLeft()},rotateRight:function(){this.$refs.cropper.rotateRight()},changeScale:function(e){e=e||1,this.$refs.cropper.changeScale(e)},beforeUpload:function(e){var t=this;if(-1==e.type.indexOf("image/"))this.msgError("文件格式错误,请上传图片类型,如:JPG,PNG后缀的文件。");else{var r=new FileReader;r.readAsDataURL(e),r.onload=function(){t.options.img=r.result}}},uploadImg:function(){var e=this;this.$refs.cropper.getCropBlob((function(t){var r=t.type,s={"image/jpeg":"jpeg","image/png":"png"},a="temp.jpg";s[r]&&(a="temp."+s[r]);var i=new FormData;i.append("avatarfile",t,a),Object(l["n"])(i).then((function(t){0===t.code?(e.open=!1,e.options.img="/api/v1/"+t.data.fileInfo.fileUrl,e.msgSuccess("修改成功")):e.msgError(t.msg),e.$refs.cropper.clearCrop()}))}))},realTime:function(e){this.previews=e},setAvatarBase64:function(e,t){var r=this,s=new Image;s.src=e+"?v="+Math.random(),s.crossOrigin="*",s.onload=function(){var e=r.transBase64FromImage(s);t&&t(e)}},transBase64FromImage:function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height;var r=t.getContext("2d");return r.drawImage(e,0,0,e.width,e.height),t.toDataURL("image/png")}},watch:{user:function(e){var t=this;e.avatar&&this.setAvatarBase64("/api/v1/"+e.avatar,(function(e){t.options.img=e}))}}},c=u,d=r("cba8"),p=Object(d["a"])(c,s,a,!1,null,null,null);t["default"]=p.exports},c0c7:function(e,t,r){"use strict";r.d(t,"i",(function(){return a})),r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"a",(function(){return n})),r.d(t,"k",(function(){return l})),r.d(t,"c",(function(){return u})),r.d(t,"d",(function(){return c})),r.d(t,"j",(function(){return d})),r.d(t,"b",(function(){return p})),r.d(t,"g",(function(){return m})),r.d(t,"l",(function(){return f})),r.d(t,"m",(function(){return v})),r.d(t,"n",(function(){return g})),r.d(t,"h",(function(){return h}));var s=r("b775");r("c38a");function a(e){return Object(s["a"])({url:"/system/auth/userList",method:"get",params:e})}function i(){return Object(s["a"])({url:"/system/auth/addUser",method:"get"})}function o(e){return Object(s["a"])({url:"/system/auth/editUser?id="+e,method:"get"})}function n(e){return Object(s["a"])({url:"/system/auth/addUser",method:"post",data:e})}function l(e){return Object(s["a"])({url:"/system/auth/editUser",method:"post",data:e})}function u(e){return Object(s["a"])({url:"/system/auth/deleteAdmin",method:"delete",params:{ids:e}})}function c(e){return Object(s["a"])({url:"/system/user/export",method:"get",params:e})}function d(e,t){var r={userId:e,password:t};return Object(s["a"])({url:"/system/auth/resetUserPwd",method:"put",data:r})}function p(e,t){var r={userId:e,status:t};return Object(s["a"])({url:"/system/auth/changeUserStatus ",method:"put",data:r})}function m(){return Object(s["a"])({url:"/system/user/profile",method:"get"})}function f(e){return Object(s["a"])({url:"/system/user/edit",method:"post",data:e})}function v(e,t){var r={oldPassword:e,newPassword:t};return Object(s["a"])({url:"/system/user/updatePwd",method:"post",data:r})}function g(e){return Object(s["a"])({url:"/system/user/avatar",method:"post",data:e})}function h(){return Object(s["a"])({url:"/system/user/importTemplate",method:"get"})}},ee46:function(e,t,r){"use strict";r.r(t);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-form",{ref:"form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"旧密码",prop:"oldPassword"}},[r("el-input",{attrs:{placeholder:"请输入旧密码",type:"password"},model:{value:e.user.oldPassword,callback:function(t){e.$set(e.user,"oldPassword",t)},expression:"user.oldPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[r("el-input",{attrs:{placeholder:"请输入新密码",type:"password"},model:{value:e.user.newPassword,callback:function(t){e.$set(e.user,"newPassword",t)},expression:"user.newPassword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[r("el-input",{attrs:{placeholder:"请确认密码",type:"password"},model:{value:e.user.confirmPassword,callback:function(t){e.$set(e.user,"confirmPassword",t)},expression:"user.confirmPassword"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("保存")]),e._v(" "),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:e.close}},[e._v("关闭")])],1)],1)},a=[],i=r("c0c7"),o={data:function(){var e=this,t=function(t,r,s){e.user.newPassword!==r?s(new Error("两次输入的密码不一致")):s()};return{test:"1test",user:{oldPassword:void 0,newPassword:void 0,confirmPassword:void 0},rules:{oldPassword:[{required:!0,message:"旧密码不能为空",trigger:"blur"}],newPassword:[{required:!0,message:"新密码不能为空",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}],confirmPassword:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{required:!0,validator:t,trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(i["m"])(e.user.oldPassword,e.user.newPassword).then((function(t){0===t.code?e.msgSuccess("修改成功"):e.msgError(t.msg)}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},n=o,l=r("cba8"),u=Object(l["a"])(n,s,a,!1,null,null,null);t["default"]=u.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a90d205"],{"514f":function(t,e,n){},cc6c:function(t,e,n){t.exports=n.p+"static/img/401.089007e7.gif"},ec55:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"errPage-container"},[n("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("\n 返回\n ")]),t._v(" "),n("el-row",[n("el-col",{attrs:{span:12}},[n("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("\n 401错误!\n ")]),t._v(" "),n("h2",[t._v("您没有访问权限!")]),t._v(" "),n("h6",[t._v("对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面")]),t._v(" "),n("ul",{staticClass:"list-unstyled"},[n("li",{staticClass:"link-type"},[n("router-link",{attrs:{to:"/"}},[t._v("\n 回首页\n ")])],1)])]),t._v(" "),n("el-col",{attrs:{span:12}},[n("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1)],1)},s=[],c=n("cc6c"),r=n.n(c),i={name:"Page401",data:function(){return{errGif:r.a+"?"+ +new Date}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/"}):this.$router.go(-1)}}},o=i,l=(n("ecf6"),n("2877")),u=Object(l["a"])(o,a,s,!1,null,"f2e02586",null);e["default"]=u.exports},ecf6:function(t,e,n){"use strict";n("514f")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b4a9e9a"],{"4b72":function(e,t,l){"use strict";l.d(t,"e",(function(){return o})),l.d(t,"d",(function(){return a})),l.d(t,"b",(function(){return r})),l.d(t,"g",(function(){return s})),l.d(t,"c",(function(){return i})),l.d(t,"f",(function(){return c})),l.d(t,"a",(function(){return u}));var n=l("b775");function o(e){return Object(n["a"])({url:"/system/tools/gen/tableList",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/system/tools/gen/dataList",method:"get",params:e})}function r(e){return Object(n["a"])({url:"/system/tools/gen/columnList?tableId="+e,method:"get"})}function s(e){return Object(n["a"])({url:"/system/tools/gen/editSave",method:"put",data:e})}function i(e){return Object(n["a"])({url:"/system/tools/gen/importTableSave",method:"post",params:e})}function c(e){return Object(n["a"])({url:"/system/tools/gen/preview?tableId="+e,method:"get"})}function u(e){return Object(n["a"])({url:"/system/tools/gen/delete",method:"delete",data:{ids:e}})}},"6a66":function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-form",{ref:"genInfoForm",attrs:{model:e.info,rules:e.rules,"label-width":"150px"}},[l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"tpl_category"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("生成模板")]),e._v(" "),l("el-select",{model:{value:e.info.tpl_category,callback:function(t){e.$set(e.info,"tpl_category",t)},expression:"info.tpl_category"}},[l("el-option",{attrs:{label:"单表(增删改查)",value:"crud"}}),e._v(" "),l("el-option",{attrs:{label:"树表(增删改查)",value:"tree"}})],1)],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"package_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成包路径\n "),l("el-tooltip",{attrs:{content:"生成在哪个java包下,例如 com.ruoyi.system",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.package_name,callback:function(t){e.$set(e.info,"package_name",t)},expression:"info.package_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"module_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成模块名\n "),l("el-tooltip",{attrs:{content:"可理解为子系统名,例如 system",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.module_name,callback:function(t){e.$set(e.info,"module_name",t)},expression:"info.module_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"business_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成业务名\n "),l("el-tooltip",{attrs:{content:"可理解为功能英文名,例如 user",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.business_name,callback:function(t){e.$set(e.info,"business_name",t)},expression:"info.business_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"function_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成功能名\n "),l("el-tooltip",{attrs:{content:"用作类描述,例如 用户",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.function_name,callback:function(t){e.$set(e.info,"function_name",t)},expression:"info.function_name"}})],1)],1)],1),e._v(" "),l("el-row",{directives:[{name:"show",rawName:"v-show",value:"tree"==e.info.tpl_category,expression:"info.tpl_category == 'tree'"}]},[l("h4",{staticClass:"form-header"},[e._v("其他信息")]),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 树编码字段\n "),l("el-tooltip",{attrs:{content:"树显示的编码字段名, 如:dept_id",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.tree_code,callback:function(t){e.$set(e.info,"tree_code",t)},expression:"info.tree_code"}},e._l(e.info.columns,(function(e){return l("el-option",{key:e.column_name,attrs:{label:e.column_name+":"+e.column_comment,value:e.column_name}})})),1)],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 树父编码字段\n "),l("el-tooltip",{attrs:{content:"树显示的父编码字段名, 如:parent_Id",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.tree_parent_code,callback:function(t){e.$set(e.info,"tree_parent_code",t)},expression:"info.tree_parent_code"}},e._l(e.info.columns,(function(e){return l("el-option",{key:e.column_name,attrs:{label:e.column_name+":"+e.column_comment,value:e.column_name}})})),1)],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 树名称字段\n "),l("el-tooltip",{attrs:{content:"树节点的显示名称字段名, 如:dept_name",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.tree_name,callback:function(t){e.$set(e.info,"tree_name",t)},expression:"info.tree_name"}},e._l(e.info.columns,(function(e){return l("el-option",{key:e.column_name,attrs:{label:e.column_name+":"+e.column_comment,value:e.column_name}})})),1)],1)],1)],1)],1)},o=[],a={name:"BasicInfoForm",props:{info:{type:Object,default:null}},data:function(){return{rules:{tpl_category:[{required:!0,message:"请选择生成模板",trigger:"blur"}],package_name:[{required:!0,message:"请输入生成包路径",trigger:"blur"}],module_name:[{required:!0,message:"请输入生成模块名",trigger:"blur"}],business_name:[{required:!0,message:"请输入生成业务名",trigger:"blur"}],function_name:[{required:!0,message:"请输入生成功能名",trigger:"blur"}]}}},beforeCreate:function(){}},r=a,s=l("2877"),i=Object(s["a"])(r,n,o,!1,null,null,null);t["default"]=i.exports},"6ff4":function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-form",{ref:"basicInfoForm",attrs:{model:e.info,rules:e.rules,"label-width":"150px"}},[l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"表名称",prop:"table_name"}},[l("el-input",{attrs:{placeholder:"请输入仓库名称"},model:{value:e.info.table_name,callback:function(t){e.$set(e.info,"table_name",t)},expression:"info.table_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"表描述",prop:"table_comment"}},[l("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.table_comment,callback:function(t){e.$set(e.info,"table_comment",t)},expression:"info.table_comment"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"实体类名称",prop:"class_name"}},[l("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.class_name,callback:function(t){e.$set(e.info,"class_name",t)},expression:"info.class_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"作者",prop:"function_author"}},[l("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.function_author,callback:function(t){e.$set(e.info,"function_author",t)},expression:"info.function_author"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:24}},[l("el-form-item",{attrs:{label:"备注",prop:"remark"}},[l("el-input",{attrs:{type:"textarea",rows:3},model:{value:e.info.remark,callback:function(t){e.$set(e.info,"remark",t)},expression:"info.remark"}})],1)],1)],1)],1)},o=[],a={name:"BasicInfoForm",props:{info:{type:Object,default:null}},data:function(){return{rules:{tableName:[{required:!0,message:"请输入表名称",trigger:"blur"}],tableComment:[{required:!0,message:"请输入表描述",trigger:"blur"}],className:[{required:!0,message:"请输入实体类名称",trigger:"blur"}],functionAuthor:[{required:!0,message:"请输入作者",trigger:"blur"}]}}}},r=a,s=l("2877"),i=Object(s["a"])(r,n,o,!1,null,null,null);t["default"]=i.exports},c6bd:function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-card",[l("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[l("el-tab-pane",{attrs:{label:"基本信息",name:"basic"}},[l("basic-info-form",{ref:"basicInfo",attrs:{info:e.info}})],1),e._v(" "),l("el-tab-pane",{attrs:{label:"字段信息",name:"cloum"}},[l("el-table",{ref:"dragTable",attrs:{data:e.cloumns,"row-key":"columnId","max-height":e.tableHeight}},[l("el-table-column",{attrs:{label:"序号",type:"index","min-width":"5%","class-name":"allowDrag"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段列名",prop:"column_name","min-width":"10%","show-overflow-tooltip":!0}}),e._v(" "),l("el-table-column",{attrs:{label:"字段描述","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-input",{model:{value:t.row.column_comment,callback:function(l){e.$set(t.row,"column_comment",l)},expression:"scope.row.column_comment"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"物理类型",prop:"column_type","min-width":"10%","show-overflow-tooltip":!0}}),e._v(" "),l("el-table-column",{attrs:{label:"go类型","min-width":"11%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{model:{value:t.row.go_type,callback:function(l){e.$set(t.row,"go_type",l)},expression:"scope.row.go_type"}},[l("el-option",{attrs:{label:"int",value:"int"}}),e._v(" "),l("el-option",{attrs:{label:"uint",value:"uint"}}),e._v(" "),l("el-option",{attrs:{label:"int64",value:"int64"}}),e._v(" "),l("el-option",{attrs:{label:"uint64",value:"uint64"}}),e._v(" "),l("el-option",{attrs:{label:"float64",value:"float64"}}),e._v(" "),l("el-option",{attrs:{label:"string",value:"string"}}),e._v(" "),l("el-option",{attrs:{label:"Time",value:"Time"}}),e._v(" "),l("el-option",{attrs:{label:"byte",value:"byte"}})],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"go属性","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-input",{model:{value:t.row.go_field,callback:function(l){e.$set(t.row,"go_field",l)},expression:"scope.row.go_field"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"插入","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_insert,callback:function(l){e.$set(t.row,"is_insert",l)},expression:"scope.row.is_insert"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"编辑","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_edit,callback:function(l){e.$set(t.row,"is_edit",l)},expression:"scope.row.is_edit"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"列表","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_list,callback:function(l){e.$set(t.row,"is_list",l)},expression:"scope.row.is_list"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"查询","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_query,callback:function(l){e.$set(t.row,"is_query",l)},expression:"scope.row.is_query"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"查询方式","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{model:{value:t.row.query_type,callback:function(l){e.$set(t.row,"query_type",l)},expression:"scope.row.query_type"}},[l("el-option",{attrs:{label:"=",value:"EQ"}}),e._v(" "),l("el-option",{attrs:{label:"!=",value:"NE"}}),e._v(" "),l("el-option",{attrs:{label:">",value:"GT"}}),e._v(" "),l("el-option",{attrs:{label:">=",value:"GTE"}}),e._v(" "),l("el-option",{attrs:{label:"<",value:"LT"}}),e._v(" "),l("el-option",{attrs:{label:"<=",value:"LTE"}}),e._v(" "),l("el-option",{attrs:{label:"LIKE",value:"LIKE"}}),e._v(" "),l("el-option",{attrs:{label:"BETWEEN",value:"BETWEEN"}})],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"必填","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_required,callback:function(l){e.$set(t.row,"is_required",l)},expression:"scope.row.is_required"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"显示类型","min-width":"12%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{model:{value:t.row.html_type,callback:function(l){e.$set(t.row,"html_type",l)},expression:"scope.row.html_type"}},[l("el-option",{attrs:{label:"文本框",value:"input"}}),e._v(" "),l("el-option",{attrs:{label:"文本域",value:"textarea"}}),e._v(" "),l("el-option",{attrs:{label:"下拉框",value:"select"}}),e._v(" "),l("el-option",{attrs:{label:"单选框",value:"radio"}}),e._v(" "),l("el-option",{attrs:{label:"复选框",value:"checkbox"}}),e._v(" "),l("el-option",{attrs:{label:"日期控件",value:"datetime"}})],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"字典类型","min-width":"12%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:t.row.dict_type,callback:function(l){e.$set(t.row,"dict_type",l)},expression:"scope.row.dict_type"}},e._l(e.dictOptions,(function(t){return l("el-option",{key:t.dict_type,attrs:{label:t.dict_name,value:t.dict_type}},[l("span",{staticStyle:{float:"left"}},[e._v(e._s(t.dict_name))]),e._v(" "),l("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.dict_type))])])})),1)]}}])})],1)],1),e._v(" "),l("el-tab-pane",{attrs:{label:"生成信息",name:"genInfo"}},[l("gen-info-form",{ref:"genInfo",attrs:{info:e.info}})],1)],1),e._v(" "),l("el-form",{attrs:{"label-width":"100px"}},[l("el-form-item",{staticStyle:{"text-align":"center","margin-left":"-100px","margin-top":"10px"}},[l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm()}}},[e._v("提交")]),e._v(" "),l("el-button",{on:{click:function(t){return e.close()}}},[e._v("返回")])],1)],1)],1)},o=[],a=(l("ac6a"),l("5df3"),l("4b72")),r=l("ed45"),s=l("6ff4"),i=l("6a66"),c=l("53fe"),u=l.n(c),m={name:"GenEdit",components:{basicInfoForm:s["default"],genInfoForm:i["default"]},data:function(){return{activeName:"cloum",tableHeight:document.documentElement.scrollHeight-245+"px",cloumns:[],dictOptions:[],info:{}}},beforeCreate:function(){var e=this,t=this.$route.query.tableId;t&&(Object(a["b"])(t).then((function(t){e.cloumns=t.data.rows,e.info=t.data.info,e.info.columns=e.cloumns})),Object(r["f"])().then((function(t){e.dictOptions=t.data})))},methods:{submitForm:function(){var e=this,t=this.$refs.basicInfo.$refs.basicInfoForm,l=this.$refs.genInfo.$refs.genInfoForm;Promise.all([t,l].map(this.getFormPromise)).then((function(n){var o=n.every((function(e){return!!e}));if(o){var r=Object.assign({},t.model,l.model);r.columns=e.cloumns,r.params={treeCode:r.treeCode,treeName:r.treeName,treeParentCode:r.treeParentCode},Object(a["g"])(r).then((function(t){e.msgSuccess(t.msg),0===t.code&&e.close()}))}else e.msgError("表单校验未通过,请重新检查提交内容")}))},setInfoColumn:function(e){this.info.column=e},getFormPromise:function(e){return new Promise((function(t){e.validate((function(e){t(e)}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/system/tools/gen",query:{t:Date.now()}})}},mounted:function(){var e=this,t=this.$refs.dragTable.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];u.a.create(t,{handle:".allowDrag",onEnd:function(t){var l=e.cloumns.splice(t.oldIndex,1)[0];for(var n in e.cloumns.splice(t.newIndex,0,l),e.cloumns)e.cloumns[n].sort=parseInt(n)+1}})}},f=m,p=l("2877"),d=Object(p["a"])(f,n,o,!1,null,null,null);t["default"]=d.exports},ed45:function(e,t,l){"use strict";l.d(t,"e",(function(){return o})),l.d(t,"d",(function(){return a})),l.d(t,"a",(function(){return r})),l.d(t,"g",(function(){return s})),l.d(t,"f",(function(){return i})),l.d(t,"b",(function(){return c})),l.d(t,"c",(function(){return u}));var n=l("b775");function o(e){return Object(n["a"])({url:"/system/config/dict/list",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/system/config/dict/edit?dictId="+e,method:"get"})}function r(e){return Object(n["a"])({url:"/system/config/dict/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/system/config/dict/edit",method:"post",data:e})}function i(){return Object(n["a"])({url:"/system/config/dict/optionSelect",method:"get"})}function c(e){return Object(n["a"])({url:"/system/config/dict/delete",method:"delete",data:{dictIds:e}})}function u(e){return Object(n["a"])({url:"/system/dict/type/export",method:"get",params:e})}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b4a9e9a"],{"4b72":function(e,t,l){"use strict";l.d(t,"e",(function(){return o})),l.d(t,"d",(function(){return a})),l.d(t,"b",(function(){return r})),l.d(t,"g",(function(){return s})),l.d(t,"c",(function(){return i})),l.d(t,"f",(function(){return c})),l.d(t,"a",(function(){return u}));var n=l("b775");function o(e){return Object(n["a"])({url:"/system/tools/gen/tableList",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/system/tools/gen/dataList",method:"get",params:e})}function r(e){return Object(n["a"])({url:"/system/tools/gen/columnList?tableId="+e,method:"get"})}function s(e){return Object(n["a"])({url:"/system/tools/gen/editSave",method:"put",data:e})}function i(e){return Object(n["a"])({url:"/system/tools/gen/importTableSave",method:"post",params:e})}function c(e){return Object(n["a"])({url:"/system/tools/gen/preview?tableId="+e,method:"get"})}function u(e){return Object(n["a"])({url:"/system/tools/gen/delete",method:"delete",data:{ids:e}})}},"6a66":function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-form",{ref:"genInfoForm",attrs:{model:e.info,rules:e.rules,"label-width":"150px"}},[l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"tpl_category"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("生成模板")]),e._v(" "),l("el-select",{model:{value:e.info.tpl_category,callback:function(t){e.$set(e.info,"tpl_category",t)},expression:"info.tpl_category"}},[l("el-option",{attrs:{label:"单表(增删改查)",value:"crud"}}),e._v(" "),l("el-option",{attrs:{label:"树表(增删改查)",value:"tree"}})],1)],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"package_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成包路径\n "),l("el-tooltip",{attrs:{content:"生成在哪个java包下,例如 com.ruoyi.system",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.package_name,callback:function(t){e.$set(e.info,"package_name",t)},expression:"info.package_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"module_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成模块名\n "),l("el-tooltip",{attrs:{content:"可理解为子系统名,例如 system",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.module_name,callback:function(t){e.$set(e.info,"module_name",t)},expression:"info.module_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"business_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成业务名\n "),l("el-tooltip",{attrs:{content:"可理解为功能英文名,例如 user",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.business_name,callback:function(t){e.$set(e.info,"business_name",t)},expression:"info.business_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{prop:"function_name"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 生成功能名\n "),l("el-tooltip",{attrs:{content:"用作类描述,例如 用户",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{model:{value:e.info.function_name,callback:function(t){e.$set(e.info,"function_name",t)},expression:"info.function_name"}})],1)],1)],1),e._v(" "),l("el-row",{directives:[{name:"show",rawName:"v-show",value:"tree"==e.info.tpl_category,expression:"info.tpl_category == 'tree'"}]},[l("h4",{staticClass:"form-header"},[e._v("其他信息")]),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 树编码字段\n "),l("el-tooltip",{attrs:{content:"树显示的编码字段名, 如:dept_id",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.tree_code,callback:function(t){e.$set(e.info,"tree_code",t)},expression:"info.tree_code"}},e._l(e.info.columns,(function(e){return l("el-option",{key:e.column_name,attrs:{label:e.column_name+":"+e.column_comment,value:e.column_name}})})),1)],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 树父编码字段\n "),l("el-tooltip",{attrs:{content:"树显示的父编码字段名, 如:parent_Id",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.tree_parent_code,callback:function(t){e.$set(e.info,"tree_parent_code",t)},expression:"info.tree_parent_code"}},e._l(e.info.columns,(function(e){return l("el-option",{key:e.column_name,attrs:{label:e.column_name+":"+e.column_comment,value:e.column_name}})})),1)],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 树名称字段\n "),l("el-tooltip",{attrs:{content:"树节点的显示名称字段名, 如:dept_name",placement:"top"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.tree_name,callback:function(t){e.$set(e.info,"tree_name",t)},expression:"info.tree_name"}},e._l(e.info.columns,(function(e){return l("el-option",{key:e.column_name,attrs:{label:e.column_name+":"+e.column_comment,value:e.column_name}})})),1)],1)],1)],1)],1)},o=[],a={name:"BasicInfoForm",props:{info:{type:Object,default:null}},data:function(){return{rules:{tpl_category:[{required:!0,message:"请选择生成模板",trigger:"blur"}],package_name:[{required:!0,message:"请输入生成包路径",trigger:"blur"}],module_name:[{required:!0,message:"请输入生成模块名",trigger:"blur"}],business_name:[{required:!0,message:"请输入生成业务名",trigger:"blur"}],function_name:[{required:!0,message:"请输入生成功能名",trigger:"blur"}]}}},beforeCreate:function(){}},r=a,s=l("cba8"),i=Object(s["a"])(r,n,o,!1,null,null,null);t["default"]=i.exports},"6ff4":function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-form",{ref:"basicInfoForm",attrs:{model:e.info,rules:e.rules,"label-width":"150px"}},[l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"表名称",prop:"table_name"}},[l("el-input",{attrs:{placeholder:"请输入仓库名称"},model:{value:e.info.table_name,callback:function(t){e.$set(e.info,"table_name",t)},expression:"info.table_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"表描述",prop:"table_comment"}},[l("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.table_comment,callback:function(t){e.$set(e.info,"table_comment",t)},expression:"info.table_comment"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"实体类名称",prop:"class_name"}},[l("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.class_name,callback:function(t){e.$set(e.info,"class_name",t)},expression:"info.class_name"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"作者",prop:"function_author"}},[l("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.function_author,callback:function(t){e.$set(e.info,"function_author",t)},expression:"info.function_author"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:24}},[l("el-form-item",{attrs:{label:"备注",prop:"remark"}},[l("el-input",{attrs:{type:"textarea",rows:3},model:{value:e.info.remark,callback:function(t){e.$set(e.info,"remark",t)},expression:"info.remark"}})],1)],1)],1)],1)},o=[],a={name:"BasicInfoForm",props:{info:{type:Object,default:null}},data:function(){return{rules:{tableName:[{required:!0,message:"请输入表名称",trigger:"blur"}],tableComment:[{required:!0,message:"请输入表描述",trigger:"blur"}],className:[{required:!0,message:"请输入实体类名称",trigger:"blur"}],functionAuthor:[{required:!0,message:"请输入作者",trigger:"blur"}]}}}},r=a,s=l("cba8"),i=Object(s["a"])(r,n,o,!1,null,null,null);t["default"]=i.exports},c6bd:function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-card",[l("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[l("el-tab-pane",{attrs:{label:"基本信息",name:"basic"}},[l("basic-info-form",{ref:"basicInfo",attrs:{info:e.info}})],1),e._v(" "),l("el-tab-pane",{attrs:{label:"字段信息",name:"cloum"}},[l("el-table",{ref:"dragTable",attrs:{data:e.cloumns,"row-key":"columnId","max-height":e.tableHeight}},[l("el-table-column",{attrs:{label:"序号",type:"index","min-width":"5%","class-name":"allowDrag"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段列名",prop:"column_name","min-width":"10%","show-overflow-tooltip":!0}}),e._v(" "),l("el-table-column",{attrs:{label:"字段描述","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-input",{model:{value:t.row.column_comment,callback:function(l){e.$set(t.row,"column_comment",l)},expression:"scope.row.column_comment"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"物理类型",prop:"column_type","min-width":"10%","show-overflow-tooltip":!0}}),e._v(" "),l("el-table-column",{attrs:{label:"go类型","min-width":"11%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{model:{value:t.row.go_type,callback:function(l){e.$set(t.row,"go_type",l)},expression:"scope.row.go_type"}},[l("el-option",{attrs:{label:"int",value:"int"}}),e._v(" "),l("el-option",{attrs:{label:"uint",value:"uint"}}),e._v(" "),l("el-option",{attrs:{label:"int64",value:"int64"}}),e._v(" "),l("el-option",{attrs:{label:"uint64",value:"uint64"}}),e._v(" "),l("el-option",{attrs:{label:"float64",value:"float64"}}),e._v(" "),l("el-option",{attrs:{label:"string",value:"string"}}),e._v(" "),l("el-option",{attrs:{label:"Time",value:"Time"}}),e._v(" "),l("el-option",{attrs:{label:"byte",value:"byte"}})],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"go属性","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-input",{model:{value:t.row.go_field,callback:function(l){e.$set(t.row,"go_field",l)},expression:"scope.row.go_field"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"插入","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_insert,callback:function(l){e.$set(t.row,"is_insert",l)},expression:"scope.row.is_insert"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"编辑","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_edit,callback:function(l){e.$set(t.row,"is_edit",l)},expression:"scope.row.is_edit"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"列表","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_list,callback:function(l){e.$set(t.row,"is_list",l)},expression:"scope.row.is_list"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"查询","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_query,callback:function(l){e.$set(t.row,"is_query",l)},expression:"scope.row.is_query"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"查询方式","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{model:{value:t.row.query_type,callback:function(l){e.$set(t.row,"query_type",l)},expression:"scope.row.query_type"}},[l("el-option",{attrs:{label:"=",value:"EQ"}}),e._v(" "),l("el-option",{attrs:{label:"!=",value:"NE"}}),e._v(" "),l("el-option",{attrs:{label:">",value:"GT"}}),e._v(" "),l("el-option",{attrs:{label:">=",value:"GTE"}}),e._v(" "),l("el-option",{attrs:{label:"<",value:"LT"}}),e._v(" "),l("el-option",{attrs:{label:"<=",value:"LTE"}}),e._v(" "),l("el-option",{attrs:{label:"LIKE",value:"LIKE"}}),e._v(" "),l("el-option",{attrs:{label:"BETWEEN",value:"BETWEEN"}})],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"必填","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.is_required,callback:function(l){e.$set(t.row,"is_required",l)},expression:"scope.row.is_required"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"显示类型","min-width":"12%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{model:{value:t.row.html_type,callback:function(l){e.$set(t.row,"html_type",l)},expression:"scope.row.html_type"}},[l("el-option",{attrs:{label:"文本框",value:"input"}}),e._v(" "),l("el-option",{attrs:{label:"文本域",value:"textarea"}}),e._v(" "),l("el-option",{attrs:{label:"下拉框",value:"select"}}),e._v(" "),l("el-option",{attrs:{label:"单选框",value:"radio"}}),e._v(" "),l("el-option",{attrs:{label:"复选框",value:"checkbox"}}),e._v(" "),l("el-option",{attrs:{label:"日期控件",value:"datetime"}})],1)]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"字典类型","min-width":"12%"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:t.row.dict_type,callback:function(l){e.$set(t.row,"dict_type",l)},expression:"scope.row.dict_type"}},e._l(e.dictOptions,(function(t){return l("el-option",{key:t.dict_type,attrs:{label:t.dict_name,value:t.dict_type}},[l("span",{staticStyle:{float:"left"}},[e._v(e._s(t.dict_name))]),e._v(" "),l("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.dict_type))])])})),1)]}}])})],1)],1),e._v(" "),l("el-tab-pane",{attrs:{label:"生成信息",name:"genInfo"}},[l("gen-info-form",{ref:"genInfo",attrs:{info:e.info}})],1)],1),e._v(" "),l("el-form",{attrs:{"label-width":"100px"}},[l("el-form-item",{staticStyle:{"text-align":"center","margin-left":"-100px","margin-top":"10px"}},[l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm()}}},[e._v("提交")]),e._v(" "),l("el-button",{on:{click:function(t){return e.close()}}},[e._v("返回")])],1)],1)],1)},o=[],a=(l("1bc7"),l("0c84"),l("4b72")),r=l("ed45"),s=l("6ff4"),i=l("6a66"),c=l("e7e2"),u=l.n(c),m={name:"GenEdit",components:{basicInfoForm:s["default"],genInfoForm:i["default"]},data:function(){return{activeName:"cloum",tableHeight:document.documentElement.scrollHeight-245+"px",cloumns:[],dictOptions:[],info:{}}},beforeCreate:function(){var e=this,t=this.$route.query.tableId;t&&(Object(a["b"])(t).then((function(t){e.cloumns=t.data.rows,e.info=t.data.info,e.info.columns=e.cloumns})),Object(r["f"])().then((function(t){e.dictOptions=t.data})))},methods:{submitForm:function(){var e=this,t=this.$refs.basicInfo.$refs.basicInfoForm,l=this.$refs.genInfo.$refs.genInfoForm;Promise.all([t,l].map(this.getFormPromise)).then((function(n){var o=n.every((function(e){return!!e}));if(o){var r=Object.assign({},t.model,l.model);r.columns=e.cloumns,r.params={treeCode:r.treeCode,treeName:r.treeName,treeParentCode:r.treeParentCode},Object(a["g"])(r).then((function(t){e.msgSuccess(t.msg),0===t.code&&e.close()}))}else e.msgError("表单校验未通过,请重新检查提交内容")}))},setInfoColumn:function(e){this.info.column=e},getFormPromise:function(e){return new Promise((function(t){e.validate((function(e){t(e)}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/system/tools/gen",query:{t:Date.now()}})}},mounted:function(){var e=this,t=this.$refs.dragTable.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];u.a.create(t,{handle:".allowDrag",onEnd:function(t){var l=e.cloumns.splice(t.oldIndex,1)[0];for(var n in e.cloumns.splice(t.newIndex,0,l),e.cloumns)e.cloumns[n].sort=parseInt(n)+1}})}},f=m,p=l("cba8"),d=Object(p["a"])(f,n,o,!1,null,null,null);t["default"]=d.exports},ed45:function(e,t,l){"use strict";l.d(t,"e",(function(){return o})),l.d(t,"d",(function(){return a})),l.d(t,"a",(function(){return r})),l.d(t,"g",(function(){return s})),l.d(t,"f",(function(){return i})),l.d(t,"b",(function(){return c})),l.d(t,"c",(function(){return u}));var n=l("b775");function o(e){return Object(n["a"])({url:"/system/config/dict/list",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/system/config/dict/edit?dictId="+e,method:"get"})}function r(e){return Object(n["a"])({url:"/system/config/dict/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/system/config/dict/edit",method:"post",data:e})}function i(){return Object(n["a"])({url:"/system/config/dict/optionSelect",method:"get"})}function c(e){return Object(n["a"])({url:"/system/config/dict/delete",method:"delete",data:{dictIds:e}})}function u(e){return Object(n["a"])({url:"/system/dict/type/export",method:"get",params:e})}}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e4c32e6"],{"3d17":function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"i",(function(){return i})),n.d(e,"c",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return m}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/goods/uploadVideo",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/local/getCategoryList",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/freightNew/getFreight",method:"get",params:t})}function u(t){return Object(r["a"])({url:"/system/goodsNew/addGoods",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/system/goodsNew/info",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/system/goodsNew/goodsEdit",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/system/goodsNew/batchUploadImage",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/local/serviceFee/getByCategory",method:"get",params:t})}function m(t){return Object(r["a"])({url:"/system/goodsNew/synthesisList",method:"post",data:t})}},5252:function(t,e,n){"use strict";n("b3b9")},"5a97":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"h",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return d}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/goodsNew/list",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/system/goodsNew/shelvesStatus",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/goodsNew/goodsStatus",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/system/goodsNew/info",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/system/goodsNew/collect",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/system/goodsNew/cancelOnsale",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/goodsNew/cancelOnsaleAll",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/system/goodsNew/onsaleUpdate",method:"post",data:t})}},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"l",(function(){return i})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return f})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return p})),n.d(e,"k",(function(){return g}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/index/getInfo",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/local/organization",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/local/shopbrand",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/local/brands",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/local/addShopInfo",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/local/cate",method:"get",params:t})}function h(t){return Object(r["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(r["a"])({url:"/local/check/idCard",method:"get",params:t})}function g(t){return Object(r["a"])({url:"/local/qualification/list",method:"get",params:t})}},b3b9:function(t,e,n){},e3b2:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t._v("商品导入")]),t._v(" "),n("h3",{staticClass:"cton_h3"},[t._v("剩余次数:"+t._s(t.collect_num)+" / 1000次")]),t._v(" "),n("div",{staticClass:"cton_text"},[n("p",[t._v("功能介绍:")]),t._v(" "),n("p",[t._v("\n 商品导入是为了商家快速、方便地将其它平台上已有的商品,一键导入到您的云仓平台,不再用手动输入编写商品信息\n ")]),t._v(" "),n("p",[t._v("使用方法:")]),t._v(" "),n("p",[t._v("\n 复制其它电商平台的商品链接,粘贴至商品链接输入框内,为该商品选择对应的商品分类,选择完成后点击立即获取按钮即可\n ")]),t._v(" "),n("p",[t._v("示例:")]),t._v(" "),n("p",[t._v("京东商品链接如:https://item.jd.com/10684560542.html")]),t._v(" "),n("p",[t._v("温馨提示:")]),t._v(" "),n("p",[t._v("商品在获取过程中,请不要进行其它操作")]),t._v(" "),n("p",[t._v("\n 商品抓取后,默认放入到下架商品中,请手动修改商品相关信息,再提交申请上架\n ")]),t._v(" "),n("p",[t._v("请确保不要将多个平台的商品链接混合输入")]),t._v(" "),n("p",[t._v("每个用户默认拥有1000次商品导入的机会,请慎重使用")])]),t._v(" "),n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"180px"}},[n("el-form-item",{attrs:{label:"商品链接:"}},[n("el-input",{staticStyle:{width:"700px"},attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入其它平台商品的链接,单次最多允许输入10条链接,以英文逗号隔开"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商品分类:"}},[t.el_valuestatus?n("el-cascader",{ref:"cascaderDom",staticStyle:{width:"350px"},attrs:{props:t.props,options:t.options,placeholder:"请选择"},on:{change:t.elvalueclick},model:{value:t.el_value,callback:function(e){t.el_value=e},expression:"el_value"}}):t._e()],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("立即导入")])],1)],1)],1)],1)},a=[],o=(n("ac6a"),n("6b54"),n("c5f6"),n("28a5"),n("5c96"),n("6b1f")),s=n("5a97"),u=n("3d17"),c=(n("ed08"),{name:"freight",data:function(){return{collect_num:0,form:{desc:""},el_valuestatus:!0,el_value:[],options:[],props:{expandTrigger:"click",lazy:!0,lazyLoad:this.lazyLoad,value:"id",label:"title",leaf:"leaf"}}},components:{},created:function(){this.info()},watch:{},methods:{info:function(){var t=this;Object(o["j"])().then((function(e){1==e.code&&(t.collect_num=e.data.collect_num)}))},onSubmit:function(){var t=this;if(this.collect_num<=0)this.$message({type:"warning",message:"您好,您的导入次数已用完,请您联系我们的工作人员操作充值"});else{var e;if(!this.form.desc)return this.$message.error("请填写需要导入的商品链接!"),!1;if(e=this.form.desc.split(","),!(e.length>0&&e.length<=10))return e.length>10?(this.$message({message:"您单次输入的链接数量超过10条!",type:"warning"}),!1):(this.$message.error("请填写需要导入的商品链接!"),!1);if(Number(e.length)>Number(this.collect_num))this.$message({type:"warning",message:"您好,准备导入的商品条数过多,当前剩余次数不足,请重新输入"});else{if(3!=this.el_value.length)return this.$message.error("请选择商品分类!"),!1;var n={category_id:this.el_value[2],third_url:e};Object(s["f"])(n).then((function(n){var r=0,a=Number(e.length),o="";1===n.code?(1===a?1===Number(n.data)?t.$message({type:"success",message:"您好,商品已导入成功,请在仓库中进行编辑后申请上架"}):t.$message({type:"error",message:"您好,商品导入失败,请您重新导入"}):a>1&&(r=Number(n.data),o="您好,一共导入"+a+"条商品,"+r+"条导入成功,请在仓库中进行编辑后申请上架",t.$message({type:"warning",message:o})),t.el_value=[],t.$refs.cascaderDom.$refs.panel.activePath=[],t.form.desc=""):(o=n.message?n.message:"导入失败",t.$message({type:"error",message:o})),t.info()}))}}},add:function(t,e){var n,r,a,o;try{n=t.toString().split(".")[1].length,r=e.toString().split(".")[1].length}catch(s){n=0,r=0}return a=Math.pow(10,Math.max(n,r)),o=(t*a+e*a)/a,o=o.toFixed(2),o},minus:function(t,e){return this.add(t,-e)},elvalueclick:function(){},lazyLoad:function(t,e){this.SSQList=[],this.SSQStr="",this.getArea(t,e),this.SSQList&&this.SSQList.length>0?this.isNextStep=!1:this.isNextStep=!0},getArea:function(t,e){var n=t.level,r={};0===n&&(r={parent_id:0}),n>0&&(r={parent_id:t.value}),Object(u["b"])(r).then((function(t){var r={};r=t.data,r.forEach((function(t){t.value=t.id,t.label=t.label,t.children=[],t.leaf=n>=2})),e(r)}))}}}),i=c,l=(n("5252"),n("2877")),d=Object(l["a"])(i,r,a,!1,null,"d731cf5e",null);e["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2aa784f0"],{"32c9":function(t,e,n){},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"l",(function(){return l})),n.d(e,"j",(function(){return s})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return h})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return A})),n.d(e,"k",(function(){return p}));var a=n("b775");function c(t){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:t})}function r(t){return Object(a["a"])({url:"/local/organization",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/local/brands",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/local/upbrands",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/local/cate",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function A(t){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:t})}},cbdc:function(t,e,n){"use strict";n("32c9")},e4dd:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"to-review"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:3,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"注册账号"}}),t._v(" "),a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main"},[a("div",{staticClass:"fuck"},[a("p",[a("img",{attrs:{src:n("e9f2"),alt:""}})]),t._v(" "),a("p",[t._v("资料已提交,工作人员审核中。。。")]),t._v(" "),a("p",{staticStyle:{"margin-top":"10px"}},[t._v("感谢您使用云仓!")]),t._v(" "),a("p",[t._v("您的资料已经提交审核,审核周期为1-3个工作日,请您耐心等待审核结果。")]),t._v(" "),a("p",[t._v("如果您有其它的问题,可以拔打我们的服务电话与我们联系!")])])])])],1)},c=[],u=n("6b1f"),r={name:"ReviewSuccess",data:function(){return{}},created:function(){var t=this;Object(u["g"])().then((function(e){1==e.code&&e.data.user&&(1==e.data.user.state&&t.$router.push({path:"/index"}),2==e.data.user.state&&t.$router.push({path:"/reviewing"}),3==e.data.user.state&&t.$router.push({path:"/reviewFail"}))}))},mounted:function(){history.pushState(null,null,document.URL),window.addEventListener("popstate",(function(){history.pushState(null,null,document.URL)}))}},i=r,o=(n("cbdc"),n("2877")),l=Object(o["a"])(i,a,c,!1,null,"6904679a",null);e["default"]=l.exports},e9f2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJBRDQ3NzE4OTFFQjExRUJBN0JEQjU3QzUxQ0Q3QkQzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjJBRDQ3NzE5OTFFQjExRUJBN0JEQjU3QzUxQ0Q3QkQzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkFENDc3MTY5MUVCMTFFQkE3QkRCNTdDNTFDRDdCRDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkFENDc3MTc5MUVCMTFFQkE3QkRCNTdDNTFDRDdCRDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4rxvAYAAAE5UlEQVR42tybe2wUVRTGL0tRIA2KFChS/kABaQRaEggEhSYIgiKgtShYJBKqBAhKRINA9Z8uAlEeTWxV5BGFNghIwUYqEkhBjBFNCNhYHoqChmoiqKFNaGwJ38meqePd2e487p2d4Ut+SXc6c3e+nTtzzzn3Tof843cLjeoDBoIsMIg/pzOkRnAN/A7OgN/AT6BB1wmlaWiTjOWDB8AIkOnweDL/HTgO9oLzKk+ug6IrfDuYB54EeaCjovNrBbVgJ/gQ/Ou1wYgCo6+AOlAGxis0K7ith8AH4HuwFHRKleGnwWnwFhgg9Os+8DY4xT3JN8P9wH7uZoOE/8oGe/j+7qPb8FTwDZgmUq8n+Fwm6TL8IvjUza+qUdTbPgcLVBuOglIRXJWDlaoMR+02lmLReRZ7NbwkJGYNlfCt58rwRLBBhE+lPHY7MpzJw05YRefey4nh7eCuEBvOAFvtGn4WTBDh1xRQkMxwFw7fbhVtlGNv2fDLifp+SNUXLE5kOJ0zn6DrOlgNLtjcfzn33DjDc8GdATdbA3LBCvAM58t2HmCFVoYLA26WcuFHwVn+nOvg2DjD94ORATVKJZ4xYL1p2zvgPQfFhgdFrLbWZjhfQfVDhygTGgW+Nm37CCxy2E4ap5NtJvMCaJau4iPgL9O23RwnuNE4w3BmALvzq/JwImJFvAIPbY4GPehS54BuATJbBLZI294Eczy22wNkk+H+ATJLT9NKadt8HktV6F7q0vcE2OxEfhqrUn8y3DsAZudYmKV61T7F35NJhjun2OxiTkdlVYCuir8rnQx3T6HZ13n4kUWx8lgN33dHREHAsZMDl18cHkf3ZtRiO8UEr2n6gVvI7BUPDXwGZoEqDv9qbB53QFjXkml43KWxRzVGON1ya/Yx0+cGDu6jSY47x5mOlco05+NNEeFu8nm7ZFa+Lyn8a7L4H013Pg7+sfgf/VizNT8zGsjwzy4OrE7y/x380KmTtj8H6i32pwR9kw8PyYsRB5UDIWUsLyTZ5ySb3sOfN1uMtYZKuByjPdVM46vQKP5bd2FHNHa/z/Hp6nb2+xvM4MCiKsE+uZzc69ZVcMa4h0+4bISC+lKbPeJaO2mgH6Kc+ooxBh/10BDN5Xzicjw3Fr/4oS/NBQCa0W/10Fg+/2g9HRzTVfg3BdsiYnPbbYZp3cS3HhulutExB+kmRVNZPl7deiF1w0oFDQ/me2W4jWR8qfBPFcYfZsPbwJ8KGqd08yvBNaQEWqYhE0qkyxwXxBmmoWmdoi+hQOKQ4EqhpAyuYviltaDZyjBpg1C3zvE2EVtaVCRtf0n4V0O7BN41b5ANN/MJqRStojMvm1joc3Hhf8sVrRaXUu33C/Cwwi+mDOqGiM0U+DXRXm0MRckMk6ig9oPDcdVOVOaX/hAJyrqJoiN6Wj8lwqsZHMfbNkyqFfHV/zBokRFGOjVsBPYlITJLD8fy9nawE/C/AVaFwGyxnedExEFjSwJsdqHdi+IkpaPMZprQ+AKGC/0KJsvBhSrDxtg2ymp8S4Gq+FwOOjko4vJXnQ5miljJ1W9RmlfAObjj3uZl1uFjMEzEJq9/9MEoLWahZVU5XGFxJa/TLBR708q9ITz+HfFYObGqVBwGz4OhnM15epVH1YtazTz+EYF+UUvHm2l0X6/hvwP3Kt5NAQYA/pvkv1BL/nsAAAAASUVORK5CYII="}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19f84996"],{"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return c})),n.d(e,"i",(function(){return u})),n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"l",(function(){return l})),n.d(e,"j",(function(){return s})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return h})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return A})),n.d(e,"k",(function(){return p}));var a=n("b775");function c(t){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:t})}function r(t){return Object(a["a"])({url:"/local/organization",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/local/brands",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/local/upbrands",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/local/cate",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function A(t){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:t})}},"8a53":function(t,e,n){},cbdc:function(t,e,n){"use strict";n("8a53")},e4dd:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"to-review"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:3,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"注册账号"}}),t._v(" "),a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main"},[a("div",{staticClass:"fuck"},[a("p",[a("img",{attrs:{src:n("e9f2"),alt:""}})]),t._v(" "),a("p",[t._v("资料已提交,工作人员审核中。。。")]),t._v(" "),a("p",{staticStyle:{"margin-top":"10px"}},[t._v("感谢您使用云仓!")]),t._v(" "),a("p",[t._v("您的资料已经提交审核,审核周期为1-3个工作日,请您耐心等待审核结果。")]),t._v(" "),a("p",[t._v("如果您有其它的问题,可以拔打我们的服务电话与我们联系!")])])])])],1)},c=[],u=n("6b1f"),r={name:"ReviewSuccess",data:function(){return{}},created:function(){var t=this;Object(u["g"])().then((function(e){1==e.code&&e.data.user&&(1==e.data.user.state&&t.$router.push({path:"/index"}),2==e.data.user.state&&t.$router.push({path:"/reviewing"}),3==e.data.user.state&&t.$router.push({path:"/reviewFail"}))}))},mounted:function(){history.pushState(null,null,document.URL),window.addEventListener("popstate",(function(){history.pushState(null,null,document.URL)}))}},i=r,o=(n("cbdc"),n("cba8")),l=Object(o["a"])(i,a,c,!1,null,"6904679a",null);e["default"]=l.exports},e9f2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJBRDQ3NzE4OTFFQjExRUJBN0JEQjU3QzUxQ0Q3QkQzIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjJBRDQ3NzE5OTFFQjExRUJBN0JEQjU3QzUxQ0Q3QkQzIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkFENDc3MTY5MUVCMTFFQkE3QkRCNTdDNTFDRDdCRDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkFENDc3MTc5MUVCMTFFQkE3QkRCNTdDNTFDRDdCRDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4rxvAYAAAE5UlEQVR42tybe2wUVRTGL0tRIA2KFChS/kABaQRaEggEhSYIgiKgtShYJBKqBAhKRINA9Z8uAlEeTWxV5BGFNghIwUYqEkhBjBFNCNhYHoqChmoiqKFNaGwJ38meqePd2e487p2d4Ut+SXc6c3e+nTtzzzn3Tof843cLjeoDBoIsMIg/pzOkRnAN/A7OgN/AT6BB1wmlaWiTjOWDB8AIkOnweDL/HTgO9oLzKk+ug6IrfDuYB54EeaCjovNrBbVgJ/gQ/Ou1wYgCo6+AOlAGxis0K7ith8AH4HuwFHRKleGnwWnwFhgg9Os+8DY4xT3JN8P9wH7uZoOE/8oGe/j+7qPb8FTwDZgmUq8n+Fwm6TL8IvjUza+qUdTbPgcLVBuOglIRXJWDlaoMR+02lmLReRZ7NbwkJGYNlfCt58rwRLBBhE+lPHY7MpzJw05YRefey4nh7eCuEBvOAFvtGn4WTBDh1xRQkMxwFw7fbhVtlGNv2fDLifp+SNUXLE5kOJ0zn6DrOlgNLtjcfzn33DjDc8GdATdbA3LBCvAM58t2HmCFVoYLA26WcuFHwVn+nOvg2DjD94ORATVKJZ4xYL1p2zvgPQfFhgdFrLbWZjhfQfVDhygTGgW+Nm37CCxy2E4ap5NtJvMCaJau4iPgL9O23RwnuNE4w3BmALvzq/JwImJFvAIPbY4GPehS54BuATJbBLZI294Eczy22wNkk+H+ATJLT9NKadt8HktV6F7q0vcE2OxEfhqrUn8y3DsAZudYmKV61T7F35NJhjun2OxiTkdlVYCuir8rnQx3T6HZ13n4kUWx8lgN33dHREHAsZMDl18cHkf3ZtRiO8UEr2n6gVvI7BUPDXwGZoEqDv9qbB53QFjXkml43KWxRzVGON1ya/Yx0+cGDu6jSY47x5mOlco05+NNEeFu8nm7ZFa+Lyn8a7L4H013Pg7+sfgf/VizNT8zGsjwzy4OrE7y/x380KmTtj8H6i32pwR9kw8PyYsRB5UDIWUsLyTZ5ySb3sOfN1uMtYZKuByjPdVM46vQKP5bd2FHNHa/z/Hp6nb2+xvM4MCiKsE+uZzc69ZVcMa4h0+4bISC+lKbPeJaO2mgH6Kc+ooxBh/10BDN5Xzicjw3Fr/4oS/NBQCa0W/10Fg+/2g9HRzTVfg3BdsiYnPbbYZp3cS3HhulutExB+kmRVNZPl7deiF1w0oFDQ/me2W4jWR8qfBPFcYfZsPbwJ8KGqd08yvBNaQEWqYhE0qkyxwXxBmmoWmdoi+hQOKQ4EqhpAyuYviltaDZyjBpg1C3zvE2EVtaVCRtf0n4V0O7BN41b5ANN/MJqRStojMvm1joc3Hhf8sVrRaXUu33C/Cwwi+mDOqGiM0U+DXRXm0MRckMk6ig9oPDcdVOVOaX/hAJyrqJoiN6Wj8lwqsZHMfbNkyqFfHV/zBokRFGOjVsBPYlITJLD8fy9nawE/C/AVaFwGyxnedExEFjSwJsdqHdi+IkpaPMZprQ+AKGC/0KJsvBhSrDxtg2ymp8S4Gq+FwOOjko4vJXnQ5miljJ1W9RmlfAObjj3uZl1uFjMEzEJq9/9MEoLWahZVU5XGFxJa/TLBR708q9ITz+HfFYObGqVBwGz4OhnM15epVH1YtazTz+EYF+UUvHm2l0X6/hvwP3Kt5NAQYA/pvkv1BL/nsAAAAASUVORK5CYII="}}]);
\ 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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25665c90"],{"0011":function(t,e,a){t.exports=a.p+"static/img/stay2.7375f8af.png"},"0ae4":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAAXNSR0IArs4c6QAAAY1JREFUKFN9kDFok1EUhb/z835rVRQL2RzrVlEH0YKCiKC4WCpEcVAQDQVnJxdRsIsoilKk6lQdMoimEhBrxXYpUqGbYByqOKUODq1i8H9H/tDUpFTv8njnnnPvuUcs1+RcvYh40Pqv+Vo3Du0qXM17ejVX362YDaDknO1t/xXCD8StmDCul7NfZ2z2koOwYUUoljC/gJ4WJrFos0nig6oz898w92VNRnlCwrmRqHgzRC1EfAXpqE1K4iGiMsQ9PZ+ujSP1YR4C13JhhOGB/b2X802V6U8li7uYVHAHvA8UVJ6qFUL8PW932PzSvT7sWIyNEBrJC5v+9tsz4nblwFi1tjkNP68DF5uJyZ9NshGcYhaA3iYOlWBfGDyys94UtupJ9f13my3/SjZd6uoqFvsay0P+0sYq7/ZEx7cW3avFsk+cOd7/dCXh1YRH5amCQ3JJcNZmK3g0E7dLgwc+tnM7rLY3Rstvntk6Vjp5cN1a1juEI48nTinReYiZrTyQ/N5ZSQH79dDpw8OtIX8AgZGXy6HyIeYAAAAASUVORK5CYII="},"1e4b":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"dashboard-editor-container"},[s("div",{staticClass:"dashboard-promote"},[s("div",{staticClass:"header"},[s("div",{staticClass:"header-top"},[s("span",{staticClass:"sp"},[t._v("运营数据")]),t._v(" "),s("el-radio-group",{staticStyle:{"margin-left":"27px"},attrs:{size:"small"},on:{change:t.getnumbersTime},model:{value:t.numberValue,callback:function(e){t.numberValue=e},expression:"numberValue"}},[s("el-radio-button",{attrs:{label:"1"}},[t._v("昨日")]),t._v(" "),s("el-radio-button",{attrs:{label:"7"}},[t._v("近7天")]),t._v(" "),s("el-radio-button",{attrs:{label:"15"}},[t._v("近15天")])],1)],1),t._v(" "),s("div",{staticClass:"header-foot"},[s("div",{staticClass:"foot-le"},[s("el-row",{attrs:{type:"flex",justify:"space-around"}},[s("el-col",{attrs:{span:6}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("成交订单数")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.operate.order_count))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("GMV")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.beGmv))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("退款订单数")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.operate.refund_count))])])],1)],1),t._v(" "),s("div",{staticClass:"foot-ri"},[s("el-row",{attrs:{type:"flex",justify:"space-around"}},[s("el-col",{attrs:{span:10}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("正常发货率")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.delivery)+"%")])]),t._v(" "),s("el-col",{attrs:{span:10}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("待结算金额")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.beSettled))])])],1)],1)])]),t._v(" "),s("div",{staticClass:"main"},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{xs:24,lg:17}},[s("div",{staticClass:"main-left"},[s("div",{staticClass:"main-left-top"},[s("el-row",{attrs:{type:"flex",justify:"space-between"}},[s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.godeliver()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("超时订单")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.deliveredTimeNum))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("7072"),alt:""}})])])],1)],1)]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.godeliver()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("24小时需发货")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.deliverTime24Num))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("0011"),alt:""}})])])],1)],1)]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.godeliver()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("48小时需发货")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.deliverTime48Num))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("2a6d"),alt:""}})])])],1)],1)]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.afterSale()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("待处理售后")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.afterSaleNum))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("bd83"),alt:""}})])])],1)],1)])],1)],1),t._v(" "),s("div",{staticClass:"main-left-foot"},[s("div",{staticStyle:{margin:"30px 0 0 24px"}},[s("span",{staticClass:"ft-sp"},[t._v("店铺数据")]),t._v(" "),s("div",{staticClass:"main-left-foot-top"},[s("el-date-picker",{attrs:{size:"mini","picker-options":t.pickerOptions,"value-format":"timestamp","default-time":["00:00:00","23:59:59"],type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.dateTimechange},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),t._v(" "),s("el-radio-group",{staticStyle:{"margin-left":"18px"},attrs:{size:"small"},on:{change:t.getnumData},model:{value:t.numSelect,callback:function(e){t.numSelect=e},expression:"numSelect"}},[s("el-radio-button",{attrs:{label:"11"}},[t._v("订单数据")]),t._v(" "),s("el-radio-button",{attrs:{label:"13"}},[t._v("销量排行")])],1)],1)]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowData,expression:"isShowData"}],staticStyle:{"margin-top":"38px",padding:"16px 16px 0"}},[s("line-chart",{attrs:{"chart-data":t.numberChartData}})],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowData,expression:"!isShowData"}],staticStyle:{"margin-top":"38px",padding:"16px 16px 0"}},[s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.storeGoods,stripe:""}},[s("el-table-column",{attrs:{type:"index",label:"排名",align:"center",width:"150"}}),t._v(" "),s("el-table-column",{attrs:{prop:"goods_title",label:"商品名称",align:"center",width:"400"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sale",label:"销量",align:"center",width:"300"}}),t._v(" "),s("el-table-column",{attrs:{prop:"total_price",align:"center",label:"营业额"}})],1)],1)])])]),t._v(" "),s("el-col",{attrs:{xs:24,lg:7}},[s("div",{staticClass:"main-right"},[s("div",{staticClass:"main-right-top"},[s("div",{staticClass:"sa"},[t._v("常用功能")]),t._v(" "),s("div",{staticStyle:{"margin-top":"24px"}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:8}},[s("div",{staticStyle:{"text-align":"center",cursor:"pointer"},on:{click:function(e){return t.goCommodity()}}},[s("div",{staticClass:"right-top-item"},[s("img",{attrs:{src:a("5af2"),alt:""}})]),t._v(" "),s("p",[t._v("发布商品")])])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"main-right-top-point",staticStyle:{"text-align":"center",cursor:"pointer"},on:{click:function(e){return t.goMyAssets()}}},[s("div",{staticClass:"right-top-item"},[s("img",{attrs:{src:a("5af2"),alt:""}})]),t._v(" "),s("p",[t._v("资产提现")])])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticStyle:{"text-align":"center"}},[s("div",{staticClass:"right-top-item"},[s("img",{attrs:{src:a("5af2"),alt:""}})]),t._v(" "),s("p",[t._v("版本记录")])])])],1)],1)]),t._v(" "),s("div",{staticClass:"main-right-foot"},[s("div",{staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"main-right-foot-sn"},[t._v("系统消息")]),t._v(" "),s("span",{staticClass:"main-right-foot-sa"},[t._v("更多>>")])]),t._v(" "),s("ul",[s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])])])])])])],1)],1),t._v(" "),s("div",{staticClass:"footer"},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{xs:24,lg:17}},[s("div",{staticClass:"footer-left"},[s("div",{staticStyle:{margin:"0 0 0 24px"}},[s("span",{staticClass:"footer-sp"},[t._v("热销类目排行")])]),t._v(" "),s("el-table",{staticStyle:{"margin-top":"15px",padding:"16px 16px 0"},attrs:{"cell-style":t.changeCellStyle,"header-cell-style":{background:"linear-gradient(0deg, #FCEBCE 0%, #FEF6E9 100%)",color:"#955300"},data:t.cateGory}},[s("el-table-column",{attrs:{type:"index",label:"排名",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{class:0==e.$index?"foot-index":"foot-indexone"},[0==e.$index?s("img",{attrs:{src:a("e88e"),alt:""}}):t._e(),t._v(" "),0!==e.$index?s("img",{attrs:{src:a("0ae4"),alt:""}}):t._e(),t._v(" "),s("span",{staticClass:"foot-table-text"},[t._v(t._s(e.$index+1))])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"category_name",label:"品类",align:"center","min-width":"30%"}}),t._v(" "),s("el-table-column",{attrs:{prop:"num",label:"商品总数",align:"center","min-width":"30%"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"foot-table"},[s("span",{staticClass:"foot-table-text"},[t._v(t._s(e.row.num))])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"sale",align:"center",label:"交易量","min-width":"25%"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"foot-table"},[s("span",{staticClass:"foot-table-text"},[t._v(t._s(e.row.sale))])])]}}])})],1)],1)]),t._v(" "),s("el-col",{attrs:{xs:24,lg:7}},[s("div",{staticClass:"footer-right"},[s("div",{staticClass:"footer-right-top"},[s("span",{staticClass:"footer-right-top-text"},[t._v("商家成长")]),t._v(" "),s("div",{staticClass:"footer-right-top-item"},[s("div",{staticClass:"footer-right-top-img footer-top-one",on:{click:function(e){return t.openDia()}}},[s("span",[t._v("规则中心")]),t._v(" "),s("p",[t._v("GO>")]),s("p")]),t._v(" "),s("div",{staticClass:"footer-right-top-img footer-top-two",on:{click:function(e){return t.openDia()}}},[s("span",[t._v("学习中心")]),t._v(" "),s("p",[t._v("GO>")]),s("p")]),t._v(" "),s("div",{staticClass:"footer-right-top-img footer-top-thr",staticStyle:{"margin-top":"15px"},on:{click:function(e){return t.openDia()}}},[s("span",[t._v("商家成长")]),t._v(" "),s("p",[t._v("GO>")]),s("p")])])]),t._v(" "),s("div",{staticClass:"footer-right-bot"},[s("img",{staticStyle:{width:"100%"},attrs:{src:a("ed58"),alt:""}})])])])],1)],1),t._v(" "),s("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("p",{staticClass:"dia-text"},[t._v("该模块内容正在建设中,敬请期待")])])],1)])},i=[],r=(a("96cf"),a("3b8d")),n=a("b775");function o(){return Object(n["a"])({url:"local/statistical/statisticalHome",method:"get"})}function l(t){return Object(n["a"])({url:"local/statistical/operationalData",method:"get",params:t})}function c(t){return Object(n["a"])({url:"local/statistical/storeData",method:"get",params:t})}function d(t){return Object(n["a"])({url:"local/statistical/getGoodsSale",method:"get",params:t})}var u=a("eab4"),p={name:"Index",components:{LineChart:u["default"]},data:function(){return{delivery:"",beSettled:"",beGmv:"",dialogVisible:!1,numberValue:"1",operate:{},waitFor:{},numberChartData:{},numberChartDataCopy:{},storeOrder:{},storeGoods:[],storeGoodsCopy:[],cateGory:[],numSelect:"11",isShowData:!0,value1:[],value2:[],pickerOptions:{disabledDate:function(t){var e=(new Date).getTime(),a=2592e6,s=e-a;return t.getTime()>Date.now()||t.getTime()<s}},options:[{value:"一",label:"一级类目"},{value:"二",label:"二级类目"},{value:"三",label:"三级类目"}],Category:"一级类目"}},created:function(){this.GetDefaultData()},watch:{value1:{handler:function(){null==this.value1&&(this.value1=[])}}},methods:{openDia:function(){this.dialogVisible=!0},handleClose:function(t){t()},goMyAssets:function(){this.$router.push("/system/asset/myAsset")},goCommodity:function(){this.$router.push("/system/goods/add")},afterSale:function(){this.$router.push("/system/repeat/retreat")},godeliver:function(){this.$router.push("/system/order/index")},GetDefaultData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,s,i,r,n,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o();case 2:for(e=t.sent,this.operate=e.data.operational_data,this.waitFor=e.data.seller_todo_data,this.storeOrder=e.data.store_order_data,a=e.data.store_goods_sale_data,s=0;s<a.length;s++)i=a[s],i.total_price=i.total_price/100;this.storeGoods=a,this.cateGory=e.data.category_sale_data,this.delivery=e.data.operational_data.delivery_rate/100,this.beSettled=e.data.operational_data.unsettled_amount/100,this.beGmv=e.data.operational_data.order_total_price/100,r={},r.date=this.storeOrder.date,n=this.storeOrder.customer_price.map((function(t){return t/100})),l=this.storeOrder.order_total.map((function(t){return t/100})),r.customerprice=n,r.ordercount=this.storeOrder.order_count,r.ordertotal=l,this.numberChartData=r,this.numberChartDataCopy=r,this.storeGoodsCopy=a;case 23:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dateTimechange:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,s,i,r,n,o,l,u,p,h,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(null!=this.value1){t.next=8;break}this.value1=[],e=this.numberChartDataCopy,a=this.storeGoodsCopy,this.numberChartData=e,this.storeGoods=a,t.next=39;break;case 8:if("11"!=this.numSelect){t.next=26;break}return s={},s.start_time=this.value1[0]/1e3,s.end_time=this.value1[1]/1e3,s.seller_id=this.$store.state.user.sellerid,t.next=15,c(s);case 15:i=t.sent,r={},r.date=i.data.date,n=i.data.customer_price.map((function(t){return t/100})),r.customerprice=n,r.ordercount=i.data.order_count,o=i.data.order_total.map((function(t){return t/100})),r.ordertotal=o,this.numberChartData=r,t.next=39;break;case 26:if("13"!=this.numSelect){t.next=38;break}return l={},l.start_time=this.value1[0]/1e3,l.end_time=this.value1[1]/1e3,t.next=32,d(l);case 32:for(u=t.sent,p=u.data,h=0;h<p.length;h++)m=p[h],m.total_price=m.total_price/100;this.storeGoods=p,t.next=39;break;case 38:return t.abrupt("return");case 39:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),RankTimechange:function(){},changeCellStyle:function(t,e,a,s){return"品类"===t.column.label?"color: #000000;font: 500 14px AlibabaPuHuiTi-Regular;margin-left:50px;":""},getnumbersTime:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a,s,i,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a={},a.seller_id=this.$store.state.user.sellerid,1!=e){t.next=12;break}return t.next=5,l(a);case 5:s=t.sent,this.delivery=s.data.delivery_rate/100,this.beSettled=s.data.unsettled_amount/100,this.beGmv=s.data.order_total_price/100,this.operate=s.data,t.next=32;break;case 12:if(7!=e){t.next=23;break}return a.day=e,t.next=16,l(a);case 16:i=t.sent,this.delivery=i.data.delivery_rate/100,this.beSettled=i.data.unsettled_amount/100,this.beGmv=i.data.order_total_price/100,this.operate=i.data,t.next=32;break;case 23:if(15!=e){t.next=32;break}return a.day=e,t.next=27,l(a);case 27:r=t.sent,this.delivery=r.data.delivery_rate/100,this.beSettled=r.data.unsettled_amount/100,this.beGmv=r.data.order_total_price/100,this.operate=r.data;case 32:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getnumData:function(t){if(11==t)this.isShowData=!0,0!==this.value1.length&&this.dateTimechange();else{if(13!=t)return;this.isShowData=!1,0!==this.value1.length&&this.dateTimechange()}}}},h=p,m=(a("b152"),a("2877")),v=Object(m["a"])(h,s,i,!1,null,"17e0ac5e",null);e["default"]=v.exports},"2a6d":function(t,e,a){t.exports=a.p+"static/img/stay3.e071f36b.png"},"5af2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACctJREFUaEPtWGuMVdUV/tZ53cfc4c7cKQMoMoI8BKGMFpBH1KJQLFqkUGtSE1NjRNIqtUpb05L08aOxMX3EVGLTPwZsFGgtNqUxVBFIsa0aTSuvAirC8B4GnJk793XOXs3a+5w7996ZCQEGjQmXzAznzD77rG993/rW2kP4jH/oMx4/LgP4tBm8zMBlBi4yA30kdM9vitPZsp4EaCrzJ1DkBBAhC/Am9uwnNjxEH58PpioAy37H7tmiehPMrYECHEtvfuk+BPgBwAzY8i7Qj9etsH92Pi+sCu/uX3GG3OAD30d6/BWEaWMIHO4WAZGf8pB+MHw6uqdv1d4L18va6JnopRJ0TwHY9A6jo4sFxMb1K5yvXhQA2Gq/Y3PmazMtfK6eIEwArAMj/c8EThTqy0igrDX9/whECGggUHI/EQNeeZexdScj5g4CALbV/qRnAMRdQ68OgEzwvcEJKNJANDRSIIgODLAqIHIj3KcWTNwDtu5ibHmPEfPw5/WPOEsuigEBkPA4s/RGQsIlKNbvhkXyZSLRIRPBJvO7SDpybaSiqkGXWauWkWwnSRIArwsDgwlgyQyC5wDpJGHiCKArT9jZBjQPYYxtBs7mCP87DgxNMcY0A7miuTZsRXUiQMxFFXsV9SAAtu0WCSnEPBocBuIeZ5ZMJ7g2MCwNTB9toTPP2LoXaGkCpl5F6Mgy3jhgrqeMJPSUgH8eMLIStgwrUkBWdb1E8gpZEQDbdwsLweACWDxNJAQ4NpBOAL4CPs4J5YT6OFAKgM48tMxSMSBg1ixF5mRqIKqPSDp96yPmAq/vBF57T8FxsGHTSufrF10DwsDiLxASHqCUBAdYlukLUtQShgSorwEoNlkXWzSZ1ysMgLJ8QnByj6VKAJsYqTiw5wjw/jHgygzemjeJnir4ONHeg6OzrsH7ZLIw4KdPH5AiFgCLbjAAyi5U4SxRnk2WTWGbgGVRZK+ha9X0BjEF12Zk6oDGJKEuBrAkSUFs1I+5yPoBgmKAns4e3n26m//e3W2tv2kyHeoPxYAAvnJ9CKC3X/VpUpX2KptHLtVf4ZpuIkEDozJAMkyO3C+UgIIPuA7y9TGcZtZbkWUhxozY6S4cOdQePDVrgvP7WhADArhTAEgfqHii0klEMpWO09snJPORdKI+YTi6sgG4KmM2FCYi+y2FADwH+ZQBUBWXZcPtKXLywxP8h/Yu67EFUykbhTUggDtaDQCt/yp99yISeUltVI4IRlKhtEI5SbCjGkk7luxXO56owNCTjCHvuWhXClT0QbJ/9LFskB+gYU9b8PIptr+5cBwVIsMoL5JZSNeAy5mFrSSUoiFJmDVWCrR6qpO9d7Ux2s5weegzDFX7vmh72BDChOEm61FQAlxkJOjbOoAd+4GD7eyPyKBz1hgqjR0KXxxQhr2Sb3Jk20B3gRv2HuXfzhlv/2BgAB5nvjyFpDMi4RHGNfeOEGyJs5vPodPQ/UDcx7AUyicsXAHp2oTWUYS40ysbCTzvA5t3AeveUtixj3GynWGVzL5eA7i1xSotnWblllyP3KgmBLlCCMKBdfwsxw8eC+64ZYr7Rv8Scjlz++dJt3l5rC5mbLJ2UNOBawkx8j4hX4yGPrNW5NLSRLimmXQm5RNzgG37gVV/UvjPPgUKgEAK2u6Vi/Q/uyiFAjQ2U/DoQju7/GZkxbYdCxwAqd2Hgr/OGOfcOyCABVNIN7HmNOHWSdXyqXUCuT7VBezYp8xcHy4XRm5oIS2VqJbqPGDB0wo7/qFQTPe3U/U9Jw/EGklt/b7VfmUjBakY2HVgHW5nOnKmNH9AAPMnGwYMCGk64cY1o3Okw+4C6XFDMxW6TGOdkY9pfua+gFm0WmHLvxT8eP8AbJESG2aEocZGqHXL7Y6WDAVD6xFIXJ09SO85pr43IIB51xFk1JWXB0HFGF3pOhVDWuRUkdXK6DGqiXDtCNJjSMSKONvi1QqvRQDEcQVgWFhuFrh1joVFrYTvrAmgikC6idSLD1odo5ooaB6CIGEDRR91u9qCV/oAkAON53Jm/nUknbGcufKhpeZkNdB9cZ9xwwljRP8yN4TngSoAMSAWM3MW56GLeO4MwsaHbbz0LnD/al+PMg0ZUi8sEwAImodQELe1IXi724IP+2Ug5nJm3iTSBRdRT+U5p++JK2pIlf1AND/5CsLIphBA6EyVAGTzH95rY8Ekwpee9DFzooXN37Xw/L+B+5/xDSssEuoLgBnOnqOqoxrAera9k8EJx0HTAqmB/mahqlNZRTeumfklc6ObpXmFAMLfy3x11zNGQsoBJlxtYfNjFs70ACMbgb/tBB5Y7aMorNimBoSBSglFDOxpCw5Q84rSbEthvg9Q0kNieJoecQiJq4f2TpemtVace2s6SDkLFWtktrl5vIV7biTkQ3/XZ2AXWPqswva3TBE7OWDMGAubH7ewZS+w7FkfgZz0QlsVAOkGUi8+ZHe0aAlBS6jkI7WzLdhII1aUTipgqA6SzfgsP7UuzUijv0UdNLqWNeWRIBzUIlxyv1AEZk6wsHaZVd4rHBfwwBqFV7cpFOuNC4nrJNKEXIF10Vb2BOkHDUNJrV9udQxPIxiepiBZ6ULDV5ReZeA2kZv+A0TFp79JXLJozlnmZzjel6+1bMNE2A7w3IMOpow0E6ckQpqRdPDHNyi889/QSoU5aXSSqKjNC7AikGqEWrXI7rplHAr1ceLmNIKkB+ujk+y3ddI8GraS6yjvT5e57Nxt5fxWyLjwwrecL942CStzBfRETwuI01nQEy+pxB+3qwRLUpyaTlwArh1rlVbdRV0yF0nimuqIMykEREjtPhy8PH2sc9+5W+z5xdxnNTM7BR9bFWMisQah3xkwKFsEbXhbJX7+F65vP8Y2u4YJOwH+xk1Wz32zrZ46j1l6TFOK1JAkOOmCjnawe/Ak3T53Cr19yQFIsNk8LwTheWLIhBNORUBJ6bM17TnGznM7OPnmAfaGNVJwzwzKTR+NUrEEGQJ5SJLkIKQ7cHeBG/ce4V/MmWD/tMZLLjLV53g8W+QHifFLMHIA/Gh5IQCJYRRLoI4cW2Ii8iV9J+URp+JQ4lwSfL6E9L6jam33YevhuXNJ7/GJMBAFm83ztwn4CRNcYmTl5fqPAjBsFEuwcuEclPDAngv2LH3UjHUXOP7BcV4Tz1mPTp5MwmTk7pc287W750p8k1L4EQGzmcCkkI/WKO49hdkW2HbgBgG8U528r61D/XrOBGdt7X6fKAPRy5nZzRVxJ4C7GWitaCPaCsVxigHsM1380aku3ljMW+tmX0cd/aX6UwEwmJxfBjCY2byQvS4zcCFZG8xnLjMwmNm8kL0+8wz8H4a6G7404ebCAAAAAElFTkSuQmCC"},"6f91":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAA9xJREFUSEvFlW2IVFUYx3/PuWdmdmd323XJNFeTsPcy+9KmaxCBfhS0kI3ItgJbMl8Q+1ChNrai0YYbEeKHMlE2scCCQCnEDCU1KKwN+pDWNlS+7ba2ui9z59z7xJlxZld8CSnxXC7MPeee53ee//N/7gjXeMg1js/1BzRm3NNGdMPpM7LwWIf95I4Vbu6YGv3AoCsOZpKb/02BK2bw8HodMzCQ3z8USu3y2XZm62zJvrlLp2zak9+VTuEabkrM+ny5HL8SpAzI9uiDQcAElDhpoa6S3LIPo8e++D5+fm6j2dneHLwH2MEc+trO+Ikdh+Kn5s+QLa/PC3aEITZ0iL9i5a8J9XKgBC0ATpyJXk2nZKFBqgCtSMJPf2i0eGs0duwN2HdbbG99Fc45qEiiJ/uxi7e6G0/0idv4jOm5b5LIUK5YT0Vzg6F8Nq5WXvTPhckzgzqQDEgPh4qLhXRKad+tdB6IWN9smX2vMJwHVRCBqpSyqwte2e5oeSRg6SwhHwuBKBWJQsi/qyqkrgwIo3h4KCepn08qf/Zpgdr1O/SeU6bfJiQMxFpM2kMSAeQcfHNMqa8W7m4AIzC+FqaMM9SlORcYqSkD9h/RN6ZMZunRU5rs+i0Ock5IWsUYcBHE8cVeMEYLoCiGvBNsAHc2SDx1kuS7s3w8Y6osKAMyX6r9am9+2uRbWHK8T1q8kuK1KI/zxy/kVvpd3l6YioH6KnYHNnq7c3tqL/vEjXqjGKnh2bBl4q1mS+y0HMZL4m+fTWmU5PKylEZgoOckayeNs2v2ZYrBLwJMWxK1Vo+PN0X5kcXQQaSQSoBn+JMOh+ADejuXhj9AOEh7T4Vd3Z2R4UsCZqwLWzWUTaVFX8h7GuD2mw17umJy+WLQpruE/gE4fNS7ZgQiAe2pyK7ed1nAmrBVtQjwJeg5C6vmGRY0GeZscGR7YUIddC4KOJKFRZsdtWkpy6fQXslVAHrPwsp5huaHDPPfcXT3QkMdbGu1fJdVlm1zVKekIFfBwlcL8Bm0zTc0NxrmduT5tUeYWA8fLbZ82620vu+oqRwBCLyVwq66rETT14QvoLKxVP2+AXjuUcOcB4Sl2xynzwr11Urb45ZfTinrPo2o8RKV3KRskH678mCHDF26yJnck4rpLC36JkpXQDoBHuY7wMeqqfSdLfQPKcEoq6rw0mG1HWTEm+1imzatHZocR7YTZWYpCxcXu3W0JfNREZSwxR45X4GsonMOZ1I/jPjq/MeuPKEqjW35+41KG9DkP43IBa07em+h4RWswI8YXj60yn6N+KlR1r1wx///dP3/k/9rTv8A5HOTKEt2ta4AAAAASUVORK5CYII="},7072:function(t,e,a){t.exports=a.p+"static/img/stay1.321d33f9.png"},aafe:function(t,e,a){},b152:function(t,e,a){"use strict";a("aafe")},bd83:function(t,e,a){t.exports=a.p+"static/img/stay4.96349d02.png"},e88e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAAXNSR0IArs4c6QAAAehJREFUKFNtkjtoFFEUhr9z753dZLNJjJLORxO7iFiI2lhZBKuAIHYGURG0UUxlExSTJkQMWgQflbWoUZuoaKVFSkG0MYoS8iCbx+5kJjP3HpnFSERPe873/+cl/A59cewkO3bfRxVcibDyA12dBVeGEKA+g+Tro3Zg9XqBiL48eiBs29VvxJ3BtewsisLqT3RtDrURYkuwvgTxVyhVY1nauGViPyn6fuADxh3Cp7FmSSXU5yFdA2MbGJdi7HZqn0FzsKW61LKqif0n8VN9izSWJkJWf6NR+yvjU9WoPOXWV8ZQWfBkQySzfUTVSHJ/wSwED3pXsqf7JyWnV0L+IJS7bog1Klk8YvunrxWz5A+r54la7+AkkjgfNzUOY40THa92+z29M2pNRXKPao6kje82n99Hkjvv7HMtR0fEK3auMAOyxl4pVPVRT0cgGVb1F9EEfPIN09KGcRFOFzRIj10MSMozJD0ng/X5JrgZ2UTXsrTbTsRAkSnU04CpKZJ5iJfLMsRG8xxbQf1YOZi/bXsnrbSKgqQeiQNNIcIJubr8eLP+L7DZ9nC1m0o0SKKnsdqFNfco5bfl0tqXrSb/gH8+aazjCdjjcqVW2gr811FvVk/R5s4STLG+HqATYRoVh+hruVwb2QR/ATP02/9HR4TLAAAAAElFTkSuQmCC"},eab4:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},i=[],r=a("313e"),n=a.n(r),o=a("feb2");a("817d");var l={mixins:[o["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{moneyMax:function(t){var e=Math.max.apply(null,t),a=2,s=!0,i=String(e).length;if(i<=a)return e;var r=Math.pow(10,a);return s?Math.ceil(e/r)*r:Math.floor(e/r)*r},numberMax:function(t,e){var a=Math.max.apply(null,t),s=Math.max.apply(null,e),i="";i=a>=s?a:s;var r=2,n=!0,o=String(i).length;if(o<=r)return i;var l=Math.pow(10,r);return n?Math.ceil(i/l)*l:Math.floor(i/l)*l},initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.customerprice,a=t.ordercount,s=t.ordertotal,i=t.date;this.chart.setOption({xAxis:{type:"category",data:i,boundaryGap:!0,axisTick:{show:!0}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:[{type:"value",name:"交易量",min:0,max:this.numberMax(this.chartData.customerprice,this.chartData.ordercount)<10?10:this.numberMax(this.chartData.customerprice,this.chartData.ordercount),interval:this.numberMax(this.chartData.customerprice,this.chartData.ordercount)<10?2:this.numberMax(this.chartData.customerprice,this.chartData.ordercount)/5,axisLabel:{formatter:"{value}"}},{type:"value",name:"总订单金额",min:0,max:this.moneyMax(this.chartData.ordertotal)<10?10:this.moneyMax(this.chartData.ordertotal),interval:this.moneyMax(this.chartData.ordertotal)<10?2:this.moneyMax(this.chartData.ordertotal)/5,axisLabel:{formatter:"{value} 元"}}],legend:{data:["总订单数","总订单金额","客单价"]},series:[{name:"总订单数",smooth:!1,type:"bar",itemStyle:{normal:{color:"#3A64E4",lineStyle:{color:"#3A64E4",width:1},areaStyle:{color:"#f3f8ff"}}},data:a,animationDuration:2800,animationEasing:"quadraticOut"},{name:"总订单金额",smooth:!1,type:"line",yAxisIndex:1,itemStyle:{normal:{color:"#EE7945",lineStyle:{color:"#EE7945",width:2}}},data:s,animationDuration:2800,animationEasing:"quadraticOut"},{name:"客单价",smooth:!1,type:"bar",yAxisIndex:0,itemStyle:{normal:{color:"#49D3CE",lineStyle:{color:"#49D3CE",width:2}}},data:e,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},c=l,d=a("2877"),u=Object(d["a"])(c,s,i,!1,null,null,null);e["default"]=u.exports},ed58:function(t,e,a){t.exports=a.p+"static/img/more.44ea7a34.png"},feb2:function(t,e,a){"use strict";a.r(e);var s=a("ed08");e["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){this.initListener()},activated:function(){this.$_resizeHandler||this.initListener(),this.resize()},beforeDestroy:function(){this.destroyListener()},deactivated:function(){this.destroyListener()},methods:{$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},initListener:function(){var t=this;this.$_resizeHandler=Object(s["d"])((function(){t.resize()}),100),window.addEventListener("resize",this.$_resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},destroyListener:function(){window.removeEventListener("resize",this.$_resizeHandler),this.$_resizeHandler=null,this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},resize:function(){var t=this.chart;t&&t.resize()}}}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a78bde0"],{7793:function(t,e,n){"use strict";n("d0ad")},"92fc":function(t,e,n){t.exports=n.p+"static/img/4.3f411af6.png"},a570:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"entryDetails"},[n("div",{staticClass:"logo-bg"},[t.settitle&&t.settitle.topLogo?n("img",{attrs:{src:t.settitle.topLogo,alt:""}}):t._e()]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"confirm-btn"},[n("p",[n("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary",round:""},on:{click:t.nextStep}},[t._v("\n 立即入驻  "),n("i",{staticClass:"el-icon-right"})])],1)])])},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"main-con"},[i("img",{attrs:{src:n("92fc"),alt:""}})])}],a=n("5302"),c={name:"Index",data:function(){return{channel_id:0,settitle:{bottomCopyright:"",businessHours:1,companyAddress:"",contactTel:"",custServiceQrcode:"",hotlineTel1:"",hotlineTel2:"",onlineTimeEnd:"18:00",onlineTimeStart:"09:00",recordNum:"",topLogo:""}}},created:function(){},mounted:function(){},methods:{getIndexInfo:function(){var t=this,e=(window.location.host,{type:2,site_type:4});Object(a["e"])(e).then((function(e){1==e.code&&(t.channel_id=e.data.channel.id,t.settitle.topLogo=e.data.channel_site[0].logo)}))},getWebSite:function(){var t=this,e={domain:window.location.host,type:2,site_type:4};Object(a["f"])(e).then((function(e){1==e.code&&(t.settitle.topLogo=e.data.channel_site[0].logo)}))},nextStep:function(){this.$router.push("/fillMainInf")}}},s=c,l=(n("7793"),n("cba8")),r=Object(l["a"])(s,i,o,!1,null,"38a02556",null);e["default"]=r.exports},d0ad:function(t,e,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a9cac1a"],{4656:function(e,t,s){"use strict";s("6def")},"6b1f":function(e,t,s){"use strict";s.d(t,"g",(function(){return o})),s.d(t,"i",(function(){return a})),s.d(t,"b",(function(){return r})),s.d(t,"d",(function(){return n})),s.d(t,"a",(function(){return l})),s.d(t,"l",(function(){return c})),s.d(t,"j",(function(){return g})),s.d(t,"c",(function(){return u})),s.d(t,"m",(function(){return m})),s.d(t,"e",(function(){return p})),s.d(t,"h",(function(){return d})),s.d(t,"f",(function(){return h})),s.d(t,"k",(function(){return f}));var i=s("b775");function o(e){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:e})}function a(e){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:e})}function r(e){return Object(i["a"])({url:"/local/organization",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/local/brands",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/local/upbrands",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:e})}function u(e){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/local/cate",method:"get",params:e})}function d(e){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:e})}},"6def":function(e,t,s){},b907:function(e,t,s){"use strict";s("bae4")},ba53:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"fill-store-inf"},[s("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[s("el-steps",{attrs:{active:2,"align-center":"","finish-status":"success"}},[s("el-step",{attrs:{title:"注册账号"}}),e._v(" "),s("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),s("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),s("div",{staticClass:"main-con"},[s("el-form",{ref:"storeForm",attrs:{model:e.storeForm,rules:e.shopRules,"label-width":"180px",size:"small"}},[s("el-form-item",{attrs:{label:"电商平台经验:",prop:"is_business_experience"}},[s("el-radio-group",{model:{value:e.storeForm.is_business_experience,callback:function(t){e.$set(e.storeForm,"is_business_experience",t)},expression:"storeForm.is_business_experience"}},[s("el-radio",{attrs:{label:1}},[e._v("有")]),e._v(" "),s("el-radio",{attrs:{label:0}},[e._v("无")])],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺名称:",prop:"store_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入店铺名称"},model:{value:e.storeForm.store_name,callback:function(t){e.$set(e.storeForm,"store_name",t)},expression:"storeForm.store_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"经营类目:",prop:"scope"}},[s("el-select",{staticStyle:{width:"400px"},attrs:{multiple:"",placeholder:"请选择..."},on:{"remove-tag":e.removeTag,"visible-change":function(t){return e.scopeVisibleChange(t)}},model:{value:e.storeForm.scope,callback:function(t){e.$set(e.storeForm,"scope",t)},expression:"storeForm.scope"}},e._l(e.scopeOptions,(function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺LOGO:",prop:"shop_logo"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{class:["uploadData",{"hiden-dom":e.logoImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card",limit:1,"on-exceed":e.showTip1,"before-upload":e.beforeUpLogoImg,"http-request":e.uploadLogoImgs,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.logoImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[s("span",{staticClass:"tips-text"},[e._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]),e._v(" "),s("el-form-item",{attrs:{label:"运营负责人:",prop:"emergency_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入运营负责人姓名"},model:{value:e.storeForm.emergency_name,callback:function(t){e.$set(e.storeForm,"emergency_name",t)},expression:"storeForm.emergency_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"联系电话:",prop:"emergency_tel"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入联系电话"},model:{value:e.storeForm.emergency_tel,callback:function(t){e.$set(e.storeForm,"emergency_tel",t)},expression:"storeForm.emergency_tel"}})],1),e._v(" "),s("el-form-item",[s("p",{staticStyle:{width:"580px","line-height":"24px","font-size":"14px",margin:"0"}},[e._v("需要提交特殊产品资质的类目请将资质上传在此处,包括全国工业生产许可证、3C、医疗品械\n 生产许可证、化妆品生产企业许可证等,根据具体类目资质要求提交")])]),e._v(" "),s("el-form-item",{attrs:{label:"其他资质:"}},[s("div",{staticClass:"auth-con"},e._l(e.qualificationList,(function(t,i){return s("div",{key:t.id,staticClass:"single-upload-con"},[s("div",{directives:[{name:"show",rawName:"v-show",value:!t.url,expression:"!item.url"}],staticClass:"single-auth-img el-icon-plus",on:{click:function(t){return e.upPreAuthImg(i)}}}),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.url,expression:"item.url"}],staticClass:"single-auth-img-con"},[s("img",{staticClass:"auth-spec-img",attrs:{src:t.url,alt:""}}),e._v(" "),s("span",{staticClass:"span-img-del-loading"},[s("span",{staticClass:"span-img-del el-icon-zoom-in zoom-span-block",on:{click:function(s){return e.viewSingleSpecImg(i,t)}}}),e._v(" "),s("span",{staticClass:"span-img-del el-icon-delete del-span-block",on:{click:function(s){return e.delSingleSpecImg(i,t)}}})])]),e._v(" "),s("div",{staticClass:"single-title"},[e._v(e._s(e.authTitleFormatter(t.content)))]),e._v(" "),s("input",{ref:"hxz"+i,refInFor:!0,staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*"},on:{change:function(s){return e.changeIMG(i,t)}}})])})),0),e._v(" "),s("div",{staticStyle:{width:"680px","line-height":"24px","padding-top":"6px"}},[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})]),e._v(" "),s("span",{staticClass:"tips-text"},[e._v("图片大小在500KB以内,支持png/jpg,每个上传位置仅限一张,请确保图片清晰")])])]),e._v(" "),s("el-form-item",{staticClass:"confirm-btn"},[s("div",[s("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:e.back}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.next("storeForm")}}},[e._v("提交审核")])],1)])],1)],1)]),e._v(" "),s("el-dialog",{staticClass:"img-dialog-con",attrs:{visible:e.imgDialog,"destroy-on-close":!0,width:"60%",center:"","close-on-click-modal":!1},on:{"update:visible":function(t){e.imgDialog=t}}},[s("img",{staticClass:"img-spe",attrs:{src:e.qualificationUrl,alt:""}})])],1)},o=[],a=(s("ac6a"),s("28a5"),s("6b1f")),r={name:"FillShopInf",data:function(){var e=this,t=function(t,s,i){e.logoImgFileList.length>0?i():0===e.logoImgFileList.length&&i(new Error("店铺logo图片至少上传一张"))},s=function(e,t,s){var i=/^1[3456789]\d{9}$/;i.test(t)?s():s(new Error("手机号码格式有误"))};return{dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,logoImgFileList:[],businessImgFileList:[],scopeOptions:[],storeForm:{is_business_experience:0,store_name:"",scope:[],shop_logo:"",business_auth:"",emergency_name:""},shopRules:{store_name:[{required:!0,message:"店铺名称不能为空",trigger:"blur"},{max:36,message:"店铺名称最多输入36个字符",trigger:"blur"}],scope:[{required:!0,message:"经营类目至少选择一种",trigger:"change"}],shop_logo:[{required:!0,message:"店铺Logo至少上传一张图片",validator:t}],emergency_name:[{required:!0,message:"运营负责人不能为空",trigger:"blur"}],emergency_tel:[{required:!0,message:"联系人手机号码不能为空",trigger:"blur"},{required:!0,validator:s,trigger:"blur"}]},qualificationList:[],qualificationUrl:"",imgDialog:!1}},created:function(){var e=this;Object(a["e"])().then((function(t){1==t.code?e.scopeOptions=t.data:e.$message({type:"error",message:t.message?t.message:""})})),Object(a["g"])().then((function(t){1==t.code&&t.data.user?t.data.user.state>0&&e.getShop():e.$message({type:"error",message:t.message?t.message:"获取数据失败"})}))},mounted:function(){},methods:{showTip1:function(e,t){this.$message({message:"最多上传1张图片",type:"warning"})},showTip20:function(e,t){this.$message({message:"最多上传20张图片",type:"warning"})},beforeUpLogoImg:function(e){var t=e.size/1024>500;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过500kb",type:"warning"}),!1):void 0},beforeUpBusImg:function(e){var t=e.size/1024/1024>2;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},getShop:function(){var e=this;Object(a["j"])().then((function(t){if(1==t.code){if(e.storeForm.scope=[],""===t.data.scope)e.storeForm.scope=[];else{for(var s=t.data.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));e.storeForm=t.data,e.storeForm.scope=i}var a=[],r={};a=e.storeForm.shop_logo.split(","),a.length>0?a.forEach((function(t){r={},t&&(r.url=t,e.logoImgFileList.push(r))})):e.logoImgFileList=[],e.qualificationList=e.storeForm.qualification}else e.$message({type:"error",message:t.message?t.message:""})}))},uploadLogoImgs:function(e){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img,type:2};Object(a["m"])(i).then((function(e){1==e.code?(t.logoImgFileList.push({url:e.data.image_url}),t.$message({type:"success",message:"上传成功"}),t.$refs.storeForm.clearValidate("shop_logo")):t.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},uploadBusinessImgs:function(e){console.log(368,e)},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,t){for(var s=0;s<this.logoImgFileList.length;s++)e.uid===this.logoImgFileList[s].uid&&this.logoImgFileList.splice(s,1)},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,t){for(var s=0;s<this.businessImgFileList.length;s++)e.uid===this.businessImgFileList[s].uid&&this.businessImgFileList.splice(s,1)},getBase64:function(e){return new Promise((function(t,s){var i=new FileReader,o="";i.readAsDataURL(e),i.onload=function(){o=i.result},i.onerror=function(e){s(e)},i.onloadend=function(){t(o)}}))},back:function(){this.$router.push("/fillMainInf")},next:function(e){var t=this,s=!1;if(this.qualificationList.length>0){for(var i=0;i<this.qualificationList.length;i++)if(!this.qualificationList[i].url){s=!0;break}if(s)return void this.$message({type:"warning",message:"请上传对应资质所需的图片"})}for(var o="",r=0;r<this.storeForm.scope.length;r++)o+=this.storeForm.scope[r]+",";if(this.storeForm.scope=o.substring(0,o.length-1),this.logoImgFileList.length>0)for(var n=0;n<this.logoImgFileList.length;n++)0===n?this.storeForm.shop_logo=this.logoImgFileList[n].url:this.storeForm.shop_logo+=","+this.logoImgFileList[n].url;this.storeForm.qualification_auth=JSON.stringify(this.qualificationList),this.$refs[e].validate((function(e){if(e)Object(a["c"])(t.storeForm).then((function(e){if(1==e.code)t.$router.push("/reviewing");else if(t.$message({type:"error",message:e.message?e.message:"保存失败"}),""===t.storeForm.scope)t.storeForm.scope=[];else{for(var s=t.storeForm.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));t.storeForm.scope=i}}));else if(""===t.storeForm.scope)t.storeForm.scope=[];else{for(var s=t.storeForm.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));t.storeForm.scope=i}}))},removeTag:function(e){var t=this;if(e&&(0==this.storeForm.scope.length&&(this.qualificationList=[]),this.storeForm.scope.length>0)){var s={cate_ids:this.storeForm.scope};Object(a["k"])(s).then((function(e){1==e.code&&(t.qualificationList=e.data?e.data:[])}))}},scopeVisibleChange:function(e){var t=this;if(!e&&Array.isArray(this.storeForm.scope)&&this.storeForm.scope.length>0){var s={cate_ids:this.storeForm.scope};Object(a["k"])(s).then((function(e){1==e.code&&(t.qualificationList=e.data?e.data:[])}))}},upPreAuthImg:function(e){var t="hxz"+e;this.$refs[t][0].value="",this.$refs[t][0].click()},changeIMG:function(e,t){var s=this,i=t,o="hxz"+e,r=this.$refs[o][0].files[0];r.size>512e3?this.$message({type:"error",message:"规格图片不能大于 500k"}):this.getBase64(r).then((function(e){var t=e.split(",");s.Base64img=t[1];var o={img_data:s.Base64img,type:2};Object(a["m"])(o).then((function(e){e&&1==e.code?(i.url=e.data.image_url,s.$message({message:"上传成功",type:"success"})):s.$message({message:"上传失败,请重新上传",type:"error"})}))}))},delSingleSpecImg:function(e,t){t.url&&(t.url="",this.$message({type:"success",message:"删除成功"}))},viewSingleSpecImg:function(e,t){this.imgDialog=!1,t.url&&(this.imgDialog=!0,this.qualificationUrl=t.url)},authTitleFormatter:function(e){var t="";return e&&(t=e.trim()),t}}},n=r,l=(s("b907"),s("4656"),s("2877")),c=Object(l["a"])(n,i,o,!1,null,"13f0164c",null);t["default"]=c.exports},bae4:function(e,t,s){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d6345"],{"720d":function(t,e,i){(function(t,i){i(e)})(0,(function(t){"use strict";var e="0123456789abcdefghijklmnopqrstuvwxyz";function i(t){return e.charAt(t)}function r(t,e){return t&e}function n(t,e){return t|e}function s(t,e){return t^e}function o(t,e){return t&~e}function h(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function a(t){var e=0;while(0!=t)t&=t-1,++e;return e}var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="=";function f(t){var e,i,r="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),r+=u.charAt(i>>6)+u.charAt(63&i);e+1==t.length?(i=parseInt(t.substring(e,e+1),16),r+=u.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),r+=u.charAt(i>>2)+u.charAt((3&i)<<4));while((3&r.length)>0)r+=c;return r}function l(t){var e,r="",n=0,s=0;for(e=0;e<t.length;++e){if(t.charAt(e)==c)break;var o=u.indexOf(t.charAt(e));o<0||(0==n?(r+=i(o>>2),s=3&o,n=1):1==n?(r+=i(s<<2|o>>4),s=15&o,n=2):2==n?(r+=i(s),r+=i(o>>2),s=3&o,n=3):(r+=i(s<<2|o>>4),r+=i(15&o),n=0))}return 1==n&&(r+=i(s<<2)),r} (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c741e"],{"509f":function(t,e,i){(function(t,i){i(e)})(0,(function(t){"use strict";var e="0123456789abcdefghijklmnopqrstuvwxyz";function i(t){return e.charAt(t)}function r(t,e){return t&e}function n(t,e){return t|e}function s(t,e){return t^e}function o(t,e){return t&~e}function h(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function a(t){var e=0;while(0!=t)t&=t-1,++e;return e}var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="=";function f(t){var e,i,r="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),r+=u.charAt(i>>6)+u.charAt(63&i);e+1==t.length?(i=parseInt(t.substring(e,e+1),16),r+=u.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),r+=u.charAt(i>>2)+u.charAt((3&i)<<4));while((3&r.length)>0)r+=c;return r}function l(t){var e,r="",n=0,s=0;for(e=0;e<t.length;++e){if(t.charAt(e)==c)break;var o=u.indexOf(t.charAt(e));o<0||(0==n?(r+=i(o>>2),s=3&o,n=1):1==n?(r+=i(s<<2|o>>4),s=15&o,n=2):2==n?(r+=i(s),r+=i(o>>2),s=3&o,n=3):(r+=i(s<<2|o>>4),r+=i(15&o),n=0))}return 1==n&&(r+=i(s<<2)),r}
/*! ***************************************************************************** /*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved. Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use Licensed under the Apache License, Version 2.0 (the "License"); you may not use
......
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c7ece"],{5360:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"queryForm",attrs:{model:t.queryParams,inline:!0}},[a("el-form-item",{attrs:{label:"字典类型",prop:"dictType"}},[a("el-input",{attrs:{placeholder:"请输入字典类型",clearable:"",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.dictType,callback:function(e){t.$set(t.queryParams,"dictType",e)},expression:"queryParams.dictType"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"字典标签",prop:"dictLabel"}},[a("el-input",{attrs:{placeholder:"请输入字典标签",clearable:"",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.dictLabel,callback:function(e){t.$set(t.queryParams,"dictLabel",e)},expression:"queryParams.dictLabel"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{placeholder:"数据状态",clearable:"",size:"small"},model:{value:t.queryParams.status,callback:function(e){t.$set(t.queryParams,"status",e)},expression:"queryParams.status"}},t._l(t.statusOptions.values,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),t._v(" "),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:t.handleAdd}},[t._v("新增")])],1),t._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:t.single},on:{click:t.handleUpdate}},[t._v("修改")])],1),t._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:t.multiple},on:{click:t.handleDelete}},[t._v("删除")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.dataList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典编码",align:"center",prop:"dict_code"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典标签",align:"center",prop:"dict_label"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典键值",align:"center",prop:"dict_value"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典排序",align:"center",prop:"dict_sort"}}),t._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status",formatter:t.statusFormat}}),t._v(" "),a("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark","show-overflow-tooltip":!0}}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.parseTime(e.row.create_time)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return t.handleUpdate(e.row)}}},[t._v("修改")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return t.handleDelete(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}}),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.open,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"字典类型"}},[a("el-input",{attrs:{disabled:!0},model:{value:t.form.dictType,callback:function(e){t.$set(t.form,"dictType",e)},expression:"form.dictType"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据标签",prop:"dictLabel"}},[a("el-input",{attrs:{placeholder:"请输入数据标签"},model:{value:t.form.dictLabel,callback:function(e){t.$set(t.form,"dictLabel",e)},expression:"form.dictLabel"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据键值",prop:"dictValue"}},[a("el-input",{attrs:{placeholder:"请输入数据键值"},model:{value:t.form.dictValue,callback:function(e){t.$set(t.form,"dictValue",e)},expression:"form.dictValue"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"显示排序",prop:"dictSort"}},[a("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:t.form.dictSort,callback:function(e){t.$set(t.form,"dictSort",e)},expression:"form.dictSort"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"系统默认"}},[a("el-switch",{attrs:{"active-text":"是","inactive-text":"否","active-value":"1","inactive-value":"0"},model:{value:t.form.isDefault,callback:function(e){t.$set(t.form,"isDefault",e)},expression:"form.isDefault"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.statusOptions.values,(function(e){return a("el-radio",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.value))])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确 定")]),t._v(" "),a("el-button",{on:{click:t.cancel}},[t._v("取 消")])],1)],1)],1)},l=[],r=(a("ac6a"),a("aa3a")),s={name:"Data",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,total:0,dataList:[],defaultDictType:"",title:"",open:!1,statusOptions:[],typeOptions:[],queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},form:{},rules:{dictLabel:[{required:!0,message:"数据标签不能为空",trigger:"blur"}],dictValue:[{required:!0,message:"数据键值不能为空",trigger:"blur"}],dictSort:[{required:!0,message:"数据顺序不能为空",trigger:"blur"}]}}},created:function(){var t=this.$route.params&&this.$route.params.dictType;this.queryParams.dictType=t,this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(r["f"])(this.queryParams).then((function(e){t.dataList=e.data.list,t.statusOptions=e.data.searchStatus,t.total=e.data.total,t.loading=!1}))},statusFormat:function(t,e){return this.selectDictLabel(this.statusOptions.values,t.status)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={dictCode:void 0,dictLabel:void 0,dictValue:void 0,dictSort:0,isDefault:"0",status:"1",remark:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.queryParams.dictType=this.defaultDictType,this.handleQuery()},handleAdd:function(){this.reset(),this.open=!0,this.title="添加字典数据",this.form.dictType=this.queryParams.dictType},handleSelectionChange:function(t){this.ids=t.map((function(t){return t.dict_code})),this.single=1!=t.length,this.multiple=!t.length},handleUpdate:function(t){var e=this;this.reset();var a=t.dict_code||this.ids;Object(r["d"])(a).then((function(t){e.form={dictType:t.data.dict_type,dictCode:t.data.dict_code,dictLabel:t.data.dict_label,dictValue:t.data.dict_value,dictSort:t.data.dict_sort,isDefault:""+t.data.is_default,status:""+t.data.status,remark:t.data.remark},e.open=!0,e.title="修改字典数据"}))},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){e&&(void 0!=t.form.dictCode?Object(r["g"])(t.form).then((function(e){0===e.code?(t.msgSuccess("修改成功"),t.open=!1,t.getList()):t.msgError(e.msg)})):Object(r["a"])(t.form).then((function(e){0===e.code?(t.msgSuccess("新增成功"),t.open=!1,t.getList()):t.msgError(e.msg)})))}))},handleDelete:function(t){var e=this,a=t.dict_code||this.ids;this.$confirm('是否确认删除字典编码为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["b"])(a)})).then((function(){e.getList(),e.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){var t=this,e=this.queryParams;this.$confirm("是否确认导出所有数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["c"])(e)})).then((function(e){t.download(e.msg)})).catch((function(){}))}}},n=s,o=a("2877"),c=Object(o["a"])(n,i,l,!1,null,null,null);e["default"]=c.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c7ece"],{5360:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"queryForm",attrs:{model:t.queryParams,inline:!0}},[a("el-form-item",{attrs:{label:"字典类型",prop:"dictType"}},[a("el-input",{attrs:{placeholder:"请输入字典类型",clearable:"",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.dictType,callback:function(e){t.$set(t.queryParams,"dictType",e)},expression:"queryParams.dictType"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"字典标签",prop:"dictLabel"}},[a("el-input",{attrs:{placeholder:"请输入字典标签",clearable:"",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery(e)}},model:{value:t.queryParams.dictLabel,callback:function(e){t.$set(t.queryParams,"dictLabel",e)},expression:"queryParams.dictLabel"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-select",{attrs:{placeholder:"数据状态",clearable:"",size:"small"},model:{value:t.queryParams.status,callback:function(e){t.$set(t.queryParams,"status",e)},expression:"queryParams.status"}},t._l(t.statusOptions.values,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:t.resetQuery}},[t._v("重置")])],1)],1),t._v(" "),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:t.handleAdd}},[t._v("新增")])],1),t._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:t.single},on:{click:t.handleUpdate}},[t._v("修改")])],1),t._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:t.multiple},on:{click:t.handleDelete}},[t._v("删除")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.dataList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典编码",align:"center",prop:"dict_code"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典标签",align:"center",prop:"dict_label"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典键值",align:"center",prop:"dict_value"}}),t._v(" "),a("el-table-column",{attrs:{label:"字典排序",align:"center",prop:"dict_sort"}}),t._v(" "),a("el-table-column",{attrs:{label:"状态",align:"center",prop:"status",formatter:t.statusFormat}}),t._v(" "),a("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark","show-overflow-tooltip":!0}}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t.parseTime(e.row.create_time)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(a){return t.handleUpdate(e.row)}}},[t._v("修改")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(a){return t.handleDelete(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}}),t._v(" "),a("el-dialog",{attrs:{title:t.title,visible:t.open,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"字典类型"}},[a("el-input",{attrs:{disabled:!0},model:{value:t.form.dictType,callback:function(e){t.$set(t.form,"dictType",e)},expression:"form.dictType"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据标签",prop:"dictLabel"}},[a("el-input",{attrs:{placeholder:"请输入数据标签"},model:{value:t.form.dictLabel,callback:function(e){t.$set(t.form,"dictLabel",e)},expression:"form.dictLabel"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据键值",prop:"dictValue"}},[a("el-input",{attrs:{placeholder:"请输入数据键值"},model:{value:t.form.dictValue,callback:function(e){t.$set(t.form,"dictValue",e)},expression:"form.dictValue"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"显示排序",prop:"dictSort"}},[a("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:t.form.dictSort,callback:function(e){t.$set(t.form,"dictSort",e)},expression:"form.dictSort"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"系统默认"}},[a("el-switch",{attrs:{"active-text":"是","inactive-text":"否","active-value":"1","inactive-value":"0"},model:{value:t.form.isDefault,callback:function(e){t.$set(t.form,"isDefault",e)},expression:"form.isDefault"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.statusOptions.values,(function(e){return a("el-radio",{key:e.key,attrs:{label:e.key}},[t._v(t._s(e.value))])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入内容"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确 定")]),t._v(" "),a("el-button",{on:{click:t.cancel}},[t._v("取 消")])],1)],1)],1)},l=[],r=(a("1bc7"),a("aa3a")),s={name:"Data",data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,total:0,dataList:[],defaultDictType:"",title:"",open:!1,statusOptions:[],typeOptions:[],queryParams:{pageNum:1,pageSize:10,dictName:void 0,dictType:void 0,status:void 0},form:{},rules:{dictLabel:[{required:!0,message:"数据标签不能为空",trigger:"blur"}],dictValue:[{required:!0,message:"数据键值不能为空",trigger:"blur"}],dictSort:[{required:!0,message:"数据顺序不能为空",trigger:"blur"}]}}},created:function(){var t=this.$route.params&&this.$route.params.dictType;this.queryParams.dictType=t,this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(r["f"])(this.queryParams).then((function(e){t.dataList=e.data.list,t.statusOptions=e.data.searchStatus,t.total=e.data.total,t.loading=!1}))},statusFormat:function(t,e){return this.selectDictLabel(this.statusOptions.values,t.status)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={dictCode:void 0,dictLabel:void 0,dictValue:void 0,dictSort:0,isDefault:"0",status:"1",remark:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.queryParams.dictType=this.defaultDictType,this.handleQuery()},handleAdd:function(){this.reset(),this.open=!0,this.title="添加字典数据",this.form.dictType=this.queryParams.dictType},handleSelectionChange:function(t){this.ids=t.map((function(t){return t.dict_code})),this.single=1!=t.length,this.multiple=!t.length},handleUpdate:function(t){var e=this;this.reset();var a=t.dict_code||this.ids;Object(r["d"])(a).then((function(t){e.form={dictType:t.data.dict_type,dictCode:t.data.dict_code,dictLabel:t.data.dict_label,dictValue:t.data.dict_value,dictSort:t.data.dict_sort,isDefault:""+t.data.is_default,status:""+t.data.status,remark:t.data.remark},e.open=!0,e.title="修改字典数据"}))},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){e&&(void 0!=t.form.dictCode?Object(r["g"])(t.form).then((function(e){0===e.code?(t.msgSuccess("修改成功"),t.open=!1,t.getList()):t.msgError(e.msg)})):Object(r["a"])(t.form).then((function(e){0===e.code?(t.msgSuccess("新增成功"),t.open=!1,t.getList()):t.msgError(e.msg)})))}))},handleDelete:function(t){var e=this,a=t.dict_code||this.ids;this.$confirm('是否确认删除字典编码为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["b"])(a)})).then((function(){e.getList(),e.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){var t=this,e=this.queryParams;this.$confirm("是否确认导出所有数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["c"])(e)})).then((function(e){t.download(e.msg)})).catch((function(){}))}}},n=s,o=a("cba8"),c=Object(o["a"])(n,i,l,!1,null,null,null);e["default"]=c.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e2366"],{"7e79":function(t,e,o){!function(e,o){t.exports=o()}(window,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=6)}([function(t,e,o){var n=o(2);"string"==typeof n&&(n=[[t.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};o(4)(n,r),n.locals&&(t.exports=n.locals)},function(t,e,o){"use strict";var n=o(0);o.n(n).a},function(t,e,o){(t.exports=o(3)(!1)).push([t.i,'\n.vue-cropper[data-v-6dae58fd] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-6dae58fd] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-6dae58fd],\n .point4[data-v-6dae58fd],\n .point5[data-v-6dae58fd],\n .point7[data-v-6dae58fd] {\n display: none;\n}\n.point3[data-v-6dae58fd] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-6dae58fd] {\n top: 0;\n left: 0;\n}\n.point6[data-v-6dae58fd] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-6dae58fd] {\n bottom: -10px;\n right: -10px;\n}\n}\n',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),i=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[o].concat(i).concat([r]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&n[s[0]]||(o&&!s[2]?s[2]=o:o&&(s[2]="("+s[2]+") and ("+o+")"),e.push(s))}},e}},function(t,e,o){var n={},r=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),i=function(t){var e={};return function(t,o){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,o);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),s=null,a=0,c=[],h=o(5);function p(t,e){for(var o=0;o<t.length;o++){var r=t[o],i=n[r.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(v(r.parts[s],e))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(v(r.parts[s],e));n[r.id]={id:r.id,refs:1,parts:a}}}}function u(t,e){for(var o=[],n={},r=0;r<t.length;r++){var i=t[r],s=e.base?i[0]+e.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};n[s]?n[s].parts.push(a):o.push(n[s]={id:s,parts:[a]})}return o}function d(t,e){var o=i(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=c[c.length-1];if("top"===t.insertAt)n?n.nextSibling?o.insertBefore(e,n.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),c.push(e);else if("bottom"===t.insertAt)o.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=i(t.insertAt.before,o);o.insertBefore(e,r)}}function l(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function f(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){return o.nc}();n&&(t.attrs.nonce=n)}return g(e,t.attrs),d(t,e),e}function g(t,e){Object.keys(e).forEach((function(o){t.setAttribute(o,e[o])}))}function v(t,e){var o,n,r,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var c=a++;o=s||(s=f(e)),n=w.bind(null,o,c,!1),r=w.bind(null,o,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),d(t,e),e}(e),n=function(t,e,o){var n=o.css,r=o.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(n=h(n)),r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,o,e),r=function(){l(o),o.href&&URL.revokeObjectURL(o.href)}):(o=f(e),n=function(t,e){var o=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}.bind(null,o),r=function(){l(o)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=u(t,e);return p(o,e),function(t){for(var r=[],i=0;i<o.length;i++){var s=o[i];(a=n[s.id]).refs--,r.push(a)}for(t&&p(u(t,e),e),i=0;i<r.length;i++){var a;if(0===(a=r[i]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete n[a.id]}}}};var m=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}();function w(t,e,o,n){var r=o?"":n.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var i=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,n=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var r,i=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?o+i:n+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:t.scaleImg,mouseout:t.cancelScale}},[o("div",{staticClass:"cropper-box"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"}},[o("img",{ref:"cropperImg",attrs:{src:t.imgs,alt:"cropper-img"}})])]),t._v(" "),o("div",{staticClass:"cropper-drag-box",class:{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping},on:{mousedown:t.startMove,touchstart:t.startMove}}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"}},[o("span",{staticClass:"cropper-view-box"},[o("img",{style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"},attrs:{src:t.imgs,alt:"cropper-img"}})]),t._v(" "),o("span",{staticClass:"cropper-face cropper-move",on:{mousedown:t.cropMove,touchstart:t.cropMove}}),t._v(" "),t.info?o("span",{staticClass:"crop-info",style:{top:t.cropInfo.top}},[t._v(t._s(this.cropInfo.width)+" × "+t._s(this.cropInfo.height))]):t._e(),t._v(" "),t.fixedBox?t._e():o("span",[o("span",{staticClass:"crop-line line-w",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),o("span",{staticClass:"crop-line line-a",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),o("span",{staticClass:"crop-line line-s",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),o("span",{staticClass:"crop-line line-d",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point1",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point2",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point3",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point4",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point5",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point6",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,2)}}}),t._v(" "),o("span",{staticClass:"crop-point point7",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),o("span",{staticClass:"crop-point point8",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,2)}}})])])])};n._withStripped=!0;var r={getData:function(t){return new Promise((function(e,o){var n={};(function(t){var e=null;return new Promise((function(o,n){if(t.src)if(/^data\:/i.test(t.src))e=function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),o=e.length,n=new ArrayBuffer(o),r=new Uint8Array(n),i=0;i<o;i++)r[i]=e.charCodeAt(i);return n}(t.src),o(e);else if(/^blob\:/i.test(t.src)){var r=new FileReader;r.onload=function(t){e=t.target.result,o(e)},function(t,e){var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="blob",o.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},o.send()}(t.src,(function(t){r.readAsArrayBuffer(t)}))}else{var i=new XMLHttpRequest;i.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=i.response,o(e),i=null},i.open("GET",t.src,!0),i.responseType="arraybuffer",i.send(null)}else n("img error")}))})(t).then((function(t){n.arrayBuffer=t,n.orientation=function(t){var e,o,n,r,i,s,a,c,h,p=new DataView(t),u=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<u;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){s=c;break}c++}if(s&&(o=s+10,"Exif"===function(t,e,o){var n,r="";for(n=e,o+=e;n<o;n++)r+=String.fromCharCode(t.getUint8(n));return r}(p,s+4,4)&&(i=p.getUint16(o),((r=18761===i)||19789===i)&&42===p.getUint16(o+2,r)&&(n=p.getUint32(o+4,r))>=8&&(a=o+n))),a)for(u=p.getUint16(a,r),h=0;h<u;h++)if(c=a+12*h+2,274===p.getUint16(c,r)){c+=8,e=p.getUint16(c,r);break}return e}(t),e(n)})).catch((function(t){o(t)}))}))}},i=r,s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:Number,default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"}},computed:{cropInfo:function(){var t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){var t=navigator.userAgent,e=t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1;return e}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{checkOrientationImage:function(t,e,o,n){var r=this,i=document.createElement("canvas"),s=i.getContext("2d");switch(s.save(),e){case 2:i.width=o,i.height=n,s.translate(o,0),s.scale(-1,1);break;case 3:i.width=o,i.height=n,s.translate(o/2,n/2),s.rotate(180*Math.PI/180),s.translate(-o/2,-n/2);break;case 4:i.width=o,i.height=n,s.translate(0,n),s.scale(1,-1);break;case 5:i.height=o,i.width=n,s.rotate(.5*Math.PI),s.scale(1,-1);break;case 6:i.width=n,i.height=o,s.translate(n/2,o/2),s.rotate(90*Math.PI/180),s.translate(-o/2,-n/2);break;case 7:i.height=o,i.width=n,s.rotate(.5*Math.PI),s.translate(o,-n),s.scale(-1,1);break;case 8:i.height=o,i.width=n,s.translate(n/2,o/2),s.rotate(-90*Math.PI/180),s.translate(-o/2,-n/2);break;default:i.width=o,i.height=n}s.drawImage(t,0,0,o,n),s.restore(),i.toBlob((function(t){var e=URL.createObjectURL(t);r.imgs=e}),"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(""!==this.img){this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var o=e.width,n=e.height;i.getData(e).then((function(r){t.orientation=r.orientation||1;var i=t.maxImgSize;!t.orientation&&o<i&n<i?t.imgs=t.img:(o>i&&(n=n/o*i,o=i),n>i&&(o=o/n*i,n=i),t.checkOrientationImage(e,t.orientation,o,n))}))},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else e.src=this.img}},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(t.clientX?t.clientX:t.touches[0].clientX)-this.x,this.moveY=(t.clientY?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(t){var e=this;t.preventDefault();var o=this.scale,n=this.touches[0].clientX,r=this.touches[0].clientY,i=t.touches[0].clientX,s=t.touches[0].clientY,a=this.touches[1].clientX,c=this.touches[1].clientY,h=t.touches[1].clientX,p=t.touches[1].clientY,u=Math.sqrt(Math.pow(n-a,2)+Math.pow(r-c,2)),d=Math.sqrt(Math.pow(i-h,2)+Math.pow(s-p,2))-u,l=1,f=(l=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)>.1?.1:l)*d;if(!this.touchNow){if(this.touchNow=!0,d>0?o+=Math.abs(f):d<0&&o>Math.abs(f)&&(o-=Math.abs(f)),this.touches=t.touches,setTimeout((function(){e.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(t){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(t){var e=this;if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,n,r=t.clientX?t.clientX:t.touches[0].clientX,i=t.clientY?t.clientY:t.touches[0].clientY;o=r-this.moveX,n=i-this.moveY,this.$nextTick((function(){if(e.centerBox){var t,r,i,s,a=e.getImgAxis(o,n,e.scale),c=e.getCropAxis(),h=e.trueHeight*e.scale,p=e.trueWidth*e.scale;switch(e.rotate){case 1:case-1:case 3:case-3:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(h-p)/2,r=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(p-h)/2,i=t-h+e.cropW,s=r-p+e.cropH;break;default:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,r=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,i=t-p+e.cropW,s=r-h+e.cropH}a.x1>=c.x1&&(o=t),a.y1>=c.y1&&(n=r),a.x2<=c.x2&&(o=i),a.y2<=c.y2&&(n=s)}e.x=o,e.y=n,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()}),e.$emit("img-moving",{moving:!0,axis:e.getImgAxis()})}))},leaveImg:function(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,{passive:!1})},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var o=this.scale,n=t.deltaY||t.wheelDelta;n=navigator.userAgent.indexOf("Firefox")>0?30*n:n,this.isIE&&(n=-n);var r=this.coe,i=(r=r/this.trueWidth>r/this.trueHeight?r/this.trueHeight:r/this.trueWidth)*n;i<0?o+=Math.abs(i):o>Math.abs(i)&&(o-=Math.abs(i));var s=i<0?"add":"reduce";if(s!==this.coeStatus&&(this.coeStatus=s,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((function(){e.scaling=!1,e.coe=e.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(t){var e=this.scale;t=t||1;var o=20;if((t*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop:function(t){var e=this;t.preventDefault();var o=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,n=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((function(){var t=o-e.cropX,r=n-e.cropY;if(t>0?(e.cropW=t+e.cropChangeX>e.w?e.w-e.cropChangeX:t,e.cropOffsertX=e.cropChangeX):(e.cropW=e.w-e.cropChangeX+Math.abs(t)>e.w?e.cropChangeX:Math.abs(t),e.cropOffsertX=e.cropChangeX+t>0?e.cropChangeX+t:0),e.fixed){var i=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];i+e.cropOffsertY>e.h?(e.cropH=e.h-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],e.cropOffsertX=t>0?e.cropChangeX:e.cropChangeX-e.cropW):e.cropH=i,e.cropOffsertY=e.cropOffsertY}else r>0?(e.cropH=r+e.cropChangeY>e.h?e.h-e.cropChangeY:r,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(r)>e.h?e.cropChangeY:Math.abs(r),e.cropOffsertY=e.cropChangeY+r>0?e.cropChangeY+r:0)}))},changeCropSize:function(t,e,o,n,r){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=o,this.changeCropTypeX=n,this.changeCropTypeY=r,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0)},changeCropNow:function(t){var e=this;t.preventDefault();var o=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,n=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0,r=this.w,i=this.h,s=0,a=0;if(this.centerBox){var c=this.getImgAxis(),h=c.x2,p=c.y2;s=c.x1>0?c.x1:0,a=c.y1>0?c.y1:0,r>h&&(r=h),i>p&&(i=p)}this.$nextTick((function(){var t=o-e.cropX,c=n-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t>0?(e.cropW=r-e.cropChangeX-t<=r-s?e.cropOldW-t:e.cropOldW+e.cropChangeX-s,e.cropOffsertX=r-e.cropChangeX-t<=r-s?e.cropChangeX+t:s):(e.cropW=Math.abs(t)+e.cropChangeX<=r?Math.abs(t)-e.cropOldW:r-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=r?e.cropOldW+t:r-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=r-e.cropChangeX+Math.abs(t+e.cropOldW)<=r-s?Math.abs(t+e.cropOldW):e.cropChangeX-s,e.cropOffsertX=r-e.cropChangeX+Math.abs(t+e.cropOldW)<=r-s?e.cropChangeX-Math.abs(t+e.cropOldW):s))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-c>0?(e.cropH=i-e.cropChangeY-c<=i-a?e.cropOldH-c:e.cropOldH+e.cropChangeY-a,e.cropOffsertY=i-e.cropChangeY-c<=i-a?e.cropChangeY+c:a):(e.cropH=Math.abs(c)+e.cropChangeY<=i?Math.abs(c)-e.cropOldH:i-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+c>0?(e.cropH=e.cropOldH+c+e.cropOffsertY<=i?e.cropOldH+c:i-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-a?Math.abs(c+e.cropOldH):e.cropChangeY-a,e.cropOffsertY=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-a?e.cropChangeY-Math.abs(c+e.cropOldH):a))),e.canChangeX&&e.fixed){var h=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];h+e.cropOffsertY>i?(e.cropH=i-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0]):e.cropH=h}if(e.canChangeY&&e.fixed){var p=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];p+e.cropOffsertX>r?(e.cropW=r-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=p}}))},changeCropEnd:function(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var e,o,n=t.clientX?t.clientX:t.touches[0].clientX,r=t.clientY?t.clientY:t.touches[0].clientY;e=n-this.cropOffsertX,o=r-this.cropOffsertY,this.cropX=e,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var o=this,n=0,r=0;t&&(t.preventDefault(),n=t.clientX?t.clientX:t.touches[0].clientX,r=t.clientY?t.clientY:t.touches[0].clientY),this.$nextTick((function(){var t,i,s=n-o.cropX,a=r-o.cropY;if(e&&(s=o.cropOffsertX,a=o.cropOffsertY),t=s<=0?0:s+o.cropW>o.w?o.w-o.cropW:s,i=a<=0?0:a+o.cropH>o.h?o.h-o.cropH:a,o.centerBox){var c=o.getImgAxis();t<=c.x1&&(t=c.x1),t+o.cropW>c.x2&&(t=c.x2-o.cropW),i<=c.y1&&(i=c.y1),i+o.cropH>c.y2&&(i=c.y2-o.cropH)}o.cropOffsertX=t,o.cropOffsertY=i,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})}))},getImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var n={x1:0,x2:0,y1:0,y2:0},r=this.trueWidth*o,i=this.trueHeight*o;switch(this.rotate){case 0:n.x1=t+this.trueWidth*(1-o)/2,n.x2=n.x1+this.trueWidth*o,n.y1=e+this.trueHeight*(1-o)/2,n.y2=n.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:n.x1=t+this.trueWidth*(1-o)/2+(r-i)/2,n.x2=n.x1+this.trueHeight*o,n.y1=e+this.trueHeight*(1-o)/2+(i-r)/2,n.y2=n.y1+this.trueWidth*o;break;default:n.x1=t+this.trueWidth*(1-o)/2,n.x2=n.x1+this.trueWidth*o,n.y1=e+this.trueHeight*(1-o)/2,n.y2=n.y1+this.trueHeight*o}return n},getCropAxis:function(){var t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop:function(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(t){var e=this,o=document.createElement("canvas"),n=new Image,r=this.rotate,i=this.trueWidth,s=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;function h(t,e){o.width=Math.round(t),o.height=Math.round(e)}n.onload=function(){if(0!==e.cropW){var p=o.getContext("2d"),u=1;e.high&!e.full&&(u=window.devicePixelRatio),1!==e.enlarge&!e.full&&(u=Math.abs(Number(e.enlarge)),console.log(u));var d=e.cropW*u,l=e.cropH*u,f=i*e.scale*u,g=s*e.scale*u,v=(e.x-a+e.trueWidth*(1-e.scale)/2)*u,m=(e.y-c+e.trueHeight*(1-e.scale)/2)*u;switch(h(d,l),p.save(),r){case 0:e.full?(h(d/e.scale,l/e.scale),p.drawImage(n,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(n,v,m,f,g);break;case 1:case-3:e.full?(h(d/e.scale,l/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,m,-v-g/e.scale,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,m,-v-g,f,g));break;case 2:case-2:e.full?(h(d/e.scale,l/e.scale),p.rotate(90*r*Math.PI/180),v/=e.scale,m/=e.scale,p.drawImage(n,-v-f/e.scale,-m-g/e.scale,f/e.scale,g/e.scale)):(p.rotate(90*r*Math.PI/180),p.drawImage(n,-v-f,-m-g,f,g));break;case 3:case-1:e.full?(h(d/e.scale,l/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,-m-f/e.scale,v,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,-m-f,v,f,g));break;default:e.full?(h(d/e.scale,l/e.scale),p.drawImage(n,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(n,v,m,f,g)}p.restore()}else{var w=i*e.scale,x=s*e.scale,C=o.getContext("2d");switch(C.save(),r){case 0:h(w,x),C.drawImage(n,0,0,w,x);break;case 1:case-3:h(x,w),C.rotate(90*r*Math.PI/180),C.drawImage(n,0,-x,w,x);break;case 2:case-2:h(w,x),C.rotate(90*r*Math.PI/180),C.drawImage(n,-w,-x,w,x);break;case 3:case-1:h(x,w),C.rotate(90*r*Math.PI/180),C.drawImage(n,-w,0,w,x);break;default:h(w,x),C.drawImage(n,0,0,w,x)}C.restore()}t(o)},"data"!==this.img.substr(0,4)&&(n.crossOrigin="Anonymous"),n.src=this.imgs},getCropData:function(t){var e=this;this.getCropChecked((function(o){t(o.toDataURL("image/"+e.outputType,e.outputSize))}))},getCropBlob:function(t){var e=this;this.getCropChecked((function(o){o.toBlob((function(e){return t(e)}),"image/"+e.outputType,e.outputSize)}))},showPreview:function(){var t=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((function(){t.isCanShow=!0}),16);var e=this.cropW,o=this.cropH,n=this.scale,r={};r.div={width:"".concat(e,"px"),height:"".concat(o,"px")};var i=(this.x-this.cropOffsertX)/n,s=(this.y-this.cropOffsertY)/n;r.w=e,r.h=o,r.url=this.imgs,r.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(n,")translate3d(").concat(i,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},r.html='\n <div class="show-preview" style="width: '.concat(r.w,"px; height: ").concat(r.h,'px,; overflow: hidden">\n <div style="width: ').concat(e,"px; height: ").concat(o,'px">\n <img src=').concat(r.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n scale(").concat(n,")translate3d(").concat(i,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n </div>\n </div>'),this.$emit("realTime",r),this.$emit("real-time",r)},reload:function(){var t=this,e=new Image;e.onload=function(){t.w=parseFloat(window.getComputedStyle(t.$refs.cropper).width),t.h=parseFloat(window.getComputedStyle(t.$refs.cropper).height),t.trueWidth=e.width,t.trueHeight=e.height,t.original?t.scale=1:t.scale=t.checkedMode(),t.$nextTick((function(){t.x=-(t.trueWidth-t.trueWidth*t.scale)/2+(t.w-t.trueWidth*t.scale)/2,t.y=-(t.trueHeight-t.trueHeight*t.scale)/2+(t.h-t.trueHeight*t.scale)/2,t.loading=!1,t.autoCrop&&t.goAutoCrop(),t.$emit("img-load","success"),t.$emit("imgLoad","success"),setTimeout((function(){t.showPreview()}),20)}))},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},e.src=this.imgs},checkedMode:function(){var t=1,e=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":(e*=t=this.w/this.trueWidth)<this.h&&(t=(e=this.h)/this.trueHeight);break;default:try{var n=o[0];if(-1!==n.search("px")&&(n=n.replace("px",""),t=parseFloat(n)/this.trueWidth),-1!==n.search("%")&&(n=n.replace("%",""),t=parseFloat(n)/100*this.w/this.trueWidth),2===o.length&&"auto"===n){var r=o[1];-1!==r.search("px")&&(r=r.replace("px",""),t=(e=parseFloat(r))/this.trueHeight),-1!==r.search("%")&&(r=r.replace("%",""),t=(e=parseFloat(r)/100*this.h)/this.trueHeight)}}catch(e){t=1}}return t},goAutoCrop:function(t,e){this.clearCrop(),this.cropping=!0;var o=this.w,n=this.h;if(this.centerBox){var r=this.trueWidth*this.scale,i=this.trueHeight*this.scale;o=r<o?r:o,n=i<n?i:n}var s=t||parseFloat(this.autoCropWidth),a=e||parseFloat(this.autoCropHeight);0!==s&&0!==a||(s=.8*o,a=.8*n),s=s>o?o:s,a=a>n?n:a,this.fixed&&(a=s/this.fixedNumber[0]*this.fixedNumber[1]),a>this.h&&(s=(a=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(s,a)},changeCrop:function(t,e){var o=this;if(this.centerBox){var n=this.getImgAxis();t>n.x2-n.x1&&(e=(t=n.x2-n.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>n.y2-n.y1&&(t=(e=n.y2-n.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.cropOffsertX=(this.w-t)/2,this.cropOffsertY=(this.h-e)/2,this.centerBox&&this.$nextTick((function(){o.moveCrop(null,!0)}))},refresh:function(){var t=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((function(){t.checkedImg()}))},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var n=!0;if(this.centerBox){var r=this.getImgAxis(t,e,o),i=this.getCropAxis();r.x1>=i.x1&&(n=!1),r.x2<=i.x2&&(n=!1),r.y1>=i.y1&&(n=!1),r.y2<=i.y2&&(n=!1)}return n}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var t=this,e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,o,n){for(var r=atob(this.toDataURL(o,n).split(",")[1]),i=r.length,s=new Uint8Array(i),a=0;a<i;a++)s[a]=r.charCodeAt(a);e(new Blob([s],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};o(1);var a=function(t,e,o,n,r,i,s,a){var c,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=o,h._compiled=!0),n&&(h.functional=!0),i&&(h._scopeId="data-v-"+i),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=c):r&&(c=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(h.functional){h._injectStyles=c;var p=h.render;h.render=function(t,e){return c.call(e),p(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:h}}(s,n,[],!1,null,"6dae58fd",null);a.options.__file="src/vue-cropper.vue";var c=a.exports;o.d(e,"VueCropper",(function(){return c}));var h=function(t){t.component("VueCropper",c)};"undefined"!=typeof window&&window.Vue&&h(window.Vue),e.default={version:"0.4.8",install:h,VueCropper:c,vueCropper:c}}])}))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cbf05"],{"4c99":function(t,e,o){!function(e,o){t.exports=o()}(window,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=6)}([function(t,e,o){var n=o(2);"string"==typeof n&&(n=[[t.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};o(4)(n,r),n.locals&&(t.exports=n.locals)},function(t,e,o){"use strict";var n=o(0);o.n(n).a},function(t,e,o){(t.exports=o(3)(!1)).push([t.i,'\n.vue-cropper[data-v-6dae58fd] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-6dae58fd] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-6dae58fd],\n .point4[data-v-6dae58fd],\n .point5[data-v-6dae58fd],\n .point7[data-v-6dae58fd] {\n display: none;\n}\n.point3[data-v-6dae58fd] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-6dae58fd] {\n top: 0;\n left: 0;\n}\n.point6[data-v-6dae58fd] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-6dae58fd] {\n bottom: -10px;\n right: -10px;\n}\n}\n',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o=function(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),i=n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}));return[o].concat(i).concat([r]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&n[s[0]]||(o&&!s[2]?s[2]=o:o&&(s[2]="("+s[2]+") and ("+o+")"),e.push(s))}},e}},function(t,e,o){var n={},r=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}((function(){return window&&document&&document.all&&!window.atob})),i=function(t){var e={};return function(t,o){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,o);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),s=null,a=0,c=[],h=o(5);function p(t,e){for(var o=0;o<t.length;o++){var r=t[o],i=n[r.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(v(r.parts[s],e))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(v(r.parts[s],e));n[r.id]={id:r.id,refs:1,parts:a}}}}function u(t,e){for(var o=[],n={},r=0;r<t.length;r++){var i=t[r],s=e.base?i[0]+e.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};n[s]?n[s].parts.push(a):o.push(n[s]={id:s,parts:[a]})}return o}function d(t,e){var o=i(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=c[c.length-1];if("top"===t.insertAt)n?n.nextSibling?o.insertBefore(e,n.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),c.push(e);else if("bottom"===t.insertAt)o.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=i(t.insertAt.before,o);o.insertBefore(e,r)}}function l(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function f(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){return o.nc}();n&&(t.attrs.nonce=n)}return g(e,t.attrs),d(t,e),e}function g(t,e){Object.keys(e).forEach((function(o){t.setAttribute(o,e[o])}))}function v(t,e){var o,n,r,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var c=a++;o=s||(s=f(e)),n=w.bind(null,o,c,!1),r=w.bind(null,o,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),d(t,e),e}(e),n=function(t,e,o){var n=o.css,r=o.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(n=h(n)),r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,o,e),r=function(){l(o),o.href&&URL.revokeObjectURL(o.href)}):(o=f(e),n=function(t,e){var o=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}.bind(null,o),r=function(){l(o)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=u(t,e);return p(o,e),function(t){for(var r=[],i=0;i<o.length;i++){var s=o[i];(a=n[s.id]).refs--,r.push(a)}for(t&&p(u(t,e),e),i=0;i<r.length;i++){var a;if(0===(a=r[i]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete n[a.id]}}}};var m=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}();function w(t,e,o,n){var r=o?"":n.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var i=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,n=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var r,i=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?o+i:n+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:t.scaleImg,mouseout:t.cancelScale}},[o("div",{staticClass:"cropper-box"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"}},[o("img",{ref:"cropperImg",attrs:{src:t.imgs,alt:"cropper-img"}})])]),t._v(" "),o("div",{staticClass:"cropper-drag-box",class:{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping},on:{mousedown:t.startMove,touchstart:t.startMove}}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"}},[o("span",{staticClass:"cropper-view-box"},[o("img",{style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"},attrs:{src:t.imgs,alt:"cropper-img"}})]),t._v(" "),o("span",{staticClass:"cropper-face cropper-move",on:{mousedown:t.cropMove,touchstart:t.cropMove}}),t._v(" "),t.info?o("span",{staticClass:"crop-info",style:{top:t.cropInfo.top}},[t._v(t._s(this.cropInfo.width)+" × "+t._s(this.cropInfo.height))]):t._e(),t._v(" "),t.fixedBox?t._e():o("span",[o("span",{staticClass:"crop-line line-w",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),o("span",{staticClass:"crop-line line-a",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),o("span",{staticClass:"crop-line line-s",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),o("span",{staticClass:"crop-line line-d",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point1",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point2",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point3",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point4",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point5",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point6",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,2)}}}),t._v(" "),o("span",{staticClass:"crop-point point7",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),o("span",{staticClass:"crop-point point8",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,2)}}})])])])};n._withStripped=!0;var r={getData:function(t){return new Promise((function(e,o){var n={};(function(t){var e=null;return new Promise((function(o,n){if(t.src)if(/^data\:/i.test(t.src))e=function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),o=e.length,n=new ArrayBuffer(o),r=new Uint8Array(n),i=0;i<o;i++)r[i]=e.charCodeAt(i);return n}(t.src),o(e);else if(/^blob\:/i.test(t.src)){var r=new FileReader;r.onload=function(t){e=t.target.result,o(e)},function(t,e){var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="blob",o.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},o.send()}(t.src,(function(t){r.readAsArrayBuffer(t)}))}else{var i=new XMLHttpRequest;i.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=i.response,o(e),i=null},i.open("GET",t.src,!0),i.responseType="arraybuffer",i.send(null)}else n("img error")}))})(t).then((function(t){n.arrayBuffer=t,n.orientation=function(t){var e,o,n,r,i,s,a,c,h,p=new DataView(t),u=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<u;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){s=c;break}c++}if(s&&(o=s+10,"Exif"===function(t,e,o){var n,r="";for(n=e,o+=e;n<o;n++)r+=String.fromCharCode(t.getUint8(n));return r}(p,s+4,4)&&(i=p.getUint16(o),((r=18761===i)||19789===i)&&42===p.getUint16(o+2,r)&&(n=p.getUint32(o+4,r))>=8&&(a=o+n))),a)for(u=p.getUint16(a,r),h=0;h<u;h++)if(c=a+12*h+2,274===p.getUint16(c,r)){c+=8,e=p.getUint16(c,r);break}return e}(t),e(n)})).catch((function(t){o(t)}))}))}},i=r,s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:Number,default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"}},computed:{cropInfo:function(){var t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){var t=navigator.userAgent,e=t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1;return e}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{checkOrientationImage:function(t,e,o,n){var r=this,i=document.createElement("canvas"),s=i.getContext("2d");switch(s.save(),e){case 2:i.width=o,i.height=n,s.translate(o,0),s.scale(-1,1);break;case 3:i.width=o,i.height=n,s.translate(o/2,n/2),s.rotate(180*Math.PI/180),s.translate(-o/2,-n/2);break;case 4:i.width=o,i.height=n,s.translate(0,n),s.scale(1,-1);break;case 5:i.height=o,i.width=n,s.rotate(.5*Math.PI),s.scale(1,-1);break;case 6:i.width=n,i.height=o,s.translate(n/2,o/2),s.rotate(90*Math.PI/180),s.translate(-o/2,-n/2);break;case 7:i.height=o,i.width=n,s.rotate(.5*Math.PI),s.translate(o,-n),s.scale(-1,1);break;case 8:i.height=o,i.width=n,s.translate(n/2,o/2),s.rotate(-90*Math.PI/180),s.translate(-o/2,-n/2);break;default:i.width=o,i.height=n}s.drawImage(t,0,0,o,n),s.restore(),i.toBlob((function(t){var e=URL.createObjectURL(t);r.imgs=e}),"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(""!==this.img){this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var o=e.width,n=e.height;i.getData(e).then((function(r){t.orientation=r.orientation||1;var i=t.maxImgSize;!t.orientation&&o<i&n<i?t.imgs=t.img:(o>i&&(n=n/o*i,o=i),n>i&&(o=o/n*i,n=i),t.checkOrientationImage(e,t.orientation,o,n))}))},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else e.src=this.img}},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(t.clientX?t.clientX:t.touches[0].clientX)-this.x,this.moveY=(t.clientY?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(t){var e=this;t.preventDefault();var o=this.scale,n=this.touches[0].clientX,r=this.touches[0].clientY,i=t.touches[0].clientX,s=t.touches[0].clientY,a=this.touches[1].clientX,c=this.touches[1].clientY,h=t.touches[1].clientX,p=t.touches[1].clientY,u=Math.sqrt(Math.pow(n-a,2)+Math.pow(r-c,2)),d=Math.sqrt(Math.pow(i-h,2)+Math.pow(s-p,2))-u,l=1,f=(l=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)>.1?.1:l)*d;if(!this.touchNow){if(this.touchNow=!0,d>0?o+=Math.abs(f):d<0&&o>Math.abs(f)&&(o-=Math.abs(f)),this.touches=t.touches,setTimeout((function(){e.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(t){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(t){var e=this;if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,n,r=t.clientX?t.clientX:t.touches[0].clientX,i=t.clientY?t.clientY:t.touches[0].clientY;o=r-this.moveX,n=i-this.moveY,this.$nextTick((function(){if(e.centerBox){var t,r,i,s,a=e.getImgAxis(o,n,e.scale),c=e.getCropAxis(),h=e.trueHeight*e.scale,p=e.trueWidth*e.scale;switch(e.rotate){case 1:case-1:case 3:case-3:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(h-p)/2,r=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(p-h)/2,i=t-h+e.cropW,s=r-p+e.cropH;break;default:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,r=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,i=t-p+e.cropW,s=r-h+e.cropH}a.x1>=c.x1&&(o=t),a.y1>=c.y1&&(n=r),a.x2<=c.x2&&(o=i),a.y2<=c.y2&&(n=s)}e.x=o,e.y=n,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()}),e.$emit("img-moving",{moving:!0,axis:e.getImgAxis()})}))},leaveImg:function(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,{passive:!1})},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var o=this.scale,n=t.deltaY||t.wheelDelta;n=navigator.userAgent.indexOf("Firefox")>0?30*n:n,this.isIE&&(n=-n);var r=this.coe,i=(r=r/this.trueWidth>r/this.trueHeight?r/this.trueHeight:r/this.trueWidth)*n;i<0?o+=Math.abs(i):o>Math.abs(i)&&(o-=Math.abs(i));var s=i<0?"add":"reduce";if(s!==this.coeStatus&&(this.coeStatus=s,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((function(){e.scaling=!1,e.coe=e.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(t){var e=this.scale;t=t||1;var o=20;if((t*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop:function(t){var e=this;t.preventDefault();var o=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,n=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((function(){var t=o-e.cropX,r=n-e.cropY;if(t>0?(e.cropW=t+e.cropChangeX>e.w?e.w-e.cropChangeX:t,e.cropOffsertX=e.cropChangeX):(e.cropW=e.w-e.cropChangeX+Math.abs(t)>e.w?e.cropChangeX:Math.abs(t),e.cropOffsertX=e.cropChangeX+t>0?e.cropChangeX+t:0),e.fixed){var i=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];i+e.cropOffsertY>e.h?(e.cropH=e.h-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],e.cropOffsertX=t>0?e.cropChangeX:e.cropChangeX-e.cropW):e.cropH=i,e.cropOffsertY=e.cropOffsertY}else r>0?(e.cropH=r+e.cropChangeY>e.h?e.h-e.cropChangeY:r,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(r)>e.h?e.cropChangeY:Math.abs(r),e.cropOffsertY=e.cropChangeY+r>0?e.cropChangeY+r:0)}))},changeCropSize:function(t,e,o,n,r){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=o,this.changeCropTypeX=n,this.changeCropTypeY=r,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0)},changeCropNow:function(t){var e=this;t.preventDefault();var o=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,n=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0,r=this.w,i=this.h,s=0,a=0;if(this.centerBox){var c=this.getImgAxis(),h=c.x2,p=c.y2;s=c.x1>0?c.x1:0,a=c.y1>0?c.y1:0,r>h&&(r=h),i>p&&(i=p)}this.$nextTick((function(){var t=o-e.cropX,c=n-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t>0?(e.cropW=r-e.cropChangeX-t<=r-s?e.cropOldW-t:e.cropOldW+e.cropChangeX-s,e.cropOffsertX=r-e.cropChangeX-t<=r-s?e.cropChangeX+t:s):(e.cropW=Math.abs(t)+e.cropChangeX<=r?Math.abs(t)-e.cropOldW:r-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=r?e.cropOldW+t:r-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=r-e.cropChangeX+Math.abs(t+e.cropOldW)<=r-s?Math.abs(t+e.cropOldW):e.cropChangeX-s,e.cropOffsertX=r-e.cropChangeX+Math.abs(t+e.cropOldW)<=r-s?e.cropChangeX-Math.abs(t+e.cropOldW):s))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-c>0?(e.cropH=i-e.cropChangeY-c<=i-a?e.cropOldH-c:e.cropOldH+e.cropChangeY-a,e.cropOffsertY=i-e.cropChangeY-c<=i-a?e.cropChangeY+c:a):(e.cropH=Math.abs(c)+e.cropChangeY<=i?Math.abs(c)-e.cropOldH:i-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+c>0?(e.cropH=e.cropOldH+c+e.cropOffsertY<=i?e.cropOldH+c:i-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-a?Math.abs(c+e.cropOldH):e.cropChangeY-a,e.cropOffsertY=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-a?e.cropChangeY-Math.abs(c+e.cropOldH):a))),e.canChangeX&&e.fixed){var h=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];h+e.cropOffsertY>i?(e.cropH=i-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0]):e.cropH=h}if(e.canChangeY&&e.fixed){var p=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];p+e.cropOffsertX>r?(e.cropW=r-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=p}}))},changeCropEnd:function(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var e,o,n=t.clientX?t.clientX:t.touches[0].clientX,r=t.clientY?t.clientY:t.touches[0].clientY;e=n-this.cropOffsertX,o=r-this.cropOffsertY,this.cropX=e,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var o=this,n=0,r=0;t&&(t.preventDefault(),n=t.clientX?t.clientX:t.touches[0].clientX,r=t.clientY?t.clientY:t.touches[0].clientY),this.$nextTick((function(){var t,i,s=n-o.cropX,a=r-o.cropY;if(e&&(s=o.cropOffsertX,a=o.cropOffsertY),t=s<=0?0:s+o.cropW>o.w?o.w-o.cropW:s,i=a<=0?0:a+o.cropH>o.h?o.h-o.cropH:a,o.centerBox){var c=o.getImgAxis();t<=c.x1&&(t=c.x1),t+o.cropW>c.x2&&(t=c.x2-o.cropW),i<=c.y1&&(i=c.y1),i+o.cropH>c.y2&&(i=c.y2-o.cropH)}o.cropOffsertX=t,o.cropOffsertY=i,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})}))},getImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var n={x1:0,x2:0,y1:0,y2:0},r=this.trueWidth*o,i=this.trueHeight*o;switch(this.rotate){case 0:n.x1=t+this.trueWidth*(1-o)/2,n.x2=n.x1+this.trueWidth*o,n.y1=e+this.trueHeight*(1-o)/2,n.y2=n.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:n.x1=t+this.trueWidth*(1-o)/2+(r-i)/2,n.x2=n.x1+this.trueHeight*o,n.y1=e+this.trueHeight*(1-o)/2+(i-r)/2,n.y2=n.y1+this.trueWidth*o;break;default:n.x1=t+this.trueWidth*(1-o)/2,n.x2=n.x1+this.trueWidth*o,n.y1=e+this.trueHeight*(1-o)/2,n.y2=n.y1+this.trueHeight*o}return n},getCropAxis:function(){var t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop:function(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(t){var e=this,o=document.createElement("canvas"),n=new Image,r=this.rotate,i=this.trueWidth,s=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;function h(t,e){o.width=Math.round(t),o.height=Math.round(e)}n.onload=function(){if(0!==e.cropW){var p=o.getContext("2d"),u=1;e.high&!e.full&&(u=window.devicePixelRatio),1!==e.enlarge&!e.full&&(u=Math.abs(Number(e.enlarge)),console.log(u));var d=e.cropW*u,l=e.cropH*u,f=i*e.scale*u,g=s*e.scale*u,v=(e.x-a+e.trueWidth*(1-e.scale)/2)*u,m=(e.y-c+e.trueHeight*(1-e.scale)/2)*u;switch(h(d,l),p.save(),r){case 0:e.full?(h(d/e.scale,l/e.scale),p.drawImage(n,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(n,v,m,f,g);break;case 1:case-3:e.full?(h(d/e.scale,l/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,m,-v-g/e.scale,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,m,-v-g,f,g));break;case 2:case-2:e.full?(h(d/e.scale,l/e.scale),p.rotate(90*r*Math.PI/180),v/=e.scale,m/=e.scale,p.drawImage(n,-v-f/e.scale,-m-g/e.scale,f/e.scale,g/e.scale)):(p.rotate(90*r*Math.PI/180),p.drawImage(n,-v-f,-m-g,f,g));break;case 3:case-1:e.full?(h(d/e.scale,l/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,-m-f/e.scale,v,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,-m-f,v,f,g));break;default:e.full?(h(d/e.scale,l/e.scale),p.drawImage(n,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(n,v,m,f,g)}p.restore()}else{var w=i*e.scale,x=s*e.scale,C=o.getContext("2d");switch(C.save(),r){case 0:h(w,x),C.drawImage(n,0,0,w,x);break;case 1:case-3:h(x,w),C.rotate(90*r*Math.PI/180),C.drawImage(n,0,-x,w,x);break;case 2:case-2:h(w,x),C.rotate(90*r*Math.PI/180),C.drawImage(n,-w,-x,w,x);break;case 3:case-1:h(x,w),C.rotate(90*r*Math.PI/180),C.drawImage(n,-w,0,w,x);break;default:h(w,x),C.drawImage(n,0,0,w,x)}C.restore()}t(o)},"data"!==this.img.substr(0,4)&&(n.crossOrigin="Anonymous"),n.src=this.imgs},getCropData:function(t){var e=this;this.getCropChecked((function(o){t(o.toDataURL("image/"+e.outputType,e.outputSize))}))},getCropBlob:function(t){var e=this;this.getCropChecked((function(o){o.toBlob((function(e){return t(e)}),"image/"+e.outputType,e.outputSize)}))},showPreview:function(){var t=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((function(){t.isCanShow=!0}),16);var e=this.cropW,o=this.cropH,n=this.scale,r={};r.div={width:"".concat(e,"px"),height:"".concat(o,"px")};var i=(this.x-this.cropOffsertX)/n,s=(this.y-this.cropOffsertY)/n;r.w=e,r.h=o,r.url=this.imgs,r.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(n,")translate3d(").concat(i,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},r.html='\n <div class="show-preview" style="width: '.concat(r.w,"px; height: ").concat(r.h,'px,; overflow: hidden">\n <div style="width: ').concat(e,"px; height: ").concat(o,'px">\n <img src=').concat(r.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n scale(").concat(n,")translate3d(").concat(i,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n </div>\n </div>'),this.$emit("realTime",r),this.$emit("real-time",r)},reload:function(){var t=this,e=new Image;e.onload=function(){t.w=parseFloat(window.getComputedStyle(t.$refs.cropper).width),t.h=parseFloat(window.getComputedStyle(t.$refs.cropper).height),t.trueWidth=e.width,t.trueHeight=e.height,t.original?t.scale=1:t.scale=t.checkedMode(),t.$nextTick((function(){t.x=-(t.trueWidth-t.trueWidth*t.scale)/2+(t.w-t.trueWidth*t.scale)/2,t.y=-(t.trueHeight-t.trueHeight*t.scale)/2+(t.h-t.trueHeight*t.scale)/2,t.loading=!1,t.autoCrop&&t.goAutoCrop(),t.$emit("img-load","success"),t.$emit("imgLoad","success"),setTimeout((function(){t.showPreview()}),20)}))},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},e.src=this.imgs},checkedMode:function(){var t=1,e=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":(e*=t=this.w/this.trueWidth)<this.h&&(t=(e=this.h)/this.trueHeight);break;default:try{var n=o[0];if(-1!==n.search("px")&&(n=n.replace("px",""),t=parseFloat(n)/this.trueWidth),-1!==n.search("%")&&(n=n.replace("%",""),t=parseFloat(n)/100*this.w/this.trueWidth),2===o.length&&"auto"===n){var r=o[1];-1!==r.search("px")&&(r=r.replace("px",""),t=(e=parseFloat(r))/this.trueHeight),-1!==r.search("%")&&(r=r.replace("%",""),t=(e=parseFloat(r)/100*this.h)/this.trueHeight)}}catch(e){t=1}}return t},goAutoCrop:function(t,e){this.clearCrop(),this.cropping=!0;var o=this.w,n=this.h;if(this.centerBox){var r=this.trueWidth*this.scale,i=this.trueHeight*this.scale;o=r<o?r:o,n=i<n?i:n}var s=t||parseFloat(this.autoCropWidth),a=e||parseFloat(this.autoCropHeight);0!==s&&0!==a||(s=.8*o,a=.8*n),s=s>o?o:s,a=a>n?n:a,this.fixed&&(a=s/this.fixedNumber[0]*this.fixedNumber[1]),a>this.h&&(s=(a=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(s,a)},changeCrop:function(t,e){var o=this;if(this.centerBox){var n=this.getImgAxis();t>n.x2-n.x1&&(e=(t=n.x2-n.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>n.y2-n.y1&&(t=(e=n.y2-n.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.cropOffsertX=(this.w-t)/2,this.cropOffsertY=(this.h-e)/2,this.centerBox&&this.$nextTick((function(){o.moveCrop(null,!0)}))},refresh:function(){var t=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((function(){t.checkedImg()}))},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var n=!0;if(this.centerBox){var r=this.getImgAxis(t,e,o),i=this.getCropAxis();r.x1>=i.x1&&(n=!1),r.x2<=i.x2&&(n=!1),r.y1>=i.y1&&(n=!1),r.y2<=i.y2&&(n=!1)}return n}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var t=this,e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,o,n){for(var r=atob(this.toDataURL(o,n).split(",")[1]),i=r.length,s=new Uint8Array(i),a=0;a<i;a++)s[a]=r.charCodeAt(a);e(new Blob([s],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}};o(1);var a=function(t,e,o,n,r,i,s,a){var c,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=o,h._compiled=!0),n&&(h.functional=!0),i&&(h._scopeId="data-v-"+i),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=c):r&&(c=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(h.functional){h._injectStyles=c;var p=h.render;h.render=function(t,e){return c.call(e),p(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:h}}(s,n,[],!1,null,"6dae58fd",null);a.options.__file="src/vue-cropper.vue";var c=a.exports;o.d(e,"VueCropper",(function(){return c}));var h=function(t){t.component("VueCropper",c)};"undefined"!=typeof window&&window.Vue&&h(window.Vue),e.default={version:"0.4.8",install:h,VueCropper:c,vueCropper:c}}])}))}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d67a2"],{"735e":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"任务名称",prop:"jobName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入任务名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.jobName,callback:function(t){e.$set(e.queryParams,"jobName",t)},expression:"queryParams.jobName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务组名",prop:"jobGroup"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请任务组名",clearable:"",size:"small"},model:{value:e.queryParams.jobGroup,callback:function(t){e.$set(e.queryParams,"jobGroup",t)},expression:"queryParams.jobGroup"}},e._l(e.jobGroupOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"执行状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择执行状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"执行时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),e._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),e._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:jobLog:export"],expression:"['monitor:jobLog:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.jobLogList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"日志编号",width:"80",align:"center",prop:"jobLogId"}}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"jobName","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"任务组名",align:"center",prop:"jobGroup",formatter:e.jobGroupFormat,"show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"调用目标字符串",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"日志信息",align:"center",prop:"jobMessage","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"执行状态",align:"center",prop:"status",formatter:e.statusFormat}}),e._v(" "),a("el-table-column",{attrs:{label:"执行时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:query"],expression:"['monitor:job:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(a){return e.handleView(t.row)}}},[e._v("详细")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),e._v(" "),a("el-dialog",{attrs:{title:"调度日志详细",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"日志序号:"}},[e._v(e._s(e.form.jobLogId))]),e._v(" "),a("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.form.jobName))])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"任务分组:"}},[e._v(e._s(e.form.jobGroup))]),e._v(" "),a("el-form-item",{attrs:{label:"执行时间:"}},[e._v(e._s(e.form.createTime))])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"调用方法:"}},[e._v(e._s(e.form.invokeTarget))])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"日志信息:"}},[e._v(e._s(e.form.jobMessage))])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"执行状态:"}},[0==e.form.status?a("div",[e._v("正常")]):1==e.form.status?a("div",[e._v("失败")]):e._e()])],1),e._v(" "),a("el-col",{attrs:{span:24}},[1==e.form.status?a("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.exceptionInfo))]):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},r=[],n=a("bd86"),l=a("b775");function i(e){return Object(l["a"])({url:"/monitor/jobLog/list",method:"get",params:e})}function s(e){return Object(l["a"])({url:"/monitor/jobLog/"+e,method:"delete"})}function u(){return Object(l["a"])({url:"/monitor/jobLog/clean",method:"delete"})}function c(e){return Object(l["a"])({url:"/monitor/jobLog/export",method:"get",params:e})}var m={name:"JobLog",data:function(){return Object(n["a"])({loading:!0,ids:[],multiple:!0,total:0,jobLogList:[],open:!1,dateRange:[],form:{},statusOptions:[],jobGroupOptions:[],queryParams:{pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0}},"form",{})},created:function(){var e=this;this.getList(),this.getDicts("sys_job_status").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_job_group").then((function(t){e.jobGroupOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,i(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.jobLogList=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},jobGroupFormat:function(e,t){return this.selectDictLabel(this.jobGroupOptions,e.jobGroup)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.jobLogId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,a=this.ids;this.$confirm('是否确认删除调度日志编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return s(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))},handleClean:function(){var e=this;this.$confirm("是否确认清空所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return u()})).then((function(){e.getList(),e.msgSuccess("清空成功")})).catch((function(){}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(t)})).then((function(t){e.download(t.msg)})).catch((function(){}))}}},p=m,d=a("2877"),b=Object(d["a"])(p,o,r,!1,null,null,null);t["default"]=b.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d67a2"],{"735e":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[a("el-form-item",{attrs:{label:"任务名称",prop:"jobName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入任务名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.jobName,callback:function(t){e.$set(e.queryParams,"jobName",t)},expression:"queryParams.jobName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"任务组名",prop:"jobGroup"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请任务组名",clearable:"",size:"small"},model:{value:e.queryParams.jobGroup,callback:function(t){e.$set(e.queryParams,"jobGroup",t)},expression:"queryParams.jobGroup"}},e._l(e.jobGroupOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"执行状态",prop:"status"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择执行状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"执行时间"}},[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),e._v(" "),a("el-row",{staticClass:"mb8",attrs:{gutter:10}},[a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),e._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),e._v(" "),a("el-col",{attrs:{span:1.5}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:jobLog:export"],expression:"['monitor:jobLog:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.jobLogList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"日志编号",width:"80",align:"center",prop:"jobLogId"}}),e._v(" "),a("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"jobName","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"任务组名",align:"center",prop:"jobGroup",formatter:e.jobGroupFormat,"show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"调用目标字符串",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"日志信息",align:"center",prop:"jobMessage","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"执行状态",align:"center",prop:"status",formatter:e.statusFormat}}),e._v(" "),a("el-table-column",{attrs:{label:"执行时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:query"],expression:"['monitor:job:query']"}],attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(a){return e.handleView(t.row)}}},[e._v("详细")])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),e._v(" "),a("el-dialog",{attrs:{title:"调度日志详细",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"日志序号:"}},[e._v(e._s(e.form.jobLogId))]),e._v(" "),a("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.form.jobName))])],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"任务分组:"}},[e._v(e._s(e.form.jobGroup))]),e._v(" "),a("el-form-item",{attrs:{label:"执行时间:"}},[e._v(e._s(e.form.createTime))])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"调用方法:"}},[e._v(e._s(e.form.invokeTarget))])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"日志信息:"}},[e._v(e._s(e.form.jobMessage))])],1),e._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"执行状态:"}},[0==e.form.status?a("div",[e._v("正常")]):1==e.form.status?a("div",[e._v("失败")]):e._e()])],1),e._v(" "),a("el-col",{attrs:{span:24}},[1==e.form.status?a("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.exceptionInfo))]):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},r=[],n=a("5b3c"),l=a("b775");function i(e){return Object(l["a"])({url:"/monitor/jobLog/list",method:"get",params:e})}function s(e){return Object(l["a"])({url:"/monitor/jobLog/"+e,method:"delete"})}function u(){return Object(l["a"])({url:"/monitor/jobLog/clean",method:"delete"})}function c(e){return Object(l["a"])({url:"/monitor/jobLog/export",method:"get",params:e})}var m={name:"JobLog",data:function(){return Object(n["a"])({loading:!0,ids:[],multiple:!0,total:0,jobLogList:[],open:!1,dateRange:[],form:{},statusOptions:[],jobGroupOptions:[],queryParams:{pageNum:1,pageSize:10,jobName:void 0,jobGroup:void 0,status:void 0}},"form",{})},created:function(){var e=this;this.getList(),this.getDicts("sys_job_status").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_job_group").then((function(t){e.jobGroupOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,i(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.jobLogList=t.rows,e.total=t.total,e.loading=!1}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},jobGroupFormat:function(e,t){return this.selectDictLabel(this.jobGroupOptions,e.jobGroup)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.jobLogId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,a=this.ids;this.$confirm('是否确认删除调度日志编号为"'+a+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return s(a)})).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))},handleClean:function(){var e=this;this.$confirm("是否确认清空所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return u()})).then((function(){e.getList(),e.msgSuccess("清空成功")})).catch((function(){}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有调度日志数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(t)})).then((function(t){e.download(t.msg)})).catch((function(){}))}}},p=m,d=a("cba8"),b=Object(d["a"])(p,o,r,!1,null,null,null);t["default"]=b.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e28b6"],{"7ec5":function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("el-row",{staticClass:"mb8",attrs:{gutter:10}},[l("el-col",{attrs:{span:1.5}},[l("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),e._v(" "),l("el-col",{attrs:{span:1.5}},[l("el-button",{attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),e._v(" "),l("el-col",{attrs:{span:1.5}},[l("el-button",{attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1)],1),e._v(" "),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"dragTable",attrs:{data:e.fieldsList,"row-key":"field_id"},on:{"selection-change":e.handleSelectionChange}},[l("el-table-column",{attrs:{align:"center",width:"40"},scopedSlots:e._u([{key:"default",fn:function(e){return[l("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段编号",align:"center",width:"50",prop:"field_id"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段名称",align:"center",prop:"field_name"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段标题",align:"center",prop:"field_title"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段类型",align:"center",prop:"field_type"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段规则",align:"center",prop:"field_rules"}}),e._v(" "),l("el-table-column",{attrs:{label:"主键","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-radio",{attrs:{label:t.row.field_id},model:{value:e.fieldPkId,callback:function(t){e.fieldPkId=t},expression:"fieldPkId"}},[e._v("是")])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"排序字段","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_sort,callback:function(l){e.$set(t.row,"model_sort",l)},expression:"scope.row.model_sort"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"列表显示","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_list,callback:function(l){e.$set(t.row,"model_list",l)},expression:"scope.row.model_list"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"可编辑","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_edit,callback:function(l){e.$set(t.row,"model_edit",l)},expression:"scope.row.model_edit"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"模型索引","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_indexes,callback:function(l){e.$set(t.row,"model_indexes",l)},expression:"scope.row.model_indexes"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"列表查询","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.search_list,callback:function(l){e.$set(t.row,"search_list",l)},expression:"scope.row.search_list"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(l){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),l("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(l){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),l("el-form",{attrs:{"label-width":"100px"}},[l("el-form-item",{staticStyle:{"text-align":"center","margin-left":"-100px","margin-top":"10px"}},[l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitFormList()}}},[e._v("提交")]),e._v(" "),l("el-button",{on:{click:function(t){return e.close()}}},[e._v("返回")])],1)],1),e._v(" "),l("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[l("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"160px"}},[l("el-form-item",{attrs:{label:"字段名称",prop:"fieldName"}},[l("el-input",{attrs:{placeholder:"请输入字段名称"},model:{value:e.form.fieldName,callback:function(t){e.$set(e.form,"fieldName",t)},expression:"form.fieldName"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段标题",prop:"fieldTitle"}},[l("el-input",{attrs:{placeholder:"请输入字段标题"},model:{value:e.form.fieldTitle,callback:function(t){e.$set(e.form,"fieldTitle",t)},expression:"form.fieldTitle"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段类型",prop:"fieldType"}},[l("el-select",{on:{change:e.typeChange},model:{value:e.form.fieldType,callback:function(t){e.$set(e.form,"fieldType",t)},expression:"form.fieldType"}},e._l(e.fieldsType,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputData,expression:"tagShow.inputData"}],attrs:{prop:"fieldData"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 字段数据\n "),l("el-tooltip",{attrs:{content:"格式:'1:text1,2:text2,3:text3' 或 '数据表名|值字段名|标题字段名(|排序字段)(|条件)' 或 :字典编码",placement:"top-start"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{attrs:{placeholder:"请输入字段数据"},model:{value:e.form.fieldData,callback:function(t){e.$set(e.form,"fieldData",t)},expression:"form.fieldData"}})],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputLength,expression:"tagShow.inputLength"}],attrs:{label:"字段长度",prop:"fieldLength"}},[l("el-input",{attrs:{placeholder:"请输入字段长度"},model:{value:e.form.fieldLength,callback:function(t){e.$set(e.form,"fieldLength",t)},expression:"form.fieldLength"}})],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputDefault,expression:"tagShow.inputDefault"}],attrs:{label:"字段默认值",prop:"fieldDefault"}},[l("el-input",{attrs:{placeholder:"请输入字段默认值 地图类型时'lng,lat'"},model:{value:e.form.fieldDefault,callback:function(t){e.$set(e.form,"fieldDefault",t)},expression:"form.fieldDefault"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段说明",prop:"fieldDesc"}},[l("el-input",{attrs:{placeholder:"请输入字段说明"},model:{value:e.form.fieldDesc,callback:function(t){e.$set(e.form,"fieldDesc",t)},expression:"form.fieldDesc"}})],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputRules,expression:"tagShow.inputRules"}],attrs:{label:"字段规则",prop:"fieldRules"}},[l("el-select",{attrs:{multiple:""},model:{value:e.form.fieldRules,callback:function(t){e.$set(e.form,"fieldRules",t)},expression:"form.fieldRules"}},e._l(e.fieldsRules,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{label:"字段列表显示宽度",prop:"fieldWidth"}},[l("el-input",{attrs:{placeholder:"请输入字段列表显示宽度"},model:{value:e.form.fieldWidth,callback:function(t){e.$set(e.form,"fieldWidth",t)},expression:"form.fieldWidth"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段列表对齐方式",prop:"fieldAlign"}},[l("el-input",{attrs:{placeholder:"请输入字段列表对齐方式"},model:{value:e.form.fieldAlign,callback:function(t){e.$set(e.form,"fieldAlign",t)},expression:"form.fieldAlign"}})],1)],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),l("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],o=(l("28a5"),l("6762"),l("2fdb"),l("b775"));function n(e){return Object(o["a"])({url:"/system/model/fields/add",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/system/model/fields/list",method:"get",params:{modelId:e}})}function r(e,t,l){return Object(o["a"])({url:"/system/model/fields/setFieldsAttr",method:"post",data:{fieldsList:e,pkId:t,modelId:l}})}function d(e){return Object(o["a"])({url:"/system/model/fields/edit?id="+e,method:"get"})}function u(e){return Object(o["a"])({url:"/system/model/fields/edit",method:"post",data:e})}function c(e){return Object(o["a"])({url:"/system/model/fields/delete",method:"delete",data:{ids:e}})}var f=l("53fe"),m=l.n(f),p={name:"Post",data:function(){return{loading:!0,ids:[],fieldPkId:null,single:!0,multiple:!0,fieldsList:[],oldList:[],newList:[],title:"",open:!1,statusOptions:[],fieldsType:[{value:"text",label:"文本"},{value:"baidu_map",label:"百度地图坐标"},{value:"imagefile",label:"单图片"},{value:"images",label:"多图片"},{value:"file",label:"单文件"},{value:"files",label:"多文件"},{value:"selecttext",label:"选择文本"},{value:"currency",label:"货币"},{value:"large_number",label:"长整型"},{value:"number",label:"整数"},{value:"datetime",label:"日期时间"},{value:"date",label:"日期"},{value:"selectnumber",label:"选择数字"},{value:"richtext",label:"富文本"},{value:"bigtext",label:"文本域"},{value:"switch",label:"开关"},{value:"checkbox",label:"多选框"},{value:"DepartmentSelector",label:"部门选择器"}],fieldsRules:[{value:"lengthfixed",label:"lengthfixed"},{value:"required",label:"required"},{value:"unsigned",label:"unsigned"},{value:"unique",label:"unique"},{value:"readonly",label:"readonly"},{value:"hidden",label:"hidden"}],dataSelect:["selecttext","checkbox","selectnumber"],tagShow:{inputData:!1,inputLength:!1,inputDefault:!1,inputRules:!0},modelId:0,form:{},rules:{fieldName:[{required:!0,message:"字段名称不能为空",trigger:"blur"}],fieldTitle:[{required:!0,message:"字段标题不能为空",trigger:"blur"}],fieldType:[{required:!0,message:"字段类型不能为空",trigger:"change"}]}}},created:function(){var e=this.$route.query.modelId;e&&(this.modelId=e),this.getList()},methods:{getList:function(){var e=this;this.loading=!0,s(this.modelId).then((function(t){e.fieldsList=t.data.list?t.data.list:[],e.oldList=e.fieldsList.map((function(t){return"1"==t.model_pk&&(e.fieldPkId=t.field_id),t.field_id})),e.newList=e.oldList.slice(),e.loading=!1,e.$nextTick((function(){e.setSort()}))}))},typeChange:function(e){this.showOption(e)},showOption:function(e){this.dataSelect.includes(e)?(this.tagShow.inputData=!0,this.tagShow.inputLength=!1):"text"==e?(this.tagShow.inputData=!1,this.tagShow.inputLength=!0):(this.tagShow.inputData=!1,this.tagShow.inputLength=!1),this.tagShow.inputDefault="imagefile"!=e&&"images"!=e&&"file"!=e&&"files"!=e,this.tagShow.inputRules="switch"!=e},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={fieldId:void 0,modelId:this.modelId,fieldName:void 0,fieldTitle:void 0,fieldType:"",fieldData:void 0,fieldLength:void 0,fieldDefault:void 0,fieldDesc:void 0,fieldRules:[],fieldWidth:"",fieldAlign:""},this.resetForm("form")},handleQuery:function(){this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.field_id})),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加字段"},handleUpdate:function(e){var t=this;this.reset();var l=e.field_id||this.ids;d(l).then((function(e){var l=e.data;l&&(t.form={fieldId:l.field_id,modelId:l.model_id,fieldName:l.field_name,fieldTitle:l.field_title,fieldType:l.field_type,fieldData:l.field_data,fieldLength:l.field_length,fieldDefault:l.field_default,fieldDesc:l.field_desc,fieldRules:""!=l.field_rules?l.field_rules.split(","):[],fieldWidth:l.field_width,fieldAlign:l.field_align},t.showOption(t.form.fieldType)),t.open=!0,t.title="修改字段"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.fieldId?u(e.form).then((function(t){0===t.code?(e.msgSuccess("修改成功"),e.open=!1,e.getList()):e.msgError(t.msg)})):n(e.form).then((function(t){0===t.code?(e.msgSuccess("新增成功"),e.open=!1,e.getList()):e.msgError(t.msg)})))}))},submitFormList:function(){var e=this;r(this.fieldsList,this.fieldPkId,this.modelId).then((function(t){0===t.code?(e.msgSuccess("修改成功"),e.getList()):e.msgError(t.msg)}))},handleDelete:function(e){var t=this,l=e.field_id?[e.field_id]:this.ids;this.$confirm('是否确认删除字段编号为"'+l+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(l)})).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))},setSort:function(){var e=this,t=this.$refs.dragTable.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];this.sortable=m.a.create(t,{ghostClass:"sortable-ghost",setData:function(e){e.setData("Text","")},onEnd:function(t){var l=e.fieldsList.splice(t.oldIndex,1)[0];e.fieldsList.splice(t.newIndex,0,l);var i=e.newList.splice(t.oldIndex,1)[0];e.newList.splice(t.newIndex,0,i)}})},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/model/list",query:{t:Date.now()}})}}},h=p,b=l("2877"),v=Object(b["a"])(h,i,a,!1,null,null,null);t["default"]=v.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e28b6"],{"7ec5":function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("el-row",{staticClass:"mb8",attrs:{gutter:10}},[l("el-col",{attrs:{span:1.5}},[l("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),e._v(" "),l("el-col",{attrs:{span:1.5}},[l("el-button",{attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),e._v(" "),l("el-col",{attrs:{span:1.5}},[l("el-button",{attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1)],1),e._v(" "),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"dragTable",attrs:{data:e.fieldsList,"row-key":"field_id"},on:{"selection-change":e.handleSelectionChange}},[l("el-table-column",{attrs:{align:"center",width:"40"},scopedSlots:e._u([{key:"default",fn:function(e){return[l("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{type:"selection",width:"45",align:"center"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段编号",align:"center",width:"50",prop:"field_id"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段名称",align:"center",prop:"field_name"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段标题",align:"center",prop:"field_title"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段类型",align:"center",prop:"field_type"}}),e._v(" "),l("el-table-column",{attrs:{label:"字段规则",align:"center",prop:"field_rules"}}),e._v(" "),l("el-table-column",{attrs:{label:"主键","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-radio",{attrs:{label:t.row.field_id},model:{value:e.fieldPkId,callback:function(t){e.fieldPkId=t},expression:"fieldPkId"}},[e._v("是")])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"排序字段","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_sort,callback:function(l){e.$set(t.row,"model_sort",l)},expression:"scope.row.model_sort"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"列表显示","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_list,callback:function(l){e.$set(t.row,"model_list",l)},expression:"scope.row.model_list"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"可编辑","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_edit,callback:function(l){e.$set(t.row,"model_edit",l)},expression:"scope.row.model_edit"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"模型索引","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.model_indexes,callback:function(l){e.$set(t.row,"model_indexes",l)},expression:"scope.row.model_indexes"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"列表查询","min-width":"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.search_list,callback:function(l){e.$set(t.row,"search_list",l)},expression:"scope.row.search_list"}})]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(l){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),l("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(l){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),l("el-form",{attrs:{"label-width":"100px"}},[l("el-form-item",{staticStyle:{"text-align":"center","margin-left":"-100px","margin-top":"10px"}},[l("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitFormList()}}},[e._v("提交")]),e._v(" "),l("el-button",{on:{click:function(t){return e.close()}}},[e._v("返回")])],1)],1),e._v(" "),l("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[l("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"160px"}},[l("el-form-item",{attrs:{label:"字段名称",prop:"fieldName"}},[l("el-input",{attrs:{placeholder:"请输入字段名称"},model:{value:e.form.fieldName,callback:function(t){e.$set(e.form,"fieldName",t)},expression:"form.fieldName"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段标题",prop:"fieldTitle"}},[l("el-input",{attrs:{placeholder:"请输入字段标题"},model:{value:e.form.fieldTitle,callback:function(t){e.$set(e.form,"fieldTitle",t)},expression:"form.fieldTitle"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段类型",prop:"fieldType"}},[l("el-select",{on:{change:e.typeChange},model:{value:e.form.fieldType,callback:function(t){e.$set(e.form,"fieldType",t)},expression:"form.fieldType"}},e._l(e.fieldsType,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputData,expression:"tagShow.inputData"}],attrs:{prop:"fieldData"}},[l("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 字段数据\n "),l("el-tooltip",{attrs:{content:"格式:'1:text1,2:text2,3:text3' 或 '数据表名|值字段名|标题字段名(|排序字段)(|条件)' 或 :字典编码",placement:"top-start"}},[l("i",{staticClass:"el-icon-question"})])],1),e._v(" "),l("el-input",{attrs:{placeholder:"请输入字段数据"},model:{value:e.form.fieldData,callback:function(t){e.$set(e.form,"fieldData",t)},expression:"form.fieldData"}})],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputLength,expression:"tagShow.inputLength"}],attrs:{label:"字段长度",prop:"fieldLength"}},[l("el-input",{attrs:{placeholder:"请输入字段长度"},model:{value:e.form.fieldLength,callback:function(t){e.$set(e.form,"fieldLength",t)},expression:"form.fieldLength"}})],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputDefault,expression:"tagShow.inputDefault"}],attrs:{label:"字段默认值",prop:"fieldDefault"}},[l("el-input",{attrs:{placeholder:"请输入字段默认值 地图类型时'lng,lat'"},model:{value:e.form.fieldDefault,callback:function(t){e.$set(e.form,"fieldDefault",t)},expression:"form.fieldDefault"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段说明",prop:"fieldDesc"}},[l("el-input",{attrs:{placeholder:"请输入字段说明"},model:{value:e.form.fieldDesc,callback:function(t){e.$set(e.form,"fieldDesc",t)},expression:"form.fieldDesc"}})],1),e._v(" "),l("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.tagShow.inputRules,expression:"tagShow.inputRules"}],attrs:{label:"字段规则",prop:"fieldRules"}},[l("el-select",{attrs:{multiple:""},model:{value:e.form.fieldRules,callback:function(t){e.$set(e.form,"fieldRules",t)},expression:"form.fieldRules"}},e._l(e.fieldsRules,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),l("el-form-item",{attrs:{label:"字段列表显示宽度",prop:"fieldWidth"}},[l("el-input",{attrs:{placeholder:"请输入字段列表显示宽度"},model:{value:e.form.fieldWidth,callback:function(t){e.$set(e.form,"fieldWidth",t)},expression:"form.fieldWidth"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"字段列表对齐方式",prop:"fieldAlign"}},[l("el-input",{attrs:{placeholder:"请输入字段列表对齐方式"},model:{value:e.form.fieldAlign,callback:function(t){e.$set(e.form,"fieldAlign",t)},expression:"form.fieldAlign"}})],1)],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),l("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],o=(l("fc02"),l("aa18"),l("982e"),l("b775"));function n(e){return Object(o["a"])({url:"/system/model/fields/add",method:"post",data:e})}function s(e){return Object(o["a"])({url:"/system/model/fields/list",method:"get",params:{modelId:e}})}function r(e,t,l){return Object(o["a"])({url:"/system/model/fields/setFieldsAttr",method:"post",data:{fieldsList:e,pkId:t,modelId:l}})}function d(e){return Object(o["a"])({url:"/system/model/fields/edit?id="+e,method:"get"})}function u(e){return Object(o["a"])({url:"/system/model/fields/edit",method:"post",data:e})}function c(e){return Object(o["a"])({url:"/system/model/fields/delete",method:"delete",data:{ids:e}})}var f=l("e7e2"),m=l.n(f),p={name:"Post",data:function(){return{loading:!0,ids:[],fieldPkId:null,single:!0,multiple:!0,fieldsList:[],oldList:[],newList:[],title:"",open:!1,statusOptions:[],fieldsType:[{value:"text",label:"文本"},{value:"baidu_map",label:"百度地图坐标"},{value:"imagefile",label:"单图片"},{value:"images",label:"多图片"},{value:"file",label:"单文件"},{value:"files",label:"多文件"},{value:"selecttext",label:"选择文本"},{value:"currency",label:"货币"},{value:"large_number",label:"长整型"},{value:"number",label:"整数"},{value:"datetime",label:"日期时间"},{value:"date",label:"日期"},{value:"selectnumber",label:"选择数字"},{value:"richtext",label:"富文本"},{value:"bigtext",label:"文本域"},{value:"switch",label:"开关"},{value:"checkbox",label:"多选框"},{value:"DepartmentSelector",label:"部门选择器"}],fieldsRules:[{value:"lengthfixed",label:"lengthfixed"},{value:"required",label:"required"},{value:"unsigned",label:"unsigned"},{value:"unique",label:"unique"},{value:"readonly",label:"readonly"},{value:"hidden",label:"hidden"}],dataSelect:["selecttext","checkbox","selectnumber"],tagShow:{inputData:!1,inputLength:!1,inputDefault:!1,inputRules:!0},modelId:0,form:{},rules:{fieldName:[{required:!0,message:"字段名称不能为空",trigger:"blur"}],fieldTitle:[{required:!0,message:"字段标题不能为空",trigger:"blur"}],fieldType:[{required:!0,message:"字段类型不能为空",trigger:"change"}]}}},created:function(){var e=this.$route.query.modelId;e&&(this.modelId=e),this.getList()},methods:{getList:function(){var e=this;this.loading=!0,s(this.modelId).then((function(t){e.fieldsList=t.data.list?t.data.list:[],e.oldList=e.fieldsList.map((function(t){return"1"==t.model_pk&&(e.fieldPkId=t.field_id),t.field_id})),e.newList=e.oldList.slice(),e.loading=!1,e.$nextTick((function(){e.setSort()}))}))},typeChange:function(e){this.showOption(e)},showOption:function(e){this.dataSelect.includes(e)?(this.tagShow.inputData=!0,this.tagShow.inputLength=!1):"text"==e?(this.tagShow.inputData=!1,this.tagShow.inputLength=!0):(this.tagShow.inputData=!1,this.tagShow.inputLength=!1),this.tagShow.inputDefault="imagefile"!=e&&"images"!=e&&"file"!=e&&"files"!=e,this.tagShow.inputRules="switch"!=e},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={fieldId:void 0,modelId:this.modelId,fieldName:void 0,fieldTitle:void 0,fieldType:"",fieldData:void 0,fieldLength:void 0,fieldDefault:void 0,fieldDesc:void 0,fieldRules:[],fieldWidth:"",fieldAlign:""},this.resetForm("form")},handleQuery:function(){this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.field_id})),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加字段"},handleUpdate:function(e){var t=this;this.reset();var l=e.field_id||this.ids;d(l).then((function(e){var l=e.data;l&&(t.form={fieldId:l.field_id,modelId:l.model_id,fieldName:l.field_name,fieldTitle:l.field_title,fieldType:l.field_type,fieldData:l.field_data,fieldLength:l.field_length,fieldDefault:l.field_default,fieldDesc:l.field_desc,fieldRules:""!=l.field_rules?l.field_rules.split(","):[],fieldWidth:l.field_width,fieldAlign:l.field_align},t.showOption(t.form.fieldType)),t.open=!0,t.title="修改字段"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.fieldId?u(e.form).then((function(t){0===t.code?(e.msgSuccess("修改成功"),e.open=!1,e.getList()):e.msgError(t.msg)})):n(e.form).then((function(t){0===t.code?(e.msgSuccess("新增成功"),e.open=!1,e.getList()):e.msgError(t.msg)})))}))},submitFormList:function(){var e=this;r(this.fieldsList,this.fieldPkId,this.modelId).then((function(t){0===t.code?(e.msgSuccess("修改成功"),e.getList()):e.msgError(t.msg)}))},handleDelete:function(e){var t=this,l=e.field_id?[e.field_id]:this.ids;this.$confirm('是否确认删除字段编号为"'+l+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(l)})).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))},setSort:function(){var e=this,t=this.$refs.dragTable.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];this.sortable=m.a.create(t,{ghostClass:"sortable-ghost",setData:function(e){e.setData("Text","")},onEnd:function(t){var l=e.fieldsList.splice(t.oldIndex,1)[0];e.fieldsList.splice(t.newIndex,0,l);var i=e.newList.splice(t.oldIndex,1)[0];e.newList.splice(t.newIndex,0,i)}})},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/model/list",query:{t:Date.now()}})}}},h=p,b=l("cba8"),v=Object(b["a"])(h,i,a,!1,null,null,null);t["default"]=v.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f012d"],{"9b8f":function(e,r,n){"use strict";n.r(r);n("a481");var t,u,a={created:function(){var e=this.$route,r=e.params,n=e.query,t=r.path;this.$router.replace({path:"/"+t,query:n})},render:function(e){return e()}},c=a,o=n("2877"),p=Object(o["a"])(c,t,u,!1,null,null,null);r["default"]=p.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f012d"],{"9b8f":function(e,r,n){"use strict";n.r(r);n("8dee");var t,u,a={created:function(){var e=this.$route,r=e.params,n=e.query,t=r.path;this.$router.replace({path:"/"+t,query:n})},render:function(e){return e()}},c=a,o=n("cba8"),p=Object(o["a"])(c,t,u,!1,null,null,null);r["default"]=p.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c84d3"],{"53fe":function(t,e,n){var o,i; (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d226555"],{e7e2:function(t,e,n){var o,i;
/**! /**!
* Sortable * Sortable
* @author RubaXa <trash@rubaxa.org> * @author RubaXa <trash@rubaxa.org>
......
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22db58"],{f93b:function(n,e,o){"use strict";o.r(e);var t=function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("div")},u=[],l={name:"returnurl",created:function(){},mounted:function(){window.opener=null,window.open("",self),window.close()}},c=l,r=o("2877"),i=Object(r["a"])(c,t,u,!1,null,null,null);e["default"]=i.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22db58"],{f93b:function(n,e,o){"use strict";o.r(e);var t=function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("div")},u=[],c={name:"returnurl",created:function(){},mounted:function(){window.opener=null,window.open("",self),window.close()}},l=c,r=o("cba8"),i=Object(r["a"])(l,t,u,!1,null,null,null);e["default"]=i.exports}}]);
\ 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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d2ff5d1"],{3746:function(e,i,t){"use strict";t.r(i);var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"fill-store-inf"},[t("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"注册账号"}}),e._v(" "),t("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),t("div",{staticClass:"main-con"},[t("el-form",{ref:"mainForm",staticClass:"main-form-con",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px",size:"small"}},[t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业资质信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"营业执照:",prop:"license"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{"padding-right":"6px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.licenseImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.licenseImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(i){e.dialogVisible=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"400px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小为500KB以内,支持png/jpg,限一张,请确保图片清晰")]),t("br"),e._v(" "),t("span",{staticClass:"tips-text"},[e._v("请确保营业执照在有效期内")])])])]),e._v(" "),t("el-form-item",{attrs:{label:"企业名称:",prop:"organization_name","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_name,callback:function(i){e.$set(e.mainForm,"organization_name",i)},expression:"mainForm.organization_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"统一社会代码:",prop:"license_number","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.license_number,callback:function(i){e.$set(e.mainForm,"license_number",i)},expression:"mainForm.license_number"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.periodLongTermChange},model:{value:e.periodConcreteTime,callback:function(i){e.periodConcreteTime=i},expression:"periodConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},attrs:{disabled:e.isPeriodDisabled},on:{change:e.periodConcreteChange},model:{value:e.periodLongTermVal,callback:function(i){e.periodLongTermVal=i},expression:"periodLongTermVal"}},[e._v("长期\n ")]),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("具体时间和长期,二者必填一个")])],1),e._v(" "),t("el-form-item",{attrs:{label:"企业地址:",prop:"organization_address","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_address,callback:function(i){e.$set(e.mainForm,"organization_address",i)},expression:"mainForm.organization_address"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整地址填写")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对营业执照信息,若信息不符合,可手动修改")])]),e._v(" "),t("el-divider"),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业法人信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"法人身份证:",prop:"idcard_front"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardPositive,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.idcardImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(i){e.dialogVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardBackImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"file-list":e.idcardBackImgFileList,"before-upload":e.beforeUpImg,"on-preview":e.handleBackPictureCardPreview2,"on-remove":e.handleBackRemove2,"http-request":e.uploadIdcardBack}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogBackVisible2},on:{"update:visible":function(i){e.dialogBackVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogBackImageUrl2,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小为500KB以内,支持png/jpg,每个上传框限一张,请确保图片清晰")])])]),e._v(" "),t("div",{staticClass:"idcard-tips-con"},[t("p",[e._v("请上传身份证正面")]),e._v(" "),t("p",[e._v("请上传身份证国徽面")])])]),e._v(" "),t("el-form-item",{attrs:{label:"法定姓名:",prop:"real_name"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.real_name,callback:function(i){e.$set(e.mainForm,"real_name",i)},expression:"mainForm.real_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的法人填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"法定代表人证件号:",prop:"idcard_number"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.idcard_number,callback:function(i){e.$set(e.mainForm,"idcard_number",i)},expression:"mainForm.idcard_number"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"有效期至:",prop:"idcard_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},on:{change:e.validityConcreteTimeChange},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTermValChange},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对企业法人信息,若信息不符合,可手动修改")])]),e._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary"},on:{click:function(i){return e.next("mainForm")}}},[e._v("下一步")])],1)])],1)],1)]),e._v(" "),t("el-dialog",{staticClass:"read-fail-dialog",attrs:{title:"提示",visible:e.isReadFailVisible,width:"600px",center:"","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(i){e.isReadFailVisible=i}}},[t("p",[e._v("未能识别有效信息,请重新上传正确的图片或者手动输入相关信息")]),e._v(" "),t("p",[e._v("该弹窗"),t("span",{staticClass:"read-time-m"},[e._v(e._s(e.readTime))]),e._v("S后自动关闭,无需手动关闭")])])],1)},r=[],s=(t("ac6a"),t("a481"),t("28a5"),t("6b1f")),n=t("ed08"),l={name:"FillMainInf",data:function(){var e=this,i=function(i,t,a){e.licenseImgFileList.length>0?a():0===e.licenseImgFileList.length&&a(new Error("营业执照图片至少上传一张"))},t=function(i,t,a){e.idcardImgFileList.length>0?a():0===e.idcardImgFileList.length&&a(new Error("法人证件照图片至少上传一张"))},a=function(e,i,t){var a=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;a.test(i)?t():t(new Error("法人证件号格式有误"))},r=function(i,t,a){0!=e.periodConcreteTime.length&&e.periodConcreteTime||!1!==e.periodLongTermVal?a():a(new Error("营业期限具体时间和长期必须填写其中一个"))},s=function(i,t,a){0!=e.validityConcreteTime.length&&e.validityConcreteTime||!1!==e.validityLongTermVal?a():a(new Error("有效期具体时间和长期必须填写其中一个"))};return{licenseImgFileList:[],idcardImgFileList:[],idcardBackImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogBackImageUrl2:"",dialogBackVisible2:!1,periodConcreteTime:[],periodLongTermVal:!1,validityConcreteTime:[],validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,submitTime:[],mainForm:{license:"",organization_name:"",license_number:"",organization_address:"",idcard_front:"",idcard_back:"",real_name:"",idcard_number:"",idcard_start_time:"",idcard_expires_time:"",license_expires_time:"",license_start_time:""},hasLicense:!1,mainRules:{license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],license_number:[{required:!0,message:"统一社会代码不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"企业地址不能为空",trigger:"blur"}],real_name:[{required:!0,message:"法人姓名不能为空",trigger:"blur"}],idcard_number:[{required:!0,message:"法人证件号不能为空",trigger:"blur"},{required:!0,message:"法人证件号码格式有误",validator:a,trigger:"blur"}],idcard_front:[{required:!0,message:"请上传法人证件电子版图片",validator:t}],license_expires_time:[{validator:r,required:!0,trigger:"change"}],idcard_expires_time:[{validator:s,required:!0,trigger:"change"}]},readTime:5,isReadFailVisible:!1,TIMER:null}},created:function(){var e=this;Object(s["g"])().then((function(i){if(1==i.code&&i.data.user){var t=!1;0==i.data.user.state?t=1==i.data.user.status:1!=i.data.user.state&&2!=i.data.user.state&&3!=i.data.user.state||(t=!0),t&&e.getMain()}}))},destroyed:function(){clearInterval(this.TIMER),this.TIMER=null},mounted:function(){},methods:{periodLongTermChange:function(){Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.periodLongTermVal=!1)},periodConcreteChange:function(){this.periodLongTermVal&&(this.periodConcreteTime=[])},validityConcreteTimeChange:function(){Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.validityLongTermVal=!1)},validityLongTermValChange:function(){this.validityLongTermVal&&(this.validityConcreteTime=[])},beforeUpImg:function(e){var i=e.size/1024>500;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):i?(this.$message({message:"上传图片大小不能超过500k",type:"warning"}),!1):void 0},uploadLicenseImages:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img,type:2};Object(s["m"])(a).then((function(e){1==e.code?(i.licenseImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("license"),i.readLicenseImgInfo(i.licenseImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,i){for(var t=0;t<this.licenseImgFileList.length;t++)e.uid===this.licenseImgFileList[t].uid&&this.licenseImgFileList.splice(t,1)},readLicenseImgInfo:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["h"])(t).then((function(e){if(1==e.code)if(i.mainForm.organization_name=e.data.words_result["单位名称"].words?e.data.words_result["单位名称"].words:"",i.mainForm.license_number=e.data.words_result["社会信用代码"].words?e.data.words_result["社会信用代码"].words:"",i.mainForm.organization_address=e.data.words_result["地址"].words?e.data.words_result["地址"].words:"","长期"==e.data.words_result["有效期"].words||"年月日"==e.data.words_result["有效期"].words)i.periodConcreteTime=[],i.periodLongTermVal=!0;else{var t=e.data.words_result["成立日期"].words?e.data.words_result["成立日期"].words:"",a=e.data.words_result["有效期"].words,r=t.replace(/年|月|日/g,"-").substr(0,t.length-1),s=a.replace(/年|月|日/g,"-").substr(0,a.length-1);i.periodConcreteTime=[],i.periodConcreteTime.push(r),i.periodConcreteTime.push(s),i.periodLongTermVal=!1}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},uploadIdcardPositive:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img,type:2};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_front"),i.readIdcardPositive(i.idcardImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardPositive:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code){if(e.data.words_result)try{i.mainForm.real_name=e.data.words_result["姓名"].words?e.data.words_result["姓名"].words:"",i.mainForm.idcard_number=e.data.words_result["公民身份号码"].words?e.data.words_result["公民身份号码"].words:""}catch(t){i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,i){for(var t=0;t<this.idcardImgFileList.length;t++)e.uid===this.idcardImgFileList[t].uid&&this.idcardImgFileList.splice(t,1)},uploadIdcardBack:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img,type:2};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardBackImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_back"),i.readIdcardBack(i.idcardBackImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardBack:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code)if(e.data.words_result["签发日期"]&&e.data.words_result["失效日期"]){var t=e.data.words_result["签发日期"].words,a=e.data.words_result["失效日期"].words;if("长期"==a)i.validityConcreteTime=[],i.validityLongTermVal=!0;else{var r=/^(\d{4})(\d{2})(\d{2})$/,s=t.replace(r,"$1-$2-$3"),n=a.replace(r,"$1-$2-$3");i.validityConcreteTime=[],i.validityConcreteTime.push(s),i.validityConcreteTime.push(n),i.validityLongTermVal=!1}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3);else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handleBackPictureCardPreview2:function(e){this.dialogBackImageUrl2=e.url,this.dialogBackVisible2=!0},handleBackRemove2:function(e){for(var i=0;i<this.idcardBackImgFileList.length;i++)e.uid===this.idcardBackImgFileList[i].uid&&this.idcardBackImgFileList.splice(i,1)},getMain:function(){var e=this;Object(s["i"])().then((function(i){if(1==i.code){e.resetForm("mainForm"),e.mainForm=i.data;var t=[],a={};t=e.mainForm.license.split(","),t.length>0?t.forEach((function(i){a={},i&&(a.url=i,e.licenseImgFileList.push(a))})):e.licenseImgFileList=[];var r=[],s={};r=e.mainForm.idcard_front.split(","),r.length>0?r.forEach((function(i){s={},i&&(s.url=i,e.idcardImgFileList.push(s))})):e.idcardImgFileList=[];var n=[],l={};if(n=e.mainForm.idcard_back.split(","),n.length>0?n.forEach((function(i){l={},i&&(l.url=i,e.idcardBackImgFileList.push(l))})):e.idcardBackImgFileList=[],0==e.mainForm.license_expires_time)e.periodLongTermVal=!0,e.periodConcreteTime=[];else if(e.mainForm.license_expires_time>0){e.periodLongTermVal=!1,e.periodConcreteTime=[];var o=e.formatterTime(e.mainForm.license_start_time),d=e.formatterTime(e.mainForm.license_expires_time);e.periodConcreteTime.push(o),e.periodConcreteTime.push(d)}if(0==e.mainForm.idcard_expires_time)e.validityLongTermVal=!0,e.validityConcreteTime=[];else if(e.mainForm.idcard_expires_time>0){e.validityLongTermVal=!1,e.validityConcreteTime=[];var c=e.formatterTime(e.mainForm.idcard_start_time),m=e.formatterTime(e.mainForm.idcard_expires_time);e.validityConcreteTime.push(c),e.validityConcreteTime.push(m)}}else e.$message({type:"error",message:i.message?i.message:"获取主体信息失败"})}))},resetForm:function(e){this.periodConcreteTime=[],this.validityConcreteTime=[],this.$refs[e].resetFields()},getBase64:function(e){return new Promise((function(i,t){var a=new FileReader,r="";a.readAsDataURL(e),a.onload=function(){r=a.result},a.onerror=function(e){t(e)},a.onloadend=function(){i(r)}}))},formatterTime:function(e){return Object(n["c"])(1e3*e,"Y-m-d")},showTip2:function(){this.$message({message:"最多上传2张图片",type:"warning"})},showTip:function(){this.$message({message:"最多上传1张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?(this.mainForm.license_expires_time=0,this.mainForm.license_start_time=0):Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.mainForm.license_start_time=new Date(this.periodConcreteTime[0]).getTime()/1e3,this.mainForm.license_expires_time=new Date(this.periodConcreteTime[1]).getTime()/1e3),this.validityLongTermVal?(this.mainForm.idcard_expires_time=0,this.mainForm.idcard_start_time=0):Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.mainForm.idcard_start_time=new Date(this.validityConcreteTime[0]).getTime()/1e3,this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime[1]).getTime()/1e3),this.licenseImgFileList.length>0)for(var t=0;t<this.licenseImgFileList.length;t++)0===t?this.mainForm.license=this.licenseImgFileList[t].url:this.mainForm.license+=","+this.licenseImgFileList[t].url;if(this.idcardImgFileList.length>0)for(var a=0;a<this.idcardImgFileList.length;a++)0===a?this.mainForm.idcard_front=this.idcardImgFileList[a].url:this.mainForm.idcard_front+=","+this.idcardImgFileList[a].url;if(this.idcardBackImgFileList.length>0)for(var r=0;r<this.idcardBackImgFileList.length;r++)0===r?this.mainForm.idcard_back=this.idcardBackImgFileList[r].url:this.mainForm.idcard_back+=","+this.idcardBackImgFileList[r].url;this.$refs[e].validate((function(e){e&&Object(s["b"])(i.mainForm).then((function(e){1==e.code?i.$router.push("/fillShopInf"):i.$message({type:"error",message:e.message?e.message:"保存失败"})}))}))}}},o=l,d=(t("cb77"),t("5c04"),t("2877")),c=Object(d["a"])(o,a,r,!1,null,"7938053c",null);i["default"]=c.exports},"5c04":function(e,i,t){"use strict";t("a65d")},"6b1f":function(e,i,t){"use strict";t.d(i,"g",(function(){return r})),t.d(i,"i",(function(){return s})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return l})),t.d(i,"a",(function(){return o})),t.d(i,"l",(function(){return d})),t.d(i,"j",(function(){return c})),t.d(i,"c",(function(){return m})),t.d(i,"m",(function(){return u})),t.d(i,"e",(function(){return g})),t.d(i,"h",(function(){return p})),t.d(i,"f",(function(){return h})),t.d(i,"k",(function(){return f}));var a=t("b775");function r(e){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/local/organization",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function m(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/local/cate",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:e})}},a65d:function(e,i,t){},c470:function(e,i,t){},cb77:function(e,i,t){"use strict";t("c470")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41a7be60"],{"38f0":function(t,e,n){},7793:function(t,e,n){"use strict";n("38f0")},"92fc":function(t,e,n){t.exports=n.p+"static/img/4.3f411af6.png"},a570:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"entryDetails"},[n("div",{staticClass:"logo-bg"},[t.settitle&&t.settitle.topLogo?n("img",{attrs:{src:t.settitle.topLogo,alt:""}}):t._e()]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"confirm-btn"},[n("p",[n("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary",round:""},on:{click:t.nextStep}},[t._v("\n 立即入驻  "),n("i",{staticClass:"el-icon-right"})])],1)])])},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"main-con"},[i("img",{attrs:{src:n("92fc"),alt:""}})])}],s=n("5302"),c={name:"Index",data:function(){return{channel_id:0,settitle:{bottomCopyright:"",businessHours:1,companyAddress:"",contactTel:"",custServiceQrcode:"",hotlineTel1:"",hotlineTel2:"",onlineTimeEnd:"18:00",onlineTimeStart:"09:00",recordNum:"",topLogo:""}}},created:function(){},mounted:function(){},methods:{getIndexInfo:function(){var t=this,e=(window.location.host,{type:2,site_type:4});Object(s["e"])(e).then((function(e){1==e.code&&(t.channel_id=e.data.channel.id,t.settitle.topLogo=e.data.channel_site[0].logo)}))},getWebSite:function(){var t=this,e={domain:window.location.host,type:2,site_type:4};Object(s["f"])(e).then((function(e){1==e.code&&(t.settitle.topLogo=e.data.channel_site[0].logo)}))},nextStep:function(){this.$router.push("/fillMainInf")}}},a=c,l=(n("7793"),n("2877")),r=Object(l["a"])(a,i,o,!1,null,"38a02556",null);e["default"]=r.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57872cf8"],{c707:function(t,e,c){},cc6c:function(t,e,c){t.exports=c.p+"static/img/401.089007e7.gif"},ec55:function(t,e,c){"use strict";c.r(e);var n=function(){var t=this,e=t.$createElement,c=t._self._c||e;return c("div",{staticClass:"errPage-container"},[c("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:t.back}},[t._v("\n 返回\n ")]),t._v(" "),c("el-row",[c("el-col",{attrs:{span:12}},[c("h1",{staticClass:"text-jumbo text-ginormous"},[t._v("\n 401错误!\n ")]),t._v(" "),c("h2",[t._v("您没有访问权限!")]),t._v(" "),c("h6",[t._v("对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面")]),t._v(" "),c("ul",{staticClass:"list-unstyled"},[c("li",{staticClass:"link-type"},[c("router-link",{attrs:{to:"/"}},[t._v("\n 回首页\n ")])],1)])]),t._v(" "),c("el-col",{attrs:{span:12}},[c("img",{attrs:{src:t.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1)],1)},a=[],s=c("cc6c"),r=c.n(s),i={name:"Page401",data:function(){return{errGif:r.a+"?"+ +new Date}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/"}):this.$router.go(-1)}}},o=i,l=(c("ecf6"),c("cba8")),u=Object(l["a"])(o,n,a,!1,null,"f2e02586",null);e["default"]=u.exports},ecf6:function(t,e,c){"use strict";c("c707")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68f14320"],{"14df":function(t,e,n){"use strict";n("a8f6")},"47af":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MTU5MkY0OTFFQjExRUJBQkE3REQ0N0VCRUQzQzM1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MTU5MkY1OTFFQjExRUJBQkE3REQ0N0VCRUQzQzM1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzgxNTkyRjI5MUVCMTFFQkFCQTdERDQ3RUJFRDNDMzUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzgxNTkyRjM5MUVCMTFFQkFCQTdERDQ3RUJFRDNDMzUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7L2yVbAAAGLklEQVR42tRba2wUVRS+XXaBCiIo9dEYYjDGgA8UbKqiGB9BjSCixvhuMFarxWcTK9X6tiIVAQUREeUpaqwJqBH9oQaFEBFNFH80CBqjWKEoFKEtpa3fYb8hk8nOzt07d9qdk3zZdnf27vnm3Hte905B98RJKgLpDxQCZwOlQBEwBDgeKAaOAxLADuAPYCfwD1+/AzYC+4FW24olLY41EDgBOB84F7gAGElifiI34rQM7/8CrAW+5et2YI8NJQssWLiQSt8PTKAlbYpYeg0wB/gB2NtbFhbLnQncC0wGhqpo5AjgWuAy4CNgAbAB6OhJwsNJ9BrgZNUzMgi4BbgIWA3MBzabWClXkbX5IVDVg2TdciJv9ifAVbIsoyIsA08F3gdGqd6XYcA7wONAyjZhCTP1wAx64nwRmebPAK/rOksdwhI73+UULlT5KXcAq4BTwxIWy84FJqn8lwvpyAabEu4DPAtcp+IjFzNe9zMhXAk8pOInt9ORJXMhfD1QQyvHUcTf3JmJXybCsvCnM8GPq4hzfREYE0RYpkFFLyUUUYQsyRsGZCN8OlAW4kekqtkCtFtQ+ACwFWgKMcatQIkf4SQXvGm1I3XsJVwS04B9IRRtpeM5BRjH+ti0wJEZe1QmwlLH3mg48FccuBHoZmiQcnG3wVh76XRmcawtdEBrDHW7EhjvJdwXuNkgbexmkS6ZzibX+13AW/T0uUxvubaaCcRB1/s/smDYYLiWy9igOEx4qGE2tYvL4Fefz0Xx+zRr1w5eO9/nc/mNm4C/DPQc7xjTIXwGc2aTbkRjwDULmcS0B1i2ktdmk98MOx4plrUFCZK+wnB9SKx+IFsq5yL9GGeEV6R5V6tBVpS+CzjJUNfLhauQPYaJt4kI0To6maDuyUx6bzfpf+mN6zV+q5LX9TXUdazcLFFyNHtTYXpONfy7LuDaRQxXK/i/ePKVGr9RzZs1KGSnZFyS/amUCicDOC13BkzNLnYpnLi4XGPscuBpjWWjI8OF8LGWUjmpnefRJyzyhJVM3lunpSQR4FVLZEWKRLkii/lriklHVchZ04dr1ibZQ4STlgk7jqyWlpZsqc3gpkmS8SRwpGXdIiHsrOkakp6dQ15dyBS1VtnfwTiUYCUMEw4dkVTuKWBKDt+Zwjp2SEQ6FScCnEtYkeKhU+ntcCSYue2KUJ+OBENJFCLjPqHhsd0haznj7Z9R6SR3vjmCgZvpdN6ghXVFbsxikp+u7Df9m5MRWHg38+aFLB9NZCm/+5LFPOGwhW0SbmMfaYWFsZZxTcssOdom4R2WBmtnbqxD9h7NjKuBr2+qgB2FXAhvY/GdCjmNX9Ao8aTSuQ14zVX0LwuolRto4ToVftN9m3jp79lCMZU9dFAzNNLFB1V6r8qRuZqlpdzIR0OGLDk8szbBQb4OMY2rXRbLJo8wg+rvSUNr+FmQvM0WUJuhruukY5JgCDDtCEofeoFGnC1nTB6YpbQs14jTK9nmMZHPZAynp/WTMmt4S0FeokF2nseyfqVlEOnRhh5bfMU3EuoSrkRhlcFA0h5aojLs4VAqWOLpOMQUr63w+XwMHZxJXP5csdvpED7ATsR2g8FGMH08z6P8VDqyXOrZfux9VXlmxDmcASMN9GuhUf5zExZZD7xnuD5GkXQpOxWyr1xvWM9Kj+x54GGOVUKFSw11+5QWTrdRPCfxzgK+CFGeNfNOFivz7qJyzbomOjrTTEsc3aUqvRWkvBYW2cy7aVxgq3TfOCxZJ0kZFjKtlOpro7cG9VYrcgRoq4q/tDCx2ZeNsEgjs5q/Y0x2PxOiTZm6DJnkAzqOzpgSnsmCo0uXsGK6OCuGZJfSWAf9+kh+0smUryFGZL9U6c093+or6CSeU9CvjgHZdayzs5460DlrKbFQjkLMYWzMR1ms0hv6QXvV2qdpW5nuTVPRtlFNvPFzwN26euVyXlrW9MvADcr/iENPirSmyth80J55JifiJfWcwMrm914g2sS8/WqGz65cvhzmqRZnM13KuYkquoc8HJEc/WO2e9abdj7CPNUicU6OLP3MmB31YzyvqPRjPC1hBiuw+GSa+0EtqY3HquAHtfwkrx/U8mvZ5OWjeP8LMAADdln6uCsMhAAAAABJRU5ErkJggg=="},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"i",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return i})),n.d(e,"l",(function(){return o})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return m})),n.d(e,"e",(function(){return p})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return h})),n.d(e,"k",(function(){return A}));var a=n("b775");function r(t){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/local/organization",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/local/brands",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/local/cate",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function h(t){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:t})}function A(t){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:t})}},"83f1":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"to-review"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:3,"align-center":"","finish-status":"success","process-status":"error"}},[a("el-step",{attrs:{title:"注册账号"}}),t._v(" "),a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main"},[a("div",{staticClass:"main-con"},[a("p",[a("img",{attrs:{src:n("47af"),alt:""}})]),t._v(" "),a("p",[t._v("非常抱歉,您的资料审核不通过!")]),t._v(" "),a("p",[t._v("不通过原因:"+t._s(t.msg)+"!请您重新提交认证资料!")]),t._v(" "),a("p",[t._v("如果您有其它的问题,可以拔打我们的服务电话与我们联系")]),t._v(" "),a("p",{staticStyle:{"padding-top":"40px"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.reSubmit}},[t._v("重新提交")])],1)])])])],1)},r=[],c=n("6b1f"),u={name:"ReviewFail",data:function(){return{msg:"具体原因,请联系售后"}},created:function(){var t=this;this.$route.params.msg&&(this.msg=this.$route.params.msg),Object(c["g"])().then((function(e){1==e.code&&e.data.user&&(1==e.data.user.state&&t.$router.push({path:"/index"}),2==e.data.user.state&&t.$router.push({path:"/reviewing"}),3==e.data.user.state&&(t.$router.push({path:"/reviewFail"}),Object(c["j"])().then((function(e){1==e.code&&""!=e.data.Apply.content&&(t.msg=e.data.Apply.content)}))))}))},mounted:function(){history.pushState(null,null,document.URL),window.addEventListener("popstate",(function(){history.pushState(null,null,document.URL)}))},methods:{reSubmit:function(){this.$router.push({path:"/process"})}}},s=u,i=(n("14df"),n("2877")),o=Object(i["a"])(s,a,r,!1,null,"fb5ba59c",null);e["default"]=o.exports},a8f6:function(t,e,n){}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a72892d"],{"14df":function(t,e,n){"use strict";n("8e6c")},"47af":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MTU5MkY0OTFFQjExRUJBQkE3REQ0N0VCRUQzQzM1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MTU5MkY1OTFFQjExRUJBQkE3REQ0N0VCRUQzQzM1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzgxNTkyRjI5MUVCMTFFQkFCQTdERDQ3RUJFRDNDMzUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzgxNTkyRjM5MUVCMTFFQkFCQTdERDQ3RUJFRDNDMzUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7L2yVbAAAGLklEQVR42tRba2wUVRS+XXaBCiIo9dEYYjDGgA8UbKqiGB9BjSCixvhuMFarxWcTK9X6tiIVAQUREeUpaqwJqBH9oQaFEBFNFH80CBqjWKEoFKEtpa3fYb8hk8nOzt07d9qdk3zZdnf27vnm3Hte905B98RJKgLpDxQCZwOlQBEwBDgeKAaOAxLADuAPYCfwD1+/AzYC+4FW24olLY41EDgBOB84F7gAGElifiI34rQM7/8CrAW+5et2YI8NJQssWLiQSt8PTKAlbYpYeg0wB/gB2NtbFhbLnQncC0wGhqpo5AjgWuAy4CNgAbAB6OhJwsNJ9BrgZNUzMgi4BbgIWA3MBzabWClXkbX5IVDVg2TdciJv9ifAVbIsoyIsA08F3gdGqd6XYcA7wONAyjZhCTP1wAx64nwRmebPAK/rOksdwhI73+UULlT5KXcAq4BTwxIWy84FJqn8lwvpyAabEu4DPAtcp+IjFzNe9zMhXAk8pOInt9ORJXMhfD1QQyvHUcTf3JmJXybCsvCnM8GPq4hzfREYE0RYpkFFLyUUUYQsyRsGZCN8OlAW4kekqtkCtFtQ+ACwFWgKMcatQIkf4SQXvGm1I3XsJVwS04B9IRRtpeM5BRjH+ti0wJEZe1QmwlLH3mg48FccuBHoZmiQcnG3wVh76XRmcawtdEBrDHW7EhjvJdwXuNkgbexmkS6ZzibX+13AW/T0uUxvubaaCcRB1/s/smDYYLiWy9igOEx4qGE2tYvL4Fefz0Xx+zRr1w5eO9/nc/mNm4C/DPQc7xjTIXwGc2aTbkRjwDULmcS0B1i2ktdmk98MOx4plrUFCZK+wnB9SKx+IFsq5yL9GGeEV6R5V6tBVpS+CzjJUNfLhauQPYaJt4kI0To6maDuyUx6bzfpf+mN6zV+q5LX9TXUdazcLFFyNHtTYXpONfy7LuDaRQxXK/i/ePKVGr9RzZs1KGSnZFyS/amUCicDOC13BkzNLnYpnLi4XGPscuBpjWWjI8OF8LGWUjmpnefRJyzyhJVM3lunpSQR4FVLZEWKRLkii/lriklHVchZ04dr1ibZQ4STlgk7jqyWlpZsqc3gpkmS8SRwpGXdIiHsrOkakp6dQ15dyBS1VtnfwTiUYCUMEw4dkVTuKWBKDt+Zwjp2SEQ6FScCnEtYkeKhU+ntcCSYue2KUJ+OBENJFCLjPqHhsd0haznj7Z9R6SR3vjmCgZvpdN6ghXVFbsxikp+u7Df9m5MRWHg38+aFLB9NZCm/+5LFPOGwhW0SbmMfaYWFsZZxTcssOdom4R2WBmtnbqxD9h7NjKuBr2+qgB2FXAhvY/GdCjmNX9Ao8aTSuQ14zVX0LwuolRto4ToVftN9m3jp79lCMZU9dFAzNNLFB1V6r8qRuZqlpdzIR0OGLDk8szbBQb4OMY2rXRbLJo8wg+rvSUNr+FmQvM0WUJuhruukY5JgCDDtCEofeoFGnC1nTB6YpbQs14jTK9nmMZHPZAynp/WTMmt4S0FeokF2nseyfqVlEOnRhh5bfMU3EuoSrkRhlcFA0h5aojLs4VAqWOLpOMQUr63w+XwMHZxJXP5csdvpED7ATsR2g8FGMH08z6P8VDqyXOrZfux9VXlmxDmcASMN9GuhUf5zExZZD7xnuD5GkXQpOxWyr1xvWM9Kj+x54GGOVUKFSw11+5QWTrdRPCfxzgK+CFGeNfNOFivz7qJyzbomOjrTTEsc3aUqvRWkvBYW2cy7aVxgq3TfOCxZJ0kZFjKtlOpro7cG9VYrcgRoq4q/tDCx2ZeNsEgjs5q/Y0x2PxOiTZm6DJnkAzqOzpgSnsmCo0uXsGK6OCuGZJfSWAf9+kh+0smUryFGZL9U6c093+or6CSeU9CvjgHZdayzs5460DlrKbFQjkLMYWzMR1ms0hv6QXvV2qdpW5nuTVPRtlFNvPFzwN26euVyXlrW9MvADcr/iENPirSmyth80J55JifiJfWcwMrm914g2sS8/WqGz65cvhzmqRZnM13KuYkquoc8HJEc/WO2e9abdj7CPNUicU6OLP3MmB31YzyvqPRjPC1hBiuw+GSa+0EtqY3HquAHtfwkrx/U8mvZ5OWjeP8LMAADdln6uCsMhAAAAABJRU5ErkJggg=="},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"i",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return i})),n.d(e,"l",(function(){return o})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return m})),n.d(e,"e",(function(){return p})),n.d(e,"h",(function(){return b})),n.d(e,"f",(function(){return h})),n.d(e,"k",(function(){return A}));var a=n("b775");function r(t){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:t})}function c(t){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/local/organization",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/local/brands",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/local/cate",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function h(t){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:t})}function A(t){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:t})}},"83f1":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"to-review"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:3,"align-center":"","finish-status":"success","process-status":"error"}},[a("el-step",{attrs:{title:"注册账号"}}),t._v(" "),a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main"},[a("div",{staticClass:"main-con"},[a("p",[a("img",{attrs:{src:n("47af"),alt:""}})]),t._v(" "),a("p",[t._v("非常抱歉,您的资料审核不通过!")]),t._v(" "),a("p",[t._v("不通过原因:"+t._s(t.msg)+"!请您重新提交认证资料!")]),t._v(" "),a("p",[t._v("如果您有其它的问题,可以拔打我们的服务电话与我们联系")]),t._v(" "),a("p",{staticStyle:{"padding-top":"40px"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.reSubmit}},[t._v("重新提交")])],1)])])])],1)},r=[],c=n("6b1f"),u={name:"ReviewFail",data:function(){return{msg:"具体原因,请联系售后"}},created:function(){var t=this;this.$route.params.msg&&(this.msg=this.$route.params.msg),Object(c["g"])().then((function(e){1==e.code&&e.data.user&&(1==e.data.user.state&&t.$router.push({path:"/index"}),2==e.data.user.state&&t.$router.push({path:"/reviewing"}),3==e.data.user.state&&(t.$router.push({path:"/reviewFail"}),Object(c["j"])().then((function(e){1==e.code&&""!=e.data.Apply.content&&(t.msg=e.data.Apply.content)}))))}))},mounted:function(){history.pushState(null,null,document.URL),window.addEventListener("popstate",(function(){history.pushState(null,null,document.URL)}))},methods:{reSubmit:function(){this.$router.push({path:"/process"})}}},s=u,i=(n("14df"),n("cba8")),o=Object(i["a"])(s,a,r,!1,null,"fb5ba59c",null);e["default"]=o.exports},"8e6c":function(t,e,n){}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60e8ce96"],{"05a2":function(t,e,a){},"6b1f":function(t,e,a){"use strict";a.d(e,"g",(function(){return r})),a.d(e,"i",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"l",(function(){return d})),a.d(e,"j",(function(){return m})),a.d(e,"c",(function(){return c})),a.d(e,"m",(function(){return h})),a.d(e,"e",(function(){return u})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return p})),a.d(e,"k",(function(){return b}));var i=a("b775");function r(t){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:t})}function n(t){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/local/organization",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/local/brands",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/local/upbrands",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:t})}function c(t){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/local/cate",method:"get",params:t})}function g(t){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:t})}function b(t){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:t})}},b176:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"fill-brand-inf"},[a("div",{staticClass:"logo-bg"},[t._e()]),t._v(" "),a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[a("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[a("el-step",{attrs:{title:"填写主体信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写品牌信息"}}),t._v(" "),a("el-step",{attrs:{title:"填写店铺信息"}}),t._v(" "),a("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),t._v(" "),a("div",{staticClass:"main-con"},[a("el-form",{ref:"brandForm",attrs:{model:t.brandForm,rules:t.brandRules,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"经营品牌类型:"}},[a("el-radio-group",{on:{change:t.chooseBrandType},model:{value:t.brandForm.brand_type,callback:function(e){t.$set(t.brandForm,"brand_type",e)},expression:"brandForm.brand_type"}},[a("el-radio",{attrs:{label:1}},[t._v("自有品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("品牌厂商授权")]),t._v(" "),a("el-radio",{attrs:{label:3}},[t._v("无品牌")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],staticClass:"spe-brand-text"},[t._v("\n 品牌一\n ")]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌中文名:",prop:"brand_cn"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_cn,callback:function(e){t.$set(t.brandForm,"brand_cn",e)},expression:"brandForm.brand_cn"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌英文名:",prop:"brand_en"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_en,callback:function(e){t.$set(t.brandForm,"brand_en",e)},expression:"brandForm.brand_en"}})],1),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{ref:"logoImg",attrs:{label:"品牌LOGO:",prop:"brand_logo"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","list-type":"picture-card","http-request":t.uploadLogoImgs,limit:1,"on-exceed":t.showTip,"before-upload":t.beforeUpLogoImg,"on-preview":t.handlePictureCardPreview,"on-remove":t.handleRemove,"file-list":t.brandImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌商标注册号:",prop:"brand_number"}},[a("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:""},model:{value:t.brandForm.brand_number,callback:function(e){t.$set(t.brandForm,"brand_number",e)},expression:"brandForm.brand_number"}})],1),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:"品牌类型:",prop:"brand_range"}},[a("el-radio-group",{model:{value:t.brandForm.brand_range,callback:function(e){t.$set(t.brandForm,"brand_range",e)},expression:"brandForm.brand_range"}},[a("el-radio",{attrs:{label:1}},[t._v("国内品牌")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("国外品牌")])],1)],1),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌方授权书:",prop:"brand_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#",limit:1,"list-type":"picture-card","http-request":t.uploadFactoryImgs,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview2,"on-remove":t.handleRemove2,"file-list":t.factoryImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible2},on:{"update:visible":function(e){t.dialogVisible2=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl2,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]):t._e(),t._v(" "),2===t.brandForm.brand_type?a("el-form-item",{attrs:{label:"授权有效期至:",prop:"brand_auth_time"}},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{type:"date",placeholder:"选择日期"},on:{change:t.validityConcrete},model:{value:t.validityConcreteTime,callback:function(e){t.validityConcreteTime=e},expression:"validityConcreteTime"}}),t._v(" "),a("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:t.validityLongTerm},model:{value:t.validityLongTermVal,callback:function(e){t.validityLongTermVal=e},expression:"validityLongTermVal"}},[t._v("长期\n ")])],1):t._e(),t._v(" "),3!==t.brandForm.brand_type?a("el-form-item",{attrs:{label:"品牌经营授权:",prop:"brand_business_auth"}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("div",{staticStyle:{"padding-right":"6px"}},[a("el-upload",{staticClass:"uploadData",attrs:{action:"#","http-request":t.uploadShopImgs,"list-type":"picture-card",limit:1,"on-exceed":t.showTip,"before-upload":t.beforeUpImg,"on-preview":t.handlePictureCardPreview3,"on-remove":t.handleRemove3,"file-list":t.shopImgFileList}},[a("i",{staticClass:"el-icon-plus"})]),t._v(" "),a("el-dialog",{attrs:{visible:t.dialogVisible3},on:{"update:visible":function(e){t.dialogVisible3=e}}},[a("img",{attrs:{width:"100%",src:t.dialogImageUrl3,alt:""}})])],1),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]):t._e(),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}],attrs:{label:""}},[a("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[a("a",{staticClass:"download-Template-btn",attrs:{href:t.downTemplatehttp}},[a("i",{staticClass:"el-icon-download"}),t._v("下载模板")]),t._v(" "),a("div",[a("span",{staticClass:"tips-text"},[a("i",{staticClass:"el-icon-warning h-warning"})])]),t._v(" "),a("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[a("span",{staticClass:"tips-text"},[t._v("请您点击下载授权书模板,打印并签字盖章,拍照上传。\n 如暂时无法上传该授权,可选择【无品牌】,稍后在店铺信息里面完善品牌信息")])])])]),t._v(" "),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:3!==t.brandForm.brand_type,expression:"brandForm.brand_type !== 3"}]},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.next("brandForm")}}},[t._v("下一步")])],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasBrand,expression:"!hasBrand"}],staticClass:"no-brand"},[a("p",[t._v("您当前选择的是无品牌")]),t._v(" "),a("p",[t._v("这不会影响您入驻的审核")]),t._v(" "),a("p",[t._v("入驻成功后,您可以在店铺信息里,添加您的品牌")]),t._v(" "),a("div",{staticClass:"no-brand-btn"},[a("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:t.back}},[t._v("上一步")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.noBrandNext}},[t._v("下一步")])],1)])],1)])],1)},r=[],n=(a("28a5"),a("6b1f")),s={name:"FillBrandInf",data:function(){var t=this,e=function(e,a,i){2===t.brandForm.brand_type&&null===t.validityConcreteTime&&!1===t.validityLongTermVal?i(new Error("授权有效期具体时间和长期必须填写其中一个")):i()},a=function(e,a,i){t.brandImgFileList.length>0?i():0===t.brandImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))},i=function(e,a,i){t.shopImgFileList.length>0?i():0===t.shopImgFileList.length&&i(new Error("品牌logo图片至少上传一张"))};return{shopTemplatehttp:"http://img3.jxhh.com/shop/brand.doc",factoryTemplatehttp:"http://img3.jxhh.com/shop/factory.doc",hasBrand:!0,dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogImageUrl3:"",dialogVisible3:!1,validityConcreteTime:null,validityLongTermVal:!1,downTemplatehttp:"",brandImgFileList:[],factoryImgFileList:[],shopImgFileList:[],brandForm:{id:0,brand_type:1,brand_cn:"",brand_en:"",brand_logo:"",brand_number:"",brand_range:"",brand_auth_time:"",brand_auth:"",brand_business_auth:""},brandRules:{brand_cn:[{required:!0,message:"品牌中文名称不能为空",trigger:"blur"}],brand_logo:[{required:!0,message:"品牌logo图片至少上传一张",validator:a}],brand_range:[{required:!0,message:"品牌类型需要选择其一",trigger:"blur"}],brand_auth:[{required:!0,message:"品牌授权至少上传一张图片"}],brand_auth_time:[{validator:e,required:!0,trigger:"change"}],brand_business_auth:[{required:!0,message:"品牌经营授权至少上传一张图片",validator:i}]}}},watch:{factoryImgFileList:{handler:function(t,e){var a=this;2===this.brandForm.brand_type&&(this.$refs.brandForm.validateField("brand_auth"),0!==t.length&&this.$nextTick((function(){a.$refs.brandForm.clearValidate("brand_auth")})))},deep:!0}},created:function(){this.getBrands()},mounted:function(){this.downTemplatehttp=this.factoryTemplatehttp},methods:{beforeUpImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500k",type:"warning"}),!1):void 0},beforeUpLogoImg:function(t){var e=t.size/1024>500;return"image/png"!==t.type&&"image/jpg"!==t.type&&"image/jpeg"!=t.type?(this.$message({message:"上传图片格式只支持jpg/png格式",type:"warning"}),!1):e?(this.$message({message:"上传图片大小不能超过500 kb",type:"warning"}),!1):void 0},uploadLogoImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img,type:2};Object(n["m"])(i).then((function(t){1==t.code?(e.brandImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_logo")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadShopImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img,type:2};Object(n["m"])(i).then((function(t){1==t.code?(e.shopImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"}),e.$refs.brandForm.clearValidate("brand_business_auth")):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},uploadFactoryImgs:function(t){var e=this;this.getBase64(t.file).then((function(t){var a=t.split(",");e.Base64img=a[1];var i={img_data:e.Base64img,type:2};Object(n["m"])(i).then((function(t){1==t.code?(e.factoryImgFileList.push({url:t.data.image_url}),e.$message({type:"success",message:"上传成功"})):e.$message({type:"error",message:t.message?t.message:"上传失败"})}))}))},getBase64:function(t){return new Promise((function(e,a){var i=new FileReader,r="";i.readAsDataURL(t),i.onload=function(){r=i.result},i.onerror=function(t){a(t)},i.onloadend=function(){e(r)}}))},chooseBrandType:function(){this.downTemplatehttp="",1===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.shopTemplatehttp):2===this.brandForm.brand_type?(this.hasBrand=!0,this.downTemplatehttp=this.factoryTemplatehttp,this.factoryImgFileList=[],this.brandForm.brand_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1):3===this.brandForm.brand_type&&(this.hasBrand=!1)},clearImg:function(){this.brandImgFileList=[],this.factoryImgFileList=[],this.shopImgFileList=[],this.brandForm.brand_logo="",this.brandForm.brand_auth="",this.brandForm.brand_business_auth="",this.brand_auth_time="",this.validityConcreteTime=null,this.validityLongTermVal=!1},handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!0},handleRemove:function(t,e){for(var a=0;a<this.brandImgFileList.length;a++)t.uid===this.brandImgFileList[a].uid&&this.brandImgFileList.splice(a,1)},handlePictureCardPreview2:function(t){this.dialogImageUrl2=t.url,this.dialogVisible2=!0},handleRemove2:function(t){for(var e=0;e<this.factoryImgFileList.length;e++)t.uid===this.factoryImgFileList[e].uid&&this.factoryImgFileList.splice(e,1)},handlePictureCardPreview3:function(t){this.dialogImageUrl3=t.url,this.dialogVisible3=!0},handleRemove3:function(t){for(var e=0;e<this.shopImgFileList.length;e++)t.uid===this.shopImgFileList[e].uid&&this.shopImgFileList.splice(e,1)},validityConcrete:function(){this.validityConcreteTime&&(this.validityLongTermVal=!1)},validityLongTerm:function(){this.validityLongTermVal&&(this.validityConcreteTime=null)},getBrands:function(){var t=this;Object(n["d"])().then((function(e){if(1==e.code){t.brandForm=e.data[0];var a={},i=[];if(t.brandForm.brand_logo.indexOf(",")>0){i=t.brandForm.brand_logo.split(",");for(var r=0;r<i.length;r++)a={},a.url=i[r],t.brandImgFileList.push(a)}else a.url=t.brandForm.brand_logo,t.brandImgFileList=[],t.brandImgFileList.push(a);var n={},s=[];if(t.brandForm.brand_auth.indexOf(",")>0){s=t.brandForm.brand_auth.split(",");for(var o=0;o<s.length;o++)n={},n.url=s[o],t.factoryImgFileList.push(n)}else n.url=t.brandForm.brand_auth,t.factoryImgFileList=[],t.factoryImgFileList.push(n);var l={},d=[];if(t.brandForm.brand_business_auth.indexOf(",")>0){d=t.brandForm.brand_business_auth.split(",");for(var m=0;m<d.length;m++)l={},l.url=d[m],t.shopImgFileList.push(l)}else l.url=t.brandForm.brand_business_auth,t.shopImgFileList=[],t.shopImgFileList.push(l);0===t.brandForm.brand_auth_time?t.validityLongTermVal=!0:t.validityConcreteTime=t.toStandTime(t.brandForm.brand_auth_time)}else t.$message({type:"error",message:e.message?e.message:""})}))},toStandTime:function(t){var e=new Date(1e3*t),a=e.getFullYear()+"-",i=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",n=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",s=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",o=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return a+i+r+n+s+o},showTip:function(t,e){this.$message({message:"最多上传2张图片",type:"warning"})},back:function(){this.$router.push("/fillMainInf")},next:function(t){var e=this;if(this.validityLongTermVal?this.brandForm.brand_auth_time=this.validityLongTermVal-0-1:!1===this.validityLongTermVal&&this.validityConcreteTime?this.brandForm.brand_auth_time=new Date(this.validityConcreteTime).getTime()/1e3:this.brandForm.brand_auth_time="",this.brandImgFileList.length>0){for(var a=0;a<this.brandImgFileList.length;a++)0===a?this.brandForm.brand_logo=this.brandImgFileList[a].url:this.brandForm.brand_logo+=","+this.brandImgFileList[a].url;this.brandForm.brand_register_cert=this.brandImgFileList[0].url}if(this.factoryImgFileList.length>0)for(var i=0;i<this.factoryImgFileList.length;i++)0===i?this.brandForm.brand_auth=this.factoryImgFileList[i].url:this.brandForm.brand_auth+=","+this.factoryImgFileList[i].url;if(this.shopImgFileList.length>0)for(var r=0;r<this.shopImgFileList.length;r++)0===r?this.brandForm.brand_business_auth=this.shopImgFileList[r].url:this.brandForm.brand_business_auth+=","+this.shopImgFileList[r].url;this.$refs[t].validate((function(t){if(t){var a={},i=[];i.push(e.brandForm),0===e.brandForm.id?(a.brands=i,Object(n["a"])(a).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))):Object(n["l"])(i).then((function(t){1==t.code?e.$router.push("/fillShopInf"):e.$message({type:"error",message:t.message?t.message:"保存失败"})}))}}))},noBrandNext:function(){this.$router.push("/fillShopInf")}}},o=s,l=(a("b54e"),a("2877")),d=Object(l["a"])(o,i,r,!1,null,"f32bd074",null);e["default"]=d.exports},b54e:function(t,e,a){"use strict";a("05a2")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68d5bf9e"],{"8dd8":function(o,e,t){},dd7b:function(o,e,t){"use strict";t.r(e);t("7ded"),t("a78e"),t("720d");var n,i,c={name:"Login",data:function(){return{codeUrl:"",cookiePassword:"",gwToken:"",loginForm:{username:"demo",password:"123456",rememberMe:!1,code:"",uuid:""},loginRules:{},loading:!1,redirect:void 0}},watch:{$route:{handler:function(o){this.redirect=o.query&&o.query.redirect},immediate:!0}},created:function(){this.getssourl()},methods:{getssourl:function(){var o=this,e=window.location.host,t={type:2,site_type:7,domain:e};this.$store.dispatch("getssourl",t).then((function(e){1==e.code&&(o.ssourl=e.data.channel_site[0].domain,o.tiaozuan())})).catch((function(){}))},tiaozuan:function(){if(console.log(this.gwToken),""==this.gwToken||null==this.gwToken){var o=window.location.host,e=document.location.protocol,t=this;setTimeout((function(){window.location.href=e+"//"+t.ssourl+"/login.html?redirect="+e+"//"+o+"/platformlogin"}),1e3)}}}},s=c,d=(t("eecc"),t("2877")),r=Object(d["a"])(s,n,i,!1,null,null,null);e["default"]=r.exports},eecc:function(o,e,t){"use strict";t("8dd8")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c237b40"],{"26fc":function(t,s,i){t.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},2754:function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[t._v("\n 404错误!\n ")]),t._v(" "),i("div",{staticClass:"bullshit__headline"},[t._v("\n "+t._s(t.message)+"\n ")]),t._v(" "),i("div",{staticClass:"bullshit__info"},[t._v("\n 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。\n ")]),t._v(" "),i("router-link",{staticClass:"bullshit__return-home",attrs:{to:"/"}},[t._v("\n 返回首页\n ")])],1)])])},c=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],n={name:"Page404",computed:{message:function(){return"找不到网页!"}}},l=n,e=(i("61b6"),i("2877")),_=Object(e["a"])(l,a,c,!1,null,"279ea4b2",null);s["default"]=_.exports},"61b6":function(t,s,i){"use strict";i("bf69")},a36b:function(t,s,i){t.exports=i.p+"static/img/404.a57b6f31.png"},bf69:function(t,s,i){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6edc8597"],{"3d17":function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"i",(function(){return i})),n.d(e,"c",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return m}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/goods/uploadVideo",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/local/getCategoryList",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/freightNew/getFreight",method:"get",params:t})}function u(t){return Object(r["a"])({url:"/system/goodsNew/addGoods",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/system/goodsNew/info",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/system/goodsNew/goodsEdit",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/system/goodsNew/batchUploadImage",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/local/serviceFee/getByCategory",method:"get",params:t})}function m(t){return Object(r["a"])({url:"/system/goodsNew/synthesisList",method:"post",data:t})}},5252:function(t,e,n){"use strict";n("60a2")},"5a97":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"h",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return d}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/goodsNew/list",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/system/goodsNew/shelvesStatus",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/goodsNew/goodsStatus",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/system/goodsNew/info",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/system/goodsNew/collect",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/system/goodsNew/cancelOnsale",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/goodsNew/cancelOnsaleAll",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/system/goodsNew/onsaleUpdate",method:"post",data:t})}},"60a2":function(t,e,n){},"6b1f":function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"l",(function(){return i})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"m",(function(){return f})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return p})),n.d(e,"k",(function(){return g}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/index/getInfo",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/local/getOrganization",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/local/organization",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/local/shopbrand",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/local/brands",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/local/addShopInfo",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/local/cate",method:"get",params:t})}function h(t){return Object(r["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function p(t){return Object(r["a"])({url:"/local/check/idCard",method:"get",params:t})}function g(t){return Object(r["a"])({url:"/local/qualification/list",method:"get",params:t})}},e3b2:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t._v("商品导入")]),t._v(" "),n("h3",{staticClass:"cton_h3"},[t._v("剩余次数:"+t._s(t.collect_num)+" / 1000次")]),t._v(" "),n("div",{staticClass:"cton_text"},[n("p",[t._v("功能介绍:")]),t._v(" "),n("p",[t._v("\n 商品导入是为了商家快速、方便地将其它平台上已有的商品,一键导入到您的云仓平台,不再用手动输入编写商品信息\n ")]),t._v(" "),n("p",[t._v("使用方法:")]),t._v(" "),n("p",[t._v("\n 复制其它电商平台的商品链接,粘贴至商品链接输入框内,为该商品选择对应的商品分类,选择完成后点击立即获取按钮即可\n ")]),t._v(" "),n("p",[t._v("示例:")]),t._v(" "),n("p",[t._v("京东商品链接如:https://item.jd.com/10684560542.html")]),t._v(" "),n("p",[t._v("温馨提示:")]),t._v(" "),n("p",[t._v("商品在获取过程中,请不要进行其它操作")]),t._v(" "),n("p",[t._v("\n 商品抓取后,默认放入到下架商品中,请手动修改商品相关信息,再提交申请上架\n ")]),t._v(" "),n("p",[t._v("请确保不要将多个平台的商品链接混合输入")]),t._v(" "),n("p",[t._v("每个用户默认拥有1000次商品导入的机会,请慎重使用")])]),t._v(" "),n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"180px"}},[n("el-form-item",{attrs:{label:"商品链接:"}},[n("el-input",{staticStyle:{width:"700px"},attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入其它平台商品的链接,单次最多允许输入10条链接,以英文逗号隔开"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商品分类:"}},[t.el_valuestatus?n("el-cascader",{ref:"cascaderDom",staticStyle:{width:"350px"},attrs:{props:t.props,options:t.options,placeholder:"请选择"},on:{change:t.elvalueclick},model:{value:t.el_value,callback:function(e){t.el_value=e},expression:"el_value"}}):t._e()],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("立即导入")])],1)],1)],1)],1)},a=[],o=(n("1bc7"),n("4057"),n("e680"),n("fc02"),n("2ca7"),n("6b1f")),s=n("5a97"),u=n("3d17"),c=(n("ed08"),{name:"freight",data:function(){return{collect_num:0,form:{desc:""},el_valuestatus:!0,el_value:[],options:[],props:{expandTrigger:"click",lazy:!0,lazyLoad:this.lazyLoad,value:"id",label:"title",leaf:"leaf"}}},components:{},created:function(){this.info()},watch:{},methods:{info:function(){var t=this;Object(o["j"])().then((function(e){1==e.code&&(t.collect_num=e.data.collect_num)}))},onSubmit:function(){var t=this;if(this.collect_num<=0)this.$message({type:"warning",message:"您好,您的导入次数已用完,请您联系我们的工作人员操作充值"});else{var e;if(!this.form.desc)return this.$message.error("请填写需要导入的商品链接!"),!1;if(e=this.form.desc.split(","),!(e.length>0&&e.length<=10))return e.length>10?(this.$message({message:"您单次输入的链接数量超过10条!",type:"warning"}),!1):(this.$message.error("请填写需要导入的商品链接!"),!1);if(Number(e.length)>Number(this.collect_num))this.$message({type:"warning",message:"您好,准备导入的商品条数过多,当前剩余次数不足,请重新输入"});else{if(3!=this.el_value.length)return this.$message.error("请选择商品分类!"),!1;var n={category_id:this.el_value[2],third_url:e};Object(s["f"])(n).then((function(n){var r=0,a=Number(e.length),o="";1===n.code?(1===a?1===Number(n.data)?t.$message({type:"success",message:"您好,商品已导入成功,请在仓库中进行编辑后申请上架"}):t.$message({type:"error",message:"您好,商品导入失败,请您重新导入"}):a>1&&(r=Number(n.data),o="您好,一共导入"+a+"条商品,"+r+"条导入成功,请在仓库中进行编辑后申请上架",t.$message({type:"warning",message:o})),t.el_value=[],t.$refs.cascaderDom.$refs.panel.activePath=[],t.form.desc=""):(o=n.message?n.message:"导入失败",t.$message({type:"error",message:o})),t.info()}))}}},add:function(t,e){var n,r,a,o;try{n=t.toString().split(".")[1].length,r=e.toString().split(".")[1].length}catch(s){n=0,r=0}return a=Math.pow(10,Math.max(n,r)),o=(t*a+e*a)/a,o=o.toFixed(2),o},minus:function(t,e){return this.add(t,-e)},elvalueclick:function(){},lazyLoad:function(t,e){this.SSQList=[],this.SSQStr="",this.getArea(t,e),this.SSQList&&this.SSQList.length>0?this.isNextStep=!1:this.isNextStep=!0},getArea:function(t,e){var n=t.level,r={};0===n&&(r={parent_id:0}),n>0&&(r={parent_id:t.value}),Object(u["b"])(r).then((function(t){var r={};r=t.data,r.forEach((function(t){t.value=t.id,t.label=t.label,t.children=[],t.leaf=n>=2})),e(r)}))}}}),i=c,l=(n("5252"),n("cba8")),d=Object(l["a"])(i,r,a,!1,null,"d731cf5e",null);e["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c2f4fe6"],{"6b1f":function(t,e,o){"use strict";o.d(e,"g",(function(){return r})),o.d(e,"i",(function(){return a})),o.d(e,"b",(function(){return c})),o.d(e,"d",(function(){return u})),o.d(e,"a",(function(){return i})),o.d(e,"l",(function(){return s})),o.d(e,"j",(function(){return l})),o.d(e,"c",(function(){return d})),o.d(e,"m",(function(){return f})),o.d(e,"e",(function(){return h})),o.d(e,"h",(function(){return p})),o.d(e,"f",(function(){return m})),o.d(e,"k",(function(){return g}));var n=o("b775");function r(t){return Object(n["a"])({url:"/system/index/getInfo",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/local/getOrganization",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/local/organization",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/local/shopbrand",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/local/brands",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(n["a"])({url:"/local/addShopInfo",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/local/cate",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function m(t){return Object(n["a"])({url:"/local/check/idCard",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/local/qualification/list",method:"get",params:t})}},"74bc":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div")},r=[],a=o("5c96"),c=o("6b1f"),u=(o("b775"),{name:"Platformlogin",data:function(){return{ssourl:""}},created:function(){this.getssourl()},methods:{getssourl:function(){var t=this,e=window.location.host,o={type:2,site_type:7,domain:e};this.$store.dispatch("getssourl",o).then((function(e){1==e.code&&(t.ssourl=e.data.channel_site[0].domain,t.gotosso())})).catch((function(){}))},gotosso:function(){var t=this,e=this.$route.query.ticket;this.$store.dispatch("Login",{ticket:e}).then((function(e){if(""!=e.token)Object(c["j"])().then((function(e){if(1===e.code)switch(e.data.state){case 0:switch(e.data.status){case 0:t.$router.push({path:"/process"});break;case 1:t.$router.push({path:"/fillShopInf"});break}break;case 1:t.$router.push({path:"/index"});break;case 2:t.$router.push({path:"/reviewing"});break;case 3:var o=e.data.Apply.content;t.$router.push({name:"reviewFail",params:{msg:o}});break}else e&&e.msg?a["Notification"].error({title:"提示:",message:e.msg}):a["Notification"].error({title:"提示:",message:"刷新浏览器后,再次登录,若仍不行,请联系我们!"})}));else{t.$store.dispatch("Statistic"),t.$store.dispatch("FedLogOut");var o=window.location.host,n=document.location.protocol,r=t;setTimeout((function(){window.location.href=n+"//"+r.ssourl+"/api/v2/logout?redirect="+n+"//"+o+"/login"}),1e3)}t.loading=!1})).catch((function(){t.$store.dispatch("FedLogOut");var e=window.location.host,o=document.location.protocol,n=t;setTimeout((function(){window.location.href=o+"//"+n.ssourl+"/api/v2/logout?redirect="+o+"//"+e+"/login"}),1e3),t.loading=!1}))}}}),i=u,s=o("2877"),l=Object(s["a"])(i,n,r,!1,null,null,null);e["default"]=l.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c2f4fe6"],{"6b1f":function(t,e,o){"use strict";o.d(e,"g",(function(){return r})),o.d(e,"i",(function(){return a})),o.d(e,"b",(function(){return c})),o.d(e,"d",(function(){return u})),o.d(e,"a",(function(){return i})),o.d(e,"l",(function(){return s})),o.d(e,"j",(function(){return l})),o.d(e,"c",(function(){return d})),o.d(e,"m",(function(){return f})),o.d(e,"e",(function(){return h})),o.d(e,"h",(function(){return p})),o.d(e,"f",(function(){return m})),o.d(e,"k",(function(){return g}));var n=o("b775");function r(t){return Object(n["a"])({url:"/system/index/getInfo",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/local/getOrganization",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/local/organization",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/local/shopbrand",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/local/brands",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/local/upbrands",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/local/getShopInfo",method:"get",params:t})}function d(t){return Object(n["a"])({url:"/local/addShopInfo",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/local/cate",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/local/check/businessLicense",method:"get",params:t})}function m(t){return Object(n["a"])({url:"/local/check/idCard",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/local/qualification/list",method:"get",params:t})}},"74bc":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div")},r=[],a=o("2ca7"),c=o("6b1f"),u=(o("b775"),{name:"Platformlogin",data:function(){return{ssourl:""}},created:function(){this.getssourl()},methods:{getssourl:function(){var t=this,e=window.location.host,o={type:2,site_type:7,domain:e};this.$store.dispatch("getssourl",o).then((function(e){1==e.code&&(t.ssourl=e.data.channel_site[0].domain,t.gotosso())})).catch((function(){}))},gotosso:function(){var t=this,e=this.$route.query.ticket;this.$store.dispatch("Login",{ticket:e}).then((function(e){if(""!=e.token)Object(c["j"])().then((function(e){if(1===e.code)switch(e.data.state){case 0:switch(e.data.status){case 0:t.$router.push({path:"/process"});break;case 1:t.$router.push({path:"/fillShopInf"});break}break;case 1:t.$router.push({path:"/index"});break;case 2:t.$router.push({path:"/reviewing"});break;case 3:var o=e.data.Apply.content;t.$router.push({name:"reviewFail",params:{msg:o}});break}else e&&e.msg?a["Notification"].error({title:"提示:",message:e.msg}):a["Notification"].error({title:"提示:",message:"刷新浏览器后,再次登录,若仍不行,请联系我们!"})}));else{t.$store.dispatch("Statistic"),t.$store.dispatch("FedLogOut");var o=window.location.host,n=document.location.protocol,r=t;setTimeout((function(){window.location.href=n+"//"+r.ssourl+"/api/v2/logout?redirect="+n+"//"+o+"/login"}),1e3)}t.loading=!1})).catch((function(){t.$store.dispatch("FedLogOut");var e=window.location.host,o=document.location.protocol,n=t;setTimeout((function(){window.location.href=o+"//"+n.ssourl+"/api/v2/logout?redirect="+o+"//"+e+"/login"}),1e3),t.loading=!1}))}}}),i=u,s=o("cba8"),l=Object(s["a"])(i,n,r,!1,null,null,null);e["default"]=l.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8e67e28e"],{6650:function(o,e,t){},dd7b:function(o,e,t){"use strict";t.r(e);t("7ded"),t("8c92"),t("509f");var n,i,c={name:"Login",data:function(){return{codeUrl:"",cookiePassword:"",gwToken:"",loginForm:{username:"demo",password:"123456",rememberMe:!1,code:"",uuid:""},loginRules:{},loading:!1,redirect:void 0}},watch:{$route:{handler:function(o){this.redirect=o.query&&o.query.redirect},immediate:!0}},created:function(){this.getssourl()},methods:{getssourl:function(){var o=this,e=window.location.host,t={type:2,site_type:7,domain:e};this.$store.dispatch("getssourl",t).then((function(e){1==e.code&&(o.ssourl=e.data.channel_site[0].domain,o.tiaozuan())})).catch((function(){}))},tiaozuan:function(){if(console.log(this.gwToken),""==this.gwToken||null==this.gwToken){var o=window.location.host,e=document.location.protocol,t=this;setTimeout((function(){window.location.href=e+"//"+t.ssourl+"/login.html?redirect="+e+"//"+o+"/platformlogin"}),1e3)}}}},s=c,r=(t("eecc"),t("cba8")),u=Object(r["a"])(s,n,i,!1,null,null,null);e["default"]=u.exports},eecc:function(o,e,t){"use strict";t("6650")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48888c23"],{"85ee":function(v,_,t){v.exports=t.p+"static/img/logo_white_sm.9191b2e1.png"},"89fc":function(v,_,t){},a291:function(v,_,t){"use strict";t.r(_);var n=function(){var v=this,_=v.$createElement,t=v._self._c||_;return t("div",{staticClass:"entry"},[v._m(0),v._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:0,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"填写主体信息"}}),v._v(" "),t("el-step",{attrs:{title:"填写品牌信息"}}),v._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),v._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),v._v(" "),t("div",{staticClass:"entry-main"},[t("div",{staticClass:"main-text"},[t("h2",[v._v("胜天半子供应链商家入驻协议书")]),v._v(" "),t("p",[v._v("\n 甲方:北京胜天半子科技有限公司(以下简称“甲方或者平台”)"),t("br")]),v._v(" "),t("p",[v._v("乙方:(以下简称“乙方”)")]),v._v(" "),t("p",[v._v("\n 甲乙双方本着互惠互利的双赢策略,根据甲方商城入驻条件,乙方申请入驻甲方商城,并完全接受甲方的规范,本着自愿、平等、公正原则,甲乙双方在协商一致的基础上达成如下协议:\n ")]),v._v(" "),t("p",[v._v("\n 乙方可在平台上进行商铺发布及管理、推广商品、达成交易意向。\n ")]),v._v(" "),t("h4",[v._v("一、入驻商家基本条件")]),v._v(" "),t("p",[v._v("\n 1、有良好的合作意愿,能提供优质的商品,保证合作的顺利进行,并保证提供良好的售后服务;\n ")]),v._v(" "),t("p",[v._v("\n 2、 乙方申请成为平台入驻商家,应该满足以下条件:\n (1) 乙方已依照中华人民共和国法律注册并领取合法有效的营业执照及其他经营许可;\n (2) 乙方申请经营的商品或服务合法,资质齐全;\n (3)乙方同意本协议及平台相关规则并同意缴纳平台履约保证金1万-5万具体见附件\n "),t("a",{staticClass:"download-Template-btn",attrs:{target:"_blank",href:v.downTemplatehttp}},[v._v("《平台类目费率收取标准》")]),v._v("\n 。 (4) 乙方须保证所提交予乙方的所有材料真实、准确、合法、有效。如相关材料有变更或更新时应及时通知甲方,若导致乙方不符合本协议所规定入驻条件的,甲方有权单方全部或部分限制乙方经营,直至终止本协议。\n ")]),v._v(" "),t("p",[v._v("\n 3、乙方应在签订本协议时向甲方提供(经甲方认可的)包括但不限于以下证明材料复印件:\n (1)营业执照(包括个体户营业执照)、税务登记证;\n (2)拥有注册商标或者拥有正规的品牌授权书。\n (3)商品质检报告、报关单、检验检疫证书、产品来源地证明等。\n ")]),v._v(" "),t("p",[v._v("\n 4、乙方支持并同意所入驻商品满足甲方一件代发的条件。\n ")]),v._v(" "),t("p",[v._v("\n 5、平台相关费用及货款结算周期:\n (1)平台服务费:按照乙方确定的平台供货价根据商品不同类目收取1%-10%平台服务费,具体类目收费标准见附件《平台类目费率收取标准》。\n (2) 货款结算手续费:按照实际结算货款收取0.1%。\n (3) 货款结算周期:自乙方发货后15天。\n (4)如出现因快递物流等因素而造成的商品问题,则以快递物流赔偿协议界定责任人。\n ")]),v._v(" "),t("h4",[v._v("二、平台入驻开通流程")]),v._v(" "),t("p",[v._v("1、乙方注册甲方平台账号;")]),v._v(" "),t("p",[v._v("2、乙方阅读并在线签署平台入驻协议;")]),v._v(" "),t("p",[v._v("3、乙方填写上传公司相关资质和产品资质并经甲方审核确认")]),v._v(" "),t("p",[v._v("4、甲方审核通过后,乙方即可上传商品信息及确定价格体系;")]),v._v(" "),t("p",[v._v("5、甲方审核通过即上线运营;")]),v._v(" "),t("h4",[v._v("三、乙方的声明和保证")]),v._v(" "),t("p",[v._v("1、乙方须在接到订单之后的48小时内及时发货。乙方应自行解决因商品质量及运输等问题引起的客户投诉及索赔事件,并承担由此产生的经济损失和涉及的其他一切法律后果。")]),v._v(" "),t("p",[v._v("2、为方便乙方线上产品的销售,乙方需自行向甲方提供品牌线上销售产品的相关图片、文字描述、必要的商品技术说明、产品培训等信息资料,该资料乙方应当保证真实、准确、有效,且根据甲方需求准备其他的相应电子或者纸质资料。")]),v._v(" "),t("p",[v._v("3、乙方所供商品须为具备市场价格优势的来源于正规渠道的原装正品,同时具备相应资质、质检、原产地等合法证明材料。若在销售中出现商品质量、伪劣、次货等问题损害消费者权益,乙方承诺假一赔十,因产品质量问题产生的一切法律责任由乙方自行承担。")]),v._v(" "),t("p",[v._v("4、乙方在接到甲方或甲方客户提出的售后服务申请后,乙方应在4小时内予以回应,并在24小时内解决。")]),v._v(" "),t("p",[v._v("5、所有商品如无质量问题,可7天无理由退换货,商品如存在质量问题,可以协商退换货或者退款处理,并由乙方承担相关物流费用。")]),v._v(" "),t("p",[v._v("6、保证向甲方提供真实、合法、准确、有效的注册资料,并保证其诸如电子邮件地址、联系电话、联系地址、邮政编码等内容的有效性及安全性,保证甲方及其他用户可以通过上述联系方式与自己进行联系。同时,乙方也有义务在相关资料实际变更时及时更新有关注册资料。")]),v._v(" "),t("p",[v._v("7、所有商品保证合法渠道原厂正品,保障商品质量、承诺售后服务,必须提供销售发票。")]),v._v(" "),t("p",[v._v("8、乙方确保给甲方供货价为全球最低价,零售价不得高于京东或天猫在线销售价。")]),v._v(" "),t("h4",[v._v("四、双方权利义务")]),v._v(" "),t("h5",[v._v("1、甲方权利义务: ")]),v._v(" "),t("p",[v._v("(1)甲方根据本协议向乙方提供电子商务平台及相应技术支持服务,尽力维护平台的正常稳定运行,并努力提升和改进技术,对平台功能及服务进行更新、升级,不断提升平台性能和合作效率。")]),v._v(" "),t("p",[v._v("(2)在本协议有效期限内,甲方有权根据国家相关法律法规、政策及平台运营情况,对公示于平台的规则、流程、收费标准、乙方入驻条件等进行更新、调整。")]),v._v(" "),t("p",[v._v("(3)甲方方按照合同约定及时结算货款并主动续约合同有效期。")]),v._v(" "),t("p",[v._v("(4)如乙方在48小时内未发货,甲方有权利从乙方保证金或账户余额中扣除该订单金额10%的违约金。")]),v._v(" "),t("h5",[v._v("2、乙方权利义务: ")]),v._v(" "),t("p",[v._v("(1)乙方妥善保管商铺管理员账号,如因乙方保管、设置或使用不当造成的经济损失,由乙方自行承担责任。")]),v._v(" "),t("p",[v._v("(2)乙方在使用过程中如发现任何非法盗用乙方账号出现安全漏洞等情况,应立即通知甲方。")]),v._v(" "),t("p",[v._v("(3)乙方负责所售商品的快递物流、清关、发货、售后等服务,如在售后服务中跟客户出现沟通问题,乙方可以咨询甲方,甲方根据实际情况给予技术上的帮助与协调。")]),v._v(" "),t("p",[v._v("(4)乙方保证其所经营销售的产品均为合法渠道的正品正货,并提供销售发票。")]),v._v(" "),t("p",[v._v("(5)乙方保证在平台发布的商品信息真实、准确,符合平台规则及国家相关法律法规的规定,与实际出售的商品一致,不含任何夸大或虚假内容,并对商品信息承担独立的完全的法律责任。")]),v._v(" "),t("p",[v._v("(6)乙方保证对在平台经营的商品或服务拥有合法销售权,商品质量合格,符合国家相关质量标准,不侵犯任何第三方的合法权利,并对其商品质量及商品合法性独立承担全部法律责任。 ")]),v._v(" "),t("p",[v._v("(7)在协议有效期内,乙方不得向与甲方构成商业竞争关系的企业、商业机构或者组织提供有关甲方相关信息或者资料,否则对甲方造成损失的,由乙方负责赔偿。")]),v._v(" "),t("h4",[v._v("五、协议期限")]),v._v(" "),t("p",[v._v("本协议有效期为一年,自在线签订之日起生效。有效期满后,双方可视合作情况在线续签。 ")]),v._v(" "),t("h4",[v._v("六,平台结算及发票")]),v._v(" "),t("p",[v._v("1、关于结算")]),v._v(" "),t("p",[v._v("甲方自发货日起15天后将该订单金额结算到乙方平台余额账户中,乙方可向平台申请货款结算提现。")]),v._v(" "),t("p",[v._v("2、关于发票")]),v._v(" "),t("p",[v._v("乙方在申请提现前需给甲方开具增值税发票,甲方方可给予打款,打款周期为收到发票后3-5个工作日。")]),v._v(" "),t("h4",[v._v("七、银行账户信息")]),v._v(" "),t("p",[v._v("甲乙双方结算以乙方提交的对公账户为准,该对公账户需与乙方所提交的公司资质信息一致。")]),v._v(" "),t("h4",[v._v("八、协议变更、终止及违约责任 ")]),v._v(" "),t("p",[v._v("1、甲乙双方应本着诚实信用的原则履行本协议。任何一方在履约过程中采用欺诈、胁迫或者暴力的手段,另一方均可以解除本协议并要求对方赔偿由此造成的损失。")]),v._v(" "),t("p",[v._v("2、在协议执行期间,如果双方或一方认为需要终止,应提前一个月通知对方,双方在财务结算完毕、各自责任明确履行之后,方可终止协议。某方擅自终止本协议,给对方造成损失的,应赔偿对方损失。")]),v._v(" "),t("p",[v._v("3、经双方协商达成一致,可以对本协议有关条款进行变更,但应当以书面形式确认。")]),v._v(" "),t("p",[v._v("4、一方变更通讯地址或其它联系方式,应自变更之日起十日内,将变更后的地址、联系方式通知另一方,否则变更方应对此造成的一切后果承担责任; ")]),v._v(" "),t("p",[v._v("5、如因客观情况发生重大变化,致使本协议无继续法履行的,经甲乙双方协商同意,可以变更或者终止协议的履行。")]),v._v(" "),t("h4",[v._v("九、保密条款")]),v._v(" "),t("p",[v._v("1、甲、乙双方所提供给对方的一切资料、技术和对项目的策划设计要严格保密,并只能在合作双方公司的业务范围内使用;")]),v._v(" "),t("p",[v._v("2、甲、乙双方均应对在合作过程中所知悉的对方的商业和技术秘密承担保密义务。保密条款不受本协议期限的限制。 ")]),v._v(" "),t("h4",[v._v("十 、其他约定")]),v._v(" "),t("p",[v._v("1、若发生争议,双方本着友好协商原则进行解决。如协商未果,任何一方均可依照法律规定向甲方所在地的人民法院提起诉讼。")]),v._v(" "),t("p",[v._v("2、本合同未尽事宜双方协议而定,可另行签订补充协议,与本协议同具法律效力。   ")]),v._v(" "),t("p",[v._v("3、以上条款请协议各方务必仔细阅读后在线签署,协议各方均不得以不了解协议条款或其他任何理由拒绝履行本协议。")]),v._v(" "),t("p",[v._v("4、本合同为在线线上签署,具备同等法律效力。")])])]),v._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-checkbox",{model:{value:v.isComfirm,callback:function(_){v.isComfirm=_},expression:"isComfirm"}},[v._v("我已仔细阅读并同意签署入驻协议")])],1),v._v(" "),t("p",[v._v("\n 入驻协议约定了双方的权利和义务,及其它的法律责任,请您认真阅读!\n ")]),v._v(" "),t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary",disabled:!v.isComfirm},on:{click:v.nextStep}},[v._v("下一步")])],1)])])],1)},p=[function(){var v=this,_=v.$createElement,n=v._self._c||_;return n("div",{staticClass:"logo-bg"},[n("img",{attrs:{src:t("85ee"),alt:""}})])}],e={name:"IndexOne",data:function(){return{isComfirm:!1,downTemplatehttp:"http://img3.jxhh.com/shop/cate_price.pdf"}},mounted:function(){},methods:{nextStep:function(){this.isComfirm&&this.$router.push("/fillMainInf")}}},s=e,i=(t("f23b"),t("2877")),a=Object(i["a"])(s,n,p,!1,null,"64138cba",null);_["default"]=a.exports},f23b:function(v,_,t){"use strict";t("89fc")}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d2bffd5a"],{"2f71":function(v,_,t){},"85ee":function(v,_,t){v.exports=t.p+"static/img/logo_white_sm.9191b2e1.png"},a291:function(v,_,t){"use strict";t.r(_);var n=function(){var v=this,_=v.$createElement,t=v._self._c||_;return t("div",{staticClass:"entry"},[v._m(0),v._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:0,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"填写主体信息"}}),v._v(" "),t("el-step",{attrs:{title:"填写品牌信息"}}),v._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),v._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),v._v(" "),t("div",{staticClass:"entry-main"},[t("div",{staticClass:"main-text"},[t("h2",[v._v("胜天半子供应链商家入驻协议书")]),v._v(" "),t("p",[v._v("\n 甲方:北京胜天半子科技有限公司(以下简称“甲方或者平台”)"),t("br")]),v._v(" "),t("p",[v._v("乙方:(以下简称“乙方”)")]),v._v(" "),t("p",[v._v("\n 甲乙双方本着互惠互利的双赢策略,根据甲方商城入驻条件,乙方申请入驻甲方商城,并完全接受甲方的规范,本着自愿、平等、公正原则,甲乙双方在协商一致的基础上达成如下协议:\n ")]),v._v(" "),t("p",[v._v("\n 乙方可在平台上进行商铺发布及管理、推广商品、达成交易意向。\n ")]),v._v(" "),t("h4",[v._v("一、入驻商家基本条件")]),v._v(" "),t("p",[v._v("\n 1、有良好的合作意愿,能提供优质的商品,保证合作的顺利进行,并保证提供良好的售后服务;\n ")]),v._v(" "),t("p",[v._v("\n 2、 乙方申请成为平台入驻商家,应该满足以下条件:\n (1) 乙方已依照中华人民共和国法律注册并领取合法有效的营业执照及其他经营许可;\n (2) 乙方申请经营的商品或服务合法,资质齐全;\n (3)乙方同意本协议及平台相关规则并同意缴纳平台履约保证金1万-5万具体见附件\n "),t("a",{staticClass:"download-Template-btn",attrs:{target:"_blank",href:v.downTemplatehttp}},[v._v("《平台类目费率收取标准》")]),v._v("\n 。 (4) 乙方须保证所提交予乙方的所有材料真实、准确、合法、有效。如相关材料有变更或更新时应及时通知甲方,若导致乙方不符合本协议所规定入驻条件的,甲方有权单方全部或部分限制乙方经营,直至终止本协议。\n ")]),v._v(" "),t("p",[v._v("\n 3、乙方应在签订本协议时向甲方提供(经甲方认可的)包括但不限于以下证明材料复印件:\n (1)营业执照(包括个体户营业执照)、税务登记证;\n (2)拥有注册商标或者拥有正规的品牌授权书。\n (3)商品质检报告、报关单、检验检疫证书、产品来源地证明等。\n ")]),v._v(" "),t("p",[v._v("\n 4、乙方支持并同意所入驻商品满足甲方一件代发的条件。\n ")]),v._v(" "),t("p",[v._v("\n 5、平台相关费用及货款结算周期:\n (1)平台服务费:按照乙方确定的平台供货价根据商品不同类目收取1%-10%平台服务费,具体类目收费标准见附件《平台类目费率收取标准》。\n (2) 货款结算手续费:按照实际结算货款收取0.1%。\n (3) 货款结算周期:自乙方发货后15天。\n (4)如出现因快递物流等因素而造成的商品问题,则以快递物流赔偿协议界定责任人。\n ")]),v._v(" "),t("h4",[v._v("二、平台入驻开通流程")]),v._v(" "),t("p",[v._v("1、乙方注册甲方平台账号;")]),v._v(" "),t("p",[v._v("2、乙方阅读并在线签署平台入驻协议;")]),v._v(" "),t("p",[v._v("3、乙方填写上传公司相关资质和产品资质并经甲方审核确认")]),v._v(" "),t("p",[v._v("4、甲方审核通过后,乙方即可上传商品信息及确定价格体系;")]),v._v(" "),t("p",[v._v("5、甲方审核通过即上线运营;")]),v._v(" "),t("h4",[v._v("三、乙方的声明和保证")]),v._v(" "),t("p",[v._v("1、乙方须在接到订单之后的48小时内及时发货。乙方应自行解决因商品质量及运输等问题引起的客户投诉及索赔事件,并承担由此产生的经济损失和涉及的其他一切法律后果。")]),v._v(" "),t("p",[v._v("2、为方便乙方线上产品的销售,乙方需自行向甲方提供品牌线上销售产品的相关图片、文字描述、必要的商品技术说明、产品培训等信息资料,该资料乙方应当保证真实、准确、有效,且根据甲方需求准备其他的相应电子或者纸质资料。")]),v._v(" "),t("p",[v._v("3、乙方所供商品须为具备市场价格优势的来源于正规渠道的原装正品,同时具备相应资质、质检、原产地等合法证明材料。若在销售中出现商品质量、伪劣、次货等问题损害消费者权益,乙方承诺假一赔十,因产品质量问题产生的一切法律责任由乙方自行承担。")]),v._v(" "),t("p",[v._v("4、乙方在接到甲方或甲方客户提出的售后服务申请后,乙方应在4小时内予以回应,并在24小时内解决。")]),v._v(" "),t("p",[v._v("5、所有商品如无质量问题,可7天无理由退换货,商品如存在质量问题,可以协商退换货或者退款处理,并由乙方承担相关物流费用。")]),v._v(" "),t("p",[v._v("6、保证向甲方提供真实、合法、准确、有效的注册资料,并保证其诸如电子邮件地址、联系电话、联系地址、邮政编码等内容的有效性及安全性,保证甲方及其他用户可以通过上述联系方式与自己进行联系。同时,乙方也有义务在相关资料实际变更时及时更新有关注册资料。")]),v._v(" "),t("p",[v._v("7、所有商品保证合法渠道原厂正品,保障商品质量、承诺售后服务,必须提供销售发票。")]),v._v(" "),t("p",[v._v("8、乙方确保给甲方供货价为全球最低价,零售价不得高于京东或天猫在线销售价。")]),v._v(" "),t("h4",[v._v("四、双方权利义务")]),v._v(" "),t("h5",[v._v("1、甲方权利义务: ")]),v._v(" "),t("p",[v._v("(1)甲方根据本协议向乙方提供电子商务平台及相应技术支持服务,尽力维护平台的正常稳定运行,并努力提升和改进技术,对平台功能及服务进行更新、升级,不断提升平台性能和合作效率。")]),v._v(" "),t("p",[v._v("(2)在本协议有效期限内,甲方有权根据国家相关法律法规、政策及平台运营情况,对公示于平台的规则、流程、收费标准、乙方入驻条件等进行更新、调整。")]),v._v(" "),t("p",[v._v("(3)甲方方按照合同约定及时结算货款并主动续约合同有效期。")]),v._v(" "),t("p",[v._v("(4)如乙方在48小时内未发货,甲方有权利从乙方保证金或账户余额中扣除该订单金额10%的违约金。")]),v._v(" "),t("h5",[v._v("2、乙方权利义务: ")]),v._v(" "),t("p",[v._v("(1)乙方妥善保管商铺管理员账号,如因乙方保管、设置或使用不当造成的经济损失,由乙方自行承担责任。")]),v._v(" "),t("p",[v._v("(2)乙方在使用过程中如发现任何非法盗用乙方账号出现安全漏洞等情况,应立即通知甲方。")]),v._v(" "),t("p",[v._v("(3)乙方负责所售商品的快递物流、清关、发货、售后等服务,如在售后服务中跟客户出现沟通问题,乙方可以咨询甲方,甲方根据实际情况给予技术上的帮助与协调。")]),v._v(" "),t("p",[v._v("(4)乙方保证其所经营销售的产品均为合法渠道的正品正货,并提供销售发票。")]),v._v(" "),t("p",[v._v("(5)乙方保证在平台发布的商品信息真实、准确,符合平台规则及国家相关法律法规的规定,与实际出售的商品一致,不含任何夸大或虚假内容,并对商品信息承担独立的完全的法律责任。")]),v._v(" "),t("p",[v._v("(6)乙方保证对在平台经营的商品或服务拥有合法销售权,商品质量合格,符合国家相关质量标准,不侵犯任何第三方的合法权利,并对其商品质量及商品合法性独立承担全部法律责任。 ")]),v._v(" "),t("p",[v._v("(7)在协议有效期内,乙方不得向与甲方构成商业竞争关系的企业、商业机构或者组织提供有关甲方相关信息或者资料,否则对甲方造成损失的,由乙方负责赔偿。")]),v._v(" "),t("h4",[v._v("五、协议期限")]),v._v(" "),t("p",[v._v("本协议有效期为一年,自在线签订之日起生效。有效期满后,双方可视合作情况在线续签。 ")]),v._v(" "),t("h4",[v._v("六,平台结算及发票")]),v._v(" "),t("p",[v._v("1、关于结算")]),v._v(" "),t("p",[v._v("甲方自发货日起15天后将该订单金额结算到乙方平台余额账户中,乙方可向平台申请货款结算提现。")]),v._v(" "),t("p",[v._v("2、关于发票")]),v._v(" "),t("p",[v._v("乙方在申请提现前需给甲方开具增值税发票,甲方方可给予打款,打款周期为收到发票后3-5个工作日。")]),v._v(" "),t("h4",[v._v("七、银行账户信息")]),v._v(" "),t("p",[v._v("甲乙双方结算以乙方提交的对公账户为准,该对公账户需与乙方所提交的公司资质信息一致。")]),v._v(" "),t("h4",[v._v("八、协议变更、终止及违约责任 ")]),v._v(" "),t("p",[v._v("1、甲乙双方应本着诚实信用的原则履行本协议。任何一方在履约过程中采用欺诈、胁迫或者暴力的手段,另一方均可以解除本协议并要求对方赔偿由此造成的损失。")]),v._v(" "),t("p",[v._v("2、在协议执行期间,如果双方或一方认为需要终止,应提前一个月通知对方,双方在财务结算完毕、各自责任明确履行之后,方可终止协议。某方擅自终止本协议,给对方造成损失的,应赔偿对方损失。")]),v._v(" "),t("p",[v._v("3、经双方协商达成一致,可以对本协议有关条款进行变更,但应当以书面形式确认。")]),v._v(" "),t("p",[v._v("4、一方变更通讯地址或其它联系方式,应自变更之日起十日内,将变更后的地址、联系方式通知另一方,否则变更方应对此造成的一切后果承担责任; ")]),v._v(" "),t("p",[v._v("5、如因客观情况发生重大变化,致使本协议无继续法履行的,经甲乙双方协商同意,可以变更或者终止协议的履行。")]),v._v(" "),t("h4",[v._v("九、保密条款")]),v._v(" "),t("p",[v._v("1、甲、乙双方所提供给对方的一切资料、技术和对项目的策划设计要严格保密,并只能在合作双方公司的业务范围内使用;")]),v._v(" "),t("p",[v._v("2、甲、乙双方均应对在合作过程中所知悉的对方的商业和技术秘密承担保密义务。保密条款不受本协议期限的限制。 ")]),v._v(" "),t("h4",[v._v("十 、其他约定")]),v._v(" "),t("p",[v._v("1、若发生争议,双方本着友好协商原则进行解决。如协商未果,任何一方均可依照法律规定向甲方所在地的人民法院提起诉讼。")]),v._v(" "),t("p",[v._v("2、本合同未尽事宜双方协议而定,可另行签订补充协议,与本协议同具法律效力。   ")]),v._v(" "),t("p",[v._v("3、以上条款请协议各方务必仔细阅读后在线签署,协议各方均不得以不了解协议条款或其他任何理由拒绝履行本协议。")]),v._v(" "),t("p",[v._v("4、本合同为在线线上签署,具备同等法律效力。")])])]),v._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-checkbox",{model:{value:v.isComfirm,callback:function(_){v.isComfirm=_},expression:"isComfirm"}},[v._v("我已仔细阅读并同意签署入驻协议")])],1),v._v(" "),t("p",[v._v("\n 入驻协议约定了双方的权利和义务,及其它的法律责任,请您认真阅读!\n ")]),v._v(" "),t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary",disabled:!v.isComfirm},on:{click:v.nextStep}},[v._v("下一步")])],1)])])],1)},p=[function(){var v=this,_=v.$createElement,n=v._self._c||_;return n("div",{staticClass:"logo-bg"},[n("img",{attrs:{src:t("85ee"),alt:""}})])}],e={name:"IndexOne",data:function(){return{isComfirm:!1,downTemplatehttp:"http://img3.jxhh.com/shop/cate_price.pdf"}},mounted:function(){},methods:{nextStep:function(){this.isComfirm&&this.$router.push("/fillMainInf")}}},s=e,i=(t("f23b"),t("cba8")),a=Object(i["a"])(s,n,p,!1,null,"64138cba",null);_["default"]=a.exports},f23b:function(v,_,t){"use strict";t("2f71")}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d585dbc8"],{4656:function(e,t,s){"use strict";s("fd8a")},5530:function(e,t,s){},"6b1f":function(e,t,s){"use strict";s.d(t,"g",(function(){return o})),s.d(t,"i",(function(){return a})),s.d(t,"b",(function(){return r})),s.d(t,"d",(function(){return n})),s.d(t,"a",(function(){return l})),s.d(t,"l",(function(){return c})),s.d(t,"j",(function(){return g})),s.d(t,"c",(function(){return u})),s.d(t,"m",(function(){return m})),s.d(t,"e",(function(){return p})),s.d(t,"h",(function(){return d})),s.d(t,"f",(function(){return h})),s.d(t,"k",(function(){return f}));var i=s("b775");function o(e){return Object(i["a"])({url:"/system/index/getInfo",method:"get",params:e})}function a(e){return Object(i["a"])({url:"/local/getOrganization",method:"get",params:e})}function r(e){return Object(i["a"])({url:"/local/organization",method:"post",data:e})}function n(e){return Object(i["a"])({url:"/local/shopbrand",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/local/brands",method:"post",data:e})}function c(e){return Object(i["a"])({url:"/local/upbrands",method:"post",data:e})}function g(e){return Object(i["a"])({url:"/local/getShopInfo",method:"get",params:e})}function u(e){return Object(i["a"])({url:"/local/addShopInfo",method:"post",data:e})}function m(e){return Object(i["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function p(e){return Object(i["a"])({url:"/local/cate",method:"get",params:e})}function d(e){return Object(i["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(i["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(i["a"])({url:"/local/qualification/list",method:"get",params:e})}},b907:function(e,t,s){"use strict";s("5530")},ba53:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"fill-store-inf"},[s("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),s("el-card",{staticClass:"box-card"},[s("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[s("el-steps",{attrs:{active:2,"align-center":"","finish-status":"success"}},[s("el-step",{attrs:{title:"注册账号"}}),e._v(" "),s("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),s("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),s("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),s("div",{staticClass:"main-con"},[s("el-form",{ref:"storeForm",attrs:{model:e.storeForm,rules:e.shopRules,"label-width":"180px",size:"small"}},[s("el-form-item",{attrs:{label:"电商平台经验:",prop:"is_business_experience"}},[s("el-radio-group",{model:{value:e.storeForm.is_business_experience,callback:function(t){e.$set(e.storeForm,"is_business_experience",t)},expression:"storeForm.is_business_experience"}},[s("el-radio",{attrs:{label:1}},[e._v("有")]),e._v(" "),s("el-radio",{attrs:{label:0}},[e._v("无")])],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺名称:",prop:"store_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入店铺名称"},model:{value:e.storeForm.store_name,callback:function(t){e.$set(e.storeForm,"store_name",t)},expression:"storeForm.store_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"经营类目:",prop:"scope"}},[s("el-select",{staticStyle:{width:"400px"},attrs:{multiple:"",placeholder:"请选择..."},on:{"remove-tag":e.removeTag,"visible-change":function(t){return e.scopeVisibleChange(t)}},model:{value:e.storeForm.scope,callback:function(t){e.$set(e.storeForm,"scope",t)},expression:"storeForm.scope"}},e._l(e.scopeOptions,(function(e){return s("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"店铺LOGO:",prop:"shop_logo"}},[s("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[s("div",{staticStyle:{"padding-right":"6px"}},[s("el-upload",{class:["uploadData",{"hiden-dom":e.logoImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card",limit:1,"on-exceed":e.showTip1,"before-upload":e.beforeUpLogoImg,"http-request":e.uploadLogoImgs,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.logoImgFileList}},[s("i",{staticClass:"el-icon-plus"})]),e._v(" "),s("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[s("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),s("div",[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),s("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[s("span",{staticClass:"tips-text"},[e._v("图片大小在500KB以内,支持png/jpg,限一张,请确保图片清晰")])])])]),e._v(" "),s("el-form-item",{attrs:{label:"运营负责人:",prop:"emergency_name","inline-message":"true"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入运营负责人姓名"},model:{value:e.storeForm.emergency_name,callback:function(t){e.$set(e.storeForm,"emergency_name",t)},expression:"storeForm.emergency_name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"联系电话:",prop:"emergency_tel"}},[s("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入联系电话"},model:{value:e.storeForm.emergency_tel,callback:function(t){e.$set(e.storeForm,"emergency_tel",t)},expression:"storeForm.emergency_tel"}})],1),e._v(" "),s("el-form-item",[s("p",{staticStyle:{width:"580px","line-height":"24px","font-size":"14px",margin:"0"}},[e._v("需要提交特殊产品资质的类目请将资质上传在此处,包括全国工业生产许可证、3C、医疗品械\n 生产许可证、化妆品生产企业许可证等,根据具体类目资质要求提交")])]),e._v(" "),s("el-form-item",{attrs:{label:"其他资质:"}},[s("div",{staticClass:"auth-con"},e._l(e.qualificationList,(function(t,i){return s("div",{key:t.id,staticClass:"single-upload-con"},[s("div",{directives:[{name:"show",rawName:"v-show",value:!t.url,expression:"!item.url"}],staticClass:"single-auth-img el-icon-plus",on:{click:function(t){return e.upPreAuthImg(i)}}}),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.url,expression:"item.url"}],staticClass:"single-auth-img-con"},[s("img",{staticClass:"auth-spec-img",attrs:{src:t.url,alt:""}}),e._v(" "),s("span",{staticClass:"span-img-del-loading"},[s("span",{staticClass:"span-img-del el-icon-zoom-in zoom-span-block",on:{click:function(s){return e.viewSingleSpecImg(i,t)}}}),e._v(" "),s("span",{staticClass:"span-img-del el-icon-delete del-span-block",on:{click:function(s){return e.delSingleSpecImg(i,t)}}})])]),e._v(" "),s("div",{staticClass:"single-title"},[e._v(e._s(e.authTitleFormatter(t.content)))]),e._v(" "),s("input",{ref:"hxz"+i,refInFor:!0,staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*"},on:{change:function(s){return e.changeIMG(i,t)}}})])})),0),e._v(" "),s("div",{staticStyle:{width:"680px","line-height":"24px","padding-top":"6px"}},[s("span",{staticClass:"tips-text"},[s("i",{staticClass:"el-icon-warning h-warning"})]),e._v(" "),s("span",{staticClass:"tips-text"},[e._v("图片大小在500KB以内,支持png/jpg,每个上传位置仅限一张,请确保图片清晰")])])]),e._v(" "),s("el-form-item",{staticClass:"confirm-btn"},[s("div",[s("el-button",{staticStyle:{"margin-right":"40px"},attrs:{type:"primary"},on:{click:e.back}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.next("storeForm")}}},[e._v("提交审核")])],1)])],1)],1)]),e._v(" "),s("el-dialog",{staticClass:"img-dialog-con",attrs:{visible:e.imgDialog,"destroy-on-close":!0,width:"60%",center:"","close-on-click-modal":!1},on:{"update:visible":function(t){e.imgDialog=t}}},[s("img",{staticClass:"img-spe",attrs:{src:e.qualificationUrl,alt:""}})])],1)},o=[],a=(s("1bc7"),s("fc02"),s("6b1f")),r={name:"FillShopInf",data:function(){var e=this,t=function(t,s,i){e.logoImgFileList.length>0?i():0===e.logoImgFileList.length&&i(new Error("店铺logo图片至少上传一张"))},s=function(e,t,s){var i=/^1[3456789]\d{9}$/;i.test(t)?s():s(new Error("手机号码格式有误"))};return{dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,logoImgFileList:[],businessImgFileList:[],scopeOptions:[],storeForm:{is_business_experience:0,store_name:"",scope:[],shop_logo:"",business_auth:"",emergency_name:""},shopRules:{store_name:[{required:!0,message:"店铺名称不能为空",trigger:"blur"},{max:36,message:"店铺名称最多输入36个字符",trigger:"blur"}],scope:[{required:!0,message:"经营类目至少选择一种",trigger:"change"}],shop_logo:[{required:!0,message:"店铺Logo至少上传一张图片",validator:t}],emergency_name:[{required:!0,message:"运营负责人不能为空",trigger:"blur"}],emergency_tel:[{required:!0,message:"联系人手机号码不能为空",trigger:"blur"},{required:!0,validator:s,trigger:"blur"}]},qualificationList:[],qualificationUrl:"",imgDialog:!1}},created:function(){var e=this;Object(a["e"])().then((function(t){1==t.code?e.scopeOptions=t.data:e.$message({type:"error",message:t.message?t.message:""})})),Object(a["g"])().then((function(t){1==t.code&&t.data.user?t.data.user.state>0&&e.getShop():e.$message({type:"error",message:t.message?t.message:"获取数据失败"})}))},mounted:function(){},methods:{showTip1:function(e,t){this.$message({message:"最多上传1张图片",type:"warning"})},showTip20:function(e,t){this.$message({message:"最多上传20张图片",type:"warning"})},beforeUpLogoImg:function(e){var t=e.size/1024>500;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过500kb",type:"warning"}),!1):void 0},beforeUpBusImg:function(e){var t=e.size/1024/1024>2;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):t?(this.$message({message:"上传图片大小不能超过2M",type:"warning"}),!1):void 0},getShop:function(){var e=this;Object(a["j"])().then((function(t){if(1==t.code){if(e.storeForm.scope=[],""===t.data.scope)e.storeForm.scope=[];else{for(var s=t.data.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));e.storeForm=t.data,e.storeForm.scope=i}var a=[],r={};a=e.storeForm.shop_logo.split(","),a.length>0?a.forEach((function(t){r={},t&&(r.url=t,e.logoImgFileList.push(r))})):e.logoImgFileList=[],e.qualificationList=e.storeForm.qualification}else e.$message({type:"error",message:t.message?t.message:""})}))},uploadLogoImgs:function(e){var t=this;this.getBase64(e.file).then((function(e){var s=e.split(",");t.Base64img=s[1];var i={img_data:t.Base64img,type:2};Object(a["m"])(i).then((function(e){1==e.code?(t.logoImgFileList.push({url:e.data.image_url}),t.$message({type:"success",message:"上传成功"}),t.$refs.storeForm.clearValidate("shop_logo")):t.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},uploadBusinessImgs:function(e){console.log(368,e)},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,t){for(var s=0;s<this.logoImgFileList.length;s++)e.uid===this.logoImgFileList[s].uid&&this.logoImgFileList.splice(s,1)},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,t){for(var s=0;s<this.businessImgFileList.length;s++)e.uid===this.businessImgFileList[s].uid&&this.businessImgFileList.splice(s,1)},getBase64:function(e){return new Promise((function(t,s){var i=new FileReader,o="";i.readAsDataURL(e),i.onload=function(){o=i.result},i.onerror=function(e){s(e)},i.onloadend=function(){t(o)}}))},back:function(){this.$router.push("/fillMainInf")},next:function(e){var t=this,s=!1;if(this.qualificationList.length>0){for(var i=0;i<this.qualificationList.length;i++)if(!this.qualificationList[i].url){s=!0;break}if(s)return void this.$message({type:"warning",message:"请上传对应资质所需的图片"})}for(var o="",r=0;r<this.storeForm.scope.length;r++)o+=this.storeForm.scope[r]+",";if(this.storeForm.scope=o.substring(0,o.length-1),this.logoImgFileList.length>0)for(var n=0;n<this.logoImgFileList.length;n++)0===n?this.storeForm.shop_logo=this.logoImgFileList[n].url:this.storeForm.shop_logo+=","+this.logoImgFileList[n].url;this.storeForm.qualification_auth=JSON.stringify(this.qualificationList),this.$refs[e].validate((function(e){if(e)Object(a["c"])(t.storeForm).then((function(e){if(1==e.code)t.$router.push("/reviewing");else if(t.$message({type:"error",message:e.message?e.message:"保存失败"}),""===t.storeForm.scope)t.storeForm.scope=[];else{for(var s=t.storeForm.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));t.storeForm.scope=i}}));else if(""===t.storeForm.scope)t.storeForm.scope=[];else{for(var s=t.storeForm.scope.split(","),i=[],o=0;o<s.length;o++)i.push(parseInt(s[o]));t.storeForm.scope=i}}))},removeTag:function(e){var t=this;if(e&&(0==this.storeForm.scope.length&&(this.qualificationList=[]),this.storeForm.scope.length>0)){var s={cate_ids:this.storeForm.scope};Object(a["k"])(s).then((function(e){1==e.code&&(t.qualificationList=e.data?e.data:[])}))}},scopeVisibleChange:function(e){var t=this;if(!e&&Array.isArray(this.storeForm.scope)&&this.storeForm.scope.length>0){var s={cate_ids:this.storeForm.scope};Object(a["k"])(s).then((function(e){1==e.code&&(t.qualificationList=e.data?e.data:[])}))}},upPreAuthImg:function(e){var t="hxz"+e;this.$refs[t][0].value="",this.$refs[t][0].click()},changeIMG:function(e,t){var s=this,i=t,o="hxz"+e,r=this.$refs[o][0].files[0];r.size>512e3?this.$message({type:"error",message:"规格图片不能大于 500k"}):this.getBase64(r).then((function(e){var t=e.split(",");s.Base64img=t[1];var o={img_data:s.Base64img,type:2};Object(a["m"])(o).then((function(e){e&&1==e.code?(i.url=e.data.image_url,s.$message({message:"上传成功",type:"success"})):s.$message({message:"上传失败,请重新上传",type:"error"})}))}))},delSingleSpecImg:function(e,t){t.url&&(t.url="",this.$message({type:"success",message:"删除成功"}))},viewSingleSpecImg:function(e,t){this.imgDialog=!1,t.url&&(this.imgDialog=!0,this.qualificationUrl=t.url)},authTitleFormatter:function(e){var t="";return e&&(t=e.trim()),t}}},n=r,l=(s("b907"),s("4656"),s("cba8")),c=Object(l["a"])(n,i,o,!1,null,"13f0164c",null);t["default"]=c.exports},fd8a:function(e,t,s){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e11d247e"],{"111d":function(e,i,t){},3746:function(e,i,t){"use strict";t.r(i);var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"fill-store-inf"},[t("div",{staticClass:"logo-bg"},[e._e()]),e._v(" "),t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix steps",attrs:{slot:"header"},slot:"header"},[t("el-steps",{attrs:{active:1,"align-center":"","finish-status":"success"}},[t("el-step",{attrs:{title:"注册账号"}}),e._v(" "),t("el-step",{attrs:{title:"填写主体信息"}}),e._v(" "),t("el-step",{attrs:{title:"填写店铺信息"}}),e._v(" "),t("el-step",{attrs:{title:"提交入驻审核"}})],1)],1),e._v(" "),t("div",{staticClass:"main-con"},[t("el-form",{ref:"mainForm",staticClass:"main-form-con",attrs:{model:e.mainForm,rules:e.mainRules,"label-width":"180px",size:"small"}},[t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业资质信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"营业执照:",prop:"license"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{"padding-right":"6px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.licenseImgFileList.length>=1}],attrs:{action:"#","list-type":"picture-card","http-request":e.uploadLicenseImages,limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"file-list":e.licenseImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(i){e.dialogVisible=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"400px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小为500KB以内,支持png/jpg,限一张,请确保图片清晰")]),t("br"),e._v(" "),t("span",{staticClass:"tips-text"},[e._v("请确保营业执照在有效期内")])])])]),e._v(" "),t("el-form-item",{attrs:{label:"企业名称:",prop:"organization_name","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_name,callback:function(i){e.$set(e.mainForm,"organization_name",i)},expression:"mainForm.organization_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"统一社会代码:",prop:"license_number","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.license_number,callback:function(i){e.$set(e.mainForm,"license_number",i)},expression:"mainForm.license_number"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整名称填写")])],1),e._v(" "),t("el-form-item",{attrs:{gutter:20,label:"营业期限:",prop:"license_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",clearable:!1},on:{change:e.periodLongTermChange},model:{value:e.periodConcreteTime,callback:function(i){e.periodConcreteTime=i},expression:"periodConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},attrs:{disabled:e.isPeriodDisabled},on:{change:e.periodConcreteChange},model:{value:e.periodLongTermVal,callback:function(i){e.periodLongTermVal=i},expression:"periodLongTermVal"}},[e._v("长期\n ")]),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("具体时间和长期,二者必填一个")])],1),e._v(" "),t("el-form-item",{attrs:{label:"企业地址:",prop:"organization_address","inline-message":"true"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.organization_address,callback:function(i){e.$set(e.mainForm,"organization_address",i)},expression:"mainForm.organization_address"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的完整地址填写")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对营业执照信息,若信息不符合,可手动修改")])]),e._v(" "),t("el-divider"),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-title"},[e._v("企业法人信息")])]),e._v(" "),t("el-form-item",{attrs:{label:"法人身份证:",prop:"idcard_front"}},[t("div",{staticStyle:{width:"100%",height:"100%",display:"flex","flex-direction":"row","justify-content":"normal"}},[t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"before-upload":e.beforeUpImg,"http-request":e.uploadIdcardPositive,"on-preview":e.handlePictureCardPreview2,"on-remove":e.handleRemove2,"file-list":e.idcardImgFileList}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogVisible2},on:{"update:visible":function(i){e.dialogVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogImageUrl2,alt:""}})])],1),e._v(" "),t("div",{staticStyle:{padding:"0 20px"}},[t("el-upload",{class:["uploadData",{"hiden-dom":e.idcardBackImgFileList.length>=1}],attrs:{"list-type":"picture-card",action:"#",limit:1,"on-exceed":e.showTip,"file-list":e.idcardBackImgFileList,"before-upload":e.beforeUpImg,"on-preview":e.handleBackPictureCardPreview2,"on-remove":e.handleBackRemove2,"http-request":e.uploadIdcardBack}},[t("i",{staticClass:"el-icon-plus"})]),e._v(" "),t("el-dialog",{attrs:{visible:e.dialogBackVisible2},on:{"update:visible":function(i){e.dialogBackVisible2=i}}},[t("img",{attrs:{width:"100%",src:e.dialogBackImageUrl2,alt:""}})])],1),e._v(" "),t("div",[t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"})])]),e._v(" "),t("div",{staticStyle:{width:"380px","line-height":"24px","padding-top":"6px"}},[t("span",{staticClass:"tips-text"},[e._v("图片大小为500KB以内,支持png/jpg,每个上传框限一张,请确保图片清晰")])])]),e._v(" "),t("div",{staticClass:"idcard-tips-con"},[t("p",[e._v("请上传身份证正面")]),e._v(" "),t("p",[e._v("请上传身份证国徽面")])])]),e._v(" "),t("el-form-item",{attrs:{label:"法定姓名:",prop:"real_name"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.real_name,callback:function(i){e.$set(e.mainForm,"real_name",i)},expression:"mainForm.real_name"}}),e._v(" "),t("span",{staticClass:"tips-text"},[t("i",{staticClass:"el-icon-warning h-warning"}),e._v("请按照营业执照上登记的法人填写")])],1),e._v(" "),t("el-form-item",{attrs:{label:"法定代表人证件号:",prop:"idcard_number"}},[t("el-input",{staticStyle:{width:"400px"},model:{value:e.mainForm.idcard_number,callback:function(i){e.$set(e.mainForm,"idcard_number",i)},expression:"mainForm.idcard_number"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"有效期至:",prop:"idcard_expires_time"}},[t("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},on:{change:e.validityConcreteTimeChange},model:{value:e.validityConcreteTime,callback:function(i){e.validityConcreteTime=i},expression:"validityConcreteTime"}}),e._v(" "),t("el-checkbox",{staticStyle:{"padding-left":"15px"},on:{change:e.validityLongTermValChange},model:{value:e.validityLongTermVal,callback:function(i){e.validityLongTermVal=i},expression:"validityLongTermVal"}},[e._v("长期\n ")])],1),e._v(" "),t("el-form-item",[t("p",{staticClass:"main-form-tips"},[e._v("请核对企业法人信息,若信息不符合,可手动修改")])]),e._v(" "),t("div",{staticClass:"confirm-btn"},[t("p",[t("el-button",{staticStyle:{padding:"8px 30px"},attrs:{type:"primary"},on:{click:function(i){return e.next("mainForm")}}},[e._v("下一步")])],1)])],1)],1)]),e._v(" "),t("el-dialog",{staticClass:"read-fail-dialog",attrs:{title:"提示",visible:e.isReadFailVisible,width:"600px",center:"","close-on-click-modal":!1,"show-close":!1},on:{"update:visible":function(i){e.isReadFailVisible=i}}},[t("p",[e._v("未能识别有效信息,请重新上传正确的图片或者手动输入相关信息")]),e._v(" "),t("p",[e._v("该弹窗"),t("span",{staticClass:"read-time-m"},[e._v(e._s(e.readTime))]),e._v("S后自动关闭,无需手动关闭")])])],1)},r=[],s=(t("1bc7"),t("8dee"),t("fc02"),t("6b1f")),n=t("ed08"),l={name:"FillMainInf",data:function(){var e=this,i=function(i,t,a){e.licenseImgFileList.length>0?a():0===e.licenseImgFileList.length&&a(new Error("营业执照图片至少上传一张"))},t=function(i,t,a){e.idcardImgFileList.length>0?a():0===e.idcardImgFileList.length&&a(new Error("法人证件照图片至少上传一张"))},a=function(e,i,t){var a=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;a.test(i)?t():t(new Error("法人证件号格式有误"))},r=function(i,t,a){0!=e.periodConcreteTime.length&&e.periodConcreteTime||!1!==e.periodLongTermVal?a():a(new Error("营业期限具体时间和长期必须填写其中一个"))},s=function(i,t,a){0!=e.validityConcreteTime.length&&e.validityConcreteTime||!1!==e.validityLongTermVal?a():a(new Error("有效期具体时间和长期必须填写其中一个"))};return{licenseImgFileList:[],idcardImgFileList:[],idcardBackImgFileList:[],dialogImageUrl:"",dialogVisible:!1,dialogImageUrl2:"",dialogVisible2:!1,dialogBackImageUrl2:"",dialogBackVisible2:!1,periodConcreteTime:[],periodLongTermVal:!1,validityConcreteTime:[],validityLongTermVal:!1,isConcretePeriod:!1,isPeriodDisabled:!1,isValidity:!0,submitTime:[],mainForm:{license:"",organization_name:"",license_number:"",organization_address:"",idcard_front:"",idcard_back:"",real_name:"",idcard_number:"",idcard_start_time:"",idcard_expires_time:"",license_expires_time:"",license_start_time:""},hasLicense:!1,mainRules:{license:[{required:!0,message:"请上传营业执照电子版",validator:i}],organization_name:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],license_number:[{required:!0,message:"统一社会代码不能为空",trigger:"blur"}],organization_address:[{required:!0,message:"企业地址不能为空",trigger:"blur"}],real_name:[{required:!0,message:"法人姓名不能为空",trigger:"blur"}],idcard_number:[{required:!0,message:"法人证件号不能为空",trigger:"blur"},{required:!0,message:"法人证件号码格式有误",validator:a,trigger:"blur"}],idcard_front:[{required:!0,message:"请上传法人证件电子版图片",validator:t}],license_expires_time:[{validator:r,required:!0,trigger:"change"}],idcard_expires_time:[{validator:s,required:!0,trigger:"change"}]},readTime:5,isReadFailVisible:!1,TIMER:null}},created:function(){var e=this;Object(s["g"])().then((function(i){if(1==i.code&&i.data.user){var t=!1;0==i.data.user.state?t=1==i.data.user.status:1!=i.data.user.state&&2!=i.data.user.state&&3!=i.data.user.state||(t=!0),t&&e.getMain()}}))},destroyed:function(){clearInterval(this.TIMER),this.TIMER=null},mounted:function(){},methods:{periodLongTermChange:function(){Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.periodLongTermVal=!1)},periodConcreteChange:function(){this.periodLongTermVal&&(this.periodConcreteTime=[])},validityConcreteTimeChange:function(){Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.validityLongTermVal=!1)},validityLongTermValChange:function(){this.validityLongTermVal&&(this.validityConcreteTime=[])},beforeUpImg:function(e){var i=e.size/1024>500;return"image/png"!==e.type&&"image/jpg"!==e.type&&"image/jpeg"!=e.type?(this.$message({message:"上传图片格式只支持png/png格式",type:"warning"}),!1):i?(this.$message({message:"上传图片大小不能超过500k",type:"warning"}),!1):void 0},uploadLicenseImages:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img,type:2};Object(s["m"])(a).then((function(e){1==e.code?(i.licenseImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("license"),i.readLicenseImgInfo(i.licenseImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleRemove:function(e,i){for(var t=0;t<this.licenseImgFileList.length;t++)e.uid===this.licenseImgFileList[t].uid&&this.licenseImgFileList.splice(t,1)},readLicenseImgInfo:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["h"])(t).then((function(e){if(1==e.code)if(i.mainForm.organization_name=e.data.words_result["单位名称"].words?e.data.words_result["单位名称"].words:"",i.mainForm.license_number=e.data.words_result["社会信用代码"].words?e.data.words_result["社会信用代码"].words:"",i.mainForm.organization_address=e.data.words_result["地址"].words?e.data.words_result["地址"].words:"","长期"==e.data.words_result["有效期"].words||"年月日"==e.data.words_result["有效期"].words)i.periodConcreteTime=[],i.periodLongTermVal=!0;else{var t=e.data.words_result["成立日期"].words?e.data.words_result["成立日期"].words:"",a=e.data.words_result["有效期"].words,r=t.replace(/年|月|日/g,"-").substr(0,t.length-1),s=a.replace(/年|月|日/g,"-").substr(0,a.length-1);i.periodConcreteTime=[],i.periodConcreteTime.push(r),i.periodConcreteTime.push(s),i.periodLongTermVal=!1}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},uploadIdcardPositive:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img,type:2};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_front"),i.readIdcardPositive(i.idcardImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardPositive:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code){if(e.data.words_result)try{i.mainForm.real_name=e.data.words_result["姓名"].words?e.data.words_result["姓名"].words:"",i.mainForm.idcard_number=e.data.words_result["公民身份号码"].words?e.data.words_result["公民身份号码"].words:""}catch(t){i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handlePictureCardPreview2:function(e){this.dialogImageUrl2=e.url,this.dialogVisible2=!0},handleRemove2:function(e,i){for(var t=0;t<this.idcardImgFileList.length;t++)e.uid===this.idcardImgFileList[t].uid&&this.idcardImgFileList.splice(t,1)},uploadIdcardBack:function(e){var i=this;this.getBase64(e.file).then((function(e){var t=e.split(",");i.Base64img=t[1];var a={img_data:i.Base64img,type:2};Object(s["m"])(a).then((function(e){1==e.code?(i.idcardBackImgFileList.push({url:e.data.image_url}),i.$message({type:"success",message:"上传成功"}),i.$refs.mainForm.clearValidate("idcard_back"),i.readIdcardBack(i.idcardBackImgFileList)):i.$message({type:"error",message:e.message?e.message:"上传失败"})}))}))},readIdcardBack:function(e){var i=this;if(Array.isArray(e)&&e[0].url){var t={img:e[0].url};Object(s["f"])(t).then((function(e){if(1==e.code)if(e.data.words_result["签发日期"]&&e.data.words_result["失效日期"]){var t=e.data.words_result["签发日期"].words,a=e.data.words_result["失效日期"].words;if("长期"==a)i.validityConcreteTime=[],i.validityLongTermVal=!0;else{var r=/^(\d{4})(\d{2})(\d{2})$/,s=t.replace(r,"$1-$2-$3"),n=a.replace(r,"$1-$2-$3");i.validityConcreteTime=[],i.validityConcreteTime.push(s),i.validityConcreteTime.push(n),i.validityLongTermVal=!1}}else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3);else i.isReadFailVisible=!0,i.readTime=5,clearInterval(i.TIMER),i.TIMER=setInterval((function(){i.readTime&&0<i.readTime<=5?i.readTime--:(i.readTime=0,i.isReadFailVisible=!1)}),1e3)}))}},handleBackPictureCardPreview2:function(e){this.dialogBackImageUrl2=e.url,this.dialogBackVisible2=!0},handleBackRemove2:function(e){for(var i=0;i<this.idcardBackImgFileList.length;i++)e.uid===this.idcardBackImgFileList[i].uid&&this.idcardBackImgFileList.splice(i,1)},getMain:function(){var e=this;Object(s["i"])().then((function(i){if(1==i.code){e.resetForm("mainForm"),e.mainForm=i.data;var t=[],a={};t=e.mainForm.license.split(","),t.length>0?t.forEach((function(i){a={},i&&(a.url=i,e.licenseImgFileList.push(a))})):e.licenseImgFileList=[];var r=[],s={};r=e.mainForm.idcard_front.split(","),r.length>0?r.forEach((function(i){s={},i&&(s.url=i,e.idcardImgFileList.push(s))})):e.idcardImgFileList=[];var n=[],l={};if(n=e.mainForm.idcard_back.split(","),n.length>0?n.forEach((function(i){l={},i&&(l.url=i,e.idcardBackImgFileList.push(l))})):e.idcardBackImgFileList=[],0==e.mainForm.license_expires_time)e.periodLongTermVal=!0,e.periodConcreteTime=[];else if(e.mainForm.license_expires_time>0){e.periodLongTermVal=!1,e.periodConcreteTime=[];var o=e.formatterTime(e.mainForm.license_start_time),d=e.formatterTime(e.mainForm.license_expires_time);e.periodConcreteTime.push(o),e.periodConcreteTime.push(d)}if(0==e.mainForm.idcard_expires_time)e.validityLongTermVal=!0,e.validityConcreteTime=[];else if(e.mainForm.idcard_expires_time>0){e.validityLongTermVal=!1,e.validityConcreteTime=[];var c=e.formatterTime(e.mainForm.idcard_start_time),m=e.formatterTime(e.mainForm.idcard_expires_time);e.validityConcreteTime.push(c),e.validityConcreteTime.push(m)}}else e.$message({type:"error",message:i.message?i.message:"获取主体信息失败"})}))},resetForm:function(e){this.periodConcreteTime=[],this.validityConcreteTime=[],this.$refs[e].resetFields()},getBase64:function(e){return new Promise((function(i,t){var a=new FileReader,r="";a.readAsDataURL(e),a.onload=function(){r=a.result},a.onerror=function(e){t(e)},a.onloadend=function(){i(r)}}))},formatterTime:function(e){return Object(n["c"])(1e3*e,"Y-m-d")},showTip2:function(){this.$message({message:"最多上传2张图片",type:"warning"})},showTip:function(){this.$message({message:"最多上传1张图片",type:"warning"})},back:function(){this.$router.push("/agreement")},next:function(e){var i=this;if(this.periodLongTermVal?(this.mainForm.license_expires_time=0,this.mainForm.license_start_time=0):Array.isArray(this.periodConcreteTime)&&2==this.periodConcreteTime.length&&(this.mainForm.license_start_time=new Date(this.periodConcreteTime[0]).getTime()/1e3,this.mainForm.license_expires_time=new Date(this.periodConcreteTime[1]).getTime()/1e3),this.validityLongTermVal?(this.mainForm.idcard_expires_time=0,this.mainForm.idcard_start_time=0):Array.isArray(this.validityConcreteTime)&&2==this.validityConcreteTime.length&&(this.mainForm.idcard_start_time=new Date(this.validityConcreteTime[0]).getTime()/1e3,this.mainForm.idcard_expires_time=new Date(this.validityConcreteTime[1]).getTime()/1e3),this.licenseImgFileList.length>0)for(var t=0;t<this.licenseImgFileList.length;t++)0===t?this.mainForm.license=this.licenseImgFileList[t].url:this.mainForm.license+=","+this.licenseImgFileList[t].url;if(this.idcardImgFileList.length>0)for(var a=0;a<this.idcardImgFileList.length;a++)0===a?this.mainForm.idcard_front=this.idcardImgFileList[a].url:this.mainForm.idcard_front+=","+this.idcardImgFileList[a].url;if(this.idcardBackImgFileList.length>0)for(var r=0;r<this.idcardBackImgFileList.length;r++)0===r?this.mainForm.idcard_back=this.idcardBackImgFileList[r].url:this.mainForm.idcard_back+=","+this.idcardBackImgFileList[r].url;this.$refs[e].validate((function(e){e&&Object(s["b"])(i.mainForm).then((function(e){1==e.code?i.$router.push("/fillShopInf"):i.$message({type:"error",message:e.message?e.message:"保存失败"})}))}))}}},o=l,d=(t("cb77"),t("5c04"),t("cba8")),c=Object(d["a"])(o,a,r,!1,null,"7938053c",null);i["default"]=c.exports},"5c04":function(e,i,t){"use strict";t("6784")},6784:function(e,i,t){},"6b1f":function(e,i,t){"use strict";t.d(i,"g",(function(){return r})),t.d(i,"i",(function(){return s})),t.d(i,"b",(function(){return n})),t.d(i,"d",(function(){return l})),t.d(i,"a",(function(){return o})),t.d(i,"l",(function(){return d})),t.d(i,"j",(function(){return c})),t.d(i,"c",(function(){return m})),t.d(i,"m",(function(){return u})),t.d(i,"e",(function(){return g})),t.d(i,"h",(function(){return p})),t.d(i,"f",(function(){return h})),t.d(i,"k",(function(){return f}));var a=t("b775");function r(e){return Object(a["a"])({url:"/system/index/getInfo",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/local/getOrganization",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/local/organization",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/local/shopbrand",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/local/brands",method:"post",data:e})}function d(e){return Object(a["a"])({url:"/local/upbrands",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/local/getShopInfo",method:"get",params:e})}function m(e){return Object(a["a"])({url:"/local/addShopInfo",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/goodsNew/uploadImage",method:"post",data:e})}function g(e){return Object(a["a"])({url:"/local/cate",method:"get",params:e})}function p(e){return Object(a["a"])({url:"/local/check/businessLicense",method:"get",params:e})}function h(e){return Object(a["a"])({url:"/local/check/idCard",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/local/qualification/list",method:"get",params:e})}},cb77:function(e,i,t){"use strict";t("111d")}}]);
\ 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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa6b139a"],{"0e05":function(t,s,i){},"26fc":function(t,s,i){t.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},2754:function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[t._m(0),t._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[t._v("\n 404错误!\n ")]),t._v(" "),i("div",{staticClass:"bullshit__headline"},[t._v("\n "+t._s(t.message)+"\n ")]),t._v(" "),i("div",{staticClass:"bullshit__info"},[t._v("\n 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。\n ")]),t._v(" "),i("router-link",{staticClass:"bullshit__return-home",attrs:{to:"/"}},[t._v("\n 返回首页\n ")])],1)])])},c=[function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),t._v(" "),a("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],n={name:"Page404",computed:{message:function(){return"找不到网页!"}}},l=n,e=(i("61b6"),i("cba8")),_=Object(e["a"])(l,a,c,!1,null,"279ea4b2",null);s["default"]=_.exports},"61b6":function(t,s,i){"use strict";i("0e05")},a36b:function(t,s,i){t.exports=i.p+"static/img/404.a57b6f31.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ff0474da"],{"0011":function(t,e,a){t.exports=a.p+"static/img/stay2.7375f8af.png"},"0ae4":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAAXNSR0IArs4c6QAAAY1JREFUKFN9kDFok1EUhb/z835rVRQL2RzrVlEH0YKCiKC4WCpEcVAQDQVnJxdRsIsoilKk6lQdMoimEhBrxXYpUqGbYByqOKUODq1i8H9H/tDUpFTv8njnnnPvuUcs1+RcvYh40Pqv+Vo3Du0qXM17ejVX362YDaDknO1t/xXCD8StmDCul7NfZ2z2koOwYUUoljC/gJ4WJrFos0nig6oz898w92VNRnlCwrmRqHgzRC1EfAXpqE1K4iGiMsQ9PZ+ujSP1YR4C13JhhOGB/b2X802V6U8li7uYVHAHvA8UVJ6qFUL8PW932PzSvT7sWIyNEBrJC5v+9tsz4nblwFi1tjkNP68DF5uJyZ9NshGcYhaA3iYOlWBfGDyys94UtupJ9f13my3/SjZd6uoqFvsay0P+0sYq7/ZEx7cW3avFsk+cOd7/dCXh1YRH5amCQ3JJcNZmK3g0E7dLgwc+tnM7rLY3Rstvntk6Vjp5cN1a1juEI48nTinReYiZrTyQ/N5ZSQH79dDpw8OtIX8AgZGXy6HyIeYAAAAASUVORK5CYII="},"1e4b":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"dashboard-editor-container"},[s("div",{staticClass:"dashboard-promote"},[s("div",{staticClass:"header"},[s("div",{staticClass:"header-top"},[s("span",{staticClass:"sp"},[t._v("运营数据")]),t._v(" "),s("el-radio-group",{staticStyle:{"margin-left":"27px"},attrs:{size:"small"},on:{change:t.getnumbersTime},model:{value:t.numberValue,callback:function(e){t.numberValue=e},expression:"numberValue"}},[s("el-radio-button",{attrs:{label:"1"}},[t._v("昨日")]),t._v(" "),s("el-radio-button",{attrs:{label:"7"}},[t._v("近7天")]),t._v(" "),s("el-radio-button",{attrs:{label:"15"}},[t._v("近15天")])],1)],1),t._v(" "),s("div",{staticClass:"header-foot"},[s("div",{staticClass:"foot-le"},[s("el-row",{attrs:{type:"flex",justify:"space-around"}},[s("el-col",{attrs:{span:6}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("成交订单数")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.operate.order_count))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("GMV")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.beGmv))])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("退款订单数")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.operate.refund_count))])])],1)],1),t._v(" "),s("div",{staticClass:"foot-ri"},[s("el-row",{attrs:{type:"flex",justify:"space-around"}},[s("el-col",{attrs:{span:10}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("正常发货率")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.delivery)+"%")])]),t._v(" "),s("el-col",{attrs:{span:10}},[s("img",{staticClass:"header-img",attrs:{src:a("6f91"),alt:""}}),t._v(" "),s("span",{staticClass:"header-span"},[t._v("待结算金额")]),t._v(" "),s("p",{staticClass:"header-p"},[t._v(t._s(t.beSettled))])])],1)],1)])]),t._v(" "),s("div",{staticClass:"main"},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{xs:24,lg:17}},[s("div",{staticClass:"main-left"},[s("div",{staticClass:"main-left-top"},[s("el-row",{attrs:{type:"flex",justify:"space-between"}},[s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.godeliver()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("超时订单")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.deliveredTimeNum))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("7072"),alt:""}})])])],1)],1)]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.godeliver()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("24小时需发货")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.deliverTime24Num))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("0011"),alt:""}})])])],1)],1)]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.godeliver()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("48小时需发货")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.deliverTime48Num))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("2a6d"),alt:""}})])])],1)],1)]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"tp-col",on:{click:function(e){return t.afterSale()}}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-le"},[s("span",[t._v("待处理售后")]),t._v(" "),s("p",[t._v(t._s(t.waitFor.afterSaleNum))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"tp-img"},[s("img",{attrs:{src:a("bd83"),alt:""}})])])],1)],1)])],1)],1),t._v(" "),s("div",{staticClass:"main-left-foot"},[s("div",{staticStyle:{margin:"30px 0 0 24px"}},[s("span",{staticClass:"ft-sp"},[t._v("店铺数据")]),t._v(" "),s("div",{staticClass:"main-left-foot-top"},[s("el-date-picker",{attrs:{size:"mini","picker-options":t.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.dateTimechange},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}}),t._v(" "),s("el-radio-group",{staticStyle:{"margin-left":"18px"},attrs:{size:"small"},on:{change:t.getnumData},model:{value:t.numSelect,callback:function(e){t.numSelect=e},expression:"numSelect"}},[s("el-radio-button",{attrs:{label:"11"}},[t._v("订单数据")]),t._v(" "),s("el-radio-button",{attrs:{label:"13"}},[t._v("销量排行")])],1)],1)]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowData,expression:"isShowData"}],staticStyle:{"margin-top":"38px",padding:"16px 16px 0"}},[s("line-chart",{attrs:{"chart-data":t.numberChartData}})],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.isShowData,expression:"!isShowData"}],staticStyle:{"margin-top":"38px",padding:"16px 16px 0"}},[s("el-table",{staticStyle:{width:"100%"},attrs:{data:t.storeGoods,stripe:""}},[s("el-table-column",{attrs:{type:"index",label:"排名",align:"center",width:"150"}}),t._v(" "),s("el-table-column",{attrs:{prop:"goods_title",label:"商品名称",align:"center",width:"400"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sale",label:"销量",align:"center",width:"300"}}),t._v(" "),s("el-table-column",{attrs:{prop:"total_price",align:"center",label:"营业额"}})],1)],1)])])]),t._v(" "),s("el-col",{attrs:{xs:24,lg:7}},[s("div",{staticClass:"main-right"},[s("div",{staticClass:"main-right-top"},[s("div",{staticClass:"sa"},[t._v("常用功能")]),t._v(" "),s("div",{staticStyle:{"margin-top":"24px"}},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{span:8}},[s("div",{staticStyle:{"text-align":"center",cursor:"pointer"},on:{click:function(e){return t.goCommodity()}}},[s("div",{staticClass:"right-top-item"},[s("img",{attrs:{src:a("5af2"),alt:""}})]),t._v(" "),s("p",[t._v("发布商品")])])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticClass:"main-right-top-point",staticStyle:{"text-align":"center",cursor:"pointer"},on:{click:function(e){return t.goMyAssets()}}},[s("div",{staticClass:"right-top-item"},[s("img",{attrs:{src:a("5af2"),alt:""}})]),t._v(" "),s("p",[t._v("资产提现")])])]),t._v(" "),s("el-col",{attrs:{span:8}},[s("div",{staticStyle:{"text-align":"center"}},[s("div",{staticClass:"right-top-item"},[s("img",{attrs:{src:a("5af2"),alt:""}})]),t._v(" "),s("p",[t._v("版本记录")])])])],1)],1)]),t._v(" "),s("div",{staticClass:"main-right-foot"},[s("div",{staticStyle:{overflow:"hidden"}},[s("span",{staticClass:"main-right-foot-sn"},[t._v("系统消息")]),t._v(" "),s("span",{staticClass:"main-right-foot-sa"},[t._v("更多>>")])]),t._v(" "),s("ul",[s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])]),t._v(" "),s("li",[s("span",{staticClass:"foot-le-text"},[t._v("暂无消息")])])])])])])],1)],1),t._v(" "),s("div",{staticClass:"footer"},[s("el-row",{attrs:{gutter:10}},[s("el-col",{attrs:{xs:24,lg:17}},[s("div",{staticClass:"footer-left"},[s("div",{staticStyle:{margin:"0 0 0 24px"}},[s("span",{staticClass:"footer-sp"},[t._v("热销类目排行")])]),t._v(" "),s("el-table",{staticStyle:{"margin-top":"15px",padding:"16px 16px 0"},attrs:{"cell-style":t.changeCellStyle,"header-cell-style":{background:"linear-gradient(0deg, #FCEBCE 0%, #FEF6E9 100%)",color:"#955300"},data:t.cateGory}},[s("el-table-column",{attrs:{type:"index",label:"排名",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{class:0==e.$index?"foot-index":"foot-indexone"},[0==e.$index?s("img",{attrs:{src:a("e88e"),alt:""}}):t._e(),t._v(" "),0!==e.$index?s("img",{attrs:{src:a("0ae4"),alt:""}}):t._e(),t._v(" "),s("span",{staticClass:"foot-table-text"},[t._v(t._s(e.$index+1))])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"category_name",label:"品类",align:"center","min-width":"30%"}}),t._v(" "),s("el-table-column",{attrs:{prop:"num",label:"商品总数",align:"center","min-width":"30%"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"foot-table"},[s("span",{staticClass:"foot-table-text"},[t._v(t._s(e.row.num))])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"sale",align:"center",label:"交易量","min-width":"25%"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"foot-table"},[s("span",{staticClass:"foot-table-text"},[t._v(t._s(e.row.sale))])])]}}])})],1)],1)]),t._v(" "),s("el-col",{attrs:{xs:24,lg:7}},[s("div",{staticClass:"footer-right"},[s("div",{staticClass:"footer-right-top"},[s("span",{staticClass:"footer-right-top-text"},[t._v("商家成长")]),t._v(" "),s("div",{staticClass:"footer-right-top-item"},[s("div",{staticClass:"footer-right-top-img footer-top-one",on:{click:function(e){return t.openDia()}}},[s("span",[t._v("规则中心")]),t._v(" "),s("p",[t._v("GO>")]),s("p")]),t._v(" "),s("div",{staticClass:"footer-right-top-img footer-top-two",on:{click:function(e){return t.openDia()}}},[s("span",[t._v("学习中心")]),t._v(" "),s("p",[t._v("GO>")]),s("p")]),t._v(" "),s("div",{staticClass:"footer-right-top-img footer-top-thr",staticStyle:{"margin-top":"15px"},on:{click:function(e){return t.openDia()}}},[s("span",[t._v("商家成长")]),t._v(" "),s("p",[t._v("GO>")]),s("p")])])]),t._v(" "),s("div",{staticClass:"footer-right-bot"},[s("img",{staticStyle:{width:"100%"},attrs:{src:a("ed58"),alt:""}})])])])],1)],1),t._v(" "),s("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("p",{staticClass:"dia-text"},[t._v("该模块内容正在建设中,敬请期待")])])],1)])},i=[],r=(a("e186"),a("e425")),n=a("b775");function o(){return Object(n["a"])({url:"local/statistical/statisticalHome",method:"get"})}function l(t){return Object(n["a"])({url:"local/statistical/operationalData",method:"get",params:t})}function c(t){return Object(n["a"])({url:"local/statistical/storeData",method:"get",params:t})}function d(t){return Object(n["a"])({url:"local/statistical/getGoodsSale",method:"get",params:t})}var u=a("eab4"),p={name:"Index",components:{LineChart:u["default"]},data:function(){return{delivery:"",beSettled:"",beGmv:"",dialogVisible:!1,numberValue:"1",operate:{},waitFor:{},numberChartData:{},numberChartDataCopy:{},storeOrder:{},storeGoods:[],storeGoodsCopy:[],cateGory:[],numSelect:"11",isShowData:!0,value1:[],value2:[],pickerOptions:{disabledDate:function(t){var e=(new Date).getTime(),a=2592e6,s=e-a;return t.getTime()>Date.now()-864e5||t.getTime()<s}},options:[{value:"一",label:"一级类目"},{value:"二",label:"二级类目"},{value:"三",label:"三级类目"}],Category:"一级类目"}},created:function(){this.GetDefaultData()},watch:{value1:{handler:function(){null==this.value1&&(this.value1=[])}}},methods:{openDia:function(){this.dialogVisible=!0},handleClose:function(t){t()},goMyAssets:function(){this.$router.push("/system/asset/myAsset")},goCommodity:function(){this.$router.push("/system/goods/add")},afterSale:function(){this.$router.push("/system/repeat/retreat")},godeliver:function(){this.$router.push("/system/order/index")},GetDefaultData:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,s,i,r,n,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o();case 2:for(e=t.sent,this.operate=e.data.operational_data,this.waitFor=e.data.seller_todo_data,this.storeOrder=e.data.store_order_data,a=e.data.store_goods_sale_data,s=0;s<a.length;s++)i=a[s],i.total_price=i.total_price/100;this.storeGoods=a,this.cateGory=e.data.category_sale_data,this.delivery=e.data.operational_data.delivery_rate/100,this.beSettled=e.data.operational_data.unsettled_amount/100,this.beGmv=e.data.operational_data.order_total_price/100,r={},r.date=this.storeOrder.date,n=this.storeOrder.customer_price.map((function(t){return t/100})),l=this.storeOrder.order_total.map((function(t){return t/100})),r.customerprice=n,r.ordercount=this.storeOrder.order_count,r.ordertotal=l,this.numberChartData=r,this.numberChartDataCopy=r,this.storeGoodsCopy=a;case 23:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),dateTimechange:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a,s,i,r,n,o,l,u,p,h,m,v,g,f,A;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.value1&&(e=new Date(this.value1[1]),a=e.getFullYear(),s=e.getMonth()+1,i=e.getDate(),this.value1[1]="".concat(a,"-").concat(s,"-").concat(i," 23:59:59")),null!=this.value1){t.next=9;break}this.value1=[],r=this.numberChartDataCopy,n=this.storeGoodsCopy,this.numberChartData=r,this.storeGoods=n,t.next=40;break;case 9:if("11"!=this.numSelect){t.next=27;break}return o={},o.start_time=new Date(this.value1[0]).getTime()/1e3,o.end_time=new Date(this.value1[1]).getTime()/1e3,o.seller_id=this.$store.state.user.sellerid,t.next=16,c(o);case 16:l=t.sent,u={},u.date=l.data.date,p=l.data.customer_price.map((function(t){return t/100})),u.customerprice=p,u.ordercount=l.data.order_count,h=l.data.order_total.map((function(t){return t/100})),u.ordertotal=h,this.numberChartData=u,t.next=40;break;case 27:if("13"!=this.numSelect){t.next=39;break}return m={},m.start_time=new Date(this.value1[0]).getTime()/1e3,m.end_time=new Date(this.value1[1]).getTime()/1e3,t.next=33,d(m);case 33:for(v=t.sent,g=v.data,f=0;f<g.length;f++)A=g[f],A.total_price=A.total_price/100;this.storeGoods=g,t.next=40;break;case 39:return t.abrupt("return");case 40:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),RankTimechange:function(){},changeCellStyle:function(t,e,a,s){return"品类"===t.column.label?"color: #000000;font: 500 14px AlibabaPuHuiTi-Regular;margin-left:50px;":""},getnumbersTime:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(e){var a,s,i,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a={},a.seller_id=this.$store.state.user.sellerid,1!=e){t.next=12;break}return t.next=5,l(a);case 5:s=t.sent,this.delivery=s.data.delivery_rate/100,this.beSettled=s.data.unsettled_amount/100,this.beGmv=s.data.order_total_price/100,this.operate=s.data,t.next=32;break;case 12:if(7!=e){t.next=23;break}return a.day=e,t.next=16,l(a);case 16:i=t.sent,this.delivery=i.data.delivery_rate/100,this.beSettled=i.data.unsettled_amount/100,this.beGmv=i.data.order_total_price/100,this.operate=i.data,t.next=32;break;case 23:if(15!=e){t.next=32;break}return a.day=e,t.next=27,l(a);case 27:r=t.sent,this.delivery=r.data.delivery_rate/100,this.beSettled=r.data.unsettled_amount/100,this.beGmv=r.data.order_total_price/100,this.operate=r.data;case 32:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getnumData:function(t){if(11==t)this.isShowData=!0,0!==this.value1.length&&this.dateTimechange();else{if(13!=t)return;this.isShowData=!1,0!==this.value1.length&&this.dateTimechange()}}}},h=p,m=(a("4af9"),a("cba8")),v=Object(m["a"])(h,s,i,!1,null,"25504f30",null);e["default"]=v.exports},"2a6d":function(t,e,a){t.exports=a.p+"static/img/stay3.e071f36b.png"},"4af9":function(t,e,a){"use strict";a("d4b2")},"5af2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACctJREFUaEPtWGuMVdUV/tZ53cfc4c7cKQMoMoI8BKGMFpBH1KJQLFqkUGtSE1NjRNIqtUpb05L08aOxMX3EVGLTPwZsFGgtNqUxVBFIsa0aTSuvAirC8B4GnJk793XOXs3a+5w7996ZCQEGjQmXzAznzD77rG993/rW2kP4jH/oMx4/LgP4tBm8zMBlBi4yA30kdM9vitPZsp4EaCrzJ1DkBBAhC/Am9uwnNjxEH58PpioAy37H7tmiehPMrYECHEtvfuk+BPgBwAzY8i7Qj9etsH92Pi+sCu/uX3GG3OAD30d6/BWEaWMIHO4WAZGf8pB+MHw6uqdv1d4L18va6JnopRJ0TwHY9A6jo4sFxMb1K5yvXhQA2Gq/Y3PmazMtfK6eIEwArAMj/c8EThTqy0igrDX9/whECGggUHI/EQNeeZexdScj5g4CALbV/qRnAMRdQ68OgEzwvcEJKNJANDRSIIgODLAqIHIj3KcWTNwDtu5ibHmPEfPw5/WPOEsuigEBkPA4s/RGQsIlKNbvhkXyZSLRIRPBJvO7SDpybaSiqkGXWauWkWwnSRIArwsDgwlgyQyC5wDpJGHiCKArT9jZBjQPYYxtBs7mCP87DgxNMcY0A7miuTZsRXUiQMxFFXsV9SAAtu0WCSnEPBocBuIeZ5ZMJ7g2MCwNTB9toTPP2LoXaGkCpl5F6Mgy3jhgrqeMJPSUgH8eMLIStgwrUkBWdb1E8gpZEQDbdwsLweACWDxNJAQ4NpBOAL4CPs4J5YT6OFAKgM48tMxSMSBg1ixF5mRqIKqPSDp96yPmAq/vBF57T8FxsGHTSufrF10DwsDiLxASHqCUBAdYlukLUtQShgSorwEoNlkXWzSZ1ysMgLJ8QnByj6VKAJsYqTiw5wjw/jHgygzemjeJnir4ONHeg6OzrsH7ZLIw4KdPH5AiFgCLbjAAyi5U4SxRnk2WTWGbgGVRZK+ha9X0BjEF12Zk6oDGJKEuBrAkSUFs1I+5yPoBgmKAns4e3n26m//e3W2tv2kyHeoPxYAAvnJ9CKC3X/VpUpX2KptHLtVf4ZpuIkEDozJAMkyO3C+UgIIPuA7y9TGcZtZbkWUhxozY6S4cOdQePDVrgvP7WhADArhTAEgfqHii0klEMpWO09snJPORdKI+YTi6sgG4KmM2FCYi+y2FADwH+ZQBUBWXZcPtKXLywxP8h/Yu67EFUykbhTUggDtaDQCt/yp99yISeUltVI4IRlKhtEI5SbCjGkk7luxXO56owNCTjCHvuWhXClT0QbJ/9LFskB+gYU9b8PIptr+5cBwVIsMoL5JZSNeAy5mFrSSUoiFJmDVWCrR6qpO9d7Ux2s5weegzDFX7vmh72BDChOEm61FQAlxkJOjbOoAd+4GD7eyPyKBz1hgqjR0KXxxQhr2Sb3Jk20B3gRv2HuXfzhlv/2BgAB5nvjyFpDMi4RHGNfeOEGyJs5vPodPQ/UDcx7AUyicsXAHp2oTWUYS40ysbCTzvA5t3AeveUtixj3GynWGVzL5eA7i1xSotnWblllyP3KgmBLlCCMKBdfwsxw8eC+64ZYr7Rv8Scjlz++dJt3l5rC5mbLJ2UNOBawkx8j4hX4yGPrNW5NLSRLimmXQm5RNzgG37gVV/UvjPPgUKgEAK2u6Vi/Q/uyiFAjQ2U/DoQju7/GZkxbYdCxwAqd2Hgr/OGOfcOyCABVNIN7HmNOHWSdXyqXUCuT7VBezYp8xcHy4XRm5oIS2VqJbqPGDB0wo7/qFQTPe3U/U9Jw/EGklt/b7VfmUjBakY2HVgHW5nOnKmNH9AAPMnGwYMCGk64cY1o3Okw+4C6XFDMxW6TGOdkY9pfua+gFm0WmHLvxT8eP8AbJESG2aEocZGqHXL7Y6WDAVD6xFIXJ09SO85pr43IIB51xFk1JWXB0HFGF3pOhVDWuRUkdXK6DGqiXDtCNJjSMSKONvi1QqvRQDEcQVgWFhuFrh1joVFrYTvrAmgikC6idSLD1odo5ooaB6CIGEDRR91u9qCV/oAkAON53Jm/nUknbGcufKhpeZkNdB9cZ9xwwljRP8yN4TngSoAMSAWM3MW56GLeO4MwsaHbbz0LnD/al+PMg0ZUi8sEwAImodQELe1IXi724IP+2Ug5nJm3iTSBRdRT+U5p++JK2pIlf1AND/5CsLIphBA6EyVAGTzH95rY8Ekwpee9DFzooXN37Xw/L+B+5/xDSssEuoLgBnOnqOqoxrAera9k8EJx0HTAqmB/mahqlNZRTeumfklc6ObpXmFAMLfy3x11zNGQsoBJlxtYfNjFs70ACMbgb/tBB5Y7aMorNimBoSBSglFDOxpCw5Q84rSbEthvg9Q0kNieJoecQiJq4f2TpemtVace2s6SDkLFWtktrl5vIV7biTkQ3/XZ2AXWPqswva3TBE7OWDMGAubH7ewZS+w7FkfgZz0QlsVAOkGUi8+ZHe0aAlBS6jkI7WzLdhII1aUTipgqA6SzfgsP7UuzUijv0UdNLqWNeWRIBzUIlxyv1AEZk6wsHaZVd4rHBfwwBqFV7cpFOuNC4nrJNKEXIF10Vb2BOkHDUNJrV9udQxPIxiepiBZ6ULDV5ReZeA2kZv+A0TFp79JXLJozlnmZzjel6+1bMNE2A7w3IMOpow0E6ckQpqRdPDHNyi889/QSoU5aXSSqKjNC7AikGqEWrXI7rplHAr1ceLmNIKkB+ujk+y3ddI8GraS6yjvT5e57Nxt5fxWyLjwwrecL942CStzBfRETwuI01nQEy+pxB+3qwRLUpyaTlwArh1rlVbdRV0yF0nimuqIMykEREjtPhy8PH2sc9+5W+z5xdxnNTM7BR9bFWMisQah3xkwKFsEbXhbJX7+F65vP8Y2u4YJOwH+xk1Wz32zrZ46j1l6TFOK1JAkOOmCjnawe/Ak3T53Cr19yQFIsNk8LwTheWLIhBNORUBJ6bM17TnGznM7OPnmAfaGNVJwzwzKTR+NUrEEGQJ5SJLkIKQ7cHeBG/ce4V/MmWD/tMZLLjLV53g8W+QHifFLMHIA/Gh5IQCJYRRLoI4cW2Ii8iV9J+URp+JQ4lwSfL6E9L6jam33YevhuXNJ7/GJMBAFm83ztwn4CRNcYmTl5fqPAjBsFEuwcuEclPDAngv2LH3UjHUXOP7BcV4Tz1mPTp5MwmTk7pc287W750p8k1L4EQGzmcCkkI/WKO49hdkW2HbgBgG8U528r61D/XrOBGdt7X6fKAPRy5nZzRVxJ4C7GWitaCPaCsVxigHsM1380aku3ljMW+tmX0cd/aX6UwEwmJxfBjCY2byQvS4zcCFZG8xnLjMwmNm8kL0+8wz8H4a6G7404ebCAAAAAElFTkSuQmCC"},"6f91":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAA9xJREFUSEvFlW2IVFUYx3/PuWdmdmd323XJNFeTsPcy+9KmaxCBfhS0kI3ItgJbMl8Q+1ChNrai0YYbEeKHMlE2scCCQCnEDCU1KKwN+pDWNlS+7ba2ui9z59z7xJlxZld8CSnxXC7MPeee53ee//N/7gjXeMg1js/1BzRm3NNGdMPpM7LwWIf95I4Vbu6YGv3AoCsOZpKb/02BK2bw8HodMzCQ3z8USu3y2XZm62zJvrlLp2zak9+VTuEabkrM+ny5HL8SpAzI9uiDQcAElDhpoa6S3LIPo8e++D5+fm6j2dneHLwH2MEc+trO+Ikdh+Kn5s+QLa/PC3aEITZ0iL9i5a8J9XKgBC0ATpyJXk2nZKFBqgCtSMJPf2i0eGs0duwN2HdbbG99Fc45qEiiJ/uxi7e6G0/0idv4jOm5b5LIUK5YT0Vzg6F8Nq5WXvTPhckzgzqQDEgPh4qLhXRKad+tdB6IWN9smX2vMJwHVRCBqpSyqwte2e5oeSRg6SwhHwuBKBWJQsi/qyqkrgwIo3h4KCepn08qf/Zpgdr1O/SeU6bfJiQMxFpM2kMSAeQcfHNMqa8W7m4AIzC+FqaMM9SlORcYqSkD9h/RN6ZMZunRU5rs+i0Ock5IWsUYcBHE8cVeMEYLoCiGvBNsAHc2SDx1kuS7s3w8Y6osKAMyX6r9am9+2uRbWHK8T1q8kuK1KI/zxy/kVvpd3l6YioH6KnYHNnq7c3tqL/vEjXqjGKnh2bBl4q1mS+y0HMZL4m+fTWmU5PKylEZgoOckayeNs2v2ZYrBLwJMWxK1Vo+PN0X5kcXQQaSQSoBn+JMOh+ADejuXhj9AOEh7T4Vd3Z2R4UsCZqwLWzWUTaVFX8h7GuD2mw17umJy+WLQpruE/gE4fNS7ZgQiAe2pyK7ed1nAmrBVtQjwJeg5C6vmGRY0GeZscGR7YUIddC4KOJKFRZsdtWkpy6fQXslVAHrPwsp5huaHDPPfcXT3QkMdbGu1fJdVlm1zVKekIFfBwlcL8Bm0zTc0NxrmduT5tUeYWA8fLbZ82620vu+oqRwBCLyVwq66rETT14QvoLKxVP2+AXjuUcOcB4Sl2xynzwr11Urb45ZfTinrPo2o8RKV3KRskH678mCHDF26yJnck4rpLC36JkpXQDoBHuY7wMeqqfSdLfQPKcEoq6rw0mG1HWTEm+1imzatHZocR7YTZWYpCxcXu3W0JfNREZSwxR45X4GsonMOZ1I/jPjq/MeuPKEqjW35+41KG9DkP43IBa07em+h4RWswI8YXj60yn6N+KlR1r1wx///dP3/k/9rTv8A5HOTKEt2ta4AAAAASUVORK5CYII="},7072:function(t,e,a){t.exports=a.p+"static/img/stay1.321d33f9.png"},bd83:function(t,e,a){t.exports=a.p+"static/img/stay4.96349d02.png"},d4b2:function(t,e,a){},e88e:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAAXNSR0IArs4c6QAAAehJREFUKFNtkjtoFFEUhr9z753dZLNJjJLORxO7iFiI2lhZBKuAIHYGURG0UUxlExSTJkQMWgQflbWoUZuoaKVFSkG0MYoS8iCbx+5kJjP3HpnFSERPe873/+cl/A59cewkO3bfRxVcibDyA12dBVeGEKA+g+Tro3Zg9XqBiL48eiBs29VvxJ3BtewsisLqT3RtDrURYkuwvgTxVyhVY1nauGViPyn6fuADxh3Cp7FmSSXU5yFdA2MbGJdi7HZqn0FzsKW61LKqif0n8VN9izSWJkJWf6NR+yvjU9WoPOXWV8ZQWfBkQySzfUTVSHJ/wSwED3pXsqf7JyWnV0L+IJS7bog1Klk8YvunrxWz5A+r54la7+AkkjgfNzUOY40THa92+z29M2pNRXKPao6kje82n99Hkjvv7HMtR0fEK3auMAOyxl4pVPVRT0cgGVb1F9EEfPIN09KGcRFOFzRIj10MSMozJD0ng/X5JrgZ2UTXsrTbTsRAkSnU04CpKZJ5iJfLMsRG8xxbQf1YOZi/bXsnrbSKgqQeiQNNIcIJubr8eLP+L7DZ9nC1m0o0SKKnsdqFNfco5bfl0tqXrSb/gH8+aazjCdjjcqVW2gr811FvVk/R5s4STLG+HqATYRoVh+hruVwb2QR/ATP02/9HR4TLAAAAAElFTkSuQmCC"},eab4:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},i=[],r=a("24ce"),n=a.n(r),o=a("feb2");a("6cbb");var l={mixins:[o["default"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{moneyMax:function(t){var e=Math.max.apply(null,t),a=2,s=!0,i=String(e).length;if(i<=a)return e;var r=Math.pow(10,a);return s?Math.ceil(e/r)*r:Math.floor(e/r)*r},numberMax:function(t,e){var a=Math.max.apply(null,t),s=Math.max.apply(null,e),i="";i=a>=s?a:s;var r=2,n=!0,o=String(i).length;if(o<=r)return i;var l=Math.pow(10,r);return n?Math.ceil(i/l)*l:Math.floor(i/l)*l},initChart:function(){this.chart=n.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.customerprice,a=t.ordercount,s=t.ordertotal,i=t.date;this.chart.setOption({xAxis:{type:"category",data:i,boundaryGap:!0,axisTick:{show:!0}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:[{type:"value",name:"交易量",min:0,max:this.numberMax(this.chartData.customerprice,this.chartData.ordercount)<10?10:this.numberMax(this.chartData.customerprice,this.chartData.ordercount),interval:this.numberMax(this.chartData.customerprice,this.chartData.ordercount)<10?2:this.numberMax(this.chartData.customerprice,this.chartData.ordercount)/5,axisLabel:{formatter:"{value}"}},{type:"value",name:"总订单金额",min:0,max:this.moneyMax(this.chartData.ordertotal)<10?10:this.moneyMax(this.chartData.ordertotal),interval:this.moneyMax(this.chartData.ordertotal)<10?2:this.moneyMax(this.chartData.ordertotal)/5,axisLabel:{formatter:"{value} 元"}}],legend:{data:["总订单数","总订单金额","客单价"]},series:[{name:"总订单数",smooth:!1,type:"bar",itemStyle:{normal:{color:"#3A64E4",lineStyle:{color:"#3A64E4",width:1},areaStyle:{color:"#f3f8ff"}}},data:a,animationDuration:2800,animationEasing:"quadraticOut"},{name:"总订单金额",smooth:!1,type:"line",yAxisIndex:1,itemStyle:{normal:{color:"#EE7945",lineStyle:{color:"#EE7945",width:2}}},data:s,animationDuration:2800,animationEasing:"quadraticOut"},{name:"客单价",smooth:!1,type:"bar",yAxisIndex:0,itemStyle:{normal:{color:"#49D3CE",lineStyle:{color:"#49D3CE",width:2}}},data:e,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},c=l,d=a("cba8"),u=Object(d["a"])(c,s,i,!1,null,null,null);e["default"]=u.exports},ed58:function(t,e,a){t.exports=a.p+"static/img/more.44ea7a34.png"},feb2:function(t,e,a){"use strict";a.r(e);var s=a("ed08");e["default"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){this.initListener()},activated:function(){this.$_resizeHandler||this.initListener(),this.resize()},beforeDestroy:function(){this.destroyListener()},deactivated:function(){this.destroyListener()},methods:{$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},initListener:function(){var t=this;this.$_resizeHandler=Object(s["d"])((function(){t.resize()}),100),window.addEventListener("resize",this.$_resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},destroyListener:function(){window.removeEventListener("resize",this.$_resizeHandler),this.$_resizeHandler=null,this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},resize:function(){var t=this.chart;t&&t.resize()}}}}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论