Commit 80b91a2f by chenxianqi

add flutter_kefu ui

parent f8f7c88e
Showing with 2052 additions and 374 deletions
.workorder-view[data-v-058f6a25]{width:100vw;height:100vh;position:fixed;right:0;top:0;left:0;background-color:rgba(0,0,0,.8);z-index:9}.workorder-view .mask[data-v-058f6a25]{width:100%;height:100%}.workorder-view .no-data[data-v-058f6a25]{color:#666;font-size:14px}.workorder-view .comments-loading[data-v-058f6a25],.workorder-view .workorder-close[data-v-058f6a25]{text-align:center;color:#666;font-size:14px;padding:10px}.workorder-view .comments[data-v-058f6a25]{padding:10px}.workorder-view .comments .item[data-v-058f6a25]{display:-ms-flexbox;display:flex}.workorder-view .comments .item .avatar[data-v-058f6a25]{padding-top:10px;border-bottom:1px solid hsla(0,0%,62%,.13)}.workorder-view .comments .item .avatar img[data-v-058f6a25]{width:30px;height:30px;border-radius:100px;display:block}.workorder-view .comments .item .right[data-v-058f6a25]{padding:10px 5px;-ms-flex-positive:1;flex-grow:1;border-bottom:1px solid hsla(0,0%,62%,.13)}.workorder-view .comments .item .right .nickname[data-v-058f6a25]{font-size:15px;color:#333}.workorder-view .comments .item .right .detail[data-v-058f6a25]{font-size:15px;color:#333;margin-top:5px}.workorder-view .comments .item .right .date[data-v-058f6a25]{color:#999;font-size:14px;margin-top:5px}.workorder-view .comments .item:last-child .avatar[data-v-058f6a25],.workorder-view .comments .item:last-child .right[data-v-058f6a25]{border-bottom:0}.workorder-view .content-box[data-v-058f6a25]{width:600px;height:100%;background-color:#fff;position:fixed;right:0;left:260px;margin:0 auto;top:30px;overflow:hidden;border-radius:5px 5px 0 0;padding-top:40px;padding-bottom:135px;box-sizing:border-box}.workorder-view .content-box.padding-bottom30[data-v-058f6a25]{padding-bottom:30px}.workorder-view .content-box .content[data-v-058f6a25]{box-sizing:border-box;width:100%;padding:0 10px;height:100%;overflow:hidden;overflow-y:auto;padding-top:10px;position:relative;padding-bottom:20px}.workorder-view .content-box .file-view[data-v-058f6a25]{position:absolute;bottom:135px;left:0;right:0;padding:5px 10px;margin:0 auto;font-size:13px;color:#8bc34a}.workorder-view .content-box .file-view span[data-v-058f6a25]{display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .file-view span img[data-v-058f6a25]{width:20px;height:20px}.workorder-view .content-box .file-view span i[data-v-058f6a25]{font-style:normal;margin-left:5px}.workorder-view .content-box .input-form[data-v-058f6a25]{position:absolute;bottom:35px;left:0;right:0;margin:0 auto;width:100%;height:100px;background-color:#fff;border-top:1px solid hsla(0,0%,62%,.13);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:10px 10px 0;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .input-form textarea[data-v-058f6a25]{height:90%;-ms-flex-positive:1;flex-grow:1;border-radius:0;border:0;color:#333;font-size:14px;resize:none}.workorder-view .content-box .input-form .icon-btn[data-v-058f6a25]{background:url(../img/upload.76668586.png) 50% no-repeat;background-size:30px;width:55px;height:55px;overflow:hidden}.workorder-view .content-box .input-form .icon-btn input[data-v-058f6a25]{display:block;width:100%;height:100%;font-size:100px;opacity:0}.workorder-view .content-box .title[data-v-058f6a25]{width:100%;height:40px;border-bottom:1px solid #ddd;position:absolute;top:0;left:0;background-color:#fff;padding:10px 0 0 10px;box-sizing:border-box}.workorder-view .content-box .buttons[data-v-058f6a25]{position:absolute;top:5px;right:50px}.workorder-view .content-box .close[data-v-058f6a25]{position:absolute;top:5px;right:5px;font-size:25px;color:#ccc;cursor:pointer}.workorder-view .content-box .form-line[data-v-058f6a25]{margin-bottom:5px;font-size:14px;color:#333;display:-ms-flexbox;display:flex}.workorder-view .content-box .form-line .lable[data-v-058f6a25]{width:50px;-ms-flex-negative:0;flex-shrink:0}.workorder-view .content-box .form-line .con[data-v-058f6a25]{-ms-flex-positive:1;flex-grow:1}.workorder-view .content-box .form-line img[data-v-058f6a25]{width:30%}.workorder-view[data-v-db72d194]{width:100vw;height:100vh;position:fixed;right:0;top:0;left:0;background-color:rgba(0,0,0,.8);z-index:9}.workorder-view .mask[data-v-db72d194]{width:100%;height:100%}.workorder-view .content-box[data-v-db72d194]{width:400px;height:100%;background-color:#fff;position:fixed;right:0;margin:0 auto;top:0;overflow:hidden;padding-top:40px;box-sizing:border-box;padding-bottom:30px}.workorder-view .content-box .content[data-v-db72d194]{height:100%;overflow:hidden;overflow-y:auto;margin-top:20px}.workorder-view .content-box .list[data-v-db72d194]{padding:0 10px;display:block}.workorder-view .content-box .list li[data-v-db72d194]{height:50px;line-height:50px;border-bottom:1px solid #ddd;position:relative}.workorder-view .content-box .list li .del[data-v-db72d194],.workorder-view .content-box .list li .update[data-v-db72d194]{position:absolute;display:none;right:0;top:0;bottom:0;margin:auto 0;width:25px;height:30px;text-align:center;line-height:30px;cursor:pointer}.workorder-view .content-box .list li .del i[data-v-db72d194],.workorder-view .content-box .list li .update i[data-v-db72d194]{color:#ccc}.workorder-view .content-box .list li:hover .del[data-v-db72d194],.workorder-view .content-box .list li:hover .update[data-v-db72d194]{display:block}.workorder-view .content-box .list li .update[data-v-db72d194]{right:30px}.workorder-view .content-box .list li span[data-v-db72d194]{margin-left:10px;color:#333;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:50px}.workorder-view .content-box .title[data-v-db72d194]{width:100%;height:60px;border-bottom:1px solid #ddd;position:absolute;top:0;left:0;padding:0 10px;background-color:#fff;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .title>span[data-v-db72d194]{width:270px}.workorder-view .content-box .close[data-v-db72d194]{position:absolute;top:15px;right:5px;font-size:25px;color:#ccc;cursor:pointer}.me-head[data-v-15cab2f6]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.me-head .switch div[data-v-15cab2f6]{font-size:13px;padding-top:5px;color:#ccc}.me-head .switch div span.el-switch__label[data-v-15cab2f6]{color:#ff5722!important}.me-head i[data-v-15cab2f6]{margin-right:5px}.container-box .menu[data-v-15cab2f6]{-ms-flex-negative:0;flex-shrink:0;width:180px}.container-box .table-content[data-v-15cab2f6]{width:500px;-ms-flex-positive:1;flex-grow:1}.switch div span.el-switch__label{color:#ff5722!important}.switch div span.el-switch__label.is-active{color:#8bc34a!important}
\ No newline at end of file
.workorder-view[data-v-7cd97b62]{width:100vw;height:100vh;position:fixed;right:0;top:0;left:0;background-color:rgba(0,0,0,.8);z-index:9}.workorder-view .mask[data-v-7cd97b62]{width:100%;height:100%}.workorder-view .no-data[data-v-7cd97b62]{color:#666;font-size:14px}.workorder-view .comments-loading[data-v-7cd97b62],.workorder-view .workorder-close[data-v-7cd97b62]{text-align:center;color:#666;font-size:14px;padding:10px}.workorder-view .comments[data-v-7cd97b62]{padding:10px}.workorder-view .comments .item[data-v-7cd97b62]{display:-ms-flexbox;display:flex}.workorder-view .comments .item .avatar[data-v-7cd97b62]{padding-top:10px;border-bottom:1px solid hsla(0,0%,62%,.13)}.workorder-view .comments .item .avatar img[data-v-7cd97b62]{width:30px;height:30px;border-radius:100px;display:block}.workorder-view .comments .item .right[data-v-7cd97b62]{padding:10px 5px;-ms-flex-positive:1;flex-grow:1;border-bottom:1px solid hsla(0,0%,62%,.13)}.workorder-view .comments .item .right .nickname[data-v-7cd97b62]{font-size:15px;color:#333}.workorder-view .comments .item .right .detail[data-v-7cd97b62]{font-size:15px;color:#333;margin-top:5px}.workorder-view .comments .item .right .date[data-v-7cd97b62]{color:#999;font-size:14px;margin-top:5px}.workorder-view .comments .item:last-child .avatar[data-v-7cd97b62],.workorder-view .comments .item:last-child .right[data-v-7cd97b62]{border-bottom:0}.workorder-view .content-box[data-v-7cd97b62]{width:600px;height:100%;background-color:#fff;position:fixed;right:0;left:260px;margin:0 auto;top:30px;overflow:hidden;border-radius:5px 5px 0 0;padding-top:40px;padding-bottom:135px;box-sizing:border-box}.workorder-view .content-box.padding-bottom30[data-v-7cd97b62]{padding-bottom:30px}.workorder-view .content-box .content[data-v-7cd97b62]{box-sizing:border-box;width:100%;padding:0 10px;height:100%;overflow:hidden;overflow-y:auto;padding-top:10px;position:relative;padding-bottom:20px}.workorder-view .content-box .file-view[data-v-7cd97b62]{position:absolute;bottom:135px;left:0;right:0;padding:5px 10px;margin:0 auto;font-size:13px;color:#8bc34a}.workorder-view .content-box .file-view span[data-v-7cd97b62]{display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .file-view span img[data-v-7cd97b62]{width:20px;height:20px}.workorder-view .content-box .file-view span i[data-v-7cd97b62]{font-style:normal;margin-left:5px}.workorder-view .content-box .input-form[data-v-7cd97b62]{position:absolute;bottom:35px;left:0;right:0;margin:0 auto;width:100%;height:100px;background-color:#fff;border-top:1px solid hsla(0,0%,62%,.13);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:10px 10px 0;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .input-form textarea[data-v-7cd97b62]{height:90%;-ms-flex-positive:1;flex-grow:1;border-radius:0;border:0;color:#333;font-size:14px;resize:none}.workorder-view .content-box .input-form .icon-btn[data-v-7cd97b62]{background:url(../img/upload.76668586.png) 50% no-repeat;background-size:30px;width:55px;height:55px;overflow:hidden}.workorder-view .content-box .input-form .icon-btn input[data-v-7cd97b62]{display:block;width:100%;height:100%;font-size:100px;opacity:0}.workorder-view .content-box .title[data-v-7cd97b62]{width:100%;height:40px;border-bottom:1px solid #ddd;position:absolute;top:0;left:0;background-color:#fff;padding:10px 0 0 10px;box-sizing:border-box}.workorder-view .content-box .buttons[data-v-7cd97b62]{position:absolute;top:5px;right:50px}.workorder-view .content-box .close[data-v-7cd97b62]{position:absolute;top:5px;right:5px;font-size:25px;color:#ccc;cursor:pointer}.workorder-view .content-box .form-line[data-v-7cd97b62]{margin-bottom:5px;font-size:14px;color:#333;display:-ms-flexbox;display:flex}.workorder-view .content-box .form-line .lable[data-v-7cd97b62]{width:50px;-ms-flex-negative:0;flex-shrink:0}.workorder-view .content-box .form-line .con[data-v-7cd97b62]{-ms-flex-positive:1;flex-grow:1}.workorder-view .content-box .form-line img[data-v-7cd97b62]{width:30%}.workorder-view[data-v-db72d194]{width:100vw;height:100vh;position:fixed;right:0;top:0;left:0;background-color:rgba(0,0,0,.8);z-index:9}.workorder-view .mask[data-v-db72d194]{width:100%;height:100%}.workorder-view .content-box[data-v-db72d194]{width:400px;height:100%;background-color:#fff;position:fixed;right:0;margin:0 auto;top:0;overflow:hidden;padding-top:40px;box-sizing:border-box;padding-bottom:30px}.workorder-view .content-box .content[data-v-db72d194]{height:100%;overflow:hidden;overflow-y:auto;margin-top:20px}.workorder-view .content-box .list[data-v-db72d194]{padding:0 10px;display:block}.workorder-view .content-box .list li[data-v-db72d194]{height:50px;line-height:50px;border-bottom:1px solid #ddd;position:relative}.workorder-view .content-box .list li .del[data-v-db72d194],.workorder-view .content-box .list li .update[data-v-db72d194]{position:absolute;display:none;right:0;top:0;bottom:0;margin:auto 0;width:25px;height:30px;text-align:center;line-height:30px;cursor:pointer}.workorder-view .content-box .list li .del i[data-v-db72d194],.workorder-view .content-box .list li .update i[data-v-db72d194]{color:#ccc}.workorder-view .content-box .list li:hover .del[data-v-db72d194],.workorder-view .content-box .list li:hover .update[data-v-db72d194]{display:block}.workorder-view .content-box .list li .update[data-v-db72d194]{right:30px}.workorder-view .content-box .list li span[data-v-db72d194]{margin-left:10px;color:#333;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:50px}.workorder-view .content-box .title[data-v-db72d194]{width:100%;height:60px;border-bottom:1px solid #ddd;position:absolute;top:0;left:0;padding:0 10px;background-color:#fff;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.workorder-view .content-box .title>span[data-v-db72d194]{width:270px}.workorder-view .content-box .close[data-v-db72d194]{position:absolute;top:15px;right:5px;font-size:25px;color:#ccc;cursor:pointer}.me-head[data-v-15cab2f6]{height:30px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:20px;-ms-flex-pack:justify;justify-content:space-between;color:#666}.me-head .switch div[data-v-15cab2f6]{font-size:13px;padding-top:5px;color:#ccc}.me-head .switch div span.el-switch__label[data-v-15cab2f6]{color:#ff5722!important}.me-head i[data-v-15cab2f6]{margin-right:5px}.container-box .menu[data-v-15cab2f6]{-ms-flex-negative:0;flex-shrink:0;width:180px}.container-box .table-content[data-v-15cab2f6]{width:500px;-ms-flex-positive:1;flex-grow:1}.switch div span.el-switch__label{color:#ff5722!important}.switch div span.el-switch__label.is-active{color:#8bc34a!important}
\ No newline at end of file
......@@ -47,4 +47,4 @@
}
input:-ms-input-placeholder{ /* Internet Explorer 10-11 */
color:#ccc;
}</style><link href=css/chunk-027be9b0.1440a418.css rel=prefetch><link href=css/chunk-08473d3a.77daa9fe.css rel=prefetch><link href=css/chunk-08627161.c1f4f120.css rel=prefetch><link href=css/chunk-132fc719.b547401f.css rel=prefetch><link href=css/chunk-1e573615.be89fdde.css rel=prefetch><link href=css/chunk-4d213a0b.e2ea152d.css rel=prefetch><link href=css/chunk-56896308.67b3f13c.css rel=prefetch><link href=css/chunk-5d055fa8.421f5736.css rel=prefetch><link href=css/chunk-650419d0.3897bea9.css rel=prefetch><link href=css/chunk-724a4e2a.507bad62.css rel=prefetch><link href=css/chunk-763d35df.70fac712.css rel=prefetch><link href=js/chunk-027be9b0.8581622c.js rel=prefetch><link href=js/chunk-08473d3a.cbd364ac.js rel=prefetch><link href=js/chunk-08627161.5f650355.js rel=prefetch><link href=js/chunk-132fc719.a41480f1.js rel=prefetch><link href=js/chunk-1e573615.0cb8b6aa.js rel=prefetch><link href=js/chunk-343c8d41.1c228cb2.js rel=prefetch><link href=js/chunk-4d213a0b.3bbca8ee.js rel=prefetch><link href=js/chunk-56896308.d6c7d80b.js rel=prefetch><link href=js/chunk-5d055fa8.fbfb58a4.js rel=prefetch><link href=js/chunk-650419d0.394afa0b.js rel=prefetch><link href=js/chunk-724a4e2a.fc934ad3.js rel=prefetch><link href=js/chunk-763d35df.ce4d187a.js rel=prefetch><link href=css/app.ba710877.css rel=preload as=style><link href=css/chunk-vendors.cb739fea.css rel=preload as=style><link href=js/app.cce3c34a.js rel=preload as=script><link href=js/chunk-vendors.420bd1eb.js rel=preload as=script><link href=css/chunk-vendors.cb739fea.css rel=stylesheet><link href=css/app.ba710877.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.420bd1eb.js></script><script src=js/app.cce3c34a.js></script></body></html>
\ No newline at end of file
}</style><link href=css/chunk-027be9b0.1440a418.css rel=prefetch><link href=css/chunk-08473d3a.77daa9fe.css rel=prefetch><link href=css/chunk-08627161.c1f4f120.css rel=prefetch><link href=css/chunk-132fc719.b547401f.css rel=prefetch><link href=css/chunk-1e573615.be89fdde.css rel=prefetch><link href=css/chunk-4d213a0b.e2ea152d.css rel=prefetch><link href=css/chunk-56896308.67b3f13c.css rel=prefetch><link href=css/chunk-650419d0.3897bea9.css rel=prefetch><link href=css/chunk-724a4e2a.507bad62.css rel=prefetch><link href=css/chunk-763d35df.70fac712.css rel=prefetch><link href=css/chunk-93f1e5fa.00a95a4b.css rel=prefetch><link href=js/chunk-027be9b0.1078ee31.js rel=prefetch><link href=js/chunk-08473d3a.57550f5a.js rel=prefetch><link href=js/chunk-08627161.af4b0a2d.js rel=prefetch><link href=js/chunk-132fc719.078733a8.js rel=prefetch><link href=js/chunk-1e573615.16b6c862.js rel=prefetch><link href=js/chunk-343c8d41.1c228cb2.js rel=prefetch><link href=js/chunk-4d213a0b.21e8499f.js rel=prefetch><link href=js/chunk-56896308.2e82959c.js rel=prefetch><link href=js/chunk-650419d0.99e278a2.js rel=prefetch><link href=js/chunk-724a4e2a.f58c8db3.js rel=prefetch><link href=js/chunk-763d35df.f33fe524.js rel=prefetch><link href=js/chunk-93f1e5fa.a95dbb52.js rel=prefetch><link href=css/app.ba710877.css rel=preload as=style><link href=css/chunk-vendors.cb739fea.css rel=preload as=style><link href=js/app.6d40cefd.js rel=preload as=script><link href=js/chunk-vendors.420bd1eb.js rel=preload as=script><link href=css/chunk-vendors.cb739fea.css rel=stylesheet><link href=css/app.ba710877.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.420bd1eb.js></script><script src=js/app.6d40cefd.js></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var a,o,c=t[0],i=t[1],u=t[2],l=0,f=[];l<c.length;l++)o=c[l],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&f.push(s[o][0]),s[o]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);d&&d(t);while(f.length)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,o=1;o<n.length;o++){var c=n[o];0!==s[c]&&(a=!1)}a&&(r.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},o={app:0},s={app:0},r=[];function c(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-08473d3a":"cbd364ac","chunk-08627161":"5f650355","chunk-343c8d41":"1c228cb2","chunk-027be9b0":"8581622c","chunk-132fc719":"a41480f1","chunk-1e573615":"0cb8b6aa","chunk-56896308":"d6c7d80b","chunk-5d055fa8":"fbfb58a4","chunk-650419d0":"394afa0b","chunk-724a4e2a":"fc934ad3","chunk-4d213a0b":"3bbca8ee","chunk-763d35df":"ce4d187a"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-08473d3a":1,"chunk-08627161":1,"chunk-027be9b0":1,"chunk-132fc719":1,"chunk-1e573615":1,"chunk-56896308":1,"chunk-5d055fa8":1,"chunk-650419d0":1,"chunk-724a4e2a":1,"chunk-4d213a0b":1,"chunk-763d35df":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-08473d3a":"77daa9fe","chunk-08627161":"c1f4f120","chunk-343c8d41":"31d6cfe0","chunk-027be9b0":"1440a418","chunk-132fc719":"b547401f","chunk-1e573615":"be89fdde","chunk-56896308":"67b3f13c","chunk-5d055fa8":"421f5736","chunk-650419d0":"3897bea9","chunk-724a4e2a":"507bad62","chunk-4d213a0b":"e2ea152d","chunk-763d35df":"70fac712"}[e]+".css",s=i.p+a,r=document.getElementsByTagName("link"),c=0;c<r.length;c++){var u=r[c],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===s))return t()}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){u=f[c],l=u.getAttribute("data-href");if(l===a||l===s)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||s,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete o[e],d.parentNode.removeChild(d),n(r)},d.href=s;var m=document.getElementsByTagName("head")[0];m.appendChild(d)})).then((function(){o[e]=0})));var a=s[e];if(0!==a)if(a)t.push(a[2]);else{var r=new Promise((function(t,n){a=s[e]=[t,n]}));t.push(a[2]=r);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=c(e);var f=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=s[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",f.name="ChunkLoadError",f.type=a,f.request=o,n[1](f)}s[e]=void 0}};var d=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var d=l;r.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"41cb":function(e,t,n){"use strict";var a=n("2b0e"),o=n("8c4f");a["default"].use(o["a"]),t["a"]=new o["a"]({base:"",routes:[{path:"/",name:"home",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-1e573615")]).then(n.bind(null,"1e4b"))},redirect:"/index",children:[{path:"index",component:function(){return n.e("chunk-763d35df").then(n.bind(null,"7abe"))}},{path:"workbench",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-132fc719")]).then(n.bind(null,"29e5"))}},{path:"knowledge",component:function(){return n.e("chunk-08627161").then(n.bind(null,"7a26"))}},{path:"robot",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-724a4e2a")]).then(n.bind(null,"2157"))}},{path:"customer",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-027be9b0")]).then(n.bind(null,"aedf"))}},{path:"users",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-56896308")]).then(n.bind(null,"4468"))}},{path:"system",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-650419d0")]).then(n.bind(null,"26b0"))}},{path:"chat_record",component:function(){return n.e("chunk-08473d3a").then(n.bind(null,"caae"))}},{path:"workorder",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-5d055fa8")]).then(n.bind(null,"df5f"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-4d213a0b").then(n.bind(null,"bd01"))}},{path:"*",redirect:"/index"}]})},4360:function(e,t,n){"use strict";var a=n("2b0e"),o=n("2f62"),s=(n("57e7"),n("bc3a")),r=n.n(s),c=n("41cb"),i={ON_GET_ME:function(e){var t=location.pathname;r.a.get("/admin/me").then((function(t){e.commit("onIsLogin",!0),e.commit("onChangeAdminInfo",t.data.data),"/login"!=location.pathname&&-1==location.hash.indexOf("#/login")||c["a"].push({path:"/index"})})).catch((function(n){console.log(n.response),e.commit("onIsLogin",!1),"/login"!=t&&c["a"].push({path:"/login"})}))},ON_GET_CONFIGS:function(e){r.a.get("/public/configs").then((function(t){e.commit("onChangeConfigs",t.data.data)}))},ON_GET_PLATFORM_CONFIG:function(e){r.a.get("/platform/list").then((function(t){e.commit("onChangePlatformConfig",t.data.data)}))},ON_GET_SYSTEM:function(e){r.a.get("/system").then((function(t){e.commit("onChangeSystemInfo",t.data.data),document.title=t.data.data.title}))},ON_GET_COMPANY:function(e){r.a.get("/public/company").then((function(t){e.commit("onChangeCompanyInfo",t.data.data)}))},ON_GET_UPLOADS_CONFIG:function(e){r.a.get("/uploads/config").then((function(t){e.commit("onChangeUploadsConfigs",t.data.data)}))},ON_GET_CONTACTS:function(e){r.a.get("/contact/list").then((function(t){e.commit("onChangeContacts",t.data.data)}))},ON_RUN_LAST_ACTiIVITY:function(){r.a.get("/public/activity/")},ON_GET_ROBOTS:function(e){var t=this;r.a.get("/robot/list").then((function(t){e.commit("onChangeRobos",t.data.data)})).catch((function(){t.loading=!1}))},ON_GET_WORKORDER_COUNTS:function(e){r.a.get("/workorder/counts").then((function(t){e.commit("onChangeWorkOrderCounts",t.data.data)}))}},u={onChangeHeaserTitle:function(e,t){e.heaserTitle=t},onChangePlatformConfig:function(e,t){e.platformConfig=t},onChangeToggleAside:function(e,t){e.isShowAside=t},onChangeEditDialogFormVisible:function(e,t){e.editDialogFormVisible=t},onChangeEditPasswordDialogFormVisible:function(e,t){e.editPasswordDialogFormVisible=t},onChangeAdminInfo:function(e,t){e.adminInfo=t},onChangeConfigs:function(e,t){e.configs=t},onChangeSystemInfo:function(e,t){e.systemInfo=t},onChangeCompanyInfo:function(e,t){e.companyInfo=t},onChangeUploadsConfigs:function(e,t){e.uploadsConfigs=t},onChangeMimcUser:function(e,t){e.mimcUser=t},onChangeContacts:function(e,t){for(var n in e.contacts=t,t){var a=t[n];if(e.seviceCurrentUser&&a.from_account==e.seviceCurrentUser.from_account){e.seviceCurrentUser=a;break}}},onChangeSeviceCurrentUser:function(e,t){e.seviceCurrentUser=t},onChangeRobos:function(e,t){e.robots=t},onReset:function(e){e.seviceCurrentUser=null,e.contacts=[],e.mimcUser=null},onChangeMessageRecord:function(e,t){e.messageRecord=t},onIsLogin:function(e,t){e.isLogin=t},onChangeWorkOrderCounts:function(e,t){e.workOrderCounts=t}},l={adminInfo:function(e){return e.adminInfo||{}},isLogin:function(e){return e.isLogin},avatar:function(e){return e.adminInfo&&""!=e.adminInfo.avatar?e.adminInfo.avatar:""},uploadMod:function(e){return e.configs.upload_mode||-1},nickname:function(e){return e.adminInfo&&""!=e.adminInfo.nickname?e.adminInfo.nickname:"未设置昵称"},configs:function(e){return e.configs},platformConfig:function(e){return e.platformConfig},systemInfo:function(e){return e.systemInfo},companyInfo:function(e){return e.companyInfo},uploadsConfigs:function(e){return e.uploadsConfigs},contacts:function(e){return e.contacts||[]},seviceCurrentUser:function(e){return e.seviceCurrentUser||{}},robots:function(e){return e.robots||[]},messageRecord:function(e){return e.messageRecord||{list:[]}},readCount:function(e){for(var t=0,n=0;n<e.contacts.length;n++)t+=e.contacts[n].read;return t},workbenchBgColor:function(e){return e.workbenchBgColor},workOrderCounts:function(e){return e.workOrderCounts}},f={adminInfo:null,heaserTitle:"首页",isShowAside:!0,editDialogFormVisible:!1,isLogin:!1,editPasswordDialogFormVisible:!1,configs:{},platformConfig:[],systemInfo:{},companyInfo:{},uploadsConfigs:[],mimcUser:null,contacts:[],robots:[],seviceCurrentUser:null,messageRecord:{list:[]},workOrderCounts:{status0:0,status2:0,status3:0,delete_count:0},avatar:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAD7tJREFUeAHtXV1sHMUdn9m7s50P59NxbBI7McH5IHz5A8g5OHFTJECUIlWFVkIFCdI+8dYHqOARBKjqG08tIIHEA7QvlCJAShPHxnYAO6aiKE0s5DZpcBJiFOqEOLZvp//f3q1zd7673b2dnZ21b6TT7u3O/L9+O/Of7+FsEYTx8fGa0xOTrVwYOwQT9GM7OGP1pFotY6JWMG5duXWlJ0xMMcaneOZK8aYozQVKc5LinBTcPNncuH6spaVlOurmIZ2iF44OjewilA7Q70cETAcp0SyEMGRqwjk3ifZpoj3CODtCv8P7kx0nZPJQQSsSAA8PD9ddmTEeZqZ5gIx+gAzToMI4BXicI4MdZoZxeEWV+V5nZ+fFAnG0eqQtwGNjY9UTF6Yeopz5OOPifiFYQifLcc5mmeAfUU5/q7G+9v3W1tZrOslny6IdwL0Do3dyYT5FOfUX5C3X2ILqfeWXyJDvCG683rO37XOdZNUG4P6h0Z5UynyOQL1XJwN5l4UfisWMF7uTbb3e08pPETrAvUPHH6DqzPNUFHfJVy88ilR0DwqDv9CTbP8wPCmorRAW8/6h4btTJn+VCdEZlgxK+HI+HDPE093Jzk+V8MtjohzgwcGv1s2I6ZeJ8UHKtcr55+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ZO7IpPi4t8pHNTafEH5NVW45tL+4oz4++P2siXoE9o2divNkc9ba0/OKnVsH2aInTNd0znLblvcV6jS74+Y3ZLyPW4U102ajOuE8gltSvmFI7Yru0SQpm+yZJRdmbsl28DEySDyUpBbT616RUU82qPeRYhg3S7RJ/G9Gt1ySDLcjwUHmFKLq/4UcPzVTs5WC+lNl6vh5v6noXHD9F9txFBzIuO5JwfVUfCa/gRxPpVVC3krZ9uiNGri6o9/UXiDjYMBgR4UduMwnk20kIT6hVCUnLv1NCMUux00g4VACoAVACoAVACoA//2Q==",workbenchBgColor:"#646b6f"};a["default"].use(o["a"]);t["a"]=new o["a"].Store({state:f,getters:l,mutations:u,actions:i})},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=s,e.exports=o,o.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),o=n("5c96"),s=n.n(o),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},c=[],i=(n("6d67"),n("bc3a")),u=n.n(i),l=n("b730"),f=n.n(l),d={created:function(){this.$store.dispatch("ON_GET_ME")},methods:{appInit:function(){var e=this;this.adminInfo?(this.$store.dispatch("ON_GET_CONFIGS"),this.$store.dispatch("ON_GET_PLATFORM_CONFIG"),this.$store.dispatch("ON_GET_SYSTEM"),this.$store.dispatch("ON_GET_COMPANY"),this.$store.dispatch("ON_GET_UPLOADS_CONFIG"),this.$store.dispatch("ON_GET_ROBOTS"),this.$store.dispatch("ON_GET_CONTACTS"),this.$store.dispatch("ON_GET_WORKORDER_COUNTS"),setInterval((function(){return e.$store.dispatch("ON_GET_WORKORDER_COUNTS")}),3e4),this.upLastActivity(),this.getContacts(),this.initMimc()):setTimeout((function(){return e.appInit()}),50)},getContacts:function(){var e=this;this.adminInfo&&(this.$store.dispatch("ON_GET_CONTACTS"),this.seviceCurrentUser&&this.$store.getters.contacts.length>0&&this.$store.getters.contacts.map((function(t){t.from_account==e.seviceCurrentUser.from_account&&e.$store.commit("onChangeSeviceCurrentUser",t)})))},upLastActivity:function(){var e=this;this.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),setTimeout((function(){return e.upLastActivity()}),6e4)},initMimc:function(){var e=this,t=this,n=this.$store.state.adminInfo;n?t.$mimcInstance.init({type:1,account_id:n.id},(function(n){n?(e.$mimcInstance.addEventListener("statusChange",(function(e){e||0==t.$store.getters.adminInfo.online||t.watchLogin()})),e.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!"),0!=t.$store.getters.adminInfo.online&&t.watchLogin()})),t.watchLogin()):t.initMimc()})):setTimeout((function(){return e.initMimc()}),1e3)},changeUserOnlineStatus:function(e){var t=this;u.a.put("/admin/online/"+e).then((function(){t.$store.dispatch("ON_GET_ME"),0==e&&t.$message.info("当前状态为离线")})).catch((function(e){t.$message.error(e.response.data.message)}))},watchLogin:function(){var e=this;try{var t=this;if(null!=t.$store.state.user)return;1==t.$store.getters.adminInfo.online||2==t.$store.getters.adminInfo.online?t.$mimcInstance.login((function(){t.changeUserOnlineStatus(t.$store.getters.adminInfo.online),t.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),t.$store.dispatch("ON_GET_CONTACTS"),t.$store.commit("onChangeMimcUser",t.$mimcInstance.user)})):0!=t.$store.getters.adminInfo.online&&setTimeout((function(){return t.watchLogin()}),2e3)}catch(n){setTimeout((function(){return e.watchLogin()}),2e3)}}},mounted:function(){var e=this;window.addEventListener("resize",(function(){e.$store.commit("onChangeToggleAside",!0),document.body.clientWidth<1e3&&e.$store.commit("onChangeToggleAside",!1)}),!1),f.a.Permission.has()||f.a.Permission.request((function(){}),(function(){}))},computed:{adminInfo:function(){return this.$store.getters.adminInfo},seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser},messageRecord:function(){return this.$store.getters.messageRecord},isLogin:function(){return this.$store.getters.isLogin}},watch:{$route:function(){var e=this;/^\/workbench(\/\d+)?$/i.test(this.$route.path)||this.$mimcInstance.addEventListener("receiveP2PMsg",(function(t){var n=parseInt(((new Date).getTime()+"").substr(0,10));if(t.timestamp=parseInt((t.timestamp+"").substr(0,10)),!(n-t.timestamp>=60))if("contacts"!=t.biz_type)if("handshake"!=t.biz_type){var a=JSON.parse(JSON.stringify(e.messageRecord));a.list.push(t),e.$store.commit("onChangeMessageRecord",a),"contacts"!=t.biz_type&&"pong"!=t.biz_type&&"welcome"!=t.biz_type&&"cancel"!=t.biz_type&&"handshake"!=t.biz_type&&"end"!=t.biz_type&&"timeout"!=t.biz_type&&f.a.Permission.has()&&f.a.create("收到一条新消息",{body:t.payload,icon:e.$store.state.pushIcon,timeout:5e3,onClick:function(){e.$router.push({path:"/workbench?uid="+t.from_account}),window.focus()}})}else e.$mimcInstance.sendMessage("text",t.from_account,e.adminInfo.auto_reply);else{var o=JSON.parse(t.payload);e.$store.commit("onChangeContacts",o)}}))},isLogin:function(){console.log("当前是登录状态"),this.appInit()}}},m=d,h=(n("7faf"),n("2877")),b=Object(h["a"])(m,r,c,!1,null,null,null),p=b.exports,A=n("41cb"),g=n("4360"),k=(n("0fae"),n("d1d4")),y=n.n(k),j=(n("394c"),n("c1df")),C={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$getPlatformItem=function(e){for(var t,n=this.$store.getters.platformConfig,a=0;a<n.length;a++)n[a].id==e&&(t=n[a]);return t||{title:"未知"}},e.prototype.$formatUnixDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return j(parseInt(e+"000")).format(t)},e.prototype.$formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return j(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){return j().format("YYYYMMDD")==j(parseInt(e+"000")).format("YYYYMMDD")?j(parseInt(e+"000")).format("HH:mm"):j(parseInt(e+"000")).format("YYYY-MM-DD HH:mm")},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t}}},T=C,U=(n("6b54"),n("87b3"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,fetchMIMCTokenResult:null,init:function(e,t){this.getRobot(),this.fetchMIMCToken(e,t)},_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,fetchMIMCToken:function(e,t){var n=this;u.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,t&&t(!0),console.log("MIMC初始化成功")})).catch((function(e){t&&t(!1),o["Message"].error("mimc初始化失败,请刷新重试,"+e.response.data.message)}))},getRobot:function(){var e=this;u.a.get("/public/robot/1").then((function(t){e.robot=t.data.data})).catch((function(e){o["Message"].error("mimc初始化失败,请刷新重试"+e.response.data.message)}))},pushMessage:function(e){var t=this;u.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{var n=this.fetchMIMCTokenResult;if(!n)return;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,o){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,o)})),this.user.registerServerAckHandler((function(e,n,a,o){t._serverAckCallback&&t._serverAckCallback(e,n,a,o)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log(a),console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.user){var r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(s),payload:a+""},c=window.Base64.encode(JSON.stringify(r));try{"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&this.pushMessage(window.Base64.encode(c)),setTimeout((function(){n.user.sendMessage(t.toString(),c)}),200)}catch(i){console.log("sendMessage fail, err="+i)}return r}o["Message"].error("服务异常,请刷新重试!")},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return o}}}}),O=U,v=(n("28a5"),{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}}),I=n("c1df");I.locale("zh-cn",v),u.a.defaults.baseURL="/api",u.a.interceptors.request.use((function(e){var t=localStorage.getItem("Authorization");return e.headers["Authorization"]=t||"",e}),(function(e){return Promise.reject(e)})),u.a.interceptors.response.use((function(e){return e}),(function(e){return 401==e.response.status&&(localStorage.clear(),g["a"].commit("onChangeAdminInfo",null),g["a"].state.mimcUser&&g["a"].state.mimcUser.logout(),A["a"].push("/login")),Promise.reject(e)}));var V={fullscreenEl:!1};a["default"].use(y.a,V),a["default"].use(s.a),a["default"].use(T),a["default"].use(O),a["default"].config.productionTip=!1,new a["default"]({router:A["a"],store:g["a"],render:function(e){return e(p)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),o=n.n(a);o.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.cce3c34a.js.map
\ No newline at end of file
(function(e){function t(t){for(var a,o,c=t[0],i=t[1],u=t[2],l=0,f=[];l<c.length;l++)o=c[l],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&f.push(s[o][0]),s[o]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);d&&d(t);while(f.length)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,o=1;o<n.length;o++){var c=n[o];0!==s[c]&&(a=!1)}a&&(r.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},o={app:0},s={app:0},r=[];function c(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-08473d3a":"57550f5a","chunk-08627161":"af4b0a2d","chunk-343c8d41":"1c228cb2","chunk-027be9b0":"1078ee31","chunk-132fc719":"078733a8","chunk-1e573615":"16b6c862","chunk-56896308":"2e82959c","chunk-650419d0":"99e278a2","chunk-724a4e2a":"f58c8db3","chunk-93f1e5fa":"a95dbb52","chunk-4d213a0b":"21e8499f","chunk-763d35df":"f33fe524"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-08473d3a":1,"chunk-08627161":1,"chunk-027be9b0":1,"chunk-132fc719":1,"chunk-1e573615":1,"chunk-56896308":1,"chunk-650419d0":1,"chunk-724a4e2a":1,"chunk-93f1e5fa":1,"chunk-4d213a0b":1,"chunk-763d35df":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-08473d3a":"77daa9fe","chunk-08627161":"c1f4f120","chunk-343c8d41":"31d6cfe0","chunk-027be9b0":"1440a418","chunk-132fc719":"b547401f","chunk-1e573615":"be89fdde","chunk-56896308":"67b3f13c","chunk-650419d0":"3897bea9","chunk-724a4e2a":"507bad62","chunk-93f1e5fa":"00a95a4b","chunk-4d213a0b":"e2ea152d","chunk-763d35df":"70fac712"}[e]+".css",s=i.p+a,r=document.getElementsByTagName("link"),c=0;c<r.length;c++){var u=r[c],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===s))return t()}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){u=f[c],l=u.getAttribute("data-href");if(l===a||l===s)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||s,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete o[e],d.parentNode.removeChild(d),n(r)},d.href=s;var m=document.getElementsByTagName("head")[0];m.appendChild(d)})).then((function(){o[e]=0})));var a=s[e];if(0!==a)if(a)t.push(a[2]);else{var r=new Promise((function(t,n){a=s[e]=[t,n]}));t.push(a[2]=r);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=c(e);var f=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=s[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",f.name="ChunkLoadError",f.type=a,f.request=o,n[1](f)}s[e]=void 0}};var d=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var d=l;r.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"41cb":function(e,t,n){"use strict";var a=n("2b0e"),o=n("8c4f");a["default"].use(o["a"]),t["a"]=new o["a"]({base:"",routes:[{path:"/",name:"home",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-1e573615")]).then(n.bind(null,"1e4b"))},redirect:"/index",children:[{path:"index",component:function(){return n.e("chunk-763d35df").then(n.bind(null,"7abe"))}},{path:"workbench",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-132fc719")]).then(n.bind(null,"29e5"))}},{path:"knowledge",component:function(){return n.e("chunk-08627161").then(n.bind(null,"7a26"))}},{path:"robot",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-724a4e2a")]).then(n.bind(null,"2157"))}},{path:"customer",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-027be9b0")]).then(n.bind(null,"aedf"))}},{path:"users",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-56896308")]).then(n.bind(null,"4468"))}},{path:"system",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-650419d0")]).then(n.bind(null,"26b0"))}},{path:"chat_record",component:function(){return n.e("chunk-08473d3a").then(n.bind(null,"caae"))}},{path:"workorder",component:function(){return Promise.all([n.e("chunk-343c8d41"),n.e("chunk-93f1e5fa")]).then(n.bind(null,"df5f"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-4d213a0b").then(n.bind(null,"bd01"))}},{path:"*",redirect:"/index"}]})},4360:function(e,t,n){"use strict";var a=n("2b0e"),o=n("2f62"),s=(n("57e7"),n("bc3a")),r=n.n(s),c=n("41cb"),i={ON_GET_ME:function(e){var t=location.pathname;r.a.get("/admin/me").then((function(t){e.commit("onIsLogin",!0),e.commit("onChangeAdminInfo",t.data.data),"/login"!=location.pathname&&-1==location.hash.indexOf("#/login")||c["a"].push({path:"/index"})})).catch((function(n){console.log(n.response),e.commit("onIsLogin",!1),"/login"!=t&&c["a"].push({path:"/login"})}))},ON_GET_CONFIGS:function(e){r.a.get("/public/configs").then((function(t){e.commit("onChangeConfigs",t.data.data)}))},ON_GET_PLATFORM_CONFIG:function(e){r.a.get("/platform/list").then((function(t){e.commit("onChangePlatformConfig",t.data.data)}))},ON_GET_SYSTEM:function(e){r.a.get("/system").then((function(t){e.commit("onChangeSystemInfo",t.data.data),document.title=t.data.data.title}))},ON_GET_COMPANY:function(e){r.a.get("/public/company").then((function(t){e.commit("onChangeCompanyInfo",t.data.data)}))},ON_GET_UPLOADS_CONFIG:function(e){r.a.get("/uploads/config").then((function(t){e.commit("onChangeUploadsConfigs",t.data.data)}))},ON_GET_CONTACTS:function(e){r.a.get("/contact/list").then((function(t){e.commit("onChangeContacts",t.data.data)}))},ON_RUN_LAST_ACTiIVITY:function(){r.a.get("/public/activity/")},ON_GET_ROBOTS:function(e){var t=this;r.a.get("/robot/list").then((function(t){e.commit("onChangeRobos",t.data.data)})).catch((function(){t.loading=!1}))},ON_GET_WORKORDER_COUNTS:function(e){r.a.get("/workorder/counts").then((function(t){e.commit("onChangeWorkOrderCounts",t.data.data)}))}},u={onChangeHeaserTitle:function(e,t){e.heaserTitle=t},onChangePlatformConfig:function(e,t){e.platformConfig=t},onChangeToggleAside:function(e,t){e.isShowAside=t},onChangeEditDialogFormVisible:function(e,t){e.editDialogFormVisible=t},onChangeEditPasswordDialogFormVisible:function(e,t){e.editPasswordDialogFormVisible=t},onChangeAdminInfo:function(e,t){e.adminInfo=t},onChangeConfigs:function(e,t){e.configs=t},onChangeSystemInfo:function(e,t){e.systemInfo=t},onChangeCompanyInfo:function(e,t){e.companyInfo=t},onChangeUploadsConfigs:function(e,t){e.uploadsConfigs=t},onChangeMimcUser:function(e,t){e.mimcUser=t},onChangeContacts:function(e,t){for(var n in e.contacts=t,t){var a=t[n];if(e.seviceCurrentUser&&a.from_account==e.seviceCurrentUser.from_account){e.seviceCurrentUser=a;break}}},onChangeSeviceCurrentUser:function(e,t){e.seviceCurrentUser=t},onChangeRobos:function(e,t){e.robots=t},onReset:function(e){e.seviceCurrentUser=null,e.contacts=[],e.mimcUser=null},onChangeMessageRecord:function(e,t){e.messageRecord=t},onIsLogin:function(e,t){e.isLogin=t},onChangeWorkOrderCounts:function(e,t){e.workOrderCounts=t}},l={adminInfo:function(e){return e.adminInfo||{}},isLogin:function(e){return e.isLogin},avatar:function(e){return e.adminInfo&&""!=e.adminInfo.avatar?e.adminInfo.avatar:""},uploadMod:function(e){return e.configs.upload_mode||-1},nickname:function(e){return e.adminInfo&&""!=e.adminInfo.nickname?e.adminInfo.nickname:"未设置昵称"},configs:function(e){return e.configs},platformConfig:function(e){return e.platformConfig},systemInfo:function(e){return e.systemInfo},companyInfo:function(e){return e.companyInfo},uploadsConfigs:function(e){return e.uploadsConfigs},contacts:function(e){return e.contacts||[]},seviceCurrentUser:function(e){return e.seviceCurrentUser||{}},robots:function(e){return e.robots||[]},messageRecord:function(e){return e.messageRecord||{list:[]}},readCount:function(e){for(var t=0,n=0;n<e.contacts.length;n++)t+=e.contacts[n].read;return t},workbenchBgColor:function(e){return e.workbenchBgColor},workOrderCounts:function(e){return e.workOrderCounts}},f={adminInfo:null,heaserTitle:"首页",isShowAside:!0,editDialogFormVisible:!1,isLogin:!1,editPasswordDialogFormVisible:!1,configs:{},platformConfig:[],systemInfo:{},companyInfo:{},uploadsConfigs:[],mimcUser:null,contacts:[],robots:[],seviceCurrentUser:null,messageRecord:{list:[]},workOrderCounts:{status0:0,status2:0,status3:0,delete_count:0},avatar:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAD7tJREFUeAHtXV1sHMUdn9m7s50P59NxbBI7McH5IHz5A8g5OHFTJECUIlWFVkIFCdI+8dYHqOARBKjqG08tIIHEA7QvlCJAShPHxnYAO6aiKE0s5DZpcBJiFOqEOLZvp//f3q1zd7673b2dnZ21b6TT7u3O/L9+O/Of7+FsEYTx8fGa0xOTrVwYOwQT9GM7OGP1pFotY6JWMG5duXWlJ0xMMcaneOZK8aYozQVKc5LinBTcPNncuH6spaVlOurmIZ2iF44OjewilA7Q70cETAcp0SyEMGRqwjk3ifZpoj3CODtCv8P7kx0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UxABSDgFc6UAVcqQeArlQAFA5HhoFGqchUAaH3HHTj8Tk8rJTGx0VyW8eaWkk2/EeSfSaitvhWvUyenHnN9EabtXonxRJ3I6FDgRj2FG3mcdHzJ9dYuTyrl0h0XmbWNxaXWf5GqwYEODGbiw2UR47Qs202kJSB5hWU229Wa8YpLRD9IKKgBUAKgBUAKgBUAKgBUAKgBUAKgBqRFYkNKafbQ60rgptYCknzg0JtdUNlFSWjKhlulW25pK4oXj3T2sm7d/wACr/IRV6rkbYdO5m38RTPqltZUMl0h3CwSYT7ExHYCS0v1Kun81aFfKwf1LQy7ODsX0vUrk3ZO7IpPi4t8pHNTafEH5NVW45tL+4oz4++P2siXoE9o2divNkc9ba0/OKnVsH2aInTNd0znLblvcV6jS74+Y3ZLyPW4U102ajOuE8gltSvmFI7Yru0SQpm+yZJRdmbsl28DEySDyUpBbT616RUU82qPeRYhg3S7RJ/G9Gt1ySDLcjwUHmFKLq/4UcPzVTs5WC+lNl6vh5v6noXHD9F9txFBzIuO5JwfVUfCa/gRxPpVVC3krZ9uiNGri6o9/UXiDjYMBgR4UduMwnk20kIT6hVCUnLv1NCMUux00g4VACoAVACoAVACoA//2Q==",workbenchBgColor:"#646b6f"};a["default"].use(o["a"]);t["a"]=new o["a"].Store({state:f,getters:l,mutations:u,actions:i})},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=s(e);return n(t)}function s(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=s,e.exports=o,o.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),o=n("5c96"),s=n.n(o),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},c=[],i=(n("6d67"),n("bc3a")),u=n.n(i),l=n("b730"),f=n.n(l),d={created:function(){this.$store.dispatch("ON_GET_ME")},methods:{appInit:function(){var e=this;this.adminInfo?(this.$store.dispatch("ON_GET_CONFIGS"),this.$store.dispatch("ON_GET_PLATFORM_CONFIG"),this.$store.dispatch("ON_GET_SYSTEM"),this.$store.dispatch("ON_GET_COMPANY"),this.$store.dispatch("ON_GET_UPLOADS_CONFIG"),this.$store.dispatch("ON_GET_ROBOTS"),this.$store.dispatch("ON_GET_CONTACTS"),this.$store.dispatch("ON_GET_WORKORDER_COUNTS"),setInterval((function(){return e.$store.dispatch("ON_GET_WORKORDER_COUNTS")}),3e4),this.upLastActivity(),this.getContacts(),this.initMimc()):setTimeout((function(){return e.appInit()}),50)},getContacts:function(){var e=this;this.adminInfo&&(this.$store.dispatch("ON_GET_CONTACTS"),this.seviceCurrentUser&&this.$store.getters.contacts.length>0&&this.$store.getters.contacts.map((function(t){t.from_account==e.seviceCurrentUser.from_account&&e.$store.commit("onChangeSeviceCurrentUser",t)})))},upLastActivity:function(){var e=this;this.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),setTimeout((function(){return e.upLastActivity()}),6e4)},initMimc:function(){var e=this,t=this,n=this.$store.state.adminInfo;n?t.$mimcInstance.init({type:1,account_id:n.id},(function(n){n?(e.$mimcInstance.addEventListener("statusChange",(function(e){e||0==t.$store.getters.adminInfo.online||t.watchLogin()})),e.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!"),0!=t.$store.getters.adminInfo.online&&t.watchLogin()})),t.watchLogin()):t.initMimc()})):setTimeout((function(){return e.initMimc()}),1e3)},changeUserOnlineStatus:function(e){var t=this;u.a.put("/admin/online/"+e).then((function(){t.$store.dispatch("ON_GET_ME"),0==e&&t.$message.info("当前状态为离线")})).catch((function(e){t.$message.error(e.response.data.message)}))},watchLogin:function(){var e=this;try{var t=this;if(null!=t.$store.state.user)return;1==t.$store.getters.adminInfo.online||2==t.$store.getters.adminInfo.online?t.$mimcInstance.login((function(){t.changeUserOnlineStatus(t.$store.getters.adminInfo.online),t.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),t.$store.dispatch("ON_GET_CONTACTS"),t.$store.commit("onChangeMimcUser",t.$mimcInstance.user)})):0!=t.$store.getters.adminInfo.online&&setTimeout((function(){return t.watchLogin()}),2e3)}catch(n){setTimeout((function(){return e.watchLogin()}),2e3)}}},mounted:function(){var e=this;window.addEventListener("resize",(function(){e.$store.commit("onChangeToggleAside",!0),document.body.clientWidth<1e3&&e.$store.commit("onChangeToggleAside",!1)}),!1),f.a.Permission.has()||f.a.Permission.request((function(){}),(function(){}))},computed:{adminInfo:function(){return this.$store.getters.adminInfo},seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser},messageRecord:function(){return this.$store.getters.messageRecord},isLogin:function(){return this.$store.getters.isLogin}},watch:{$route:function(){var e=this;/^\/workbench(\/\d+)?$/i.test(this.$route.path)||this.$mimcInstance.addEventListener("receiveP2PMsg",(function(t){var n=parseInt(((new Date).getTime()+"").substr(0,10));if(t.timestamp=parseInt((t.timestamp+"").substr(0,10)),!(n-t.timestamp>=60))if("contacts"!=t.biz_type)if("handshake"!=t.biz_type){var a=JSON.parse(JSON.stringify(e.messageRecord));a.list.push(t),e.$store.commit("onChangeMessageRecord",a),"contacts"!=t.biz_type&&"pong"!=t.biz_type&&"welcome"!=t.biz_type&&"cancel"!=t.biz_type&&"handshake"!=t.biz_type&&"end"!=t.biz_type&&"timeout"!=t.biz_type&&f.a.Permission.has()&&f.a.create("收到一条新消息",{body:t.payload,icon:e.$store.state.pushIcon,timeout:5e3,onClick:function(){e.$router.push({path:"/workbench?uid="+t.from_account}),window.focus()}})}else e.$mimcInstance.sendMessage("text",t.from_account,e.adminInfo.auto_reply);else{var o=JSON.parse(t.payload);e.$store.commit("onChangeContacts",o)}}))},isLogin:function(){console.log("当前是登录状态"),this.appInit()}}},m=d,h=(n("7faf"),n("2877")),b=Object(h["a"])(m,r,c,!1,null,null,null),p=b.exports,A=n("41cb"),g=n("4360"),k=(n("0fae"),n("d1d4")),y=n.n(k),j=(n("394c"),n("c1df")),C={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$getPlatformItem=function(e){for(var t,n=this.$store.getters.platformConfig,a=0;a<n.length;a++)n[a].id==e&&(t=n[a]);return t||{title:"未知"}},e.prototype.$formatUnixDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return j(parseInt(e+"000")).format(t)},e.prototype.$formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return j(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){return j().format("YYYYMMDD")==j(parseInt(e+"000")).format("YYYYMMDD")?j(parseInt(e+"000")).format("HH:mm"):j(parseInt(e+"000")).format("YYYY-MM-DD HH:mm")},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t}}},T=C,U=(n("6b54"),n("87b3"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,fetchMIMCTokenResult:null,init:function(e,t){this.getRobot(),this.fetchMIMCToken(e,t)},_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,fetchMIMCToken:function(e,t){var n=this;u.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,t&&t(!0),console.log("MIMC初始化成功")})).catch((function(e){t&&t(!1),o["Message"].error("mimc初始化失败,请刷新重试,"+e.response.data.message)}))},getRobot:function(){var e=this;u.a.get("/public/robot/1").then((function(t){e.robot=t.data.data})).catch((function(e){o["Message"].error("mimc初始化失败,请刷新重试"+e.response.data.message)}))},pushMessage:function(e){var t=this;u.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{var n=this.fetchMIMCTokenResult;if(!n)return;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,o){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,o)})),this.user.registerServerAckHandler((function(e,n,a,o){t._serverAckCallback&&t._serverAckCallback(e,n,a,o)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log(a),console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(this.user){var r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(s),payload:a+""},c=window.Base64.encode(JSON.stringify(r));try{"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&this.pushMessage(window.Base64.encode(c)),setTimeout((function(){n.user.sendMessage(t.toString(),c)}),200)}catch(i){console.log("sendMessage fail, err="+i)}return r}o["Message"].error("服务异常,请刷新重试!")},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return o}}}}),O=U,v=(n("28a5"),{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}}),I=n("c1df");I.locale("zh-cn",v),u.a.defaults.baseURL="/api",u.a.interceptors.request.use((function(e){var t=localStorage.getItem("Authorization");return e.headers["Authorization"]=t||"",e}),(function(e){return Promise.reject(e)})),u.a.interceptors.response.use((function(e){return e}),(function(e){return 401==e.response.status&&(localStorage.clear(),g["a"].commit("onChangeAdminInfo",null),g["a"].state.mimcUser&&g["a"].state.mimcUser.logout(),A["a"].push("/login")),Promise.reject(e)}));var V={fullscreenEl:!1};a["default"].use(y.a,V),a["default"].use(s.a),a["default"].use(T),a["default"].use(O),a["default"].config.productionTip=!1,new a["default"]({router:A["a"],store:g["a"],render:function(e){return e(p)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),o=n.n(a);o.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.6d40cefd.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-027be9b0"],{"467a":function(e,t,a){},"4f37":function(e,t,a){"use strict";a("aa77")("trim",(function(e){return function(){return e(this,3)}}))},"868f":function(e,t,a){"use strict";var o=a("467a"),i=a.n(o);i.a},aa77:function(e,t,a){var o=a("5ca1"),i=a("be13"),l=a("79e5"),n=a("fdef"),r="["+n+"]",s="​…",c=RegExp("^"+r+r+"*"),m=RegExp(r+r+"*$"),d=function(e,t,a){var i={},r=l((function(){return!!n[e]()||s[e]()!=s})),c=i[e]=r?t(u):n[e];a&&(i[a]=c),o(o.P+o.F*r,"String",i)},u=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(m,"")),e};e.exports=d},aedf: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",[a("div",{staticClass:"mini-im-head"},[a("span",[a("i",{staticClass:"el-icon-headset"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("客服管理")])]),1==e.adminInfo.root?a("el-button",{attrs:{size:"mini"},on:{click:function(t){e.createDialogFormVisible=!0}}},[e._v("添 加")]):e._e()],1),a("el-divider"),a("div",{staticClass:"search"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:2.1}},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"按关键字:"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-input",{attrs:{placeholder:"请输入关键词",clearable:"","prefix-icon":"el-icon-search"},on:{change:e.changeInput,clear:e.clearKeyword},model:{value:e.tableData.keyword,callback:function(t){e.$set(e.tableData,"keyword",t)},expression:"tableData.keyword"}})],1),a("el-col",{attrs:{span:3}},[a("el-button",{on:{click:e.search}},[e._v("查 找")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[a("el-table-column",{attrs:{type:"index",index:e.indexMethod,label:"#序号",width:"60"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-avatar",{attrs:{size:40,src:t.row.avatar||e.$store.state.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"username",label:"客服账号"}}),a("el-table-column",{attrs:{prop:"nickname",label:"客服昵称"}}),a("el-table-column",{attrs:{prop:"online",align:"center",label:"在线状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.online?a("el-tag",{attrs:{type:"success"}},[e._v("在线")]):e._e(),2==t.row.online?a("el-tag",{attrs:{type:"warning"}},[e._v("繁忙")]):e._e(),0==t.row.online?a("el-tag",{attrs:{type:"info"}},[e._v("离线")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"root",align:"center",label:"角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.root?a("el-tag",{attrs:{effect:"dark",type:"warning"}},[e._v("超级管理")]):e._e(),0==t.row.root?a("el-tag",[e._v("客服人员")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"last_activity",label:"最后在线时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.last_activity,"YYYY/MM/DD HH:mm"))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),1==e.adminInfo.root?a("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.root?a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编 辑")]):e._e(),0==t.row.root?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteAdmin(t.row)}}},[e._v("删 除")]):e._e()]}}],null,!1,1757062568)}):e._e()],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),a("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),a("CreateDialog",{attrs:{complete:e.getAdmins,dialogFormVisible:e.createDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.createDialogFormVisible=t},"update:dialog-form-visible":function(t){e.createDialogFormVisible=t}}}),a("EditDialog",{attrs:{formData:e.editItem,complete:e.getAdmins,dialogFormVisible:e.editDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editDialogFormVisible=t}}})],1)},i=[],l=(a("4f37"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"添加客服","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"客服账号","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服账号",autocomplete:"off"},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1),a("el-form-item",{attrs:{label:"客服昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"登录密码","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入登录密码",autocomplete:"off"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1),a("el-form-item",{attrs:{label:"确认密码","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入确认密码",autocomplete:"off"},model:{value:e.cCassword,callback:function(t){e.cCassword=t},expression:"cCassword"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)}),n=[],r=a("bc3a"),s=a.n(r),c={name:"mini-im-create-admin",data:function(){return{form:{username:"",nickname:"",password:""},cCassword:"",formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function},mounted:function(){},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.username.trim())if(""!=this.form.nickname.trim())if(""!=this.form.password.trim())if(this.form.password.trim()==this.cCassword.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});s.a.post("/admin",this.form).then((function(a){try{console.log(a),t.close(),e.$message.success("添加成功"),e.closeModal(),e.resize(),e.complete(1)}catch(o){console.log(o)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}else this.$message.error("两次密码不一致!");else this.$message.error("密码不能为空!");else this.$message.error("昵称不能为空!");else this.$message.error("账号不能为空!")},resize:function(){this.cCassword="",this.form={username:"",nickname:"",password:""}}}},m=c,d=a("2877"),u=Object(d["a"])(m,l,n,!1,null,"56150a82",null),f=u.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"600px",title:"修改客服资料","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"头像","label-width":e.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:e.form.avatar||e.$store.state.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[e._v(e._s(e.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"客服账号","label-width":e.formLabelWidth}},[a("span",[e._v(e._s(e.form.username))])]),a("el-form-item",{attrs:{label:"客服昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入客服昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"手机号","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入登录密码",autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"自动回复语","label-width":e.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入自动回复语,不支持emoji,请使用简单语句描述",autocomplete:"off"},model:{value:e.form.auto_reply,callback:function(t){e.$set(e.form,"auto_reply",t)},expression:"form.auto_reply"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},g=[],b=a("fb21"),h={name:"mini-im-create-admin",data:function(){return{form:{phone:"",nickname:"",avatar:"",auto_reply:""},formLabelWidth:"90px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},changeFile:function(e){var t=this,a=e.target.files[0];Object(b["a"])({file:a,progress:function(e){t.isUploading=!0,t.uploadPercent=e+"%"},success:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.success("上传成功");var a=t.$store.getters.configs.upload_host+"/"+e;t.form.avatar=a},error:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.error(e.message)}})},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});s.a.put("/admin",this.form).then((function(a){try{t.close(),e.$message.success("修改成功"),e.closeModal(),e.complete(1)}catch(o){console.log(o,a)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},v=h,w=(a("868f"),Object(d["a"])(v,p,g,!1,null,"7be8c9b2",null)),_=w.exports,k={name:"admins",components:{CreateDialog:f,EditDialog:_},data:function(){return{tableData:{list:[],page_on:1,page_size:10,keyword:"",total:0},createDialogFormVisible:!1,editDialogFormVisible:!1,loading:!0,editItem:{}}},computed:{adminInfo:function(){return this.$store.getters.adminInfo}},created:function(){var e=this;setTimeout((function(){return e.getAdmins(1)}),500)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},deleteAdmin:function(e){var t=this;this.$confirm("您确定要删除该客服吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){s.a.delete("/admin/"+e.id).then((function(e){console.log(e.data),t.$message.success("删除成功"),t.getAdmins(1)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},edit:function(e){this.editItem=e,this.editDialogFormVisible=!0},handleSizeChange:function(e){this.tableData.page_size=e,this.getAdmins()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getAdmins()},clearKeyword:function(){this.getAdmins(1)},changeInput:function(){""==this.tableData.keyword&&this.getAdmins(1)},search:function(){this.tableData.keyword=this.tableData.keyword.trim(),this.tableData.keyword&&this.getAdmins(1)},getAdmins:function(e){var t=this;e&&(this.tableData.page_on=e);var a=this.tableData,o=a.page_on,i=a.page_size,l=a.keyword;s.a.post("/admin/list",{page_on:o,page_size:i,keyword:l,online:3}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))}}},y=k,D=(a("db3c"),Object(d["a"])(y,o,i,!1,null,"65c494d4",null));t["default"]=D.exports},b3a0:function(e,t,a){},db3c:function(e,t,a){"use strict";var o=a("b3a0"),i=a.n(o);i.a},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-027be9b0.8581622c.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-027be9b0.1078ee31.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./src/views/customer/edit.vue?549f","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/views/customer/index.vue?e2f0","webpack:///./src/views/customer/create.vue?f1d9","webpack:///src/views/customer/create.vue","webpack:///./src/views/customer/create.vue?c0ff","webpack:///./src/views/customer/create.vue","webpack:///./src/views/customer/edit.vue?d751","webpack:///src/views/customer/edit.vue","webpack:///./src/views/customer/edit.vue?939e","webpack:///./src/views/customer/edit.vue","webpack:///src/views/customer/index.vue","webpack:///./src/views/customer/index.vue?3888","webpack:///./src/views/customer/index.vue","webpack:///./src/views/customer/index.vue?782e","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["$trim","this","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","P","F","string","TYPE","String","replace","module","exports","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","adminInfo","root","on","$event","createDialogFormVisible","_e","ref","changeInput","clearKeyword","model","value","tableData","callback","$$v","$set","expression","search","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","key","scope","row","avatar","$store","state","online","_s","$formatUnixDate","last_activity","create_at","edit","deleteAdmin","total","page_on","handleSizeChange","handleCurrentChange","getAdmins","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","cCassword","closeModal","save","data","props","Boolean","complete","Function","mounted","methods","$emit","lock","text","spinner","background","$message","error","resize","username","nickname","password","component","changeFile","uploadPercent","phone","auto_reply","isUploading","formData","Object","fileData","file","target","files","imgUrl","watch","assign","components","CreateDialog","EditDialog","page_size","keyword","loading","computed","getters","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","item","val"],"mappings":"2IAEA,EAAQ,OAAR,CAA0B,QAAQ,SAAUA,GAC1C,OAAO,WACL,OAAOA,EAAMC,KAAM,Q,oCCJvB,yBAAwjB,EAAG,G,qBCA3jB,IAAIC,EAAU,EAAQ,QAClBC,EAAU,EAAQ,QAClBC,EAAQ,EAAQ,QAChBC,EAAS,EAAQ,QACjBC,EAAQ,IAAMD,EAAS,IACvBE,EAAM,KACNC,EAAQC,OAAO,IAAMH,EAAQA,EAAQ,KACrCI,EAAQD,OAAOH,EAAQA,EAAQ,MAE/BK,EAAW,SAAUC,EAAKC,EAAMC,GAClC,IAAIC,EAAM,GACNC,EAAQZ,GAAM,WAChB,QAASC,EAAOO,MAAUL,EAAIK,MAAUL,KAEtCU,EAAKF,EAAIH,GAAOI,EAAQH,EAAKK,GAAQb,EAAOO,GAC5CE,IAAOC,EAAID,GAASG,GACxBf,EAAQA,EAAQiB,EAAIjB,EAAQkB,EAAIJ,EAAO,SAAUD,IAM/CG,EAAOP,EAASO,KAAO,SAAUG,EAAQC,GAI3C,OAHAD,EAASE,OAAOpB,EAAQkB,IACb,EAAPC,IAAUD,EAASA,EAAOG,QAAQhB,EAAO,KAClC,EAAPc,IAAUD,EAASA,EAAOG,QAAQd,EAAO,KACtCW,GAGTI,EAAOC,QAAUf,G,yCC7BjB,IAAIgB,EAAS,WAAa,IAAIC,EAAI3B,KAAS4B,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,oBAAoBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,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OAlDJ,WAmDMpD,KAAK+C,UAAU8E,QAAU7H,KAAK+C,UAAU8E,QAAQ5G,OACtD,wBACMjB,KAAK8E,UAAU,IAGjBA,UAxDJ,SAwDA,cACA,8BADA,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,QACM,EAAN,iEACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,8CC5NiY,ICQ7X,G,UAAY,eACd,EACApD,EACAuD,GACA,EACA,KACA,WACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,mBCA5jBzD,EAAOC,QAAU","file":"js/chunk-027be9b0.1078ee31.js","sourcesContent":["'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7be8c9b2&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7be8c9b2&scoped=true&lang=stylus&\"","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),(_vm.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")]):_vm._e()],1),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":2.1}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按关键字:\"}})],1)],1),_c('el-col',{attrs:{\"span\":5}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-search\"},on:{\"change\":_vm.changeInput,\"clear\":_vm.clearKeyword},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"username\",\"label\":\"客服账号\"}}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"客服昵称\"}}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 2)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"繁忙\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"root\",\"align\":\"center\",\"label\":\"角色\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 1)?_c('el-tag',{attrs:{\"effect\":\"dark\",\"type\":\"warning\"}},[_vm._v(\"超级管理\")]):_vm._e(),(scope.row.root == 0)?_c('el-tag',[_vm._v(\"客服人员\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"last_activity\",\"label\":\"最后在线时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),(_vm.adminInfo.root == 1)?_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]):_vm._e(),(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteAdmin(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}],null,false,1757062568)}):_vm._e()],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加客服\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服账号\",\"autocomplete\":\"off\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}})],1),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"登录密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入确认密码\",\"autocomplete\":\"off\"},model:{value:(_vm.cCassword),callback:function ($$v) {_vm.cCassword=$$v},expression:\"cCassword\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"添加客服\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.username\" placeholder=\"请输入客服账号\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"登录密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.password\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"cCassword\" placeholder=\"请输入确认密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'mini-im-create-admin',\n data(){\n return {\n form: {\n username: '',\n nickname: '',\n password: ''\n },\n cCassword: '',\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证一下密码字段\n if(this.form.username.trim() == \"\"){\n this.$message.error(\"账号不能为空!\")\n return;\n }\n if(this.form.nickname.trim() == \"\"){\n this.$message.error(\"昵称不能为空!\")\n return;\n }\n if(this.form.password.trim() == \"\"){\n this.$message.error(\"密码不能为空!\")\n return;\n }\n if(this.form.password.trim() != this.cCassword.trim()){\n this.$message.error(\"两次密码不一致!\")\n return;\n }\n\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .post(\"/admin\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.cCassword = '';\n this.form = {\n username: '',\n nickname: '',\n password: ''\n };\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=56150a82&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"56150a82\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"修改客服资料\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('span',[_vm._v(_vm._s(_vm.form.username))])]),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\" \n title=\"修改客服资料\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <span>{{form.username}}</span>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"手机号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-create-admin\",\n data() {\n return {\n form: {\n phone: \"\",\n nickname: \"\",\n avatar: \"\",\n auto_reply: \"\"\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/admin\", this.form)\n .then(response => {\n try {\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete(1);\n } catch (e) {\n console.log(e, response);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n }\n },\n watch: {\n formData() {\n this.form = Object.assign({}, this.form, this.formData);\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=7be8c9b2&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=7be8c9b2&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7be8c9b2\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </span>\n <el-button v-if=\"adminInfo.root == 1\" @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col :span=\"2.1\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按关键字:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"5\">\n <el-input @change=\"changeInput\" @clear=\"clearKeyword\" placeholder=\"请输入关键词\" v-model=\"tableData.keyword\" clearable prefix-icon=\"el-icon-search\"></el-input>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table\n :data=\"tableData.list\"\n style=\"width: 100%\"\n v-loading=\"loading\"\n >\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column\n prop=\"avatar\"\n label=\"头像\"\n width=\"120\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"username\"\n label=\"客服账号\">\n </el-table-column>\n <el-table-column\n prop=\"nickname\"\n label=\"客服昵称\">\n </el-table-column>\n <el-table-column\n prop=\"online\"\n align=\"center\"\n label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"warning\" v-if=\"scope.row.online == 2\">繁忙</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"root\"\n align=\"center\"\n label=\"角色\">\n <template slot-scope=\"scope\">\n <el-tag effect=\"dark\" type=\"warning\" v-if=\"scope.row.root == 1\">超级管理</el-tag>\n <el-tag v-if=\"scope.row.root == 0\">客服人员</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"last_activity\"\n label=\"最后在线时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"create_at\"\n label=\"创建时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"operating\"\n align=\"center\"\n width=\"150\"\n v-if=\"adminInfo.root == 1\"\n label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n v-if=\"scope.row.root == 0\"\n @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n v-if=\"scope.row.root == 0\"\n @click=\"deleteAdmin(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <CreateDialog :complete=\"getAdmins\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog :formData=\"editItem\" :complete=\"getAdmins\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\"\nimport EditDialog from \"./edit\"\nimport axios from 'axios'\nexport default {\n name: \"admins\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n },\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: {}\n }\n },\n computed: {\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created(){\n setTimeout(()=> this.getAdmins(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 删除\n deleteAdmin(item){\n this.$confirm('您确定要删除该客服吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/admin/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getAdmins(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getAdmins()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getAdmins()\n },\n // 清空关键字\n clearKeyword(){\n this.getAdmins(1)\n },\n // 关键字input变动\n changeInput(){\n if(this.tableData.keyword == \"\"){\n this.getAdmins(1)\n }\n },\n // 查找\n search(){\n this.tableData.keyword = this.tableData.keyword.trim()\n if(!this.tableData.keyword) return\n this.getAdmins(1)\n },\n // 获取数据\n getAdmins(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword} = this.tableData\n axios.post('/admin/list', {page_on, page_size, keyword, \"online\": 3})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-head{\n height 30px\n display flex\n align-items center\n font-size 20px\n justify-content space-between\n color #666\n i{\n margin-right 5px\n }\n }\n .el-select .el-input {\n width: 130px;\n }\n .input-with-select .el-input-group__prepend {\n background-color: #fff;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=65c494d4&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"65c494d4\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./src/views/customer/edit.vue?549f","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/views/customer/index.vue?0683","webpack:///./src/views/customer/create.vue?8527","webpack:///src/views/customer/create.vue","webpack:///./src/views/customer/create.vue?c0ff","webpack:///./src/views/customer/create.vue","webpack:///./src/views/customer/edit.vue?d368","webpack:///src/views/customer/edit.vue","webpack:///./src/views/customer/edit.vue?939e","webpack:///./src/views/customer/edit.vue?de4d","webpack:///src/views/customer/index.vue","webpack:///./src/views/customer/index.vue?3888","webpack:///./src/views/customer/index.vue?a82b","webpack:///./src/views/customer/index.vue?782e","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["$trim","this","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","P","F","string","TYPE","String","replace","module","exports","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","adminInfo","root","on","$event","createDialogFormVisible","_e","ref","changeInput","clearKeyword","model","value","tableData","callback","$$v","$set","expression","search","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","key","scope","row","avatar","$store","state","online","_s","$formatUnixDate","last_activity","create_at","edit","deleteAdmin","total","page_on","handleSizeChange","handleCurrentChange","getAdmins","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","cCassword","closeModal","save","data","props","Boolean","complete","Function","mounted","methods","$emit","lock","text","spinner","background","$message","error","resize","username","nickname","password","component","changeFile","uploadPercent","phone","auto_reply","isUploading","formData","Object","fileData","file","target","files","imgUrl","watch","assign","components","CreateDialog","EditDialog","page_size","keyword","loading","computed","getters","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","item","val"],"mappings":"2IAE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AEA,QACM,EAAN,iEACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,8CC5NiY,ICQ7X,G,UAAY,eACd,EACApD,EACAuD,GACA,EACA,KACA,WACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,mBCA5jBzD,EAAOC,QAAU","file":"js/chunk-027be9b0.8581622c.js","sourcesContent":["'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7be8c9b2&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7be8c9b2&scoped=true&lang=stylus&\"","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),(_vm.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")]):_vm._e()],1),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":2.1}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按关键字:\"}})],1)],1),_c('el-col',{attrs:{\"span\":5}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"clearable\":\"\",\"prefix-icon\":\"el-icon-search\"},on:{\"change\":_vm.changeInput,\"clear\":_vm.clearKeyword},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"username\",\"label\":\"客服账号\"}}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"客服昵称\"}}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 2)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"繁忙\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"root\",\"align\":\"center\",\"label\":\"角色\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 1)?_c('el-tag',{attrs:{\"effect\":\"dark\",\"type\":\"warning\"}},[_vm._v(\"超级管理\")]):_vm._e(),(scope.row.root == 0)?_c('el-tag',[_vm._v(\"客服人员\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"last_activity\",\"label\":\"最后在线时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),(_vm.adminInfo.root == 1)?_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]):_vm._e(),(scope.row.root == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteAdmin(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}],null,false,1757062568)}):_vm._e()],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.getAdmins,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加客服\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服账号\",\"autocomplete\":\"off\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}})],1),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"登录密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入确认密码\",\"autocomplete\":\"off\"},model:{value:(_vm.cCassword),callback:function ($$v) {_vm.cCassword=$$v},expression:\"cCassword\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"添加客服\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.username\" placeholder=\"请输入客服账号\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"登录密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.password\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"cCassword\" placeholder=\"请输入确认密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'mini-im-create-admin',\n data(){\n return {\n form: {\n username: '',\n nickname: '',\n password: ''\n },\n cCassword: '',\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证一下密码字段\n if(this.form.username.trim() == \"\"){\n this.$message.error(\"账号不能为空!\")\n return;\n }\n if(this.form.nickname.trim() == \"\"){\n this.$message.error(\"昵称不能为空!\")\n return;\n }\n if(this.form.password.trim() == \"\"){\n this.$message.error(\"密码不能为空!\")\n return;\n }\n if(this.form.password.trim() != this.cCassword.trim()){\n this.$message.error(\"两次密码不一致!\")\n return;\n }\n\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .post(\"/admin\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.cCassword = '';\n this.form = {\n username: '',\n nickname: '',\n password: ''\n };\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=56150a82&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"56150a82\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"修改客服资料\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"客服账号\",\"label-width\":_vm.formLabelWidth}},[_c('span',[_vm._v(_vm._s(_vm.form.username))])]),_c('el-form-item',{attrs:{\"label\":\"客服昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入客服昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"手机号\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入登录密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\" \n title=\"修改客服资料\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"客服账号\" :label-width=\"formLabelWidth\">\n <span>{{form.username}}</span>\n </el-form-item>\n <el-form-item label=\"客服昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入客服昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"手机号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入登录密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-create-admin\",\n data() {\n return {\n form: {\n phone: \"\",\n nickname: \"\",\n avatar: \"\",\n auto_reply: \"\"\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/admin\", this.form)\n .then(response => {\n try {\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete(1);\n } catch (e) {\n console.log(e, response);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n }\n },\n watch: {\n formData() {\n this.form = Object.assign({}, this.form, this.formData);\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=7be8c9b2&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=7be8c9b2&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7be8c9b2\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </span>\n <el-button v-if=\"adminInfo.root == 1\" @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col :span=\"2.1\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按关键字:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"5\">\n <el-input @change=\"changeInput\" @clear=\"clearKeyword\" placeholder=\"请输入关键词\" v-model=\"tableData.keyword\" clearable prefix-icon=\"el-icon-search\"></el-input>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table\n :data=\"tableData.list\"\n style=\"width: 100%\"\n v-loading=\"loading\"\n >\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column\n prop=\"avatar\"\n label=\"头像\"\n width=\"120\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"username\"\n label=\"客服账号\">\n </el-table-column>\n <el-table-column\n prop=\"nickname\"\n label=\"客服昵称\">\n </el-table-column>\n <el-table-column\n prop=\"online\"\n align=\"center\"\n label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"warning\" v-if=\"scope.row.online == 2\">繁忙</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"root\"\n align=\"center\"\n label=\"角色\">\n <template slot-scope=\"scope\">\n <el-tag effect=\"dark\" type=\"warning\" v-if=\"scope.row.root == 1\">超级管理</el-tag>\n <el-tag v-if=\"scope.row.root == 0\">客服人员</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"last_activity\"\n label=\"最后在线时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.last_activity, \"YYYY/MM/DD HH:mm\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"create_at\"\n label=\"创建时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column\n prop=\"operating\"\n align=\"center\"\n width=\"150\"\n v-if=\"adminInfo.root == 1\"\n label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n v-if=\"scope.row.root == 0\"\n @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n v-if=\"scope.row.root == 0\"\n @click=\"deleteAdmin(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <CreateDialog :complete=\"getAdmins\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog :formData=\"editItem\" :complete=\"getAdmins\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\"\nimport EditDialog from \"./edit\"\nimport axios from 'axios'\nexport default {\n name: \"admins\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n },\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: {}\n }\n },\n computed: {\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created(){\n setTimeout(()=> this.getAdmins(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 删除\n deleteAdmin(item){\n this.$confirm('您确定要删除该客服吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/admin/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getAdmins(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getAdmins()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getAdmins()\n },\n // 清空关键字\n clearKeyword(){\n this.getAdmins(1)\n },\n // 关键字input变动\n changeInput(){\n if(this.tableData.keyword == \"\"){\n this.getAdmins(1)\n }\n },\n // 查找\n search(){\n this.tableData.keyword = this.tableData.keyword.trim()\n if(!this.tableData.keyword) return\n this.getAdmins(1)\n },\n // 获取数据\n getAdmins(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword} = this.tableData\n axios.post('/admin/list', {page_on, page_size, keyword, \"online\": 3})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-head{\n height 30px\n display flex\n align-items center\n font-size 20px\n justify-content space-between\n color #666\n i{\n margin-right 5px\n }\n }\n .el-select .el-input {\n width: 130px;\n }\n .input-with-select .el-input-group__prepend {\n background-color: #fff;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=65c494d4&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"65c494d4\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=65c494d4&lang=stylus&scoped=true&\"","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08473d3a"],{"78ce":function(e,t,s){var a=s("5ca1");a(a.S,"Date",{now:function(){return(new Date).getTime()}})},c2a3:function(e,t,s){},caae:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"record-page"},[s("div",{staticClass:"record-mini-im-head"},[s("span",[s("i",{staticClass:"el-icon-time"}),s("span",{attrs:{slot:"title"},slot:"title"},[e._v("服务记录")])])]),s("el-divider"),s("div",{staticClass:"search"},[s("el-row",{attrs:{gutter:20}},[s("el-col",{staticStyle:{width:"120px"}},[s("el-form",{ref:"form",attrs:{"label-width":"120px"}},[s("el-form-item",{attrs:{label:1==e.adminInfo.root?"按客服:":"按日期:"}})],1)],1),1==e.adminInfo.root?s("el-col",{attrs:{span:3}},[s("el-select",{attrs:{placeholder:"请选择客服"},on:{change:e.refreshRecord},model:{value:e.selectCustomerId,callback:function(t){e.selectCustomerId=t},expression:"selectCustomerId"}},e._l(e.customerData,(function(e){return s("el-option",{key:e.id,attrs:{label:e.nickname,value:e.id}})})),1)],1):e._e(),s("el-col",{attrs:{span:5.5}},[s("el-date-picker",{attrs:{align:"right",type:"date",placeholder:"选择日期","picker-options":e.pickerOptions},on:{change:e.refreshRecord},model:{value:e.selectDate,callback:function(t){e.selectDate=t},expression:"selectDate"}})],1),s("el-col",{attrs:{span:5.5}},[s("el-checkbox",{attrs:{label:"去重目标客户",border:""},on:{change:e.refreshRecord},model:{value:e.isDeWeighting,callback:function(t){e.isDeWeighting=t},expression:"isDeWeighting"}})],1),s("el-col",{attrs:{span:5.5}},[s("el-checkbox",{attrs:{label:"只显示未接待客户",border:""},on:{change:e.refreshRecord},model:{value:e.isReception,callback:function(t){e.isReception=t},expression:"isReception"}})],1)],1)],1),s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[s("el-table-column",{attrs:{type:"index",index:e.indexMethod,label:"#序号",width:"60"}}),s("el-table-column",{attrs:{prop:"service_account",label:"接待客服"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("span",[e._v(e._s(e.serviceNickname(t.row.service_account)))])]}}])}),s("el-table-column",{attrs:{prop:"nickname",label:"目标客户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",{attrs:{type:"success"}},[e._v(e._s(t.row.nickname))])]}}])}),s("el-table-column",{attrs:{prop:"is_reception",label:"是否已接待"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",{directives:[{name:"show",rawName:"v-show",value:0==t.row.is_reception,expression:"scope.row.is_reception == 0"}],attrs:{type:"danger"}},[e._v("未接待")]),s("el-tag",{directives:[{name:"show",rawName:"v-show",value:1==t.row.is_reception,expression:"scope.row.is_reception == 1"}],attrs:{type:"success"}},[e._v("已接待")])]}}])}),s("el-table-column",{attrs:{prop:"transfer_account",label:"满意度"}},[[s("span",[e._v("-----")])]],2),s("el-table-column",{attrs:{prop:"platform",label:"客户端平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-tag",[e._v(e._s(e.$getPlatformItem(t.row.platform).title))])]}}])}),s("el-table-column",{attrs:{prop:"create_at",label:"服务时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD HH:mm:ss"))+"\n ")]}}])}),s("el-table-column",{attrs:{prop:"operating",align:"center",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return e.openModal(t)}}},[e._v("聊天记录")])]}}])})],1),s("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[s("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),s("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),s("el-dialog",{attrs:{visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[s("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[s("div",{staticStyle:{color:"#666"}},[s("span",{staticStyle:{color:"#e6a23c"}},[e._v(e._s(e.serviceNickname(e.selectUser.service_account)))]),e._v("\n 与\n "),s("span",{staticStyle:{color:"#67c23a"}},[e._v(e._s(e.selectUser.nickname))]),e._v("\n 的聊天记录\n ")])]),s("div",{ref:"chatBody",staticClass:"record-modal-chat-box",attrs:{id:"chatBody"}},[s("ChatsComponent",{attrs:{isMessageEnd:e.isMessageEnd,seviceId:e.selectCustomerId+"",seviceNickname:e.serviceNickname(e.selectUser.service_account),messages:e.messageRecord.list,userId:e.selectUser.user_account,userNickname:e.selectUser.nickname,onLoadMor:e.onLoadMor,loading:e.getMessageRecordLoading}})],1)])],1)},i=[],n=(s("78ce"),s("bc3a")),o=s.n(n),c=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"mini-im-chat-list"},[s("div",{staticClass:"mini-im-chat-message-box"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[e._v("消息加载中...")])]),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isMessageEnd,expression:"isMessageEnd"}],attrs:{type:"text",disabled:"",icon:"el-icon-refresh-right"}},[e._v("无更多聊天记录...")]),e.isMessageEnd||e.loading?e._e():s("el-button",{attrs:{type:"text",icon:"el-icon-refresh"},on:{click:e.onLoadMor}},[e._v("点击加载更多聊天记录")])],1),s("div",{staticClass:"mini-im-chat-message-box"},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.messages.length<=0&&!e.loading,expression:"messages.length <= 0 && !loading"}],staticClass:"loading"},[s("i",{staticClass:"el-icon-time"}),s("span",[e._v("暂无聊天记录...")])])]),e._l(e.messages,(function(t,a){return s("div",{key:a,staticClass:"mini-im-chat-message-box",class:{self:t.from_account!=e.userId}},["text"==t.biz_type||"photo"==t.biz_type||"knowledge"==t.biz_type||"knowledge_list"==t.biz_type?[s("div",{staticClass:"user-date"},[t.from_account==e.seviceId?s("span",[e._v("\n "+e._s(e.seviceNickname)+"\n ")]):t.from_account==e.userId?s("span",[e._v("\n "+e._s(e.userNickname)+"\n ")]):s("span",[s("span",{staticStyle:{"font-size":"12px",color:"#666"}},[e._v("(机器人)")]),e._v(e._s(e.$robotNickname(t.from_account))+"\n ")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"text"==t.biz_type?[s("div",{staticClass:"text"},[s("span",{domProps:{innerHTML:e._s(t.payload.replace(/\n/gi,"<br />"))}})])]:e._e(),"photo"==t.biz_type?[s("div",{staticClass:"photo"},[t.percent&&100!=t.percent?s("div",{staticClass:"loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[e._v(e._s(t.percent)+"%")])]):e._e(),s("div",{staticClass:"img-content"},[s("img",{attrs:{src:t.payload,preview:"1"}})])])]:e._e(),"transfer"==t.biz_type?[s("div",{staticClass:"system"},[s("span",[e._v(e._s(t.payload))]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"end"==t.biz_type?[s("div",{staticClass:"system"},[t.to_account!=e.adminInfo.id?s("span",[e._v("你结束了会话")]):s("span",[e._v("对方结束了会话")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"timeout"==t.biz_type?[s("div",{staticClass:"system"},[s("span",[e._v("用户长时间无应答,会话结束")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"cancel"==t.biz_type?[s("div",{staticClass:"system"},[t.from_account==e.adminInfo.id?s("span",[e._v("您撤回了一条消息")]):s("span",[e._v("对方撤回了一条消息")]),s("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"knowledge"==t.biz_type?[s("div",{staticClass:"knowledge"},[s("div",{staticClass:"content"},[s("div",{staticClass:"title"},[e._v("以下是否是您关心的相关问题呢?")]),e._l(JSON.parse(t.payload),(function(t,a){return s("div",{key:a,staticClass:"item"},[e._v("\n "+e._s(a+1)+"."+e._s(t.title)+"\n ")])}))],2)])]:e._e()],2)}))],2)},r=[],l={name:"mini-im-contact",data:function(){return{}},computed:{seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser||{}},adminInfo:function(){return this.$store.getters.adminInfo||{}}},props:{loading:Boolean,isMessageEnd:Boolean,messages:Array,userId:String,userNickname:String,seviceId:String,seviceNickname:String,onLoadMor:Function},watch:{messages:function(){var e=this;setTimeout((function(){e.$previewRefresh()}),1e3)}}},d=l,g=(s("e775"),s("2877")),m=Object(g["a"])(d,c,r,!1,null,"3d81ef40",null),u=m.exports,p=s("c1df"),h={name:"robot",components:{ChatsComponent:u},data:function(){return{loading:!0,isDeWeighting:!1,isReception:!1,selectDate:Date.now(),tableData:{list:[],page_on:1,page_size:10,cid:0,total:0,is_de_weighting:!1,date:""},customerData:[],selectCustomerId:null,selectUser:{},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()},shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},isMessageEnd:!1,getMessageRecordLoading:!1,getMessageRecordPageSize:20,dialogFormVisible:!1,messageRecord:{list:[]},isFirstRequestMessageEnd:!1}},computed:{platformConfig:function(){return this.$store.getters.platformConfig},adminInfo:function(){return this.$store.getters.adminInfo}},created:function(){this.getAdmins()},mounted:function(){var e=this;setTimeout((function(){e.selectCustomerId=e.adminInfo.id,e.getRecord(1)}),1e3)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},handleSizeChange:function(e){this.tableData.page_size=e,this.getRecord()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getRecord()},serviceNickname:function(e){for(var t="",s=0;s<this.customerData.length;s++)if(this.customerData[s].id==e){t=this.customerData[s].nickname;break}return t},getAdmins:function(){var e=this;o.a.post("/admin/list",{page_on:1,page_size:100,online:3}).then((function(t){e.customerData=t.data.data.list})).catch((function(t){e.$message.error(t.response.data.message)}))},getRecord:function(e){var t=this;this.loading=!0,e&&(this.tableData.page_on=e);var s=this.tableData,a=s.page_on,i=s.page_size;o.a.post("/services_statistical/list",{page_on:a,page_size:i,cid:this.selectCustomerId,date:p(this.selectDate).format("YYYY-MM-DD"),is_de_weighting:this.isDeWeighting,is_reception:this.isReception}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))},refreshRecord:function(){this.getRecord()},openModal:function(e){this.selectUser=e.row,this.isMessageEnd=!1,this.isFirstRequestMessageEnd=!1,this.dialogFormVisible=!0,this.messageRecord={list:[]},this.getMessageRecord()},getMessageRecord:function(e){var t=this;this.getMessageRecordLoading=!0,void 0==e&&(e=0),o.a.post("/message/list",{timestamp:e,page_size:this.getMessageRecordPageSize,service:parseInt(this.selectCustomerId),account:parseInt(this.selectUser.user_account)}).then((function(s){t.getMessageRecordLoading=!1;for(var a=s.data.data.list,i=0;i<a.length;i++)a[i].payload=window.Base64.decode(a[i].payload);a.length<t.getMessageRecordPageSize&&(t.isFirstRequestMessageEnd=!0),0==a.length||0==e?(t.messageRecord=s.data.data,t.scrollIntoBottom()):(s.data.data.list=a.concat(t.messageRecord.list),t.messageRecord=s.data.data),setTimeout((function(){return t.$previewRefresh()}),500)})).catch((function(e){console.log(e),t.getMessageRecordLoading=!1}))},getHistoryMessageRecord:function(e){var t=this;this.getMessageRecordLoading=!0,void 0!=e&&0!=e?o.a.post("/message/history",{timestamp:e,page_size:this.getMessageRecordPageSize,service:parseInt(this.selectCustomerId),account:parseInt(this.selectUser.user_account)}).then((function(e){for(var s=e.data.data.list,a=0;a<s.length;a++)s[a].payload=window.Base64.decode(s[a].payload);t.getMessageRecordLoading=!1,s.length<t.getMessageRecordPageSize&&(t.isMessageEnd=!0),e.data.data.list=s.concat(t.messageRecord.list),t.messageRecord=e.data.data,setTimeout((function(){return t.$previewRefresh()}),1e3)})).catch((function(){t.getMessageRecordLoading=!1})):this.isMessageEnd=!0},onLoadMor:function(){this.getMessageRecordLoading||(this.isFirstRequestMessageEnd?this.getHistoryMessageRecord(this.messageRecord.list[0].timestamp):this.getMessageRecord(this.messageRecord.list[0].timestamp),setTimeout((function(){var e=document.getElementById("chatBody");e.scrollTop=500}),50))},scrollIntoBottom:function(){try{setTimeout((function(){var e=document.getElementById("chatBody");if(e){var t=e.clientHeight,s=e.scrollHeight;e.scrollTop=s-t}}),50)}catch(e){console.log(e)}}}},f=h,_=(s("fc7d"),Object(g["a"])(f,a,i,!1,null,null,null));t["default"]=_.exports},e6a4:function(e,t,s){},e775:function(e,t,s){"use strict";var a=s("c2a3"),i=s.n(a);i.a},fc7d:function(e,t,s){"use strict";var a=s("e6a4"),i=s.n(a);i.a}}]);
//# sourceMappingURL=chunk-08473d3a.cbd364ac.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-08473d3a.57550f5a.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.date.now.js","webpack:///./src/views/record/index.vue?3860","webpack:///./src/views/record/chats.vue?d273","webpack:///src/views/record/chats.vue","webpack:///./src/views/record/chats.vue?b9d8","webpack:///./src/views/record/chats.vue","webpack:///src/views/record/index.vue","webpack:///./src/views/record/index.vue?622e","webpack:///./src/views/record/index.vue?6f57","webpack:///./src/views/record/chats.vue?52e1","webpack:///./src/views/record/index.vue?6aa3"],"names":["$export","S","now","Date","getTime","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","adminInfo","root","on","refreshRecord","model","value","callback","$$v","selectCustomerId","expression","_l","item","key","id","nickname","_e","pickerOptions","selectDate","isDeWeighting","isReception","directives","name","rawName","tableData","list","indexMethod","scopedSlots","_u","fn","scope","_s","serviceNickname","row","service_account","is_reception","$getPlatformItem","platform","title","$formatUnixDate","create_at","$event","openModal","total","page_on","handleSizeChange","handleCurrentChange","dialogFormVisible","selectUser","isMessageEnd","messageRecord","user_account","onLoadMor","getMessageRecordLoading","staticRenderFns","loading","messages","length","index","class","from_account","userId","biz_type","seviceId","seviceNickname","userNickname","$robotNickname","$formatFromNowDate","timestamp","domProps","payload","replace","percent","to_account","JSON","parse","data","computed","seviceCurrentUser","$store","getters","props","Boolean","Array","String","Function","watch","component","moment","components","ChatsComponent","page_size","cid","is_de_weighting","date","customerData","disabledDate","time","shortcuts","text","onClick","picker","$emit","setTime","getMessageRecordPageSize","platformConfig","created","getAdmins","mounted","setTimeout","methods","val","getRecord","i","format","isFirstRequestMessageEnd","getMessageRecord","parseInt","window","Base64","decode","response","concat","console","log","error","getHistoryMessageRecord","chatBody","document","getElementById","scrollTop","scrollIntoBottom","height","clientHeight","scrollHeight","e"],"mappings":"qGACA,IAAIA,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAG,OAAQ,CAAEC,IAAK,WAAc,OAAO,IAAIC,MAAOC,c,gECHlE,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,iBAAiBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,cAAcL,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,SAAS,CAACG,MAAM,CAAC,OAAS,KAAK,CAACH,EAAG,SAAS,CAACM,YAAY,CAAC,MAAQ,UAAU,CAACN,EAAG,UAAU,CAACO,IAAI,OAAOJ,MAAM,CAAC,cAA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AAW,WACT,IAAIkB,EAAWC,SAASC,eAAe,YACvC,GAAV,EAAU,CACA,IAAIG,EAASL,EAASM,aAClBC,EAAeP,EAASO,aAC5BP,EAASG,UAAYI,EAA/B,KACA,IACA,SACQX,QAAQC,IAAIW,OCvX6W,ICQ7X,G,UAAY,eACd,EACAnJ,EACAkE,GACA,EACA,KACA,KACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,kCCA5jB,yBAAiiB,EAAG","file":"js/chunk-08473d3a.57550f5a.js","sourcesContent":["// 20.3.3.1 / 15.9.4.4 Date.now()\nvar $export = require('./_export');\n\n$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"record-page\"},[_c('div',{staticClass:\"record-mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.adminInfo.root == 1 ? '按客服:' : '按日期:'}})],1)],1),(_vm.adminInfo.root == 1)?_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择客服\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectCustomerId),callback:function ($$v) {_vm.selectCustomerId=$$v},expression:\"selectCustomerId\"}},_vm._l((_vm.customerData),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.nickname,\"value\":item.id}})}),1)],1):_vm._e(),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-date-picker',{attrs:{\"align\":\"right\",\"type\":\"date\",\"placeholder\":\"选择日期\",\"picker-options\":_vm.pickerOptions},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"去重目标客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isDeWeighting),callback:function ($$v) {_vm.isDeWeighting=$$v},expression:\"isDeWeighting\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"只显示未接待客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isReception),callback:function ($$v) {_vm.isReception=$$v},expression:\"isReception\"}})],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"service_account\",\"label\":\"接待客服\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm.serviceNickname(scope.row.service_account)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"目标客户\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(_vm._s(scope.row.nickname))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"is_reception\",\"label\":\"是否已接待\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 0),expression:\"scope.row.is_reception == 0\"}],attrs:{\"type\":\"danger\"}},[_vm._v(\"未接待\")]),_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 1),expression:\"scope.row.is_reception == 1\"}],attrs:{\"type\":\"success\"}},[_vm._v(\"已接待\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"transfer_account\",\"label\":\"满意度\"}},[[_c('span',[_vm._v(\"-----\")])]],2),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"label\":\"客户端平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"服务时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.openModal(scope)}}},[_vm._v(\"聊天记录\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-dialog',{attrs:{\"visible\":_vm.dialogFormVisible},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('div',{staticClass:\"dialog-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('div',{staticStyle:{\"color\":\"#666\"}},[_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(_vm._s(_vm.serviceNickname(_vm.selectUser.service_account)))]),_vm._v(\"\\n 与\\n \"),_c('span',{staticStyle:{\"color\":\"#67c23a\"}},[_vm._v(_vm._s(_vm.selectUser.nickname))]),_vm._v(\"\\n 的聊天记录\\n \")])]),_c('div',{ref:\"chatBody\",staticClass:\"record-modal-chat-box\",attrs:{\"id\":\"chatBody\"}},[_c('ChatsComponent',{attrs:{\"isMessageEnd\":_vm.isMessageEnd,\"seviceId\":_vm.selectCustomerId+'',\"seviceNickname\":_vm.serviceNickname(_vm.selectUser.service_account),\"messages\":_vm.messageRecord.list,\"userId\":_vm.selectUser.user_account,\"userNickname\":_vm.selectUser.nickname,\"onLoadMor\":_vm.onLoadMor,\"loading\":_vm.getMessageRecordLoading}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mini-im-chat-list\"},[_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(\"消息加载中...\")])]),_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isMessageEnd),expression:\"isMessageEnd\"}],attrs:{\"type\":\"text\",\"disabled\":\"\",\"icon\":\"el-icon-refresh-right\"}},[_vm._v(\"无更多聊天记录...\")]),(!_vm.isMessageEnd && !_vm.loading)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.onLoadMor}},[_vm._v(\"点击加载更多聊天记录\")]):_vm._e()],1),_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.messages.length <= 0 && !_vm.loading),expression:\"messages.length <= 0 && !loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',[_vm._v(\"暂无聊天记录...\")])])]),_vm._l((_vm.messages),function(item,index){return _c('div',{key:index,staticClass:\"mini-im-chat-message-box\",class:{'self': item.from_account != _vm.userId}},[(item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list')?[_c('div',{staticClass:\"user-date\"},[(item.from_account == _vm.seviceId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.seviceNickname)+\"\\n \")]):(item.from_account == _vm.userId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.userNickname)+\"\\n \")]):_c('span',[_c('span',{staticStyle:{\"font-size\":\"12px\",\"color\":\"#666\"}},[_vm._v(\"(机器人)\")]),_vm._v(_vm._s(_vm.$robotNickname(item.from_account))+\"\\n \")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'text')?[_c('div',{staticClass:\"text\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(item.payload.replace(/\\n/ig, '<br />'))}})])]:_vm._e(),(item.biz_type == 'photo')?[_c('div',{staticClass:\"photo\"},[(item.percent && item.percent != 100)?_c('div',{staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(_vm._s(item.percent)+\"%\")])]):_vm._e(),_c('div',{staticClass:\"img-content\"},[_c('img',{attrs:{\"src\":item.payload,\"preview\":\"1\"}})])])]:_vm._e(),(item.biz_type == 'transfer')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(_vm._s(item.payload))]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'end')?[_c('div',{staticClass:\"system\"},[(item.to_account != _vm.adminInfo.id)?_c('span',[_vm._v(\"你结束了会话\")]):_c('span',[_vm._v(\"对方结束了会话\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'timeout')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(\"用户长时间无应答,会话结束\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'cancel')?[_c('div',{staticClass:\"system\"},[(item.from_account == _vm.adminInfo.id)?_c('span',[_vm._v(\"您撤回了一条消息\")]):_c('span',[_vm._v(\"对方撤回了一条消息\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'knowledge')?[_c('div',{staticClass:\"knowledge\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"以下是否是您关心的相关问题呢?\")]),_vm._l((JSON.parse(item.payload)),function(item,index){return _c('div',{key:index,staticClass:\"item\"},[_vm._v(\"\\n \"+_vm._s(index+1)+\".\"+_vm._s(item.title)+\"\\n \")])})],2)])]:_vm._e()],2)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"mini-im-chat-list\">\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"loading\">\n <i class=\"el-icon-loading\"></i><span>消息加载中...</span>\n </div>\n <el-button v-show=\"isMessageEnd\" type=\"text\" disabled icon=\"el-icon-refresh-right\">无更多聊天记录...</el-button>\n <el-button v-if=\"!isMessageEnd && !loading\" type=\"text\" @click=\"onLoadMor\" icon=\"el-icon-refresh\">点击加载更多聊天记录</el-button>\n </div>\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"messages.length <= 0 && !loading\">\n <i class=\"el-icon-time\"></i><span>暂无聊天记录...</span>\n </div>\n </div>\n\n <div class=\"mini-im-chat-message-box\" :class=\"{'self': item.from_account != userId}\" v-for=\"(item, index) in messages\" :key=\"index\">\n\n <!-- 用户信息 -->\n <template v-if=\"item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list'\">\n <div class=\"user-date\">\n <span v-if=\"item.from_account == seviceId\">\n {{seviceNickname}}\n </span>\n <span v-else-if=\"item.from_account == userId\">\n {{userNickname}}\n </span>\n <span v-else>\n <span style=\"font-size:12px;color: #666;\">(机器人)</span>{{$robotNickname(item.from_account)}}\n </span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 文本消息 -->\n <template v-if=\"item.biz_type == 'text'\">\n <div class=\"text\">\n <span v-html=\"item.payload.replace(/\\n/ig, '<br />')\"></span>\n </div>\n </template>\n\n <!-- 图片 -->\n <template v-if=\"item.biz_type == 'photo'\">\n <div class=\"photo\">\n <div class=\"loading\" v-if=\"item.percent && item.percent != 100\">\n <i class=\"el-icon-loading\"></i>\n <span>{{item.percent}}%</span>\n </div>\n <div class=\"img-content\">\n <img :src=\"item.payload\" preview=\"1\" />\n </div>\n </div>\n </template>\n\n <!-- 转接 -->\n <template v-if=\"item.biz_type == 'transfer'\">\n <div class=\"system\">\n <span>{{item.payload}}</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 结束聊天 -->\n <template v-if=\"item.biz_type == 'end'\">\n <div class=\"system\">\n <span v-if=\"item.to_account != adminInfo.id\">你结束了会话</span>\n <span v-else>对方结束了会话</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 聊天超时 -->\n <template v-if=\"item.biz_type == 'timeout'\">\n <div class=\"system\">\n <span>用户长时间无应答,会话结束</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 撤回消息 -->\n <template v-if=\"item.biz_type == 'cancel'\">\n <div class=\"system\">\n <span v-if=\"item.from_account == adminInfo.id\">您撤回了一条消息</span>\n <span v-else>对方撤回了一条消息</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 知识库列表 -->\n <template v-if=\"item.biz_type == 'knowledge'\">\n <div class=\"knowledge\">\n <div class=\"content\">\n <div class=\"title\">以下是否是您关心的相关问题呢?</div>\n <div class=\"item\" :key=\"index\" v-for=\"(item, index) in JSON.parse(item.payload)\">\n {{index+1}}.{{item.title}}\n </div>\n </div>\n </div>\n </template>\n\n </div>\n\n </div>\n</template>\n<script>\nexport default {\n name: \"mini-im-contact\",\n data() {\n return {};\n },\n computed: {\n seviceCurrentUser(){\n return this.$store.getters.seviceCurrentUser || {}\n },\n adminInfo(){\n return this.$store.getters.adminInfo || {}\n }\n },\n props: {\n loading: Boolean,\n isMessageEnd: Boolean,\n messages: Array,\n userId: String,\n userNickname: String,\n seviceId: String,\n seviceNickname: String,\n onLoadMor: Function\n },\n watch:{\n messages(){\n setTimeout(()=>{\n this.$previewRefresh()\n }, 1000)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-chat-list {\n display: flex;\n flex-direction: column;\n\n .mini-im-chat-message-box {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-bottom: 15px;\n\n .user-date {\n display: flex;\n align-items: center;\n color: #999;\n font-size: 14px;\n\n span {\n color: #666;\n font-weight: 500;\n font-size: 14px;\n padding: 0 5px;\n }\n\n em {\n font-style: normal;\n font-size 12px\n }\n }\n\n .loading{\n color #666\n display: flex;\n margin-top: 5px;\n align-items center\n align-content center\n justify-content center\n span{\n margin-left 5px\n font-size 13px\n }\n }\n\n .text {\n display: flex;\n margin-top: 5px;\n\n span {\n max-width: 40%;\n display: inline;\n padding: 5px 10px;\n border-radius: 5px;\n background-color: #eef4f9;\n font-size: 14px;\n color: #666;\n }\n }\n\n .photo {\n display: flex;\n margin-top: 5px;\n\n .loading{\n align-self flex-end\n padding 0 5px\n span{\n background none !important\n color: #999 !important\n }\n }\n\n .img-content{\n border-radius: 5px;\n width: 200px;\n overflow hidden\n }\n\n img {\n cursor: pointer;\n width: 100%;\n height 100%\n display: inline;\n }\n }\n\n .knowledge {\n display: flex;\n margin-top: 5px;\n justify-content: flex-end;\n\n .content {\n display: flex;\n flex-direction: column;\n padding: 5px;\n border-radius: 5px;\n color: #666;\n text-align: left;\n background-color: #eef4f9;\n\n .title {\n font-size: 13px;\n font-weight: 500;\n }\n\n .item {\n font-size: 13px;\n line-height: 22px;\n }\n }\n }\n\n .system {\n display: flex;\n margin-top: 5px;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n em{\n margin-top: 5px;\n font-size: 12px;\n color: #999;\n }\n span {\n font-size: 12px;\n max-width: 50%;\n min-width: 100px;\n display: inline;\n padding: 3px 20px;\n border-radius: 5px;\n text-align: center;\n background-color: #f2f2f2;\n color: #999;\n }\n }\n\n &.self {\n text-align: right;\n\n .user-date {\n display: flex;\n justify-content: flex-end;\n\n span {\n order: -2;\n }\n\n em {\n order: -3;\n }\n }\n\n .text, .photo {\n justify-content: flex-end;\n align-items flex-end\n .cancel-btn{\n color #26a2ff\n font-size 12px\n margin-right 5px\n cursor pointer\n }\n span {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n text-align left\n }\n }\n\n .knowledge>.content {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n }\n }\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./chats.vue?vue&type=template&id=3d81ef40&scoped=true&\"\nimport script from \"./chats.vue?vue&type=script&lang=js&\"\nexport * from \"./chats.vue?vue&type=script&lang=js&\"\nimport style0 from \"./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d81ef40\",\n null\n \n)\n\nexport default component.exports","<template>\n <div class=\"record-page\">\n <div class=\"record-mini-im-head\">\n <span>\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item :label=\"adminInfo.root == 1 ? '按客服:' : '按日期:'\"></el-form-item>\n </el-form>\n </el-col>\n <el-col v-if=\"adminInfo.root == 1\" :span=\"3\">\n <el-select v-model=\"selectCustomerId\" @change=\"refreshRecord\" placeholder=\"请选择客服\">\n <el-option\n v-for=\"item in customerData\"\n :key=\"item.id\"\n :label=\"item.nickname\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"5.5\">\n <el-date-picker\n v-model=\"selectDate\"\n align=\"right\"\n type=\"date\"\n @change=\"refreshRecord\"\n placeholder=\"选择日期\"\n :picker-options=\"pickerOptions\">\n </el-date-picker>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isDeWeighting\" label=\"去重目标客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isReception\" label=\"只显示未接待客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"service_account\" label=\"接待客服\">\n <template slot-scope=\"scope\">\n <span>{{serviceNickname(scope.row.service_account)}}</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"目标客户\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\">{{scope.row.nickname}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"is_reception\" label=\"是否已接待\">\n <template slot-scope=\"scope\">\n <el-tag v-show=\"scope.row.is_reception == 0\" type=\"danger\">未接待</el-tag>\n <el-tag v-show=\"scope.row.is_reception == 1\" type=\"success\">已接待</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"transfer_account\" label=\"满意度\">\n <template>\n <span>-----</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" label=\"客户端平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"服务时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"openModal(scope)\">聊天记录</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n\n\n <!-- 聊天数据模态框 -->\n <el-dialog :visible.sync=\"dialogFormVisible\">\n <div slot=\"title\" class=\"dialog-title\">\n <div style=\"color: #666\">\n <span style=\"color: #e6a23c\">{{serviceNickname(selectUser.service_account)}}</span>\n 与\n <span style=\"color: #67c23a\">{{selectUser.nickname}}</span>\n 的聊天记录\n </div>\n </div>\n <div class=\"record-modal-chat-box\" ref=\"chatBody\" id=\"chatBody\">\n <ChatsComponent\n :isMessageEnd=\"isMessageEnd\"\n :seviceId=\"selectCustomerId+''\"\n :seviceNickname=\"serviceNickname(selectUser.service_account)\"\n :messages=\"messageRecord.list\"\n :userId=\"selectUser.user_account\"\n :userNickname=\"selectUser.nickname\"\n :onLoadMor=\"onLoadMor\"\n :loading=\"getMessageRecordLoading\"/>\n </div>\n </el-dialog>\n\n\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nvar moment = require('moment');\nimport ChatsComponent from \"./chats\"\nexport default {\n name: \"robot\",\n components:{\n ChatsComponent\n },\n data() {\n return {\n loading: true,\n isDeWeighting: false,\n isReception: false,\n selectDate: Date.now(),\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n cid: 0,\n total: 0,\n is_de_weighting: false,\n date: \"\",\n },\n customerData: [],\n selectCustomerId: null,\n selectUser: {},\n pickerOptions: {\n disabledDate(time) {\n return time.getTime() > Date.now();\n },\n shortcuts: [{\n text: '今天',\n onClick(picker) {\n picker.$emit('pick', new Date());\n }\n }, {\n text: '昨天',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24);\n picker.$emit('pick', date);\n }\n }, {\n text: '一周前',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);\n picker.$emit('pick', date);\n }\n }]\n },\n isMessageEnd: false,\n\n // 模态框数据\n getMessageRecordLoading: false,\n getMessageRecordPageSize: 20,\n dialogFormVisible: false,\n messageRecord: {\n list: []\n },\n isFirstRequestMessageEnd: false,\n\n\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n },\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created() {\n this.getAdmins()\n },\n mounted(){\n setTimeout(() =>{\n this.selectCustomerId = this.adminInfo.id\n this.getRecord(1)\n }, 1000)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getRecord()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getRecord()\n },\n // 获取客服昵称\n serviceNickname(id){\n let nickname = \"\"\n for(let i =0; i< this.customerData.length; i++){\n if(this.customerData[i].id == id){\n nickname = this.customerData[i].nickname\n break\n }\n }\n return nickname\n },\n // 获取数据\n getAdmins(){\n axios.post('/admin/list', {page_on: 1, page_size: 100, \"online\": 3})\n .then(response => {\n this.customerData = response.data.data.list\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 获取数据\n getRecord(index){\n this.loading = true\n if(index) this.tableData.page_on = index\n const {page_on, page_size} = this.tableData\n axios.post('/services_statistical/list', {\n page_on,\n page_size,\n cid: this.selectCustomerId,\n date: moment(this.selectDate).format(\"YYYY-MM-DD\"),\n is_de_weighting: this.isDeWeighting,\n is_reception: this.isReception\n })\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n // 刷新记录\n refreshRecord(){\n this.getRecord()\n },\n // 打开模态框\n openModal(scope){\n this.selectUser = scope.row\n this.isMessageEnd = false\n this.isFirstRequestMessageEnd = false\n this.dialogFormVisible = true\n this.messageRecord = {\n list: []\n }\n this.getMessageRecord()\n },\n // 获取聊天记录\n getMessageRecord(timestamp){\n this.getMessageRecordLoading = true\n if(timestamp == undefined){\n timestamp = 0\n }\n axios.post('/message/list', {\n \"timestamp\": timestamp,\n \"page_size\": this.getMessageRecordPageSize,\n \"service\": parseInt(this.selectCustomerId),\n \"account\": parseInt(this.selectUser.user_account)\n })\n .then(response => {\n this.getMessageRecordLoading = false\n let messages = response.data.data.list\n for(var i=0; i<messages.length; i++){\n messages[i].payload = window.Base64.decode(messages[i].payload)\n }\n if(messages.length < this.getMessageRecordPageSize){\n this.isFirstRequestMessageEnd = true\n }\n if(messages.length == 0 || timestamp == 0){\n this.messageRecord = response.data.data\n this.scrollIntoBottom()\n }else{\n response.data.data.list = messages.concat(this.messageRecord.list)\n this.messageRecord = response.data.data\n }\n setTimeout(()=>this.$previewRefresh(), 500)\n })\n .catch(error => {\n console.log(error)\n this.getMessageRecordLoading = false\n });\n },\n // 获取聊天记录\n getHistoryMessageRecord(timestamp){\n this.getMessageRecordLoading = true\n if(timestamp == undefined || timestamp == 0){\n this.isMessageEnd = true\n return\n }\n axios.post('/message/history', {\n \"timestamp\": timestamp,\n \"page_size\": this.getMessageRecordPageSize,\n \"service\": parseInt(this.selectCustomerId),\n \"account\": parseInt(this.selectUser.user_account)\n })\n .then(response => {\n let messages = response.data.data.list\n for(var i=0; i<messages.length; i++){\n messages[i].payload = window.Base64.decode(messages[i].payload)\n }\n this.getMessageRecordLoading = false\n if(messages.length < this.getMessageRecordPageSize){\n this.isMessageEnd = true\n }\n\nresponse.data.data.list = messages.concat(this.messageRecord.list)\n this.messageRecord = response.data.data\n setTimeout(()=>this.$previewRefresh(), 1000)\n })\n .catch(() => {\n this.getMessageRecordLoading = false\n });\n },\n // 加载更多数据\n onLoadMor(){\n if(this.getMessageRecordLoading) return\n if(this.isFirstRequestMessageEnd){\n this.getHistoryMessageRecord(this.messageRecord.list[0].timestamp)\n }else{\n this.getMessageRecord(this.messageRecord.list[0].timestamp)\n }\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n chatBody.scrollTop = 500\n }, 50)\n },\n // 滚动条置底\n scrollIntoBottom(){\n try{\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n if(!chatBody) return\n var height = chatBody.clientHeight\n var scrollHeight = chatBody.scrollHeight\n chatBody.scrollTop = scrollHeight-height\n }, 50)\n }catch(e){\n console.log(e)\n }\n },\n }\n};\n</script>\n<style lang=\"stylus\">\n .record-page .record-mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n }\n .record-page .record-modal-chat-box{\n height 600px;\n padding 0 20px\n overflow hidden\n overflow-y auto\n }\n .record-page .el-dialog__body{\n padding: 0px;\n border-top: 1px solid #f7f7f7\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=74dabf7c&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.date.now.js","webpack:///./src/views/record/index.vue?1725","webpack:///./src/views/record/chats.vue?64ce","webpack:///src/views/record/chats.vue","webpack:///./src/views/record/chats.vue?b9d8","webpack:///./src/views/record/chats.vue?5cc0","webpack:///src/views/record/index.vue","webpack:///./src/views/record/index.vue?622e","webpack:///./src/views/record/index.vue?6f57","webpack:///./src/views/record/chats.vue?52e1","webpack:///./src/views/record/index.vue?6aa3"],"names":["$export","S","now","Date","getTime","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","adminInfo","root","on","refreshRecord","model","value","callback","$$v","selectCustomerId","expression","_l","item","key","id","nickname","_e","pickerOptions","selectDate","isDeWeighting","isReception","directives","name","rawName","tableData","list","indexMethod","scopedSlots","_u","fn","scope","_s","serviceNickname","row","service_account","is_reception","$getPlatformItem","platform","title","$formatUnixDate","create_at","$event","openModal","total","page_on","handleSizeChange","handleCurrentChange","dialogFormVisible","selectUser","isMessageEnd","messageRecord","user_account","onLoadMor","getMessageRecordLoading","staticRenderFns","loading","messages","length","index","class","from_account","userId","biz_type","seviceId","seviceNickname","userNickname","$robotNickname","$formatFromNowDate","timestamp","domProps","payload","replace","percent","to_account","JSON","parse","data","computed","seviceCurrentUser","$store","getters","props","Boolean","Array","String","Function","watch","component","moment","components","ChatsComponent","page_size","cid","is_de_weighting","date","customerData","disabledDate","time","shortcuts","text","onClick","picker","$emit","setTime","getMessageRecordPageSize","platformConfig","created","getAdmins","mounted","setTimeout","methods","val","getRecord","i","format","isFirstRequestMessageEnd","getMessageRecord","parseInt","window","Base64","decode","response","concat","console","log","error","getHistoryMessageRecord","chatBody","document","getElementById","scrollTop","scrollIntoBottom","height","clientHeight","scrollHeight","e"],"mappings":"qGACA,IAAIA,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAG,OAAQ,CAAEC,IAAK,WAAc,OAAO,IAAIC,MAAOC,c,gECHlE,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,iBAAiBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KA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,+BACA,8BACQ9D,KAAKwI,wBAAwBxI,KAAK4D,cAAczB,KAAK,GAAG2C,WAExD9E,KAAK8H,iBAAiB9H,KAAK4D,cAAczB,KAAK,GAAG2C,WAEnDyC,YAAW,WACT,IAAIkB,EAAWC,SAASC,eAAe,YACvCF,EAASG,UAAY,MAC7B,MAGIC,iBAzJJ,WA0JM,IACEtB,YAAW,WACT,IAAIkB,EAAWC,SAASC,eAAe,YACvC,GAAV,EAAU,CACA,IAAIG,EAASL,EAASM,aAClBC,EAAeP,EAASO,aAC5BP,EAASG,UAAYI,EAA/B,KACA,IACA,SACQX,QAAQC,IAAIW,OCvX6W,ICQ7X,G,UAAY,eACd,EACAnJ,EACAkE,GACA,EACA,KACA,KACA,OAIa,e,kECnBf,yBAAyjB,EAAG,G,kCCA5jB,yBAAiiB,EAAG","file":"js/chunk-08473d3a.cbd364ac.js","sourcesContent":["// 20.3.3.1 / 15.9.4.4 Date.now()\nvar $export = require('./_export');\n\n$export($export.S, 'Date', { now: function () { return new Date().getTime(); } });\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"record-page\"},[_c('div',{staticClass:\"record-mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.adminInfo.root == 1 ? '按客服:' : '按日期:'}})],1)],1),(_vm.adminInfo.root == 1)?_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择客服\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectCustomerId),callback:function ($$v) {_vm.selectCustomerId=$$v},expression:\"selectCustomerId\"}},_vm._l((_vm.customerData),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.nickname,\"value\":item.id}})}),1)],1):_vm._e(),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-date-picker',{attrs:{\"align\":\"right\",\"type\":\"date\",\"placeholder\":\"选择日期\",\"picker-options\":_vm.pickerOptions},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"去重目标客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isDeWeighting),callback:function ($$v) {_vm.isDeWeighting=$$v},expression:\"isDeWeighting\"}})],1),_c('el-col',{attrs:{\"span\":5.5}},[_c('el-checkbox',{attrs:{\"label\":\"只显示未接待客户\",\"border\":\"\"},on:{\"change\":_vm.refreshRecord},model:{value:(_vm.isReception),callback:function ($$v) {_vm.isReception=$$v},expression:\"isReception\"}})],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"service_account\",\"label\":\"接待客服\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm.serviceNickname(scope.row.service_account)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"目标客户\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(_vm._s(scope.row.nickname))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"is_reception\",\"label\":\"是否已接待\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 0),expression:\"scope.row.is_reception == 0\"}],attrs:{\"type\":\"danger\"}},[_vm._v(\"未接待\")]),_c('el-tag',{directives:[{name:\"show\",rawName:\"v-show\",value:(scope.row.is_reception == 1),expression:\"scope.row.is_reception == 1\"}],attrs:{\"type\":\"success\"}},[_vm._v(\"已接待\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"transfer_account\",\"label\":\"满意度\"}},[[_c('span',[_vm._v(\"-----\")])]],2),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"label\":\"客户端平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"服务时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.openModal(scope)}}},[_vm._v(\"聊天记录\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('el-dialog',{attrs:{\"visible\":_vm.dialogFormVisible},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('div',{staticClass:\"dialog-title\",attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('div',{staticStyle:{\"color\":\"#666\"}},[_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(_vm._s(_vm.serviceNickname(_vm.selectUser.service_account)))]),_vm._v(\"\\n 与\\n \"),_c('span',{staticStyle:{\"color\":\"#67c23a\"}},[_vm._v(_vm._s(_vm.selectUser.nickname))]),_vm._v(\"\\n 的聊天记录\\n \")])]),_c('div',{ref:\"chatBody\",staticClass:\"record-modal-chat-box\",attrs:{\"id\":\"chatBody\"}},[_c('ChatsComponent',{attrs:{\"isMessageEnd\":_vm.isMessageEnd,\"seviceId\":_vm.selectCustomerId+'',\"seviceNickname\":_vm.serviceNickname(_vm.selectUser.service_account),\"messages\":_vm.messageRecord.list,\"userId\":_vm.selectUser.user_account,\"userNickname\":_vm.selectUser.nickname,\"onLoadMor\":_vm.onLoadMor,\"loading\":_vm.getMessageRecordLoading}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mini-im-chat-list\"},[_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.loading),expression:\"loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(\"消息加载中...\")])]),_c('el-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isMessageEnd),expression:\"isMessageEnd\"}],attrs:{\"type\":\"text\",\"disabled\":\"\",\"icon\":\"el-icon-refresh-right\"}},[_vm._v(\"无更多聊天记录...\")]),(!_vm.isMessageEnd && !_vm.loading)?_c('el-button',{attrs:{\"type\":\"text\",\"icon\":\"el-icon-refresh\"},on:{\"click\":_vm.onLoadMor}},[_vm._v(\"点击加载更多聊天记录\")]):_vm._e()],1),_c('div',{staticClass:\"mini-im-chat-message-box\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.messages.length <= 0 && !_vm.loading),expression:\"messages.length <= 0 && !loading\"}],staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',[_vm._v(\"暂无聊天记录...\")])])]),_vm._l((_vm.messages),function(item,index){return _c('div',{key:index,staticClass:\"mini-im-chat-message-box\",class:{'self': item.from_account != _vm.userId}},[(item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list')?[_c('div',{staticClass:\"user-date\"},[(item.from_account == _vm.seviceId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.seviceNickname)+\"\\n \")]):(item.from_account == _vm.userId)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.userNickname)+\"\\n \")]):_c('span',[_c('span',{staticStyle:{\"font-size\":\"12px\",\"color\":\"#666\"}},[_vm._v(\"(机器人)\")]),_vm._v(_vm._s(_vm.$robotNickname(item.from_account))+\"\\n \")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'text')?[_c('div',{staticClass:\"text\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(item.payload.replace(/\\n/ig, '<br />'))}})])]:_vm._e(),(item.biz_type == 'photo')?[_c('div',{staticClass:\"photo\"},[(item.percent && item.percent != 100)?_c('div',{staticClass:\"loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(_vm._s(item.percent)+\"%\")])]):_vm._e(),_c('div',{staticClass:\"img-content\"},[_c('img',{attrs:{\"src\":item.payload,\"preview\":\"1\"}})])])]:_vm._e(),(item.biz_type == 'transfer')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(_vm._s(item.payload))]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'end')?[_c('div',{staticClass:\"system\"},[(item.to_account != _vm.adminInfo.id)?_c('span',[_vm._v(\"你结束了会话\")]):_c('span',[_vm._v(\"对方结束了会话\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'timeout')?[_c('div',{staticClass:\"system\"},[_c('span',[_vm._v(\"用户长时间无应答,会话结束\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'cancel')?[_c('div',{staticClass:\"system\"},[(item.from_account == _vm.adminInfo.id)?_c('span',[_vm._v(\"您撤回了一条消息\")]):_c('span',[_vm._v(\"对方撤回了一条消息\")]),_c('em',[_vm._v(_vm._s(_vm.$formatFromNowDate(item.timestamp)))])])]:_vm._e(),(item.biz_type == 'knowledge')?[_c('div',{staticClass:\"knowledge\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"以下是否是您关心的相关问题呢?\")]),_vm._l((JSON.parse(item.payload)),function(item,index){return _c('div',{key:index,staticClass:\"item\"},[_vm._v(\"\\n \"+_vm._s(index+1)+\".\"+_vm._s(item.title)+\"\\n \")])})],2)])]:_vm._e()],2)})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"mini-im-chat-list\">\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"loading\">\n <i class=\"el-icon-loading\"></i><span>消息加载中...</span>\n </div>\n <el-button v-show=\"isMessageEnd\" type=\"text\" disabled icon=\"el-icon-refresh-right\">无更多聊天记录...</el-button>\n <el-button v-if=\"!isMessageEnd && !loading\" type=\"text\" @click=\"onLoadMor\" icon=\"el-icon-refresh\">点击加载更多聊天记录</el-button>\n </div>\n\n <div class=\"mini-im-chat-message-box\">\n <div class=\"loading\" v-show=\"messages.length <= 0 && !loading\">\n <i class=\"el-icon-time\"></i><span>暂无聊天记录...</span>\n </div>\n </div>\n\n <div class=\"mini-im-chat-message-box\" :class=\"{'self': item.from_account != userId}\" v-for=\"(item, index) in messages\" :key=\"index\">\n\n <!-- 用户信息 -->\n <template v-if=\"item.biz_type == 'text' || item.biz_type == 'photo' || item.biz_type == 'knowledge' || item.biz_type == 'knowledge_list'\">\n <div class=\"user-date\">\n <span v-if=\"item.from_account == seviceId\">\n {{seviceNickname}}\n </span>\n <span v-else-if=\"item.from_account == userId\">\n {{userNickname}}\n </span>\n <span v-else>\n <span style=\"font-size:12px;color: #666;\">(机器人)</span>{{$robotNickname(item.from_account)}}\n </span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 文本消息 -->\n <template v-if=\"item.biz_type == 'text'\">\n <div class=\"text\">\n <span v-html=\"item.payload.replace(/\\n/ig, '<br />')\"></span>\n </div>\n </template>\n\n <!-- 图片 -->\n <template v-if=\"item.biz_type == 'photo'\">\n <div class=\"photo\">\n <div class=\"loading\" v-if=\"item.percent && item.percent != 100\">\n <i class=\"el-icon-loading\"></i>\n <span>{{item.percent}}%</span>\n </div>\n <div class=\"img-content\">\n <img :src=\"item.payload\" preview=\"1\" />\n </div>\n </div>\n </template>\n\n <!-- 转接 -->\n <template v-if=\"item.biz_type == 'transfer'\">\n <div class=\"system\">\n <span>{{item.payload}}</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 结束聊天 -->\n <template v-if=\"item.biz_type == 'end'\">\n <div class=\"system\">\n <span v-if=\"item.to_account != adminInfo.id\">你结束了会话</span>\n <span v-else>对方结束了会话</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 聊天超时 -->\n <template v-if=\"item.biz_type == 'timeout'\">\n <div class=\"system\">\n <span>用户长时间无应答,会话结束</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 撤回消息 -->\n <template v-if=\"item.biz_type == 'cancel'\">\n <div class=\"system\">\n <span v-if=\"item.from_account == adminInfo.id\">您撤回了一条消息</span>\n <span v-else>对方撤回了一条消息</span>\n <em>{{$formatFromNowDate(item.timestamp)}}</em>\n </div>\n </template>\n\n <!-- 知识库列表 -->\n <template v-if=\"item.biz_type == 'knowledge'\">\n <div class=\"knowledge\">\n <div class=\"content\">\n <div class=\"title\">以下是否是您关心的相关问题呢?</div>\n <div class=\"item\" :key=\"index\" v-for=\"(item, index) in JSON.parse(item.payload)\">\n {{index+1}}.{{item.title}}\n </div>\n </div>\n </div>\n </template>\n\n </div>\n\n </div>\n</template>\n<script>\nexport default {\n name: \"mini-im-contact\",\n data() {\n return {};\n },\n computed: {\n seviceCurrentUser(){\n return this.$store.getters.seviceCurrentUser || {}\n },\n adminInfo(){\n return this.$store.getters.adminInfo || {}\n }\n },\n props: {\n loading: Boolean,\n isMessageEnd: Boolean,\n messages: Array,\n userId: String,\n userNickname: String,\n seviceId: String,\n seviceNickname: String,\n onLoadMor: Function\n },\n watch:{\n messages(){\n setTimeout(()=>{\n this.$previewRefresh()\n }, 1000)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-chat-list {\n display: flex;\n flex-direction: column;\n\n .mini-im-chat-message-box {\n width: 100%;\n display: flex;\n flex-direction: column;\n margin-bottom: 15px;\n\n .user-date {\n display: flex;\n align-items: center;\n color: #999;\n font-size: 14px;\n\n span {\n color: #666;\n font-weight: 500;\n font-size: 14px;\n padding: 0 5px;\n }\n\n em {\n font-style: normal;\n font-size 12px\n }\n }\n\n .loading{\n color #666\n display: flex;\n margin-top: 5px;\n align-items center\n align-content center\n justify-content center\n span{\n margin-left 5px\n font-size 13px\n }\n }\n\n .text {\n display: flex;\n margin-top: 5px;\n\n span {\n max-width: 40%;\n display: inline;\n padding: 5px 10px;\n border-radius: 5px;\n background-color: #eef4f9;\n font-size: 14px;\n color: #666;\n }\n }\n\n .photo {\n display: flex;\n margin-top: 5px;\n\n .loading{\n align-self flex-end\n padding 0 5px\n span{\n background none !important\n color: #999 !important\n }\n }\n\n .img-content{\n border-radius: 5px;\n width: 200px;\n overflow hidden\n }\n\n img {\n cursor: pointer;\n width: 100%;\n height 100%\n display: inline;\n }\n }\n\n .knowledge {\n display: flex;\n margin-top: 5px;\n justify-content: flex-end;\n\n .content {\n display: flex;\n flex-direction: column;\n padding: 5px;\n border-radius: 5px;\n color: #666;\n text-align: left;\n background-color: #eef4f9;\n\n .title {\n font-size: 13px;\n font-weight: 500;\n }\n\n .item {\n font-size: 13px;\n line-height: 22px;\n }\n }\n }\n\n .system {\n display: flex;\n margin-top: 5px;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n em{\n margin-top: 5px;\n font-size: 12px;\n color: #999;\n }\n span {\n font-size: 12px;\n max-width: 50%;\n min-width: 100px;\n display: inline;\n padding: 3px 20px;\n border-radius: 5px;\n text-align: center;\n background-color: #f2f2f2;\n color: #999;\n }\n }\n\n &.self {\n text-align: right;\n\n .user-date {\n display: flex;\n justify-content: flex-end;\n\n span {\n order: -2;\n }\n\n em {\n order: -3;\n }\n }\n\n .text, .photo {\n justify-content: flex-end;\n align-items flex-end\n .cancel-btn{\n color #26a2ff\n font-size 12px\n margin-right 5px\n cursor pointer\n }\n span {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n text-align left\n }\n }\n\n .knowledge>.content {\n background-color: rgba(33, 150, 243, 0.72);\n color: #fff;\n }\n }\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./chats.vue?vue&type=template&id=3d81ef40&scoped=true&\"\nimport script from \"./chats.vue?vue&type=script&lang=js&\"\nexport * from \"./chats.vue?vue&type=script&lang=js&\"\nimport style0 from \"./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3d81ef40\",\n null\n \n)\n\nexport default component.exports","<template>\n <div class=\"record-page\">\n <div class=\"record-mini-im-head\">\n <span>\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item :label=\"adminInfo.root == 1 ? '按客服:' : '按日期:'\"></el-form-item>\n </el-form>\n </el-col>\n <el-col v-if=\"adminInfo.root == 1\" :span=\"3\">\n <el-select v-model=\"selectCustomerId\" @change=\"refreshRecord\" placeholder=\"请选择客服\">\n <el-option\n v-for=\"item in customerData\"\n :key=\"item.id\"\n :label=\"item.nickname\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"5.5\">\n <el-date-picker\n v-model=\"selectDate\"\n align=\"right\"\n type=\"date\"\n @change=\"refreshRecord\"\n placeholder=\"选择日期\"\n :picker-options=\"pickerOptions\">\n </el-date-picker>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isDeWeighting\" label=\"去重目标客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n <el-col :span=\"5.5\">\n <el-checkbox v-model=\"isReception\" label=\"只显示未接待客户\" @change=\"refreshRecord\" border></el-checkbox>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"service_account\" label=\"接待客服\">\n <template slot-scope=\"scope\">\n <span>{{serviceNickname(scope.row.service_account)}}</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"目标客户\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\">{{scope.row.nickname}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"is_reception\" label=\"是否已接待\">\n <template slot-scope=\"scope\">\n <el-tag v-show=\"scope.row.is_reception == 0\" type=\"danger\">未接待</el-tag>\n <el-tag v-show=\"scope.row.is_reception == 1\" type=\"success\">已接待</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"transfer_account\" label=\"满意度\">\n <template>\n <span>-----</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" label=\"客户端平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"服务时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD HH:mm:ss\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"openModal(scope)\">聊天记录</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n\n\n <!-- 聊天数据模态框 -->\n <el-dialog :visible.sync=\"dialogFormVisible\">\n <div slot=\"title\" class=\"dialog-title\">\n <div style=\"color: #666\">\n <span style=\"color: #e6a23c\">{{serviceNickname(selectUser.service_account)}}</span>\n 与\n <span style=\"color: #67c23a\">{{selectUser.nickname}}</span>\n 的聊天记录\n </div>\n </div>\n <div class=\"record-modal-chat-box\" ref=\"chatBody\" id=\"chatBody\">\n <ChatsComponent\n :isMessageEnd=\"isMessageEnd\"\n :seviceId=\"selectCustomerId+''\"\n :seviceNickname=\"serviceNickname(selectUser.service_account)\"\n :messages=\"messageRecord.list\"\n :userId=\"selectUser.user_account\"\n :userNickname=\"selectUser.nickname\"\n :onLoadMor=\"onLoadMor\"\n :loading=\"getMessageRecordLoading\"/>\n </div>\n </el-dialog>\n\n\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nvar moment = require('moment');\nimport ChatsComponent from \"./chats\"\nexport default {\n name: \"robot\",\n components:{\n ChatsComponent\n },\n data() {\n return {\n loading: true,\n isDeWeighting: false,\n isReception: false,\n selectDate: Date.now(),\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n cid: 0,\n total: 0,\n is_de_weighting: false,\n date: \"\",\n },\n customerData: [],\n selectCustomerId: null,\n selectUser: {},\n pickerOptions: {\n disabledDate(time) {\n return time.getTime() > Date.now();\n },\n shortcuts: [{\n text: '今天',\n onClick(picker) {\n picker.$emit('pick', new Date());\n }\n }, {\n text: '昨天',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24);\n picker.$emit('pick', date);\n }\n }, {\n text: '一周前',\n onClick(picker) {\n const date = new Date();\n date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);\n picker.$emit('pick', date);\n }\n }]\n },\n isMessageEnd: false,\n\n // 模态框数据\n getMessageRecordLoading: false,\n getMessageRecordPageSize: 20,\n dialogFormVisible: false,\n messageRecord: {\n list: []\n },\n isFirstRequestMessageEnd: false,\n\n\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n },\n adminInfo(){\n return this.$store.getters.adminInfo\n }\n },\n created() {\n this.getAdmins()\n },\n mounted(){\n setTimeout(() =>{\n this.selectCustomerId = this.adminInfo.id\n this.getRecord(1)\n }, 1000)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getRecord()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getRecord()\n },\n // 获取客服昵称\n serviceNickname(id){\n let nickname = \"\"\n for(let i =0; i< this.customerData.length; i++){\n if(this.customerData[i].id == id){\n nickname = this.customerData[i].nickname\n break\n }\n }\n return nickname\n },\n // 获取数据\n getAdmins(){\n axios.post('/admin/list', {page_on: 1, page_size: 100, \"online\": 3})\n .then(response => {\n this.customerData = response.data.data.list\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 获取数据\n getRecord(index){\n this.loading = true\n if(index) this.tableData.page_on = index\n const {page_on, page_size} = this.tableData\n axios.post('/services_statistical/list', {\n page_on,\n page_size,\n cid: this.selectCustomerId,\n date: moment(this.selectDate).format(\"YYYY-MM-DD\"),\n is_de_weighting: this.isDeWeighting,\n is_reception: this.isReception\n })\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n // 刷新记录\n refreshRecord(){\n this.getRecord()\n },\n // 打开模态框\n openModal(scope){\n this.selectUser = scope.row\n this.isMessageEnd = false\n this.isFirstRequestMessageEnd = false\n this.dialogFormVisible = true\n this.messageRecord = {\n list: []\n }\n this.getMessageRecord()\n },\n // 获取聊天记录\n getMessageRecord(timestamp){\n this.getMessageRecordLoading = true\n if(timestamp == undefined){\n timestamp = 0\n }\n axios.post('/message/list', {\n \"timestamp\": timestamp,\n \"page_size\": this.getMessageRecordPageSize,\n \"service\": parseInt(this.selectCustomerId),\n \"account\": parseInt(this.selectUser.user_account)\n })\n .then(response => {\n this.getMessageRecordLoading = false\n let messages = response.data.data.list\n for(var i=0; i<messages.length; i++){\n messages[i].payload = window.Base64.decode(messages[i].payload)\n }\n if(messages.length < this.getMessageRecordPageSize){\n this.isFirstRequestMessageEnd = true\n }\n if(messages.length == 0 || timestamp == 0){\n this.messageRecord = response.data.data\n this.scrollIntoBottom()\n }else{\n response.data.data.list = messages.concat(this.messageRecord.list)\n this.messageRecord = response.data.data\n }\n setTimeout(()=>this.$previewRefresh(), 500)\n })\n .catch(error => {\n console.log(error)\n this.getMessageRecordLoading = false\n });\n },\n // 获取聊天记录\n getHistoryMessageRecord(timestamp){\n this.getMessageRecordLoading = true\n if(timestamp == undefined || timestamp == 0){\n this.isMessageEnd = true\n return\n }\n axios.post('/message/history', {\n \"timestamp\": timestamp,\n \"page_size\": this.getMessageRecordPageSize,\n \"service\": parseInt(this.selectCustomerId),\n \"account\": parseInt(this.selectUser.user_account)\n })\n .then(response => {\n let messages = response.data.data.list\n for(var i=0; i<messages.length; i++){\n messages[i].payload = window.Base64.decode(messages[i].payload)\n }\n this.getMessageRecordLoading = false\n if(messages.length < this.getMessageRecordPageSize){\n this.isMessageEnd = true\n }\n\nresponse.data.data.list = messages.concat(this.messageRecord.list)\n this.messageRecord = response.data.data\n setTimeout(()=>this.$previewRefresh(), 1000)\n })\n .catch(() => {\n this.getMessageRecordLoading = false\n });\n },\n // 加载更多数据\n onLoadMor(){\n if(this.getMessageRecordLoading) return\n if(this.isFirstRequestMessageEnd){\n this.getHistoryMessageRecord(this.messageRecord.list[0].timestamp)\n }else{\n this.getMessageRecord(this.messageRecord.list[0].timestamp)\n }\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n chatBody.scrollTop = 500\n }, 50)\n },\n // 滚动条置底\n scrollIntoBottom(){\n try{\n setTimeout(()=>{\n var chatBody = document.getElementById(\"chatBody\")\n if(!chatBody) return\n var height = chatBody.clientHeight\n var scrollHeight = chatBody.scrollHeight\n chatBody.scrollTop = scrollHeight-height\n }, 50)\n }catch(e){\n console.log(e)\n }\n },\n }\n};\n</script>\n<style lang=\"stylus\">\n .record-page .record-mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n }\n .record-page .record-modal-chat-box{\n height 600px;\n padding 0 20px\n overflow hidden\n overflow-y auto\n }\n .record-page .el-dialog__body{\n padding: 0px;\n border-top: 1px solid #f7f7f7\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=74dabf7c&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chats.vue?vue&type=style&index=0&id=3d81ef40&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/knowledge/index.vue?b4f9","webpack:///./src/views/knowledge/edit.vue?212d","webpack:///./src/views/knowledge/create.vue?79ac","webpack:///./src/views/knowledge/index.vue?4e04","webpack:///./src/views/knowledge/create.vue?860f","webpack:///src/views/knowledge/create.vue","webpack:///./src/views/knowledge/create.vue?c80e","webpack:///./src/views/knowledge/create.vue?8f68","webpack:///./src/views/knowledge/edit.vue?c231","webpack:///src/views/knowledge/edit.vue","webpack:///./src/views/knowledge/edit.vue?8aad","webpack:///./src/views/knowledge/edit.vue?cd5f","webpack:///src/views/knowledge/index.vue","webpack:///./src/views/knowledge/index.vue?43e7","webpack:///./src/views/knowledge/index.vue?4605"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","_l","item","key","id","class","tableData","platform","on","$event","onTogglePlatform","_s","title","count","onRefresh","model","value","callback","$$v","keyword","expression","createDialogFormVisible","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","fn","scope","row","sub_title","split","content","index","$getPlatformItem","$formatUnixDate","create_at","edit","deleteKnowledge","total","page_on","handleSizeChange","handleCurrentChange","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","$set","tag","handleDel","ref","handleInputConfirm","nativeOn","type","indexOf","_k","keyCode","inputValue","showInput","$store","getters","closeModal","save","data","dynamicTags","inputVisible","uid","props","Boolean","complete","Function","methods","$emit","splice","$nextTick","push","console","log","join","lock","text","spinner","background","state","adminInfo","resize","component","platformConfig","formData","Object","response","loading","close","e","watch","assign","components","CreateDialog","EditDialog","page_size","computed","created","setTimeout","getTotal","getKnowledgeList","$confirm","confirmButtonText","cancelButtonText","center","parseInt","pid","val"],"mappings":"kHAAA,yBAAyjB,EAAG,G,kFCA5jB,yBAAwjB,EAAG,G,oCCA3jB,yBAA0jB,EAAG,G,2CCA7jB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EA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D1C,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,SACA,eACM,EAAN,EACA,wBAAQ,QAAR,EAAQ,UAAR,EAAQ,SAAR,EAAQ,QAAR,IACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,4CAIIwE,SApEJ,WAoEA,WACM,EAAN,4CACQ,EAAR,wBClMiY,ICQ7X,G,UAAY,eACd,EACAtH,EACA0D,GACA,EACA,KACA,WACA,OAIa,e","file":"js/chunk-08627161.5f650355.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=a8bca088&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=a8bca088&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"me-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库管理\")])]),_c('el-button-group',[_vm._l((_vm.total),function(item){return [_c('el-button',{key:item.id,class:{'el-button--primary': item.id + '' == _vm.tableData.platform + ''},attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.onTogglePlatform(item.id)}}},[_vm._v(_vm._s(item.title)+\" ( \"+_vm._s(item.count)+\" )\")])]})],2),_c('el-col',{attrs:{\"span\":3}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},on:{\"change\":_vm.onRefresh},model:{value:(_vm.keyword),callback:function ($$v) {_vm.keyword=$$v},expression:\"keyword\"}})],1),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")])],1),_c('el-divider'),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\",\"label\":\"#序号\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"主标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"sub_title\",\"label\":\"子标题\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.sub_title != '')?_c('div',_vm._l((scope.row.sub_title.split('|')),function(item,key){return _c('div',{key:key,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(_vm._s(key+1)+\".\"+_vm._s(item))])}),0):_c('div',[_vm._v(\"-----\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"content\",\"label\":\"内容\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return _vm._l((scope.row.content.split('\\n')),function(item,index){return _c('div',{key:index,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(_vm._s(item))])})}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"匹配平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")))]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteKnowledge(scope.row)}}},[_vm._v(\"删 除\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加新的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(_vm._s(tag))])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"添加新的知识\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: \"mini-im-create-knowledge\",\n data() {\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: \"\",\n form: {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n },\n formLabelWidth: \"80px\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 标签确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = \"\";\n console.log(this.dynamicTags.join(\"|\"));\n },\n // 保存\n save() {\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.uid = this.$store.state.adminInfo.id;\n this.form.sub_title = this.dynamicTags.join(\"|\");\n axios\n .post(\"/knowledge\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.dynamicTags = [];\n this.form = {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n };\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=015f50bf&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"015f50bf\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"编辑的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(\"\\n \"+_vm._s(tag)+\"\\n \")])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增子标题\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"编辑的知识\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\">\n {{tag}}\n </el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n >\n </el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增子标题</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option :label=\"item.title\" :value=\"item.id\" :key=\"index\" v-for=\"(item, index) in platformConfig\"></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: '',\n form: {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n },\n platformConfig: [],\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = '';\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n this.form.uid = this.$store.state.adminInfo.id\n this.form.sub_title = this.dynamicTags.join(\"|\")\n axios.put('/knowledge', this.form)\n .then(response => {\n try{\n console.log(response)\n loading.close();\n this.$message.success(\"修改成功\")\n this.closeModal()\n this.resize()\n this.complete(1)\n }catch(e){\n console.log(e)\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.dynamicTags = []\n this.form = {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n };\n }\n },\n watch:{\n formData(){\n this.platformConfig = this.$store.getters.platformConfig\n this.form = Object.assign({},this.form, this.formData)\n if(this.formData.sub_title != \"\") this.dynamicTags = this.formData.sub_title.split(\"|\")\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .el-tag + .el-tag {\n margin-left: 10px;\n }\n .button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n }\n .input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=7b12f7d6&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7b12f7d6\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"me-head\">\n <span>\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库管理</span>\n </span>\n <el-button-group>\n <template v-for=\"item in total\">\n <el-button\n :class=\"{'el-button--primary': item.id + '' == tableData.platform + ''}\"\n @click=\"onTogglePlatform(item.id)\"\n :key=\"item.id\"\n size=\"small\"\n >{{item.title}} ( {{item.count}} )</el-button>\n </template>\n </el-button-group>\n <el-col :span=\"3\">\n <el-input\n @change=\"onRefresh\"\n placeholder=\"请输入关键词\"\n prefix-icon=\"el-icon-search\"\n v-model=\"keyword\"\n clearable\n ></el-input>\n </el-col>\n <el-button @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <el-table :data=\"tableData.list\" style=\"width: 100%\" v-loading=\"loading\">\n <el-table-column type=\"index\" :index=\"indexMethod\" width=\"60\" label=\"#序号\"></el-table-column>\n <el-table-column prop=\"title\" label=\"主标题\"></el-table-column>\n <el-table-column prop=\"sub_title\" label=\"子标题\">\n <template slot-scope=\"scope\">\n <div v-if=\"scope.row.sub_title != ''\">\n <div\n style=\"font-size: 13px;\"\n :key=\"key\"\n v-for=\"(item, key) in scope.row.sub_title.split('|')\"\n >{{key+1}}.{{item}}</div>\n </div>\n <div v-else>-----</div>\n </template>\n </el-table-column>\n <el-table-column prop=\"content\" label=\"内容\">\n <template slot-scope=\"scope\">\n <div style=\"font-size: 13px;\" :key=\"index\" v-for=\"(item, index) in scope.row.content.split('\\n')\">{{item}}</div>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" align=\"center\" label=\"匹配平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"创建时间\">\n <template slot-scope=\"scope\">{{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}</template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" width=\"150\" label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button size=\"mini\" type=\"danger\" @click=\"deleteKnowledge(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\"\n ></el-pagination>\n </el-row>\n <CreateDialog :complete=\"onRefresh\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog\n :formData=\"editItem\"\n :complete=\"onRefresh\"\n :dialogFormVisible.sync=\"editDialogFormVisible\"\n />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\";\nimport EditDialog from \"./edit\";\nimport axios from \"axios\";\nexport default {\n name: \"knowledge\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n keyword: \"\",\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n total: 0,\n keyword: \"\",\n platform: 1\n },\n total: [],\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: null\n };\n },\n computed: {\n platformConfig() {\n return this.$store.state.platformConfig || [];\n }\n },\n created() {\n setTimeout(() => {\n this.getKnowledgeList();\n this.getTotal();\n }, 500);\n },\n methods: {\n onRefresh() {\n this.getTotal();\n this.getKnowledgeList();\n },\n // 行号\n indexMethod(index) {\n return (\n (this.tableData.page_on - 1) * this.tableData.page_size + index + 1\n );\n },\n // 删除\n deleteKnowledge(item) {\n this.$confirm(\"您确定要删除该知识库吗? 删除后不可恢复!\", \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(() => {\n axios\n .delete(\"/knowledge/\" + item.id)\n .then(response => {\n console.log(response.data);\n this.$message.success(\"删除成功\");\n this.getKnowledgeList(1);\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n },\n // 切换显示平台\n onTogglePlatform(pid) {\n this.tableData.platform = parseInt(pid);\n this.getKnowledgeList(1);\n },\n // 编辑\n edit(item) {\n this.editItem = item;\n this.editDialogFormVisible = true;\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val;\n this.getKnowledgeList();\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val;\n this.getKnowledgeList();\n },\n // 获取数据\n getKnowledgeList(index) {\n if (index) this.tableData.page_on = index;\n const { page_on, page_size, platform } = this.tableData;\n const keyword = this.keyword;\n axios\n .post(\"/knowledge/list\", { page_on, page_size, platform, keyword })\n .then(response => {\n this.loading = false;\n this.tableData = response.data.data;\n })\n .catch(error => {\n this.loading = false;\n this.$message.error(error.response.data.message);\n });\n },\n // 获取统计数据\n getTotal() {\n axios.get(\"/knowledge/total\").then(response => {\n this.total = response.data.data;\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.me-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a8bca088&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=a8bca088&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a8bca088\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08627161"],{"2c2c":function(t,e,i){"use strict";var o=i("3905"),a=i.n(o);a.a},3905:function(t,e,i){},5817:function(t,e,i){},"682a":function(t,e,i){"use strict";var o=i("5817"),a=i.n(o);a.a},"6fdd":function(t,e,i){"use strict";var o=i("af44"),a=i.n(o);a.a},"7a26":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"me-head"},[i("span",[i("i",{staticClass:"el-icon-reading"}),i("span",{attrs:{slot:"title"},slot:"title"},[t._v("知识库管理")])]),i("el-button-group",[t._l(t.total,(function(e){return[i("el-button",{key:e.id,class:{"el-button--primary":e.id+""==t.tableData.platform+""},attrs:{size:"small"},on:{click:function(i){return t.onTogglePlatform(e.id)}}},[t._v(t._s(e.title)+" ( "+t._s(e.count)+" )")])]}))],2),i("el-col",{attrs:{span:3}},[i("el-input",{attrs:{placeholder:"请输入关键词","prefix-icon":"el-icon-search",clearable:""},on:{change:t.onRefresh},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.createDialogFormVisible=!0}}},[t._v("添 加")])],1),i("el-divider"),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list}},[i("el-table-column",{attrs:{type:"index",index:t.indexMethod,width:"60",label:"#序号"}}),i("el-table-column",{attrs:{prop:"title",label:"主标题"}}),i("el-table-column",{attrs:{prop:"sub_title",label:"子标题"},scopedSlots:t._u([{key:"default",fn:function(e){return[""!=e.row.sub_title?i("div",t._l(e.row.sub_title.split("|"),(function(e,o){return i("div",{key:o,staticStyle:{"font-size":"13px"}},[t._v(t._s(o+1)+"."+t._s(e))])})),0):i("div",[t._v("-----")])]}}])}),i("el-table-column",{attrs:{prop:"content",label:"内容"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.content.split("\n"),(function(e,o){return i("div",{key:o,staticStyle:{"font-size":"13px"}},[t._v(t._s(e))])}))}}])}),i("el-table-column",{attrs:{prop:"platform",align:"center",label:"匹配平台"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tag",[t._v(t._s(t.$getPlatformItem(e.row.platform).title))])]}}])}),i("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.$formatUnixDate(e.row.create_at,"YYYY/MM/DD")))]}}])}),i("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini"},on:{click:function(i){return t.edit(e.row)}}},[t._v("编 辑")]),i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){return t.deleteKnowledge(e.row)}}},[t._v("删 除")])]}}])})],1),i("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[i("span",{staticStyle:{color:"#666","font-size":"14px"}},[t._v("共找到"+t._s(t.tableData.total)+"条数据")]),i("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":t.tableData.page_on,"page-sizes":[5,10,15,20],total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),i("CreateDialog",{attrs:{complete:t.onRefresh,dialogFormVisible:t.createDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.createDialogFormVisible=e},"update:dialog-form-visible":function(e){t.createDialogFormVisible=e}}}),i("EditDialog",{attrs:{formData:t.editItem,complete:t.onRefresh,dialogFormVisible:t.editDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.editDialogFormVisible=e},"update:dialog-form-visible":function(e){t.editDialogFormVisible=e}}})],1)},a=[],l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{width:"600px",title:"添加新的知识","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("el-form",{attrs:{model:t.form}},[i("el-form-item",{attrs:{label:"主标题","label-width":t.formLabelWidth}},[i("el-input",{attrs:{placeholder:"请输入主标题",autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"子标题","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return i("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(i){return t.handleDel(e)}}},[t._v(t._s(e))])})),t.inputVisible?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):i("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 新增")])],2),i("el-form-item",{attrs:{label:"内容","label-width":t.formLabelWidth}},[i("el-input",{attrs:{rows:"5",type:"textarea",autocomplete:"off"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),i("el-form-item",{attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[i("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.$store.getters.platformConfig,(function(t,e){return i("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},n=[],s=(i("57e7"),i("bc3a")),r=i.n(s),c={name:"mini-im-create-knowledge",data:function(){return{dynamicTags:[],inputVisible:!1,inputValue:"",form:{uid:"",platform:1,title:"",sub_title:"",content:""},formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},handleDel:function(t){this.dynamicTags.splice(this.dynamicTags.indexOf(t),1)},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue="",console.log(this.dynamicTags.join("|"))},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.uid=this.$store.state.adminInfo.id,this.form.sub_title=this.dynamicTags.join("|"),r.a.post("/knowledge",this.form).then((function(i){try{console.log(i),e.close(),t.$message.success("添加成功"),t.closeModal(),t.resize(),t.complete(1)}catch(o){console.log(o)}})).catch((function(i){e.close(),t.$message.error(i.response.data.message)}))},resize:function(){this.dynamicTags=[],this.form={uid:"",platform:1,title:"",sub_title:"",content:""}}}},u=c,f=(i("6fdd"),i("2877")),d=Object(f["a"])(u,l,n,!1,null,"015f50bf",null),m=d.exports,p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{width:"600px",title:"编辑的知识","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("el-form",{attrs:{model:t.form}},[i("el-form-item",{attrs:{label:"主标题","label-width":t.formLabelWidth}},[i("el-input",{attrs:{placeholder:"请输入主标题",autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"子标题","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return i("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(i){return t.handleDel(e)}}},[t._v("\n "+t._s(e)+"\n ")])})),t.inputVisible?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):i("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:t.showInput}},[t._v("+ 新增子标题")])],2),i("el-form-item",{attrs:{label:"内容","label-width":t.formLabelWidth}},[i("el-input",{attrs:{rows:"5",type:"textarea",autocomplete:"off"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),i("el-form-item",{attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[i("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.platformConfig,(function(t,e){return i("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},g=[],h=(i("28a5"),{name:"mini-im-create-knowledge",data:function(){return{dynamicTags:[],inputVisible:!1,inputValue:"",form:{uid:"",platform:1,title:"",sub_title:"",content:""},platformConfig:[],formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},handleDel:function(t){this.dynamicTags.splice(this.dynamicTags.indexOf(t),1)},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&this.dynamicTags.push(t),this.inputVisible=!1,this.inputValue=""},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.uid=this.$store.state.adminInfo.id,this.form.sub_title=this.dynamicTags.join("|"),r.a.put("/knowledge",this.form).then((function(i){try{console.log(i),e.close(),t.$message.success("修改成功"),t.closeModal(),t.resize(),t.complete(1)}catch(o){console.log(o)}})).catch((function(i){e.close(),t.$message.error(i.response.data.message)}))},resize:function(){this.dynamicTags=[],this.form={uid:"",platform:1,title:"",sub_title:"",content:""}}},watch:{formData:function(){this.platformConfig=this.$store.getters.platformConfig,this.form=Object.assign({},this.form,this.formData),""!=this.formData.sub_title&&(this.dynamicTags=this.formData.sub_title.split("|"))}}}),b=h,v=(i("682a"),Object(f["a"])(b,p,g,!1,null,"7b12f7d6",null)),_=v.exports,k={name:"knowledge",components:{CreateDialog:m,EditDialog:_},data:function(){return{keyword:"",tableData:{list:[],page_on:1,page_size:10,total:0,keyword:"",platform:1},total:[],createDialogFormVisible:!1,editDialogFormVisible:!1,loading:!0,editItem:null}},computed:{platformConfig:function(){return this.$store.state.platformConfig||[]}},created:function(){var t=this;setTimeout((function(){t.getKnowledgeList(),t.getTotal()}),500)},methods:{onRefresh:function(){this.getTotal(),this.getKnowledgeList()},indexMethod:function(t){return(this.tableData.page_on-1)*this.tableData.page_size+t+1},deleteKnowledge:function(t){var e=this;this.$confirm("您确定要删除该知识库吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){r.a.delete("/knowledge/"+t.id).then((function(t){console.log(t.data),e.$message.success("删除成功"),e.getKnowledgeList(1)})).catch((function(t){e.$message.error(t.response.data.message)}))}))},onTogglePlatform:function(t){this.tableData.platform=parseInt(t),this.getKnowledgeList(1)},edit:function(t){this.editItem=t,this.editDialogFormVisible=!0},handleSizeChange:function(t){this.tableData.page_size=t,this.getKnowledgeList()},handleCurrentChange:function(t){this.tableData.page_on=t,this.getKnowledgeList()},getKnowledgeList:function(t){var e=this;t&&(this.tableData.page_on=t);var i=this.tableData,o=i.page_on,a=i.page_size,l=i.platform,n=this.keyword;r.a.post("/knowledge/list",{page_on:o,page_size:a,platform:l,keyword:n}).then((function(t){e.loading=!1,e.tableData=t.data.data})).catch((function(t){e.loading=!1,e.$message.error(t.response.data.message)}))},getTotal:function(){var t=this;r.a.get("/knowledge/total").then((function(e){t.total=e.data.data}))}}},w=k,y=(i("2c2c"),Object(f["a"])(w,o,a,!1,null,"a8bca088",null));e["default"]=y.exports},af44:function(t,e,i){}}]);
//# sourceMappingURL=chunk-08627161.5f650355.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-08627161.af4b0a2d.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/knowledge/index.vue?b4f9","webpack:///./src/views/knowledge/edit.vue?212d","webpack:///./src/views/knowledge/create.vue?79ac","webpack:///./src/views/knowledge/index.vue?1002","webpack:///./src/views/knowledge/create.vue?c65c","webpack:///src/views/knowledge/create.vue","webpack:///./src/views/knowledge/create.vue?c80e","webpack:///./src/views/knowledge/create.vue","webpack:///./src/views/knowledge/edit.vue?bf38","webpack:///src/views/knowledge/edit.vue","webpack:///./src/views/knowledge/edit.vue?8aad","webpack:///./src/views/knowledge/edit.vue","webpack:///src/views/knowledge/index.vue","webpack:///./src/views/knowledge/index.vue?43e7","webpack:///./src/views/knowledge/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","_l","item","key","id","class","tableData","platform","on","$event","onTogglePlatform","_s","title","count","onRefresh","model","value","callback","$$v","keyword","expression","createDialogFormVisible","directives","name","rawName","staticStyle","list","indexMethod","scopedSlots","_u","fn","scope","row","sub_title","split","content","index","$getPlatformItem","$formatUnixDate","create_at","edit","deleteKnowledge","total","page_on","handleSizeChange","handleCurrentChange","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","$set","tag","handleDel","ref","handleInputConfirm","nativeOn","type","indexOf","_k","keyCode","inputValue","showInput","$store","getters","closeModal","save","data","dynamicTags","inputVisible","uid","props","Boolean","complete","Function","methods","$emit","splice","$nextTick","push","console","log","join","lock","text","spinner","background","state","adminInfo","resize","component","platformConfig","formData","Object","response","loading","close","e","watch","assign","components","CreateDialog","EditDialog","page_size","computed","created","setTimeout","getTotal","getKnowledgeList","$confirm","confirmButtonText","cancelButtonText","center","parseInt","pid","val"],"mappings":"kHAAA,yBAAyjB,EAAG,G,kFCA5jB,yBAAwjB,EAAG,G,oCCA3jB,yBAA0jB,EAAG,G,2CCA7jB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,oBAAoBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,aAAaL,EAAG,kBAAkB,CAACJ,EAAIU,GAAIV,EAAS,OAAE,SAASW,GAAM,MAAO,CAACP,EAAG,YAAY,CAACQ,IAAID,EAAKE,GAAGC,MAAM,CAAC,qBAAsBH,EAAKE,GAAK,IAAMb,EAAIe,UAAUC,SAAW,IAAIT,MAAM,CAAC,KAAO,SAASU,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOlB,EAAImB,iBAAiBR,EAAKE,OAAO,CAACb,EAAIS,GAAGT,EAAIoB,GAAGT,EAAKU,OAAO,MAAMrB,EAAIoB,GAAGT,EAAKW,OAAO,aAAY,GAAGlB,EAAG,SAAS,CAACG,MAAM,CAAC,KAAO,IAAI,CAACH,EAAG,WAAW,CAACG,MAAM,CAAC,YAAc,SAAS,cAAc,iBAAiB,UAAY,IAAIU,GAAG,CAAC,OAASjB,EAAIuB,WAAWC,MAAM,C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C,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRvD,KAAM,YACd,iBACQ,EAAR,EACA,2BACA,kBACU,QAAV,YACU,EAAV,yBACU,EAAV,uBAEA,mBACU,EAAV,+CAKIhD,iBAhCJ,SAgCA,GACMlB,KAAKc,UAAUC,SAAW2G,SAASC,GACnC3H,KAAKqH,iBAAiB,IAGxBrE,KArCJ,SAqCA,GACMhD,KAAKsD,SAAW5C,EAChBV,KAAKuD,uBAAwB,GAG/BH,iBA1CJ,SA0CA,GACMpD,KAAKc,UAAUkG,UAAYY,EAC3B5H,KAAKqH,oBAGPhE,oBA/CJ,SA+CA,GACMrD,KAAKc,UAAUqC,QAAUyE,EACzB5H,KAAKqH,oBAGPA,iBApDJ,SAoDA,cACUzE,IAAO5C,KAAKc,UAAUqC,QAAUP,GAD1C,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,SACA,eACM,EAAN,EACA,wBAAQ,QAAR,EAAQ,UAAR,EAAQ,SAAR,EAAQ,QAAR,IACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,4CAIIwE,SApEJ,WAoEA,WACM,EAAN,4CACQ,EAAR,wBClMiY,ICQ7X,G,UAAY,eACd,EACAtH,EACA0D,GACA,EACA,KACA,WACA,OAIa,e","file":"js/chunk-08627161.af4b0a2d.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=a8bca088&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=a8bca088&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"me-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库管理\")])]),_c('el-button-group',[_vm._l((_vm.total),function(item){return [_c('el-button',{key:item.id,class:{'el-button--primary': item.id + '' == _vm.tableData.platform + ''},attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.onTogglePlatform(item.id)}}},[_vm._v(_vm._s(item.title)+\" ( \"+_vm._s(item.count)+\" )\")])]})],2),_c('el-col',{attrs:{\"span\":3}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},on:{\"change\":_vm.onRefresh},model:{value:(_vm.keyword),callback:function ($$v) {_vm.keyword=$$v},expression:\"keyword\"}})],1),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")])],1),_c('el-divider'),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\",\"label\":\"#序号\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"主标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"sub_title\",\"label\":\"子标题\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.sub_title != '')?_c('div',_vm._l((scope.row.sub_title.split('|')),function(item,key){return _c('div',{key:key,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(_vm._s(key+1)+\".\"+_vm._s(item))])}),0):_c('div',[_vm._v(\"-----\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"content\",\"label\":\"内容\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return _vm._l((scope.row.content.split('\\n')),function(item,index){return _c('div',{key:index,staticStyle:{\"font-size\":\"13px\"}},[_vm._v(_vm._s(item))])})}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"匹配平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")))]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteKnowledge(scope.row)}}},[_vm._v(\"删 除\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('CreateDialog',{attrs:{\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"formData\":_vm.editItem,\"complete\":_vm.onRefresh,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加新的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(_vm._s(tag))])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"添加新的知识\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: \"mini-im-create-knowledge\",\n data() {\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: \"\",\n form: {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n },\n formLabelWidth: \"80px\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 标签确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = \"\";\n console.log(this.dynamicTags.join(\"|\"));\n },\n // 保存\n save() {\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.uid = this.$store.state.adminInfo.id;\n this.form.sub_title = this.dynamicTags.join(\"|\");\n axios\n .post(\"/knowledge\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete(1);\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.dynamicTags = [];\n this.form = {\n uid: \"\",\n platform: 1,\n title: \"\",\n sub_title: \"\",\n content: \"\"\n };\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=015f50bf&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./create.vue?vue&type=style&index=0&id=015f50bf&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"015f50bf\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"编辑的知识\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"主标题\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入主标题\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"子标题\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleDel(tag)}}},[_vm._v(\"\\n \"+_vm._s(tag)+\"\\n \")])}),(_vm.inputVisible)?_c('el-input',{ref:\"saveTagInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:\"inputValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":_vm.showInput}},[_vm._v(\"+ 新增子标题\")])],2),_c('el-form-item',{attrs:{\"label\":\"内容\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"rows\":\"5\",\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"600px\" title=\"编辑的知识\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"主标题\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入主标题\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"子标题\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleDel(tag)\">\n {{tag}}\n </el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"inputVisible\"\n v-model=\"inputValue\"\n ref=\"saveTagInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n >\n </el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showInput\">+ 新增子标题</el-button>\n </el-form-item>\n <el-form-item label=\"内容\" :label-width=\"formLabelWidth\">\n <el-input rows=\"5\" type=\"textarea\" v-model=\"form.content\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option :label=\"item.title\" :value=\"item.id\" :key=\"index\" v-for=\"(item, index) in platformConfig\"></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n dynamicTags: [],\n inputVisible: false,\n inputValue: '',\n form: {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n },\n platformConfig: [],\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 删除标签\n handleDel(tag) {\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n },\n // 显示子标题输入框\n showInput() {\n this.inputVisible = true;\n this.$nextTick(() => {\n this.$refs.saveTagInput.$refs.input.focus();\n });\n },\n // 确定\n handleInputConfirm() {\n let inputValue = this.inputValue;\n if (inputValue) {\n this.dynamicTags.push(inputValue);\n }\n this.inputVisible = false;\n this.inputValue = '';\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n this.form.uid = this.$store.state.adminInfo.id\n this.form.sub_title = this.dynamicTags.join(\"|\")\n axios.put('/knowledge', this.form)\n .then(response => {\n try{\n console.log(response)\n loading.close();\n this.$message.success(\"修改成功\")\n this.closeModal()\n this.resize()\n this.complete(1)\n }catch(e){\n console.log(e)\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.dynamicTags = []\n this.form = {\n uid: \"\",\n platform: 1,\n title: '',\n sub_title: '',\n content: '',\n };\n }\n },\n watch:{\n formData(){\n this.platformConfig = this.$store.getters.platformConfig\n this.form = Object.assign({},this.form, this.formData)\n if(this.formData.sub_title != \"\") this.dynamicTags = this.formData.sub_title.split(\"|\")\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .el-tag + .el-tag {\n margin-left: 10px;\n }\n .button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n }\n .input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=7b12f7d6&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=7b12f7d6&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7b12f7d6\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"me-head\">\n <span>\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库管理</span>\n </span>\n <el-button-group>\n <template v-for=\"item in total\">\n <el-button\n :class=\"{'el-button--primary': item.id + '' == tableData.platform + ''}\"\n @click=\"onTogglePlatform(item.id)\"\n :key=\"item.id\"\n size=\"small\"\n >{{item.title}} ( {{item.count}} )</el-button>\n </template>\n </el-button-group>\n <el-col :span=\"3\">\n <el-input\n @change=\"onRefresh\"\n placeholder=\"请输入关键词\"\n prefix-icon=\"el-icon-search\"\n v-model=\"keyword\"\n clearable\n ></el-input>\n </el-col>\n <el-button @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <el-table :data=\"tableData.list\" style=\"width: 100%\" v-loading=\"loading\">\n <el-table-column type=\"index\" :index=\"indexMethod\" width=\"60\" label=\"#序号\"></el-table-column>\n <el-table-column prop=\"title\" label=\"主标题\"></el-table-column>\n <el-table-column prop=\"sub_title\" label=\"子标题\">\n <template slot-scope=\"scope\">\n <div v-if=\"scope.row.sub_title != ''\">\n <div\n style=\"font-size: 13px;\"\n :key=\"key\"\n v-for=\"(item, key) in scope.row.sub_title.split('|')\"\n >{{key+1}}.{{item}}</div>\n </div>\n <div v-else>-----</div>\n </template>\n </el-table-column>\n <el-table-column prop=\"content\" label=\"内容\">\n <template slot-scope=\"scope\">\n <div style=\"font-size: 13px;\" :key=\"index\" v-for=\"(item, index) in scope.row.content.split('\\n')\">{{item}}</div>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" align=\"center\" label=\"匹配平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"创建时间\">\n <template slot-scope=\"scope\">{{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}</template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" width=\"150\" label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button size=\"mini\" type=\"danger\" @click=\"deleteKnowledge(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\"\n ></el-pagination>\n </el-row>\n <CreateDialog :complete=\"onRefresh\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog\n :formData=\"editItem\"\n :complete=\"onRefresh\"\n :dialogFormVisible.sync=\"editDialogFormVisible\"\n />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\";\nimport EditDialog from \"./edit\";\nimport axios from \"axios\";\nexport default {\n name: \"knowledge\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n keyword: \"\",\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n total: 0,\n keyword: \"\",\n platform: 1\n },\n total: [],\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: null\n };\n },\n computed: {\n platformConfig() {\n return this.$store.state.platformConfig || [];\n }\n },\n created() {\n setTimeout(() => {\n this.getKnowledgeList();\n this.getTotal();\n }, 500);\n },\n methods: {\n onRefresh() {\n this.getTotal();\n this.getKnowledgeList();\n },\n // 行号\n indexMethod(index) {\n return (\n (this.tableData.page_on - 1) * this.tableData.page_size + index + 1\n );\n },\n // 删除\n deleteKnowledge(item) {\n this.$confirm(\"您确定要删除该知识库吗? 删除后不可恢复!\", \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(() => {\n axios\n .delete(\"/knowledge/\" + item.id)\n .then(response => {\n console.log(response.data);\n this.$message.success(\"删除成功\");\n this.getKnowledgeList(1);\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n },\n // 切换显示平台\n onTogglePlatform(pid) {\n this.tableData.platform = parseInt(pid);\n this.getKnowledgeList(1);\n },\n // 编辑\n edit(item) {\n this.editItem = item;\n this.editDialogFormVisible = true;\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val;\n this.getKnowledgeList();\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val;\n this.getKnowledgeList();\n },\n // 获取数据\n getKnowledgeList(index) {\n if (index) this.tableData.page_on = index;\n const { page_on, page_size, platform } = this.tableData;\n const keyword = this.keyword;\n axios\n .post(\"/knowledge/list\", { page_on, page_size, platform, keyword })\n .then(response => {\n this.loading = false;\n this.tableData = response.data.data;\n })\n .catch(error => {\n this.loading = false;\n this.$message.error(error.response.data.message);\n });\n },\n // 获取统计数据\n getTotal() {\n axios.get(\"/knowledge/total\").then(response => {\n this.total = response.data.data;\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.me-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=a8bca088&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=a8bca088&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a8bca088\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-132fc719"],{"0b10":function(e,t,i){},"11e9":function(e,t,i){var s=i("52a7"),n=i("4630"),o=i("6821"),a=i("6a99"),r=i("69a8"),c=i("c69a"),l=Object.getOwnPropertyDescriptor;t.f=i("9e1e")?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(i){}if(r(e,t))return n(!s.f.call(e,t),e[t])}},1826:function(e,t,i){"use strict";var s=i("fa4e"),n=i.n(s);n.a},"1c01":function(e,t,i){var s=i("5ca1");s(s.S+s.F*!i("9e1e"),"Object",{defineProperty:i("86cc").f})},"1f3c":function(e,t,i){},"297c":function(e,t,i){"use strict";var s=i("0b10"),n=i.n(s);n.a},"29e5":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-workbench"},[i("div",{staticClass:"mini-im-session-list"},[i("div",{staticClass:"title"},[i("el-row",{attrs:{type:"flex",justify:"space-between",gutter:20}},[i("el-col",{attrs:{span:16}},[i("span",[i("i",{staticClass:"el-icon-s-custom"}),e._v("\n 会话列表 ( "+e._s(e.contacts.length)+"人 )\n ")]),i("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},attrs:{title:"清空列表"},on:{click:e.clearContact}})]),i("el-col",{attrs:{span:9}},[i("el-popover",{attrs:{placement:"bottom",width:"100"}},[i("div",{staticClass:"mini-im-online-setting"},[1!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(1)}}},[i("i",{staticClass:"el-icon-circle-check",staticStyle:{color:"rgb(135, 208, 104)"}}),e._v("\n 我要上线\n ")]):e._e(),0!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(0)}}},[i("i",{staticClass:"el-icon-switch-button",staticStyle:{color:"#ccc"}}),e._v("\n 我要下线\n ")]):e._e(),2!=e.adminInfo.online?i("div",{staticClass:"item",on:{click:function(){return e.online(2)}}},[i("i",{staticClass:"el-icon-remove-outline",staticStyle:{color:"#e6a23c"}}),e._v("\n 繁忙状态\n ")]):e._e()]),0==e.adminInfo.online?i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("i",{staticClass:"el-icon-switch-button"}),i("em",[e._v("离 线 ")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})]):1==e.adminInfo.online?i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("span",{staticStyle:{color:"rgb(135, 208, 104)"}},[i("i",{staticClass:"el-icon-circle-check"}),i("em",[e._v("在 线")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})])]):i("el-button",{attrs:{slot:"reference",size:"mini"},slot:"reference"},[i("span",{staticStyle:{color:"#e6a23c"}},[i("i",{staticClass:"el-icon-circle-check"}),i("em",[e._v("繁 忙")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right"})])])],1)],1)],1)],1),i("div",{staticClass:"mini-im-session-content"},[i("div",{staticClass:"mini-im-flex"},[e.contacts.length<=0?i("div",{staticClass:"mini-im-no-data"},[e._v("暂无会话数据")]):e._e(),e._l(e.contacts,(function(t,s){return i("ContactComponent",{key:s,class:{"mini-im-chat-item-active":e.seviceCurrentUser.from_account==t.from_account},attrs:{deleteContact:e.deleteContact,clickItem:e.selectUser,item:t}})}))],2)])]),e.$store.getters.seviceCurrentUser.id?i("div",{staticClass:"mini-im-chat-view"},[i("div",{staticClass:"mini-im-chat-view-content-header"},[i("div",{staticClass:"mini-im-header-user-box"},[i("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:35}},[""!=e.seviceCurrentUser.avatar?i("img",{attrs:{src:e.seviceCurrentUser.avatar}}):[e._v("访")]],2),i("div",{staticClass:"mini-im-header-user-info"},[i("div",[e._v("\n "+e._s(e.seviceCurrentUser.nickname)+"\n "),1==e.seviceCurrentUser.online?i("span",{staticStyle:{color:"rgb(135, 208, 104)"}},[e._v("● 在线")]):i("span",[e._v("● 离线")]),e.isInputPongIng?[i("span",{staticClass:"input-pong"},[e._v(e._s(e.inputPongIngString)+" "),i("i",{staticClass:"el-icon-edit"})])]:e._e()],2),i("span",[e._v("用户来至:"+e._s(e.$getPlatformItem(e.seviceCurrentUser.platform).title)+"客户端,所在地:"+e._s(e.seviceCurrentUser.address||"未知"))])])],1),i("el-row",{staticClass:"mini-im-buttons"},[i("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"click"}},[i("div",{staticClass:"mini-im-customer-list"},[i("div",{staticClass:"mini-im-customer-title"},[e._v("请选择转接的客服 ("+e._s(e.filterAdmins.length)+"人在线)")]),e._l(e.filterAdmins,(function(t){return i("div",{key:t.id,staticClass:"mini-im-customer-item",on:{click:function(){return e.transferCustomer(t)}}},[i("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:30}},[i("img",{attrs:{src:t.avatar}})]),i("span",[e._v(e._s(t.nickname||t.username))])],1)})),0==e.filterAdmins.length?i("div",{staticClass:"mini-im-customer-item",staticStyle:{background:"none",border:"0"}},[i("span",[e._v("当前没有其他客服在线")])]):e._e()],2),i("el-button",{directives:[{name:"show",rawName:"v-show",value:0==e.seviceCurrentUser.is_session_end&&0!=e.adminInfo.online,expression:"seviceCurrentUser.is_session_end == 0 && adminInfo.online != 0"}],attrs:{slot:"reference",icon:"el-icon-refresh",size:"small"},on:{click:e.getAdmins},slot:"reference"},[e._v("\n 转接客服\n ")])],1),0==e.seviceCurrentUser.is_session_end&&0!=e.adminInfo.online?i("el-button",{attrs:{icon:"el-icon-close",size:"small"},on:{click:e.closeSession}},[e._v("结束会话")]):e._e()],1)],1),i("div",{ref:"miniImChatViewBontentBody",staticClass:"mini-im-chat-view-content-body"},[i("div",{staticClass:"mini-im-chat-view-content"},[i("div",{directives:[{name:"show",rawName:"v-show",value:""!=e.advanceText.trim(),expression:"advanceText.trim() != ''"}],staticClass:"advance"},[i("div",[e._v("正在输入:")]),i("span",[e._v("\n "+e._s(e.advanceText)+"\n "),e.isInputPongIng?[i("span",{staticClass:"input-pong"},[e._v(e._s(e.inputPongIngString.replace("对方正在输入",""))+" "),i("i",{staticClass:"el-icon-edit"})])]:e._e()],2)]),i("div",{ref:"chatBody",staticClass:"mini-im-chat-body",attrs:{id:"chatBody"}},[i("ChatWindowComponent",{attrs:{onLoadMor:e.onLoadMorMessage,isMessageEnd:e.isMessageEnd,onCancelMessage:e.onCancelMessage,messages:e.messageRecord.list,loading:e.getMessageRecordLoading}})],1),i("div",{staticClass:"mini-im-chat-input"},[i("div",{staticClass:"mini-im-chat-input-bar"},[i("el-row",[i("EmojiComponent",{attrs:{clickEmoji:e.clickEmoji}}),i("span",{staticClass:"mini-im-button",attrs:{title:"选择图片"}},[e._v("\n 🌁\n "),i("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.sendPhotoMessageEvent}})])],1),i("el-row",[i("el-popover",{attrs:{placement:"top-start",width:"350",trigger:"hover"}},[i("div",{staticClass:"mini-im-shortcut"},[i("div",{staticClass:"mini-im-shortcut-head"},[i("span",[i("i",{staticClass:"el-icon-tickets"}),e._v("快捷语回复列表")]),i("div",[i("button",{attrs:{title:"添加"},on:{click:function(t){e.createShortcutDialogFormVisible=!0}}},[i("i",{staticClass:"el-icon-plus"})]),i("button",{attrs:{title:"编辑"},on:{click:function(t){e.shortcutEditVisible=!e.shortcutEditVisible}}},[i("i",{staticClass:"el-icon-edit"})])])]),i("div",{staticClass:"mini-im-shortcut-body"},[i("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{clearable:"",type:"text",placeholder:"请输入关键词",autocomplete:"off"},model:{value:e.shortcutKey,callback:function(t){e.shortcutKey=t},expression:"shortcutKey"}}),0==e.filterShortcuts.length?i("div",{staticClass:"mini-im-shortcut-item",staticStyle:{background:"none"}},[i("span",{staticStyle:{"text-align":"center","margin-top":"20px"}},[e._v("暂无快捷语")])]):e._e(),e._l(e.filterShortcuts,(function(t){return i("div",{key:t.id,staticClass:"mini-im-shortcut-item",attrs:{title:t.content}},[i("span",{domProps:{innerHTML:e._s(t.title.replace(/\n/g,"<br>"))},on:{"!click":function(i){return function(){return e.checkShortcut(t.content)}()}}}),i("button",{directives:[{name:"show",rawName:"v-show",value:e.shortcutEditVisible,expression:"shortcutEditVisible"}],attrs:{title:"修改"},on:{"!click":function(i){return function(){return e.editShortcut(t)}()}}},[i("i",{staticClass:"el-icon-edit"})]),i("button",{directives:[{name:"show",rawName:"v-show",value:e.shortcutEditVisible,expression:"shortcutEditVisible"}],attrs:{title:"删除"},on:{"!click":function(i){return function(){return e.deleteShortcut(t)}()}}},[i("i",{staticClass:"el-icon-delete"})])])}))],2)]),i("button",{staticClass:"mini-im-button",attrs:{slot:"reference"},slot:"reference"},[i("i",{staticClass:"el-icon-tickets",staticStyle:{"font-size":"15px"}}),i("span",{staticStyle:{"font-size":"14px"}},[e._v(" 快捷语")])])])],1)],1),i("div",{staticClass:"mini-im-chat-input-edit",on:{keyup:[function(t){return t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.keyUpEvent(t)},function(t){return!t.type.indexOf("key")&&13!==t.keyCode&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.shiftKey?e.enterShift(t):null},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?null:e.sendMessage(t)}]}},[i("el-input",{ref:"chatValueDom",staticClass:"mini-im-chat-text-input",attrs:{type:"textarea",rows:"3",resize:"none",autosize:!1,disabled:1==e.seviceCurrentUser.is_session_end||0==e.adminInfo.online,maxlength:"200","show-word-limit":"",placeholder:1==e.seviceCurrentUser.is_session_end?"当前会话已结束":"请输入内容"},model:{value:e.chatValue,callback:function(t){e.chatValue=t},expression:"chatValue"}})],1)])]),i("div",{staticClass:"mini-im-chat-view-user"},[i("el-tabs",{attrs:{type:"border-card"}},[i("el-tab-pane",{attrs:{label:"用户信息"}},[i("UserInfoComponent")],1)],1)],1)])]):i("div",{staticClass:"mini-im-chat-view no-window"},[e._m(0),i("span",[e._v("当前无对话")]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.chatWindowLoading,expression:"chatWindowLoading"}],staticClass:"mini-im-right-window-loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v("数据加载中...")])])]),i("CreateShortcutComponent",{attrs:{complete:e.getShortcuts,dialogFormVisible:e.createShortcutDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.createShortcutDialogFormVisible=t},"update:dialog-form-visible":function(t){e.createShortcutDialogFormVisible=t}}}),i("EditShortcutComponent",{attrs:{formData:e.editShortcutItem,complete:e.getShortcuts,dialogFormVisible:e.editShortcutDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editShortcutDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editShortcutDialogFormVisible=t}}})],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("i",{staticClass:"el-icon-service"})])}],o=(i("1c01"),i("58b2"),i("8e6e"),i("f3e2"),i("ac6a"),i("456d"),i("c5f6"),i("4917"),i("a481"),i("6d67"),i("57e7"),i("d25f"),i("4f37"),i("bd86")),a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"}},[i("div",{staticClass:"emoji-box"},e._l(e.emojis,(function(t,s){return i("span",{key:s,on:{click:function(i){return e.clickEmoji(t)}}},[e._v(e._s(t))])})),0),i("button",{staticClass:"mini-im-button",staticStyle:{"font-size":"20px"},attrs:{slot:"reference",title:"选择表情"},slot:"reference"},[e._v("😊")])])},r=[],c=i("eef3"),l={name:"mini-im-emoji",data:function(){return{emojis:c.emojiData}},props:{clickEmoji:Function}},u=l,m=(i("1826"),i("2877")),d=Object(m["a"])(u,a,r,!1,null,"3d019866",null),f=d.exports,h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-chat-item"},[i("span",{staticClass:"delete_contact",attrs:{title:"删除该记录"},on:{"!click":function(t){return e.deleteContact(e.item)}}},[i("i",{staticClass:"el-icon-close"})]),i("el-avatar",{staticClass:"mini-im-avatar",on:{click:function(t){return e.clickItem(e.item)}}},[""!=e.item.avatar?i("img",{attrs:{src:e.item.avatar}}):[e._v("访")]],2),i("div",{staticClass:"mini-im-message-box",on:{click:function(t){return e.clickItem(e.item)}}},[i("div",{staticClass:"mini-im-user-date"},[i("div",{staticClass:"mini-im-nickname"},[i("span",{staticClass:"mini-im-online-status",class:{success:1==e.item.online}},[e._v("●")]),e._v(" "+e._s(e.item.nickname)+"\n ")]),i("div",{staticClass:"mini-im-date"},[e._v("\n "+e._s(e.$formatFromNowDate(e.item.contact_create_at))+"\n ")])]),i("div",{staticClass:"mini-im-message-badge"},["text"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v(e._s(e.item.last_message))]):e._e(),"photo"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("收到图片文件")]):e._e(),"video"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("收到视频文件")]):e._e(),"end"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("会话结束")]):e._e(),"cancel"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("对方撤回了一条消息")]):e._e(),"timeout"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("会话超时,结束对话")]):e._e(),"transfer"==e.item.last_message_type||"handshake"==e.item.last_message_type?i("div",{staticClass:"mini-im-message"},[e._v("客服转接...")]):e._e(),e.item.read>0?i("div",{staticClass:"mini-im-badge"},[e._v(e._s(e.item.read))]):e._e()])])],1)},g=[],v={name:"mini-im-contact",data:function(){return{}},props:{item:Object,clickItem:Function,deleteContact:Function}},p=v,_=(i("297c"),Object(m["a"])(p,h,g,!1,null,"595d9a46",null)),b=_.exports,C=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-username-component-box"},[i("div",{staticClass:"mini-im-username-component"},[i("button",{attrs:{title:"编辑用户信息"},on:{click:function(t){e.isUserReadonly=!e.isUserReadonly}}},[i("i",{staticClass:"el-icon-edit"})])]),i("el-form",{ref:"form",class:{"form-item-readonly":e.isUserReadonly},attrs:{"label-width":"80px"}},[i("el-form-item",{staticClass:"form-item",attrs:{label:"用户昵称"}},[i("el-input",{attrs:{placeholder:"游客",readonly:e.isUserReadonly,type:"text"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"所在地区"}},[i("el-input",{attrs:{readonly:e.isUserReadonly,placeholder:"无",type:"text"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"联系方式"}},[i("el-input",{attrs:{readonly:e.isUserReadonly,placeholder:"无联系方式",type:"text"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),i("el-form-item",{staticClass:"form-item no-border",attrs:{label:"所在平台"}},[i("el-input",{attrs:{readonly:"",value:e.$getPlatformItem(e.user.platform).title,resize:"none",type:"text"}})],1),i("el-form-item",{staticClass:"form-item no-border",attrs:{label:"创建时间"}},[i("el-input",{attrs:{readonly:"",value:e.$formatUnixDate(e.user.create_at,"YYYY/MM/DD"),resize:"none",type:"text"}})],1),i("el-form-item",{staticClass:"form-item",attrs:{label:"备注信息"}},[i("el-input",{attrs:{rows:"4",readonly:e.isUserReadonly,placeholder:"无备注",resize:"none",type:"textarea"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1),e.isUserReadonly?e._e():i("el-row",{attrs:{type:"flex",justify:"center"}},[i("el-button",{on:{click:function(t){e.isUserReadonly=!0}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1),e.isUserReadonly?e._e():i("div",{staticStyle:{"text-align":"center","font-size":"12px",color:"#666","margin-top":"15px"}},[e._v("当前为编辑模式")])],1)],1)},y=[],w=i("bc3a"),S=i.n(w),$={name:"mini-im-user-info",data:function(){return{form:{id:"",nickname:"",address:"",phone:"",remarks:""},isUserReadonly:!0}},computed:{user:function(){return this.$store.getters.seviceCurrentUser||{}}},methods:{save:function(){var e=this;S.a.put("/user",this.form).then((function(){e.isUserReadonly=!0})).catch((function(t){e.$message.error(t.response.data.message)}))}},watch:{user:function(e){e.id!=this.form.id&&(this.isUserReadonly=!0),(this.isUserReadonly||e.id!=this.form.id)&&(this.form=this.user)}}},I=$,k=(i("2b0b"),Object(m["a"])(I,C,y,!1,null,null,null)),x=k.exports,M=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"添加快捷语","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{attrs:{model:e.form}},[i("el-form-item",{attrs:{label:"标题","label-width":e.formLabelWidth}},[i("el-input",{attrs:{maxlength:"50","show-word-limit":"",type:"text",placeholder:"请输入标题",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"内容","label-width":e.formLabelWidth}},[i("el-input",{attrs:{rows:"8",resize:"none",autosize:!1,maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请输入快捷语",autocomplete:"off"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},T=[],E={name:"mini-im-create-shortcuts",data:function(){return{form:{content:"",title:""},formLabelWidth:"40px"}},props:{dialogFormVisible:Boolean,complete:Function},mounted:function(){},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.title.trim()&&""!=this.form.content.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});S.a.post("/shortcut",this.form).then((function(i){try{console.log(i),t.close(),e.$message.success("添加成功"),e.closeModal(),e.complete(),e.form={content:"",title:""}}catch(s){console.log(s)}})).catch((function(i){t.close(),e.$message.error(i.response.data.message)}))}}}},U=E,R=Object(m["a"])(U,M,T,!1,null,"ae51b748",null),O=R.exports,L=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"编辑快捷语","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{attrs:{model:e.form}},[i("el-form-item",{attrs:{label:"标题","label-width":e.formLabelWidth}},[i("el-input",{attrs:{maxlength:"50","show-word-limit":"",type:"text",placeholder:"请输入标题",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"内容","label-width":e.formLabelWidth}},[i("el-input",{attrs:{rows:"8",resize:"none",autosize:!1,maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请输入快捷语",autocomplete:"off"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},P=[],N={name:"mini-im-edit-shortcuts",data:function(){return{form:{content:"",title:""},formLabelWidth:"40px"}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this;if(""!=this.form.title.trim()&&""!=this.form.content.trim()){var t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});S.a.put("/shortcut",this.form).then((function(i){try{console.log(i),t.close(),e.$message.success("添加成功"),e.closeModal(),e.complete()}catch(s){console.log(s)}})).catch((function(i){t.close(),e.$message.error(i.response.data.message)}))}}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},V=N,F=Object(m["a"])(V,L,P,!1,null,"3714045a",null),z=F.exports,j=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mini-im-chat-list"},[i("div",{staticClass:"mini-im-chat-message-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v("消息加载中...")])]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isMessageEnd,expression:"isMessageEnd"}],attrs:{type:"text",disabled:"",icon:"el-icon-refresh-right"}},[e._v("无更多聊天记录...")]),e.isMessageEnd||e.loading?e._e():i("el-button",{attrs:{type:"text",icon:"el-icon-refresh"},on:{click:e.onLoadMor}},[e._v("点击加载更多聊天记录")])],1),i("div",{staticClass:"mini-im-chat-message-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.messages.length<=0&&!e.loading,expression:"messages.length <= 0 && !loading"}],staticClass:"loading"},[i("i",{staticClass:"el-icon-time"}),i("span",[e._v("暂无聊天记录...")])])]),e._l(e.messages,(function(t,s){return i("div",{key:s,staticClass:"mini-im-chat-message-box",class:{self:t.from_account!=e.seviceCurrentUser.id}},["text"==t.biz_type||"photo"==t.biz_type||"knowledge"==t.biz_type||"knowledge_list"==t.biz_type?[i("div",{staticClass:"user-date"},[t.from_account==e.adminInfo.id?i("span",[e._v("\n "+e._s(e.adminInfo.nickname||e.adminInfo.username)+"\n ")]):t.from_account==e.seviceCurrentUser.from_account?i("span",[e._v("\n "+e._s(e.seviceCurrentUser.nickname)+"\n ")]):i("span",[i("span",{staticStyle:{"font-size":"12px",color:"#666"}},[e._v("(机器人)")]),e._v(e._s(e.$robotNickname(t.from_account))+"\n ")]),i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))])])]:e._e(),"text"==t.biz_type?[i("div",{staticClass:"text"},[t.from_account==e.adminInfo.id&&t.isShowCancel?i("div",{staticClass:"cancel-btn",attrs:{title:"撤回本条消息"},on:{click:function(){return e.onCancelMessage(t.key)}}},[e._v("\n 撤回\n ")]):e._e(),i("span",{domProps:{innerHTML:e._s(t.payload.replace(/\n/gi,"<br />"))}})])]:e._e(),"photo"==t.biz_type?[i("div",{staticClass:"photo"},[t.percent&&100!=t.percent?i("div",{staticClass:"loading"},[i("i",{staticClass:"el-icon-loading"}),i("span",[e._v(e._s(t.percent)+"%")])]):e._e(),t.from_account==e.adminInfo.id&&t.isShowCancel?i("div",{staticClass:"cancel-btn",attrs:{title:"撤回本条消息"},on:{click:function(){return e.onCancelMessage(t.key)}}},[e._v("\n 撤回\n ")]):e._e(),i("div",{staticClass:"img-content"},[i("img",{attrs:{src:t.payload,preview:"1"}})])])]:e._e(),"transfer"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),i("span",[e._v(e._s(t.payload))])])]:e._e(),"end"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),t.to_account!=e.adminInfo.id?i("span",[e._v("你结束了会话")]):i("span",[e._v("对方结束了会话")])])]:e._e(),"timeout"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),i("span",[e._v(e._s(t.payload))])])]:e._e(),"cancel"==t.biz_type?[i("div",{staticClass:"system"},[i("em",[e._v(e._s(e.$formatFromNowDate(t.timestamp)))]),t.from_account==e.adminInfo.id?i("span",[e._v("您撤回了一条消息")]):i("span",[e._v("对方撤回了一条消息")])])]:e._e(),"knowledge"==t.biz_type?[i("div",{staticClass:"knowledge"},[i("div",{staticClass:"content"},[i("div",{staticClass:"title"},[e._v("以下是否是您关心的相关问题呢?")]),e._l(JSON.parse(t.payload),(function(t,s){return i("div",{key:s,staticClass:"item"},[e._v("\n "+e._s(s+1)+"."+e._s(t.title)+"\n ")])}))],2)])]:e._e()],2)}))],2)},D=[],A={name:"mini-im-contact",data:function(){return{}},computed:{seviceCurrentUser:function(){return this.$store.getters.seviceCurrentUser||{}},adminInfo:function(){return this.$store.getters.adminInfo||{}}},props:{loading:Boolean,onCancelMessage:Function,messages:Array,onLoadMor:Function,isMessageEnd:Boolean},watch:{messages:function(){var e=this;setTimeout((function(){e.$previewRefresh()}),1e3)}}},B=A,G=(i("8e33"),Object(m["a"])(B,j,D,!1,null,"0d97b064",null)),K=G.exports,W=i("fb21"),H=i("b730"),q=i.n(H),J=i("2f62");function Y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function X(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(i),!0).forEach((function(t){Object(o["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Q={name:"workbench",components:{EmojiComponent:f,ContactComponent:b,UserInfoComponent:x,ChatWindowComponent:K,CreateShortcutComponent:O,EditShortcutComponent:z},data:function(){return{chatValue:"",advanceText:"",admins:[],shortcuts:[],shortcutKey:"",createShortcutDialogFormVisible:!1,editShortcutDialogFormVisible:!1,editShortcutItem:null,shortcutEditVisible:!1,getMessageRecordLoading:!0,chatWindowLoading:!1,currentSessionIsEnd:!1,getMessageRecordPageSize:20,isInputPongIng:!1,isSendPong:!1,inputPongIngString:"对方正在输入...",isPush:!1,isMessageEnd:!1,mousemoveTimerout:null,isFirstRequestMessageEnd:!1}},computed:X({filterShortcuts:function(){var e=this.shortcutKey.trim();return""!=e?this.shortcuts.filter((function(t){return-1!=t.title.indexOf(e)})):this.shortcuts},filterAdmins:function(){var e=this;return this.admins.filter((function(t){return t.id!=e.adminInfo.id&&(1==t.online||2==t.online)}))}},Object(J["b"])(["contacts","adminInfo","seviceCurrentUser","messageRecord"])),mounted:function(){var e=this;document.ondblclick=function(){e.shortcutEditVisible=!1},this.init(),document.addEventListener("mousemove",this.onMousemoveEvent,!1),document.addEventListener("paste",this.inputPaste,!1),setInterval((function(){return e.$store.dispatch("ON_GET_CONTACTS")}),5e3)},beforeDestroy:function(){document.removeEventListener("mousemove",this.onMousemoveEvent,!1),document.removeEventListener("paste",this.inputPaste,!1),this.changeCurrentUser()},methods:{init:function(){var e=this;if(!this.adminInfo)return this.$store.dispatch("ON_GET_ME"),void setTimeout((function(){return e.init()}),100);this.getShortcuts(),this.chatWindowLoading=!0,setTimeout((function(){e.chatWindowLoading=!1}),1500),setTimeout((function(){var t,i=e.$store.getters.seviceCurrentUser.id||e.$route.query.uid;(e.changeCurrentUser(i||0),i)&&(e.contacts.map((function(e){e.from_account==i&&(t=e)})),history.replaceState(null,null,location.href.replace(/uid=\d+/i,"uid="+i)),e.$store.commit("onChangeSeviceCurrentUser",t),t&&e.selectUser(t),e.getMessageRecord(),e.scrollIntoBottom())}),1e3),this.$mimcInstance.addEventListener("statusChange",(function(t){1==e.adminInfo.online?e.$message.success("您当前状态为在线"):2==e.adminInfo.online&&e.$message.warning("您当前状态为繁忙"),t||e.$store.dispatch("ON_GET_ME").then((function(){0!=e.adminInfo.online&&(e.onLongTraining(),e.init())}))})),this.$mimcInstance.addEventListener("receiveP2PMsg",this.receiveP2PMsg),this.$mimcInstance.addEventListener("disconnect",(function(){console.log("链接断开!"),e.isLogin=!1,e.onLongTraining();var t=e.adminInfo;0!=t.online?(e.$store.commit("onChangeAdminInfo",null),e.init()):(t.online=0,e.$store.commit("onChangeAdminInfo",t))}))},onLongTraining:function(){var e=this;this.$mimcInstance.user.isLogin()||(console.log("长轮训获取新消息.."),this.$store.dispatch("ON_GET_CONTACTS"),this.getMessageRecord(),this.scrollIntoBottom(),setTimeout((function(){return e.onLongTraining()}),2e3))},onMousemoveEvent:function(){var e=this;this.$refs.miniImChatViewBontentBody&&(this.$refs.miniImChatViewBontentBody.style.height=document.body.clientHeight-155+"px"),this.isPush=!1,this.mousemoveTimerout&&clearTimeout(this.mousemoveTimerout),this.mousemoveTimerout=setTimeout((function(){e.isPush=!0}),3e4)},enterShift:function(e){"Enter"!=e.code&&(this.chatValue=this.chatValue+"\n")},scrollIntoBottom:function(){try{setTimeout((function(){var e=document.getElementById("chatBody");if(e){var t=e.clientHeight,i=e.scrollHeight;e.scrollTop=i-t}}),50)}catch(e){console.log(e)}},deleteContact:function(e){var t=this;e&&e.cid&&S.a.delete("/contact/"+e.cid).then((function(){t.$message.success("删除成功"),t.$store.dispatch("ON_GET_CONTACTS"),t.seviceCurrentUser.id==e.id&&(t.changeCurrentUser(),t.$store.commit("onChangeSeviceCurrentUser",null))})).catch((function(e){t.$message.error(e.response.data.message)}))},clearContact:function(){var e=this;this.$confirm("您确定要清空列表吗? ","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){S.a.delete("/contact/clear").then((function(){e.$message.success("清空成功"),e.$store.dispatch("ON_GET_CONTACTS"),e.changeCurrentUser(),e.$store.commit("onChangeSeviceCurrentUser",null)})).catch((function(t){e.$message.error(t.response.data.message)}))}))},clickEmoji:function(e){0!=this.adminInfo.online?1!=this.seviceCurrentUser.is_session_end?(this.chatValue=this.chatValue+e,this.$refs.chatValueDom.focus()):this.$message.info("当前会话已结束!"):this.$message.info("您当前为离线状态!")},checkShortcut:function(e){0!=this.adminInfo.online?1!=this.seviceCurrentUser.is_session_end?(this.shortcutKey="",this.chatValue=e,this.$refs.chatValueDom.focus()):this.$message.info("当前会话已结束!"):this.$message.info("您当前为离线状态!")},getShortcuts:function(){var e=this;S.a.get("/shortcut/list").then((function(t){e.shortcuts=t.data.data})).catch((function(t){e.$message.error(t.response.data.message)}))},editShortcut:function(e){this.editShortcutItem=e,this.editShortcutDialogFormVisible=!0},getAdmins:function(){var e=this;S.a.post("/admin/list",{page_on:1,page_size:1e4,online:3}).then((function(t){e.loading=!1,e.admins=t.data.data.list})).catch((function(t){e.$message.error(t.response.data.message)}))},deleteShortcut:function(e){var t=this;this.$confirm("您确定要删除该快捷语吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){S.a.delete("/shortcut/"+e.id).then((function(){t.$message.success("删除成功"),t.getShortcuts()})).catch((function(e){t.$message.error(e.response.data.message)}))}))},onCancelMessage:function(e){var t=this.$mimcInstance.sendMessage("cancel",this.seviceCurrentUser.from_account,e);this.messageRecord.list.push(t),S.a.post("/public/message/cancel",{to_account:this.seviceCurrentUser.from_account,from_account:this.adminInfo.id,key:e}),this.removeMessage(this.adminInfo.id,e),this.qiniuObservable&&this.qiniuObservable.unsubscribe()},transferCustomer:function(e){var t=this;this.$confirm("您确定将该客户转接给 "+(e.nickname||e.username)+" 吗?","温馨提示!",{confirmButtonText:"转接",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){S.a.post("/contact/transfer",{to_account:e.id,user_account:t.seviceCurrentUser.from_account}).then((function(){var e=t.seviceCurrentUser;e.is_session_end=1,t.$store.commit("onChangeSeviceCurrentUser",e)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},closeSession:function(){var e=this;this.$confirm("您确定结束当前会话吗?强制结束可能会被客户投诉!","温馨提示!",{confirmButtonText:"结束",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){var t=e.$mimcInstance.sendMessage("end",e.seviceCurrentUser.from_account,"");e.messageRecord.list.push(t);var i=e.seviceCurrentUser;i.is_session_end=1,e.$store.commit("onChangeSeviceCurrentUser",i)}))},changeUserOnlineStatus:function(e){var t=this;S.a.put("/admin/online/"+e).then((function(){t.$store.dispatch("ON_GET_ME"),0==e&&t.$message.info("当前状态为离线")})).catch((function(e){t.$message.error(e.response.data.message)}))},online:function(e){var t=this;t.adminInfo.online!=e&&t.$confirm("您确定"+(0==e?"下线":1==e?"上线":"设置繁忙")+"吗!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){0==e?(t.$mimcInstance.logout(),t.changeUserOnlineStatus(e),t.$store.commit("onChangeMimcUser",null)):t.$mimcInstance.login((function(){t.changeUserOnlineStatus(e),t.$store.dispatch("ON_RUN_LAST_ACTiIVITY"),t.$store.dispatch("ON_GET_CONTACTS"),t.$store.commit("onChangeMimcUser",t.$mimcInstance.user)}))}))},receiveP2PMsg:function(e){var t=this,i=parseInt(((new Date).getTime()+"").substr(0,10));if(e.timestamp=parseInt((e.timestamp+"").substr(0,10)),(e.from_account!=this.adminInfo.id||"pong"!=e.biz_type)&&"into"!=e.biz_type){if(e.from_account==this.adminInfo.id&&this.seviceCurrentUser.from_account==e.to_account)return this.messageRecord.list.push(e),"cancel"==e.biz_type&&this.removeMessage(e.from_account,e.payload),this.scrollIntoBottom(),void this.$previewRefresh();if("text"==e.biz_type&&e.from_account==this.seviceCurrentUser.from_account&&(this.advanceText=""),"contacts"!=e.biz_type){if(!(i-e.timestamp>=60))if("cancel"==e.biz_type&&this.removeMessage(e.from_account,e.payload),"handshake"!=e.biz_type){if("pong"==e.biz_type&&e.from_account==this.seviceCurrentUser.from_account)return this.advanceText=e.payload,void this.inputPongIng();if("contacts"!=e.biz_type&&"pong"!=e.biz_type&&"welcome"!=e.biz_type&&"cancel"!=e.biz_type&&"handshake"!=e.biz_type&&"end"!=e.biz_type&&"timeout"!=e.biz_type&&this.isPush&&q.a.Permission.has()&&q.a.create("收到一条新消息",{body:e.payload,icon:this.$store.state.pushIcon,timeout:5e3,onClick:function(){t.$router.push({path:"/workbench?uid="+e.from_account}),window.focus(),setTimeout((function(){return t.getMessageRecord()}),1e3)}}),e.from_account==this.seviceCurrentUser.from_account||"timeout"==e.biz_type){if("end"==e.biz_type){var s=this.seviceCurrentUser;s.is_session_end=1,this.$store.commit("onChangeSeviceCurrentUser",s),this.advanceText=""}this.messageRecord.list.push(e);var n=JSON.stringify(this.messageRecord);this.$store.commit("onChangeMessageRecord",JSON.parse(n)),this.scrollIntoBottom(),this.$previewRefresh()}}else setTimeout((function(){t.$mimcInstance.sendMessage("text",e.from_account,t.adminInfo.auto_reply),void 0!=t.seviceCurrentUser&&null!=t.seviceCurrentUser&&setTimeout((function(){return t.getMessageRecord()}),1e3)}),500)}else{var o=JSON.parse(e.payload);this.$store.commit("onChangeContacts",o)}}},changeCurrentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"{}"!=JSON.stringify(this.adminInfo)&&S.a.get("/admin/current/user/"+e)},sendMessage:function(){if(0!=this.adminInfo.online){if(1!=this.seviceCurrentUser.is_session_end)if(1!=this.seviceCurrentUser.is_session_end){var e=this.chatValue.trim();if(""!=e){this.shortcutEditVisible=!1,this.scrollIntoBottom();var t=this.$mimcInstance.sendMessage("text",this.seviceCurrentUser.from_account,this.chatValue.trim("\n"));t.isShowCancel=!0,setTimeout((function(){return t.isShowCancel=!1}),1e4),this.messageRecord.list.push(t),this.chatValue=""}else this.chatValue=""}else this.$message.info("当前会话已结束!")}else this.$message.info("您当前为离线状态!")},sendPhotoMessageEvent:function(e){var t=e.target,i=t.files[0];this.sendPhotoMessage(i)},sendPhotoMessage:function(e){if(0!=this.adminInfo.online)if(1!=this.seviceCurrentUser.is_session_end){var t=new FileReader;t.readAsDataURL(e);var i,s=this;t.onload=function(){i=s.$mimcInstance.createLocalMessage("photo",s.seviceCurrentUser.from_account,this.result),i["percent"]=0,i.isShowCancel=!0,s.messageRecord.list.push(i),setTimeout((function(){return i.isShowCancel=!1}),1e4),s.$previewRefresh(),s.scrollIntoBottom(),Object(W["a"])({file:e,progress:function(e){i.percent=e},success:function(e){i.percent=100;var t=s.$store.getters.configs.upload_host+"/"+e;s.$mimcInstance.sendMessage("photo",s.seviceCurrentUser.from_account,t)},error:function(e){i.percent=0,s.$message.error(e.message)}})}}else this.$message.info("当前会话已结束!");else this.$message.info("您当前为离线状态!")},selectUser:function(e){var t=location.href,i=t.indexOf("#");t=t.substr(0,-1!=i?i:t.length),history.replaceState(null,null,t+"#/workbench?uid="+e.from_account),this.isMessageEnd=!1,this.isFirstRequestMessageEnd=!1,this.seviceCurrentUser.from_account!=e.from_account&&(this.messageRecord.list=[],this.$store.commit("onChangeSeviceCurrentUser",e),this.changeCurrentUser(e.from_account)),this.timestamp=void 0,this.getMessageRecord(),this.advanceText=""},getMessageRecord:function(e){var t=this;this.getMessageRecordLoading=!0,void 0==e&&(e=0);var i=parseInt(this.seviceCurrentUser.from_account);i&&S.a.post("/message/list",{timestamp:e,page_size:this.getMessageRecordPageSize,account:i}).then((function(i){for(var s=i.data.data.list,n=0;n<s.length;n++)s[n].payload=window.Base64.decode(s[n].payload);t.getMessageRecordLoading=!1,s.length<t.getMessageRecordPageSize&&(t.isFirstRequestMessageEnd=!0),0==t.messageRecord.list.length||0==e?(t.$store.commit("onChangeMessageRecord",i.data.data),t.scrollIntoBottom()):(i.data.data.list=s.concat(t.messageRecord.list),t.$store.commit("onChangeMessageRecord",i.data.data)),setTimeout((function(){return t.$previewRefresh()}),1e3),t.$store.dispatch("ON_GET_CONTACTS")})).catch((function(){t.getMessageRecordLoading=!1}))},getHistoryMessageRecord:function(e){var t=this;if(this.getMessageRecordLoading=!0,void 0!=e&&0!=e){var i=parseInt(this.seviceCurrentUser.from_account);i&&S.a.post("/message/history",{timestamp:e,page_size:this.getMessageRecordPageSize,account:i}).then((function(e){for(var i=e.data.data.list,s=0;s<i.length;s++)i[s].payload=window.Base64.decode(i[s].payload);t.getMessageRecordLoading=!1,i.length<t.getMessageRecordPageSize&&(t.isMessageEnd=!0),e.data.data.list=i.concat(t.messageRecord.list),t.$store.commit("onChangeMessageRecord",e.data.data),setTimeout((function(){return t.$previewRefresh()}),1e3),t.$store.dispatch("ON_GET_CONTACTS")})).catch((function(){t.getMessageRecordLoading=!1}))}else this.isMessageEnd=!0},onLoadMorMessage:function(){this.getMessageRecordLoading||(this.isFirstRequestMessageEnd?this.getHistoryMessageRecord(this.messageRecord.list[0].timestamp):this.getMessageRecord(this.messageRecord.list[0].timestamp),setTimeout((function(){var e=document.getElementById("chatBody");e.scrollTop=500}),50))},inputPongIng:function(){var e=this;this.isInputPongIng||(this.isInputPongIng=!0,setTimeout((function(){e.inputPongIngString="对方正在输入."}),500),setTimeout((function(){e.inputPongIngString="对方正在输入.."}),1500),setTimeout((function(){e.inputPongIngString="对方正在输入...",e.isInputPongIng=!1}),3e3))},keyUpEvent:function(){var e=this;this.isSendPong||(this.isSendPong=!0,setTimeout((function(){return e.isSendPong=!1}),500),this.$mimcInstance.sendMessage("pong",this.seviceCurrentUser.from_account,""))},removeMessage:function(e,t){for(var i=[],s=this.messageRecord.list,n=0;n<s.length;n++)s[n].key==t&&s[n].from_account==e||i.push(s[n]);this.messageRecord.list=i,this.$store.commit("onChangeMessageRecord",this.messageRecord)},inputPaste:function(e){if(this.seviceCurrentUser.id&&1!=this.seviceCurrentUser.is_session_end){var t=this,i=e.clipboardData,s=window.navigator.userAgent;if(e.clipboardData&&e.clipboardData.items&&!(i.items&&2===i.items.length&&"string"===i.items[0].kind&&"file"===i.items[1].kind&&i.types&&2===i.types.length&&"text/plain"===i.types[0]&&"Files"===i.types[1]&&s.match(/Macintosh/i)&&Number(s.match(/Chrome\/(\d{2})/i)[1])<49))for(var n=0;n<i.items.length;n++){var o=i.items[n];if("file"==o.kind){var a=o.getAsFile();if(0===a.size)return;var r=new FileReader;r.readAsDataURL(a),r.onload=function(){var e=this.result;t.$alert('<img preview="1" style="width:100%;max-height: 500px;" src="'+e+'" />',"检测到图片是否要发送?",{dangerouslyUseHTMLString:!0,showCancelButton:!0,confirmButtonText:"发送"}).then((function(){t.sendPhotoMessage(a)})),t.$previewRefresh()}}}}}},watch:{messageRecord:function(){this.$previewRefresh()}}},Z=Q,ee=(i("e72d"),Object(m["a"])(Z,s,n,!1,null,"783efe80",null));t["default"]=ee.exports},"2b0b":function(e,t,i){"use strict";var s=i("752b"),n=i.n(s);n.a},"454f":function(e,t,i){i("46a7");var s=i("584a").Object;e.exports=function(e,t,i){return s.defineProperty(e,t,i)}},"456d":function(e,t,i){var s=i("4bf8"),n=i("0d58");i("5eda")("keys",(function(){return function(e){return n(s(e))}}))},"46a7":function(e,t,i){var s=i("63b6");s(s.S+s.F*!i("8e60"),"Object",{defineProperty:i("d9f6").f})},4917:function(e,t,i){"use strict";var s=i("cb7c"),n=i("9def"),o=i("0390"),a=i("5f1b");i("214f")("match",1,(function(e,t,i,r){return[function(i){var s=e(this),n=void 0==i?void 0:i[t];return void 0!==n?n.call(i,s):new RegExp(i)[t](String(s))},function(e){var t=r(i,e,this);if(t.done)return t.value;var c=s(e),l=String(this);if(!c.global)return a(c,l);var u=c.unicode;c.lastIndex=0;var m,d=[],f=0;while(null!==(m=a(c,l))){var h=String(m[0]);d[f]=h,""===h&&(c.lastIndex=o(l,n(c.lastIndex),u)),f++}return 0===f?null:d}]}))},"4f37":function(e,t,i){"use strict";i("aa77")("trim",(function(e){return function(){return e(this,3)}}))},"58b2":function(e,t,i){var s=i("5ca1");s(s.S+s.F*!i("9e1e"),"Object",{defineProperties:i("1495")})},"5dbc":function(e,t,i){var s=i("d3f4"),n=i("8b97").set;e.exports=function(e,t,i){var o,a=t.constructor;return a!==i&&"function"==typeof a&&(o=a.prototype)!==i.prototype&&s(o)&&n&&n(e,o),e}},"5eda":function(e,t,i){var s=i("5ca1"),n=i("8378"),o=i("79e5");e.exports=function(e,t){var i=(n.Object||{})[e]||Object[e],a={};a[e]=t(i),s(s.S+s.F*o((function(){i(1)})),"Object",a)}},"752b":function(e,t,i){},7919:function(e,t,i){},"85f2":function(e,t,i){e.exports=i("454f")},"8b97":function(e,t,i){var s=i("d3f4"),n=i("cb7c"),o=function(e,t){if(n(e),!s(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,s){try{s=i("9b43")(Function.call,i("11e9").f(Object.prototype,"__proto__").set,2),s(e,[]),t=!(e instanceof Array)}catch(n){t=!0}return function(e,i){return o(e,i),t?e.__proto__=i:s(e,i),e}}({},!1):void 0),check:o}},"8e33":function(e,t,i){"use strict";var s=i("1f3c"),n=i.n(s);n.a},"8e6e":function(e,t,i){var s=i("5ca1"),n=i("990b"),o=i("6821"),a=i("11e9"),r=i("f1ae");s(s.S,"Object",{getOwnPropertyDescriptors:function(e){var t,i,s=o(e),c=a.f,l=n(s),u={},m=0;while(l.length>m)i=c(s,t=l[m++]),void 0!==i&&r(u,t,i);return u}})},9093:function(e,t,i){var s=i("ce10"),n=i("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},"990b":function(e,t,i){var s=i("9093"),n=i("2621"),o=i("cb7c"),a=i("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=s.f(o(e)),i=n.f;return i?t.concat(i(e)):t}},a481:function(e,t,i){"use strict";var s=i("cb7c"),n=i("4bf8"),o=i("9def"),a=i("4588"),r=i("0390"),c=i("5f1b"),l=Math.max,u=Math.min,m=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,h=function(e){return void 0===e?e:String(e)};i("214f")("replace",2,(function(e,t,i,g){return[function(s,n){var o=e(this),a=void 0==s?void 0:s[t];return void 0!==a?a.call(s,o,n):i.call(String(o),s,n)},function(e,t){var n=g(i,e,this,t);if(n.done)return n.value;var m=s(e),d=String(this),f="function"===typeof t;f||(t=String(t));var p=m.global;if(p){var _=m.unicode;m.lastIndex=0}var b=[];while(1){var C=c(m,d);if(null===C)break;if(b.push(C),!p)break;var y=String(C[0]);""===y&&(m.lastIndex=r(d,o(m.lastIndex),_))}for(var w="",S=0,$=0;$<b.length;$++){C=b[$];for(var I=String(C[0]),k=l(u(a(C.index),d.length),0),x=[],M=1;M<C.length;M++)x.push(h(C[M]));var T=C.groups;if(f){var E=[I].concat(x,k,d);void 0!==T&&E.push(T);var U=String(t.apply(void 0,E))}else U=v(I,d,k,x,T,t);k>=S&&(w+=d.slice(S,k)+U,S=k+I.length)}return w+d.slice(S)}];function v(e,t,s,o,a,r){var c=s+e.length,l=o.length,u=f;return void 0!==a&&(a=n(a),u=d),i.call(r,u,(function(i,n){var r;switch(n.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,s);case"'":return t.slice(c);case"<":r=a[n.slice(1,-1)];break;default:var u=+n;if(0===u)return i;if(u>l){var d=m(u/10);return 0===d?i:d<=l?void 0===o[d-1]?n.charAt(1):o[d-1]+n.charAt(1):i}r=o[u-1]}return void 0===r?"":r}))}}))},aa77:function(e,t,i){var s=i("5ca1"),n=i("be13"),o=i("79e5"),a=i("fdef"),r="["+a+"]",c="​…",l=RegExp("^"+r+r+"*"),u=RegExp(r+r+"*$"),m=function(e,t,i){var n={},r=o((function(){return!!a[e]()||c[e]()!=c})),l=n[e]=r?t(d):a[e];i&&(n[i]=l),s(s.P+s.F*r,"String",n)},d=m.trim=function(e,t){return e=String(n(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=m},ac6a:function(e,t,i){for(var s=i("cadf"),n=i("0d58"),o=i("2aba"),a=i("7726"),r=i("32e9"),c=i("84f2"),l=i("2b4c"),u=l("iterator"),m=l("toStringTag"),d=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=n(f),g=0;g<h.length;g++){var v,p=h[g],_=f[p],b=a[p],C=b&&b.prototype;if(C&&(C[u]||r(C,u,d),C[m]||r(C,m,p),c[p]=d,_))for(v in s)C[v]||o(C,v,s[v],!0)}},bd86:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("85f2"),n=i.n(s);function o(e,t,i){return t in e?n()(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},c5f6:function(e,t,i){"use strict";var s=i("7726"),n=i("69a8"),o=i("2d95"),a=i("5dbc"),r=i("6a99"),c=i("79e5"),l=i("9093").f,u=i("11e9").f,m=i("86cc").f,d=i("aa77").trim,f="Number",h=s[f],g=h,v=h.prototype,p=o(i("2aeb")(v))==f,_="trim"in String.prototype,b=function(e){var t=r(e,!1);if("string"==typeof t&&t.length>2){t=_?t.trim():d(t,3);var i,s,n,o=t.charCodeAt(0);if(43===o||45===o){if(i=t.charCodeAt(2),88===i||120===i)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:s=2,n=49;break;case 79:case 111:s=8,n=55;break;default:return+t}for(var a,c=t.slice(2),l=0,u=c.length;l<u;l++)if(a=c.charCodeAt(l),a<48||a>n)return NaN;return parseInt(c,s)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof h&&(p?c((function(){v.valueOf.call(i)})):o(i)!=f)?a(new g(b(t)),i,h):b(t)};for(var C,y=i("9e1e")?l(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;y.length>w;w++)n(g,C=y[w])&&!n(h,C)&&m(h,C,u(g,C));h.prototype=v,v.constructor=h,i("2aba")(s,f,h)}},d25f:function(e,t,i){"use strict";var s=i("5ca1"),n=i("0a49")(2);s(s.P+s.F*!i("2f21")([].filter,!0),"Array",{filter:function(e){return n(this,e,arguments[1])}})},e72d:function(e,t,i){"use strict";var s=i("7919"),n=i.n(s);n.a},eef3:function(e,t){var i=["😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤩","🤔","🤨","😐","😑","😶","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😒","😓","😔","😕","🙃","🤑","😲","🙁","😖","😞","😟","😤","😢","😭","😦","😧","😨","😩","🤯","😬","😰","😱","😳","🤪","😵","😡","😠","🤬","😷","🤒","🤕","🤢","🤮","🤧","😇","🤠","🤡","🤥","🤫","🤭","🧐","🤓","😈","👿","👹","👺","💀","👻","👽","🤖","💩","😺","😸","😹","😻","😼","😽","🙀","😿","😾","🤲","👐","🙌","👏","🤝","👍","👎","👊","✊","🤛","🤜","🤞","✌️","🤟","🤘","👌","👈","👉","👆","👇","☝️","✋","🤚","🖐","🖖","👋","🤙","💪","🖕","✍️","🙏"];t.emojiData=i},f1ae:function(e,t,i){"use strict";var s=i("86cc"),n=i("4630");e.exports=function(e,t,i){t in e?s.f(e,t,n(0,i)):e[t]=i}},f3e2:function(e,t,i){"use strict";var s=i("5ca1"),n=i("0a49")(0),o=i("2f21")([].forEach,!0);s(s.P+s.F*!o,"Array",{forEach:function(e){return n(this,e,arguments[1])}})},fa4e:function(e,t,i){},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-132fc719.a41480f1.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-132fc719.078733a8.js.map
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
{"version":3,"sources":["webpack:///./src/components/me-aside.vue?48f3","webpack:///./src/views/index.vue?eda4","webpack:///./src/components/me-aside.vue?18e6","webpack:///src/components/me-aside.vue","webpack:///./src/components/me-aside.vue?761f","webpack:///./src/components/me-aside.vue?0e9e","webpack:///./src/components/me-header.vue?3499","webpack:///src/components/me-header.vue","webpack:///./src/components/me-header.vue?8b81","webpack:///./src/components/me-header.vue?2fbe","webpack:///./src/components/me-edit-profile.vue?305a","webpack:///src/components/me-edit-profile.vue","webpack:///./src/components/me-edit-profile.vue?b167","webpack:///./src/components/me-edit-profile.vue?9dbb","webpack:///./src/components/me-edit-password.vue?fb44","webpack:///src/components/me-edit-password.vue","webpack:///./src/components/me-edit-password.vue?7d42","webpack:///./src/components/me-edit-password.vue","webpack:///src/views/index.vue","webpack:///./src/views/index.vue?a66e","webpack:///./src/views/index.vue?25f9","webpack:///./src/components/me-edit-profile.vue?3f81","webpack:///./src/components/me-header.vue?35bc","webpack:///./src/assets/kefu_logo.png","webpack:///./src/views/index.vue?c757"],"names":["render","_vm","this","_h","$createElement","_c","_self","$store","state","_e","staticStyle","staticClass","attrs","style","workbenchBgColor","staticRenderFns","on","$event","$router","push","path","getters","systemInfo","logo","Date","now","menuActive","slot","_v","readCount","workOrderCounts","status0","name","data","mounted","methods","setHeaderTitle","title","$route","commit","watch","component","isShowAside","_s","heaserTitle","handleCommand","avatar","nickname","bgColor","props","String","logout","console","log","error","editDialogFormVisible","$set","form","formLabelWidth","changeFile","directives","rawName","value","expression","uploadPercent","username","model","callback","$$v","closeModal","save","computed","adminInfo","lock","text","spinner","background","loading","close","editPasswordDialogFormVisible","dialogFormVisible","Boolean","resize","components","MeAside","module","exports"],"mappings":"kHAAA,yBAA+gB,EAAG,G,2CCAlhB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAAEJ,EAAIM,OAAOC,MAAiB,YAAEH,EAAG,YAAYJ,EAAIQ,KAAKJ,EAAG,eAAe,CAACK,YAAY,CAAC,YAAY,UAAU,CAACL,EAAG,YAAY,CAACM,YAAY,kBAAkB,CAACN,EAAG,YAAY,CAACO,MAAM,CAAC,MAAQ,YAAY,GAAGP,EAAG,UAAU,CAACQ,MAAO,oBAAsBZ,EAAIa,kBAAmB,CAACT,EAAG,gBAAgB,IAAI,GAAGA,EAAG,eAAeA,EAAG,iBAAiB,IAC7bU,EAAkB,GCDlB,EAAS,WAAa,IAAId,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,WAAW,CAACM,YAAY,gBAAgBC,MAAM,CAAC,MAAQ,UAAU,CAACP,EAAG,MAAM,CAACM,YAAY,eAAeK,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOhB,EAAIiB,QAAQC,KAAK,CAAEC,KAAM,cAAc,CAAEnB,EAAIM,OAAOc,QAAQC,WAAe,KAAEjB,EAAG,MAAM,CAACA,EAAG,MAAM,CAACO,MAAM,CAAC,IAAMX,EAAIM,OAAOc,QAAQC,WAAWC,KAAO,OAASC,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,CAACrE,EAAI2B,GAAG,UAAU,IAAI,IAC79C,EAAkB,GCoBtB,GACEI,KAAM,2BACNC,KAFF,WAGI,MAAO,CACL,KAAN,CACQ,aAAR,GACQ,aAAR,GACQ,eAAR,IAEM,aAAN,EACM,eAAN,SAGEgB,MAAF,CACI+B,kBAAmBC,SAErB/C,QAhBF,aAkBEC,QAAS,CAEPkC,WAFJ,WAGMnE,KAAKgF,SACLhF,KAAKK,OAAOgC,OAAO,yCAAyC,IAG9D+B,KAPJ,WAOA,WAEA,iBACQG,MAAM,EACNC,KAAM,SACNC,QAAS,kBACTC,WAAY,uBAEd,EAAN,mCACA,kBACQ,QAAR,OACQ,EAAR,QACQ,EAAR,2BACQ,EAAR,aACQ,EAAR,YAEA,mBACQC,EAAQC,QACR,EAAR,4CAIII,OA7BJ,WA8BMhF,KAAKuD,KAAO,CACV,aAAR,GACQ,aAAR,GACQ,eAAR,OCxE6X,ICOzX,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,I,QCKf,GACEzB,KAAM,OACNmD,WAAY,CACVC,QAAJ,EAAI,SAAJ,EAAI,YAAJ,EAAI,aAAJ,GAEEb,SAAU,CACRzD,iBADJ,WAEM,MAAN,+BACeZ,KAAKK,OAAOc,QAAQP,iBAEtB,aCjCqW,ICQ9W,G,UAAY,eACd,EACAd,EACAe,GACA,EACA,KACA,WACA,OAIa,e,oECnBf,yBAA8iB,EAAG,G,oCCAjjB,yBAAwiB,EAAG,G,uBCA3iBsE,EAAOC,QAAU,IAA0B,8B,6GCA3C,yBAAoiB,EAAG","file":"js/chunk-1e573615.0cb8b6aa.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',[(_vm.$store.state.isShowAside)?_c('me-aside'):_vm._e(),_c('el-container',{staticStyle:{\"min-width\":\"800px\"}},[_c('el-header',{staticClass:\"mini-im-header\"},[_c('me-heaser',{attrs:{\"title\":\"sdfsd\"}})],1),_c('el-main',{style:('background-color:' + _vm.workbenchBgColor)},[_c('router-view')],1)],1),_c('EditProfile'),_c('EditPassword')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-aside',{staticClass:\"mini-im-aside\",attrs:{\"width\":\"200px\"}},[_c('div',{staticClass:\"mini-im-logo\",on:{\"click\":function($event){return _vm.$router.push({ path: '/index'})}}},[(_vm.$store.getters.systemInfo.logo)?_c('div',[_c('img',{attrs:{\"src\":_vm.$store.getters.systemInfo.logo + '?id=' + Date.now(),\"alt\":\"\"}})]):_c('div',[_c('img',{attrs:{\"src\":require(\"../assets/kefu_logo.png\"),\"alt\":\"\"}})])]),_c('el-menu',{staticClass:\"el-menu-vertical-demo\",attrs:{\"default-active\":_vm.menuActive,\"background-color\":\"#3e444a\",\"text-color\":\"#fff\",\"router\":true,\"active-text-color\":\"#ffd04b\"}},[_c('el-menu-item',{attrs:{\"index\":\"/index\"}},[_c('i',{staticClass:\"el-icon-s-home\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"首页\")])]),_c('el-menu-item',{attrs:{\"index\":\"/workbench\"}},[_c('el-badge',{staticStyle:{\"width\":\"100%\"},attrs:{\"hidden\":_vm.$store.getters.readCount == 0,\"value\":_vm.$store.getters.readCount,\"max\":99}},[_c('div',[_c('i',{staticClass:\"el-icon-s-platform\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工作台\")])])])],1),_c('el-menu-item',{attrs:{\"index\":\"/workorder\"}},[_c('el-badge',{staticStyle:{\"width\":\"100%\"},attrs:{\"hidden\":_vm.$store.getters.workOrderCounts.status0 == 0,\"value\":_vm.$store.getters.workOrderCounts.status0,\"max\":99}},[_c('div',[_c('i',{staticClass:\"el-icon-tickets\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工单管理\")])])])],1),_c('el-menu-item',{attrs:{\"index\":\"/knowledge\"}},[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库\")])]),_c('el-menu-item',{attrs:{\"index\":\"/robot\"}},[_c('i',{staticClass:\"el-icon-picture-outline-round\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"机器人\")])]),_c('el-menu-item',{attrs:{\"index\":\"/customer\"}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/users\"}},[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/chat_record\"}},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])]),_c('el-menu-item',{attrs:{\"index\":\"/system\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])],1),_c('div',{staticClass:\"fix-bottom\"},[_c('a',{attrs:{\"title\":\"去给作者Star\",\"target\":\"_blank\",\"href\":\"https://github.com/chenxianqi/kefu_server.git\"}},[_c('svg',{staticClass:\"github-logo\",attrs:{\"height\":\"23\",\"viewBox\":\"0 0 16 16\",\"version\":\"1.1\",\"width\":\"23\",\"aria-hidden\":\"true\"}},[_c('path',{attrs:{\"fill\":\"#fff\",\"fill-rule\":\"evenodd\",\"d\":\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"}})]),_c('span',[_vm._v(\" Github\")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-aside width=\"200px\" class=\"mini-im-aside\">\n <div class=\"mini-im-logo\" @click=\"$router.push({ path: '/index'})\">\n <div v-if=\"$store.getters.systemInfo.logo\"><img :src=\"$store.getters.systemInfo.logo + '?id=' + Date.now()\" alt=\"\"></div>\n <div v-else><img src=\"../assets/kefu_logo.png\" alt=\"\"></div>\n </div>\n <el-menu\n :default-active=\"menuActive\"\n class=\"el-menu-vertical-demo\"\n background-color=\"#3e444a\"\n text-color=\"#fff\"\n :router=\"true\"\n active-text-color=\"#ffd04b\"\n >\n <el-menu-item index=\"/index\">\n <i class=\"el-icon-s-home\"></i>\n <span slot=\"title\">首页</span>\n </el-menu-item>\n <el-menu-item index=\"/workbench\">\n <el-badge :hidden=\"$store.getters.readCount == 0\" :value=\"$store.getters.readCount\" :max=\"99\" style=\"width: 100%;\">\n <div>\n <i class=\"el-icon-s-platform\"></i>\n <span slot=\"title\">工作台</span>\n </div>\n </el-badge>\n </el-menu-item>\n <el-menu-item index=\"/workorder\">\n <el-badge :hidden=\"$store.getters.workOrderCounts.status0 == 0\" :value=\"$store.getters.workOrderCounts.status0\" :max=\"99\" style=\"width: 100%;\">\n <div>\n <i class=\"el-icon-tickets\"></i>\n <span slot=\"title\">工单管理</span>\n </div>\n </el-badge>\n </el-menu-item>\n <el-menu-item index=\"/knowledge\">\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库</span>\n </el-menu-item>\n <el-menu-item index=\"/robot\">\n <i class=\"el-icon-picture-outline-round\"></i>\n <span slot=\"title\">机器人</span>\n </el-menu-item>\n <el-menu-item index=\"/customer\">\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </el-menu-item>\n <el-menu-item index=\"/users\">\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </el-menu-item>\n <el-menu-item index=\"/chat_record\">\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </el-menu-item>\n <el-menu-item index=\"/system\">\n <i class=\"el-icon-setting\"></i>\n <span slot=\"title\">系统设置</span>\n </el-menu-item>\n \n </el-menu>\n <div class=\"fix-bottom\">\n <a title=\"去给作者Star\" target=\"_blank\" href=\"https://github.com/chenxianqi/kefu_server.git\">\n <svg class=\"github-logo\" height=\"23\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"23\" aria-hidden=\"true\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"></path></svg>\n <span> Github</span>\n </a>\n </div>\n </el-aside>\n</template>\n<script>\nexport default {\n name: 'mini-im-aside',\n data(){\n return {\n menuActive: \"/index\"\n }\n },\n mounted(){\n this.setHeaderTitle()\n },\n methods: {\n setHeaderTitle(){\n this.menuActive = this.$route.path\n var title\n switch(this.menuActive){\n case \"/index\":\n title = \"首页\"\n break\n case \"/workbench\":\n title = \"工作台\"\n break\n case \"/knowledge\":\n title = \"知识库\"\n break\n case \"/robot\":\n title = \"机器人\"\n break\n case \"/customer\":\n title = \"客服管理\"\n break\n case \"/workorder\":\n title = \"工单管理\"\n break\n case \"/users\":\n title = \"用户管理\"\n break\n case \"/system\":\n title = \"系统设置\"\n break\n }\n this.$store.commit(\"onChangeHeaserTitle\", title)\n }\n },\n watch: {\n \"$route\"(){\n this.setHeaderTitle()\n }\n }\n}\n</script>\n<style lang=\"stylus\">\n .mini-im-aside{\n background-color: #3e444a\n display flex\n flex-direction column\n .mini-im-logo{\n width 100%;\n height: 100px;\n display flex\n justify-content center\n flex-direction column\n align-items center\n border-bottom 1px solid #ddd\n img{\n height : 30px\n }\n }\n .el-menu{\n border-right 0\n }\n .el-badge__content{\n border 0\n top 30px\n }\n .fix-bottom{\n flex-grow 1\n display flex\n flex-direction column\n justify-content flex-end\n padding-bottom 30px\n a{\n cursor pointer\n padding 0 30px\n text-align center\n align-items center\n color #fff\n display flex\n align-content center\n .github-log{\n width 50px\n }\n span{\n margin-top 3px\n margin-left 5px\n }\n }\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-aside.vue?vue&type=template&id=73d02b9f&\"\nimport script from \"./me-aside.vue?vue&type=script&lang=js&\"\nexport * from \"./me-aside.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-aside.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-row',{attrs:{\"type\":\"flex\",\"justify\":\"end\",\"gutter\":20}},[_c('el-col',{attrs:{\"span\":5}},[_c('el-button',{staticClass:\"mini-im-button\",attrs:{\"type\":\"info\",\"icon\":_vm.$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'},on:{\"click\":function($event){return _vm.$store.commit('onChangeToggleAside', !_vm.$store.state.isShowAside)}}})],1),_c('el-col',{attrs:{\"span\":16}},[_c('div',{staticClass:\"mini-im-title\"},[_vm._v(_vm._s(_vm.$store.state.heaserTitle))])]),_c('el-col',{attrs:{\"span\":5}},[_c('el-row',{staticClass:\"mini-im-dropdown\",attrs:{\"type\":\"flex\",\"justify\":\"end\"}},[_c('el-dropdown',{attrs:{\"trigger\":\"click\"},on:{\"command\":_vm.handleCommand}},[_c('div',{staticClass:\"el-dropdown-link\"},[_c('el-avatar',{staticClass:\"mini-im-avatar\",attrs:{\"size\":25}},[_c('img',{attrs:{\"src\":_vm.$store.getters.avatar}})]),_c('span',{staticStyle:{\"padding\":\"0 5px\"}},[_vm._v(\" \"+_vm._s(_vm.$store.getters.nickname)+\" \")]),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})],1),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[_c('el-dropdown-item',{attrs:{\"command\":\"a\"}},[_c('i',{staticClass:\"el-icon-user icon\"}),_vm._v(\"\\n 修改资料\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"b\"}},[_c('i',{staticClass:\"el-icon-unlock icon\"}),_vm._v(\"\\n 修改密码\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"c\",\"divided\":\"\"}},[_c('i',{staticClass:\"el-icon-caret-right icon\"}),_vm._v(\"\\n 退出登录\\n \")])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-row type=\"flex\" justify=\"end\" :gutter=\"20\">\n <el-col :span=\"5\">\n <el-button\n @click=\"$store.commit('onChangeToggleAside', !$store.state.isShowAside)\"\n class=\"mini-im-button\"\n type=\"info\"\n :icon=\"$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'\"\n >\n </el-button>\n </el-col>\n <el-col :span=\"16\" >\n <div class=\"mini-im-title\">{{$store.state.heaserTitle}}</div>\n </el-col>\n <el-col :span=\"5\">\n <el-row type=\"flex\" justify=\"end\" class=\"mini-im-dropdown\">\n <el-dropdown @command=\"handleCommand\" trigger=\"click\">\n <div class=\"el-dropdown-link\">\n <el-avatar :size=\"25\" class=\"mini-im-avatar\">\n <img :src=\"$store.getters.avatar\"/>\n </el-avatar>\n <span style=\"padding:0 5px;\"> {{$store.getters.nickname}} </span>\n <i class=\"el-icon-arrow-down el-icon--right\"></i>\n </div>\n <el-dropdown-menu slot=\"dropdown\">\n <el-dropdown-item command=\"a\">\n <i class=\"el-icon-user icon\"></i>\n 修改资料\n </el-dropdown-item>\n <el-dropdown-item command=\"b\">\n <i class=\"el-icon-unlock icon\"></i>\n 修改密码\n </el-dropdown-item>\n <el-dropdown-item command=\"c\" divided>\n <i class=\"el-icon-caret-right icon\"></i>\n 退出登录\n </el-dropdown-item>\n </el-dropdown-menu>\n </el-dropdown>\n </el-row>\n </el-col>\n </el-row>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: \"mini-im-aside\",\n data(){\n return {\n bgColor: \"#ffffff\"\n }\n },\n props: {\n title: String\n },\n methods: {\n // 退出登录\n logout(){\n axios.put('/admin/online/0')\n axios.get('/auth/logout')\n .then(() => {\n this.$store.commit(\"onReset\")\n this.$store.commit(\"onChangeAdminInfo\", null)\n this.$router.push({ path: '/login'})\n this.$mimcInstance.logout()\n this.$store.commit(\"onIsLogin\", false)\n localStorage.clear()\n })\n .catch(error => {\n this.$message.error('退出失败')\n console.log(error)\n })\n },\n handleCommand(command){\n switch(command){\n case 'a':\n this.$store.commit(\"onChangeEditDialogFormVisible\", true)\n break\n case 'b':\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", true)\n break\n case 'c':\n this.$confirm('您确定要退出登录吗? ', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => this.logout())\n break\n\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-header {\n background-color: #545c64;\n border-bottom: 1px solid #545c64;\n .mini-im-dropdown{\n height 100%\n }\n .mini-im-button{\n border 0\n font-size 35px\n display block\n background 0\n padding-left 0\n }\n .mini-im-title{\n color #fff\n font-size 16px\n text-align center\n line-height 60px\n }\n .icon {\n color: #fff;\n }\n .el-dropdown-link {\n cursor: pointer;\n display flex\n height 100%\n line-height 60px\n align-items center\n color: #fff;\n }\n .el-icon-arrow-down {\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-header.vue?vue&type=template&id=7a297760&scoped=true&\"\nimport script from \"./me-header.vue?vue&type=script&lang=js&\"\nexport * from \"./me-header.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a297760\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改资料\",\"show-close\":false,\"visible\":_vm.$store.state.editDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"账号\",\"label-width\":_vm.formLabelWidth}},[_vm._v(\"\\n \"+_vm._s(_vm.form.username)+\"\\n \")]),_c('el-form-item',{attrs:{\"label\":\"昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改资料\" :show-close=\"false\" :visible.sync=\"$store.state.editDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar :size=\"50\" :src=\"form.avatar || $store.state.avatar\"></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\">\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\">\n </el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"账号\" :label-width=\"formLabelWidth\">\n {{form.username}}\n </el-form-item>\n <el-form-item label=\"昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../common/upload'\nexport default {\n name: 'mini-im-edit-profile',\n data(){\n return {\n form: {\n id: \"\",\n avatar: \"\",\n username: \"\",\n nickname: '',\n phone: '',\n auto_reply: ''\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n }\n },\n computed: {\n adminInfo(){\n return this.$store.state.adminInfo\n }\n },\n methods: {\n // 关闭窗口\n closeModal(){\n this.$store.commit(\"onChangeEditDialogFormVisible\", false)\n },\n // 保存\n save(){\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.$store.dispatch('ON_GET_ME')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n // 上传头像\n changeFile(file){\n\n upload({\n file: file.target.files[0],\n progress: (percent) => {\n this.isUploading = true\n this.uploadPercent = percent + \"%\"\n },\n success: (url) => {\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.success(\"上传成功\")\n var imgUrl = this.$store.getters.configs.upload_host +\"/\"+ url\n this.form.avatar = imgUrl\n },\n error: (err)=>{\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.error(err.message)\n }\n });\n \n }\n },\n watch: {\n adminInfo(){\n if(!this.adminInfo) return\n const {avatar,username, nickname, phone, id, auto_reply } = this.$store.state.adminInfo\n this.form = {avatar,username, nickname, phone, id, auto_reply }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .mini-im-file-button{\n width 50px\n height 50px\n border-radius 50%\n position relative\n overflow hidden\n input{\n font-size 100px\n position absolute\n top 0px\n left 0px\n cursor pointer\n opacity 0\n }\n cursor pointer\n .mini-im-file-percent{\n position absolute\n top 0px\n left 0px\n width 100%\n height 100%\n display flex\n align-items center\n justify-content center\n border-radius 50%\n background-color rgba(0,0,0, .5)\n color #fff\n font-size 12px\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-profile.vue?vue&type=template&id=30d0eb80&scoped=true&\"\nimport script from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-edit-profile.vue?vue&type=style&index=0&id=30d0eb80&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"30d0eb80\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改密码\",\"show-close\":false,\"visible\":_vm.$store.state.editPasswordDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editPasswordDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"旧密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入旧密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.old_password),callback:function ($$v) {_vm.$set(_vm.form, \"old_password\", $$v)},expression:\"form.old_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"新密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.new_password),callback:function ($$v) {_vm.$set(_vm.form, \"new_password\", $$v)},expression:\"form.new_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请再次输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.enter_password),callback:function ($$v) {_vm.$set(_vm.form, \"enter_password\", $$v)},expression:\"form.enter_password\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改密码\" :show-close=\"false\" :visible.sync=\"$store.state.editPasswordDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"旧密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.old_password\" placeholder=\"请输入旧密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"新密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.new_password\" placeholder=\"请输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.enter_password\" placeholder=\"请再次输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n form: {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n },\n robotSwitch: true,\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.resize()\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", false)\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin/password', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.resize()\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.form = {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-password.vue?vue&type=template&id=5987490c&scoped=true&\"\nimport script from \"./me-edit-password.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-password.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5987490c\",\n null\n \n)\n\nexport default component.exports","<template>\n <el-container>\n <me-aside v-if=\"$store.state.isShowAside\"></me-aside>\n <el-container style=\"min-width: 800px;\">\n <el-header class=\"mini-im-header\">\n <me-heaser title=\"sdfsd\"></me-heaser>\n </el-header>\n <el-main :style=\"'background-color:' + workbenchBgColor\">\n <router-view></router-view>\n </el-main>\n </el-container>\n <EditProfile />\n <EditPassword />\n </el-container>\n</template>\n\n<script>\n\nimport MeAside from \"@/components/me-aside.vue\";\nimport MeHeaser from \"@/components/me-header.vue\";\nimport EditProfile from \"@/components/me-edit-profile.vue\";\nimport EditPassword from \"@/components/me-edit-password.vue\";\n\nexport default {\n name: \"home\",\n components: {\n MeAside,MeHeaser,EditProfile,EditPassword\n },\n computed: {\n workbenchBgColor(){\n if(this.$route.path == \"/workbench\"){\n return this.$store.getters.workbenchBgColor\n }\n return \"#ffffff\"\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-header{\n background-color #545c64\n border-bottom 1px solid #545c64\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=61095d10&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"61095d10\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=30d0eb80&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=30d0eb80&scoped=true&lang=stylus&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"","module.exports = __webpack_public_path__ + \"img/kefu_logo.9c308a55.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e573615"],{"0e51":function(t,e,o){"use strict";var s=o("99fd"),a=o.n(s);a.a},"1e4b":function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-container",[t.$store.state.isShowAside?o("me-aside"):t._e(),o("el-container",{staticStyle:{"min-width":"800px"}},[o("el-header",{staticClass:"mini-im-header"},[o("me-heaser",{attrs:{title:"sdfsd"}})],1),o("el-main",{style:"background-color:"+t.workbenchBgColor},[o("router-view")],1)],1),o("EditProfile"),o("EditPassword")],1)},a=[],i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-aside",{staticClass:"mini-im-aside",attrs:{width:"200px"}},[s("div",{staticClass:"mini-im-logo",on:{click:function(e){return t.$router.push({path:"/index"})}}},[t.$store.getters.systemInfo.logo?s("div",[s("img",{attrs:{src:t.$store.getters.systemInfo.logo+"?id="+Date.now(),alt:""}})]):s("div",[s("img",{attrs:{src:o("8e69"),alt:""}})])]),s("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.menuActive,"background-color":"#3e444a","text-color":"#fff",router:!0,"active-text-color":"#ffd04b"}},[s("el-menu-item",{attrs:{index:"/index"}},[s("i",{staticClass:"el-icon-s-home"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("首页")])]),s("el-menu-item",{attrs:{index:"/workbench"}},[s("el-badge",{staticStyle:{width:"100%"},attrs:{hidden:0==t.$store.getters.readCount,value:t.$store.getters.readCount,max:99}},[s("div",[s("i",{staticClass:"el-icon-s-platform"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("工作台")])])])],1),s("el-menu-item",{attrs:{index:"/workorder"}},[s("el-badge",{staticStyle:{width:"100%"},attrs:{hidden:0==t.$store.getters.workOrderCounts.status0,value:t.$store.getters.workOrderCounts.status0,max:99}},[s("div",[s("i",{staticClass:"el-icon-tickets"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("工单管理")])])])],1),s("el-menu-item",{attrs:{index:"/knowledge"}},[s("i",{staticClass:"el-icon-reading"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("知识库")])]),s("el-menu-item",{attrs:{index:"/robot"}},[s("i",{staticClass:"el-icon-picture-outline-round"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("机器人")])]),s("el-menu-item",{attrs:{index:"/customer"}},[s("i",{staticClass:"el-icon-headset"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("客服管理")])]),s("el-menu-item",{attrs:{index:"/users"}},[s("i",{staticClass:"el-icon-user"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("用户管理")])]),s("el-menu-item",{attrs:{index:"/chat_record"}},[s("i",{staticClass:"el-icon-time"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("服务记录")])]),s("el-menu-item",{attrs:{index:"/system"}},[s("i",{staticClass:"el-icon-setting"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("系统设置")])])],1),s("div",{staticClass:"fix-bottom"},[s("a",{attrs:{title:"去给作者Star",target:"_blank",href:"https://github.com/chenxianqi/kefu_server.git"}},[s("svg",{staticClass:"github-logo",attrs:{height:"23",viewBox:"0 0 16 16",version:"1.1",width:"23","aria-hidden":"true"}},[s("path",{attrs:{fill:"#fff","fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"}})]),s("span",[t._v(" Github")])])])],1)},r=[],n={name:"mini-im-aside",data:function(){return{menuActive:"/index"}},mounted:function(){this.setHeaderTitle()},methods:{setHeaderTitle:function(){var t;switch(this.menuActive=this.$route.path,this.menuActive){case"/index":t="首页";break;case"/workbench":t="工作台";break;case"/knowledge":t="知识库";break;case"/robot":t="机器人";break;case"/customer":t="客服管理";break;case"/workorder":t="工单管理";break;case"/users":t="用户管理";break;case"/system":t="系统设置";break}this.$store.commit("onChangeHeaserTitle",t)}},watch:{$route:function(){this.setHeaderTitle()}}},l=n,c=(o("0e51"),o("2877")),d=Object(c["a"])(l,i,r,!1,null,null,null),m=d.exports,u=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-row",{attrs:{type:"flex",justify:"end",gutter:20}},[o("el-col",{attrs:{span:5}},[o("el-button",{staticClass:"mini-im-button",attrs:{type:"info",icon:t.$store.state.isShowAside?"el-icon-s-fold":"el-icon-s-unfold"},on:{click:function(e){return t.$store.commit("onChangeToggleAside",!t.$store.state.isShowAside)}}})],1),o("el-col",{attrs:{span:16}},[o("div",{staticClass:"mini-im-title"},[t._v(t._s(t.$store.state.heaserTitle))])]),o("el-col",{attrs:{span:5}},[o("el-row",{staticClass:"mini-im-dropdown",attrs:{type:"flex",justify:"end"}},[o("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[o("div",{staticClass:"el-dropdown-link"},[o("el-avatar",{staticClass:"mini-im-avatar",attrs:{size:25}},[o("img",{attrs:{src:t.$store.getters.avatar}})]),o("span",{staticStyle:{padding:"0 5px"}},[t._v(" "+t._s(t.$store.getters.nickname)+" ")]),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})],1),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{attrs:{command:"a"}},[o("i",{staticClass:"el-icon-user icon"}),t._v("\n 修改资料\n ")]),o("el-dropdown-item",{attrs:{command:"b"}},[o("i",{staticClass:"el-icon-unlock icon"}),t._v("\n 修改密码\n ")]),o("el-dropdown-item",{attrs:{command:"c",divided:""}},[o("i",{staticClass:"el-icon-caret-right icon"}),t._v("\n 退出登录\n ")])],1)],1)],1)],1)],1)},f=[],p=o("bc3a"),h=o.n(p),g={name:"mini-im-aside",data:function(){return{bgColor:"#ffffff"}},props:{title:String},methods:{logout:function(){var t=this;h.a.put("/admin/online/0"),h.a.get("/auth/logout").then((function(){t.$store.commit("onReset"),t.$store.commit("onChangeAdminInfo",null),t.$router.push({path:"/login"}),t.$mimcInstance.logout(),t.$store.commit("onIsLogin",!1),localStorage.clear()})).catch((function(e){t.$message.error("退出失败"),console.log(e)}))},handleCommand:function(t){var e=this;switch(t){case"a":this.$store.commit("onChangeEditDialogFormVisible",!0);break;case"b":this.$store.commit("onChangeEditPasswordDialogFormVisible",!0);break;case"c":this.$confirm("您确定要退出登录吗? ","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){return e.logout()}));break}}}},b=g,v=(o("8a1c"),Object(c["a"])(b,u,f,!1,null,"7a297760",null)),w=v.exports,_=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{width:"500px",title:"修改资料","show-close":!1,visible:t.$store.state.editDialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.$store.state,"editDialogFormVisible",e)}}},[o("el-form",{attrs:{model:t.form}},[o("el-form-item",{attrs:{label:"头像","label-width":t.formLabelWidth}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:3}},[o("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[o("el-avatar",{attrs:{size:50,src:t.form.avatar||t.$store.state.avatar}}),o("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:t.changeFile}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[o("span",[t._v(t._s(t.uploadPercent))])])],1)]),o("el-col",{attrs:{span:6}})],1)],1),o("el-form-item",{attrs:{label:"账号","label-width":t.formLabelWidth}},[t._v("\n "+t._s(t.form.username)+"\n ")]),o("el-form-item",{attrs:{label:"昵称","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入昵称",autocomplete:"off"},model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),o("el-form-item",{attrs:{label:"联系方式","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入联系方式",autocomplete:"off"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),o("el-form-item",{attrs:{label:"自动回复语","label-width":t.formLabelWidth}},[o("el-input",{attrs:{type:"textarea",placeholder:"请输入自动回复语,不支持emoji,请使用简单语句描述",autocomplete:"off"},model:{value:t.form.auto_reply,callback:function(e){t.$set(t.form,"auto_reply",e)},expression:"form.auto_reply"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},k=[],$=o("fb21"),x={name:"mini-im-edit-profile",data:function(){return{form:{id:"",avatar:"",username:"",nickname:"",phone:"",auto_reply:""},formLabelWidth:"90px",isUploading:!1,uploadPercent:""}},computed:{adminInfo:function(){return this.$store.state.adminInfo}},methods:{closeModal:function(){this.$store.commit("onChangeEditDialogFormVisible",!1)},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});h.a.put("/admin",this.form).then((function(o){console.log(o),e.close(),t.$message.success("资料修改成功"),t.closeModal(),t.$store.dispatch("ON_GET_ME")})).catch((function(o){e.close(),t.$message.error(o.response.data.message)}))},changeFile:function(t){var e=this;Object($["a"])({file:t.target.files[0],progress:function(t){e.isUploading=!0,e.uploadPercent=t+"%"},success:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.success("上传成功");var o=e.$store.getters.configs.upload_host+"/"+t;e.form.avatar=o},error:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.error(t.message)}})}},watch:{adminInfo:function(){if(this.adminInfo){var t=this.$store.state.adminInfo,e=t.avatar,o=t.username,s=t.nickname,a=t.phone,i=t.id,r=t.auto_reply;this.form={avatar:e,username:o,nickname:s,phone:a,id:i,auto_reply:r}}}}},C=x,y=(o("5a51"),Object(c["a"])(C,_,k,!1,null,"30d0eb80",null)),E=y.exports,P=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("el-dialog",{attrs:{width:"500px",title:"修改密码","show-close":!1,visible:t.$store.state.editPasswordDialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.$store.state,"editPasswordDialogFormVisible",e)}}},[o("el-form",{attrs:{model:t.form}},[o("el-form-item",{attrs:{label:"旧密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入旧密码",autocomplete:"off"},model:{value:t.form.old_password,callback:function(e){t.$set(t.form,"old_password",e)},expression:"form.old_password"}})],1),o("el-form-item",{attrs:{label:"新密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入新密码",autocomplete:"off"},model:{value:t.form.new_password,callback:function(e){t.$set(t.form,"new_password",e)},expression:"form.new_password"}})],1),o("el-form-item",{attrs:{label:"确认密码","label-width":t.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请再次输入新密码",autocomplete:"off"},model:{value:t.form.enter_password,callback:function(e){t.$set(t.form,"enter_password",e)},expression:"form.enter_password"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},A=[],F={name:"mini-im-create-knowledge",data:function(){return{form:{old_password:"",new_password:"",enter_password:""},robotSwitch:!0,formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean},mounted:function(){},methods:{closeModal:function(){this.resize(),this.$store.commit("onChangeEditPasswordDialogFormVisible",!1)},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});h.a.put("/admin/password",this.form).then((function(o){console.log(o),e.close(),t.$message.success("资料修改成功"),t.closeModal(),t.resize()})).catch((function(o){e.close(),t.$message.error(o.response.data.message)}))},resize:function(){this.form={old_password:"",new_password:"",enter_password:""}}}},L=F,S=Object(c["a"])(L,P,A,!1,null,"5987490c",null),I=S.exports,M={name:"home",components:{MeAside:m,MeHeaser:w,EditProfile:E,EditPassword:I},computed:{workbenchBgColor:function(){return"/workbench"==this.$route.path?this.$store.getters.workbenchBgColor:"#ffffff"}}},W=M,j=(o("c5f8"),Object(c["a"])(W,s,a,!1,null,"61095d10",null));e["default"]=j.exports},2294:function(t,e,o){},"5a51":function(t,e,o){"use strict";var s=o("2294"),a=o.n(s);a.a},"8a1c":function(t,e,o){"use strict";var s=o("9aba"),a=o.n(s);a.a},"8e69":function(t,e,o){t.exports=o.p+"img/kefu_logo.9c308a55.png"},"98be":function(t,e,o){},"99fd":function(t,e,o){},"9aba":function(t,e,o){},c5f8:function(t,e,o){"use strict";var s=o("98be"),a=o.n(s);a.a}}]);
//# sourceMappingURL=chunk-1e573615.0cb8b6aa.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-1e573615.16b6c862.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/components/me-aside.vue?48f3","webpack:///./src/views/index.vue?831d","webpack:///./src/components/me-aside.vue?dd15","webpack:///src/components/me-aside.vue","webpack:///./src/components/me-aside.vue?761f","webpack:///./src/components/me-aside.vue?0e9e","webpack:///./src/components/me-header.vue?386e","webpack:///src/components/me-header.vue","webpack:///./src/components/me-header.vue?8b81","webpack:///./src/components/me-header.vue","webpack:///./src/components/me-edit-profile.vue?0ac9","webpack:///src/components/me-edit-profile.vue","webpack:///./src/components/me-edit-profile.vue?b167","webpack:///./src/components/me-edit-profile.vue","webpack:///./src/components/me-edit-password.vue?0201","webpack:///src/components/me-edit-password.vue","webpack:///./src/components/me-edit-password.vue?7d42","webpack:///./src/components/me-edit-password.vue","webpack:///src/views/index.vue","webpack:///./src/views/index.vue?a66e","webpack:///./src/views/index.vue","webpack:///./src/components/me-edit-profile.vue?3f81","webpack:///./src/components/me-header.vue?35bc","webpack:///./src/assets/kefu_logo.png","webpack:///./src/views/index.vue?c757"],"names":["render","_vm","this","_h","$createElement","_c","_self","$store","state","_e","staticStyle","staticClass","attrs","style","workbenchBgColor","staticRenderFns","on","$event","$router","push","path","getters","systemInfo","logo","Date","now","menuActive","slot","_v","readCount","workOrderCounts","status0","name","data","mounted","methods","setHeaderTitle","title","$route","commit","watch","component","isShowAside","_s","heaserTitle","handleCommand","avatar","nickname","bgColor","props","String","logout","console","log","error","editDialogFormVisible","$set","form","formLabelWidth","changeFile","directives","rawName","value","expression","uploadPercent","username","model","callback","$$v","closeModal","save","computed","adminInfo","lock","text","spinner","background","loading","close","editPasswordDialogFormVisible","dialogFormVisible","Boolean","resize","components","MeAside","module","exports"],"mappings":"kHAAA,yBAA+gB,EAAG,G,2CCAlhB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAAEJ,EAAIM,OAAOC,MAAiB,YAAEH,EAAG,YAAYJ,EAAIQ,KAAKJ,EAAG,eAAe,CAACK,YAAY,CAAC,YAAY,UAAU,CAACL,EAAG,YAAY,CAACM,YAAY,kBAAkB,CAACN,EAAG,YAAY,CAACO,MAAM,CAAC,MAAQ,YAAY,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EAAI,SAAJ,EAAI,YAAJ,EAAI,aAAJ,GAEEb,SAAU,CACRzD,iBADJ,WAEM,MAAN,+BACeZ,KAAKK,OAAOc,QAAQP,iBAEtB,aCjCqW,ICQ9W,G,UAAY,eACd,EACAd,EACAe,GACA,EACA,KACA,WACA,OAIa,e,oECnBf,yBAA8iB,EAAG,G,oCCAjjB,yBAAwiB,EAAG,G,uBCA3iBsE,EAAOC,QAAU,IAA0B,8B,6GCA3C,yBAAoiB,EAAG","file":"js/chunk-1e573615.16b6c862.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=style&index=0&lang=stylus&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',[(_vm.$store.state.isShowAside)?_c('me-aside'):_vm._e(),_c('el-container',{staticStyle:{\"min-width\":\"800px\"}},[_c('el-header',{staticClass:\"mini-im-header\"},[_c('me-heaser',{attrs:{\"title\":\"sdfsd\"}})],1),_c('el-main',{style:('background-color:' + _vm.workbenchBgColor)},[_c('router-view')],1)],1),_c('EditProfile'),_c('EditPassword')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-aside',{staticClass:\"mini-im-aside\",attrs:{\"width\":\"200px\"}},[_c('div',{staticClass:\"mini-im-logo\",on:{\"click\":function($event){return _vm.$router.push({ path: '/index'})}}},[(_vm.$store.getters.systemInfo.logo)?_c('div',[_c('img',{attrs:{\"src\":_vm.$store.getters.systemInfo.logo + '?id=' + Date.now(),\"alt\":\"\"}})]):_c('div',[_c('img',{attrs:{\"src\":require(\"../assets/kefu_logo.png\"),\"alt\":\"\"}})])]),_c('el-menu',{staticClass:\"el-menu-vertical-demo\",attrs:{\"default-active\":_vm.menuActive,\"background-color\":\"#3e444a\",\"text-color\":\"#fff\",\"router\":true,\"active-text-color\":\"#ffd04b\"}},[_c('el-menu-item',{attrs:{\"index\":\"/index\"}},[_c('i',{staticClass:\"el-icon-s-home\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"首页\")])]),_c('el-menu-item',{attrs:{\"index\":\"/workbench\"}},[_c('el-badge',{staticStyle:{\"width\":\"100%\"},attrs:{\"hidden\":_vm.$store.getters.readCount == 0,\"value\":_vm.$store.getters.readCount,\"max\":99}},[_c('div',[_c('i',{staticClass:\"el-icon-s-platform\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工作台\")])])])],1),_c('el-menu-item',{attrs:{\"index\":\"/workorder\"}},[_c('el-badge',{staticStyle:{\"width\":\"100%\"},attrs:{\"hidden\":_vm.$store.getters.workOrderCounts.status0 == 0,\"value\":_vm.$store.getters.workOrderCounts.status0,\"max\":99}},[_c('div',[_c('i',{staticClass:\"el-icon-tickets\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工单管理\")])])])],1),_c('el-menu-item',{attrs:{\"index\":\"/knowledge\"}},[_c('i',{staticClass:\"el-icon-reading\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"知识库\")])]),_c('el-menu-item',{attrs:{\"index\":\"/robot\"}},[_c('i',{staticClass:\"el-icon-picture-outline-round\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"机器人\")])]),_c('el-menu-item',{attrs:{\"index\":\"/customer\"}},[_c('i',{staticClass:\"el-icon-headset\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"客服管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/users\"}},[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])]),_c('el-menu-item',{attrs:{\"index\":\"/chat_record\"}},[_c('i',{staticClass:\"el-icon-time\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"服务记录\")])]),_c('el-menu-item',{attrs:{\"index\":\"/system\"}},[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])],1),_c('div',{staticClass:\"fix-bottom\"},[_c('a',{attrs:{\"title\":\"去给作者Star\",\"target\":\"_blank\",\"href\":\"https://github.com/chenxianqi/kefu_server.git\"}},[_c('svg',{staticClass:\"github-logo\",attrs:{\"height\":\"23\",\"viewBox\":\"0 0 16 16\",\"version\":\"1.1\",\"width\":\"23\",\"aria-hidden\":\"true\"}},[_c('path',{attrs:{\"fill\":\"#fff\",\"fill-rule\":\"evenodd\",\"d\":\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"}})]),_c('span',[_vm._v(\" Github\")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-aside width=\"200px\" class=\"mini-im-aside\">\n <div class=\"mini-im-logo\" @click=\"$router.push({ path: '/index'})\">\n <div v-if=\"$store.getters.systemInfo.logo\"><img :src=\"$store.getters.systemInfo.logo + '?id=' + Date.now()\" alt=\"\"></div>\n <div v-else><img src=\"../assets/kefu_logo.png\" alt=\"\"></div>\n </div>\n <el-menu\n :default-active=\"menuActive\"\n class=\"el-menu-vertical-demo\"\n background-color=\"#3e444a\"\n text-color=\"#fff\"\n :router=\"true\"\n active-text-color=\"#ffd04b\"\n >\n <el-menu-item index=\"/index\">\n <i class=\"el-icon-s-home\"></i>\n <span slot=\"title\">首页</span>\n </el-menu-item>\n <el-menu-item index=\"/workbench\">\n <el-badge :hidden=\"$store.getters.readCount == 0\" :value=\"$store.getters.readCount\" :max=\"99\" style=\"width: 100%;\">\n <div>\n <i class=\"el-icon-s-platform\"></i>\n <span slot=\"title\">工作台</span>\n </div>\n </el-badge>\n </el-menu-item>\n <el-menu-item index=\"/workorder\">\n <el-badge :hidden=\"$store.getters.workOrderCounts.status0 == 0\" :value=\"$store.getters.workOrderCounts.status0\" :max=\"99\" style=\"width: 100%;\">\n <div>\n <i class=\"el-icon-tickets\"></i>\n <span slot=\"title\">工单管理</span>\n </div>\n </el-badge>\n </el-menu-item>\n <el-menu-item index=\"/knowledge\">\n <i class=\"el-icon-reading\"></i>\n <span slot=\"title\">知识库</span>\n </el-menu-item>\n <el-menu-item index=\"/robot\">\n <i class=\"el-icon-picture-outline-round\"></i>\n <span slot=\"title\">机器人</span>\n </el-menu-item>\n <el-menu-item index=\"/customer\">\n <i class=\"el-icon-headset\"></i>\n <span slot=\"title\">客服管理</span>\n </el-menu-item>\n <el-menu-item index=\"/users\">\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </el-menu-item>\n <el-menu-item index=\"/chat_record\">\n <i class=\"el-icon-time\"></i>\n <span slot=\"title\">服务记录</span>\n </el-menu-item>\n <el-menu-item index=\"/system\">\n <i class=\"el-icon-setting\"></i>\n <span slot=\"title\">系统设置</span>\n </el-menu-item>\n \n </el-menu>\n <div class=\"fix-bottom\">\n <a title=\"去给作者Star\" target=\"_blank\" href=\"https://github.com/chenxianqi/kefu_server.git\">\n <svg class=\"github-logo\" height=\"23\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"23\" aria-hidden=\"true\"><path fill=\"#fff\" fill-rule=\"evenodd\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"></path></svg>\n <span> Github</span>\n </a>\n </div>\n </el-aside>\n</template>\n<script>\nexport default {\n name: 'mini-im-aside',\n data(){\n return {\n menuActive: \"/index\"\n }\n },\n mounted(){\n this.setHeaderTitle()\n },\n methods: {\n setHeaderTitle(){\n this.menuActive = this.$route.path\n var title\n switch(this.menuActive){\n case \"/index\":\n title = \"首页\"\n break\n case \"/workbench\":\n title = \"工作台\"\n break\n case \"/knowledge\":\n title = \"知识库\"\n break\n case \"/robot\":\n title = \"机器人\"\n break\n case \"/customer\":\n title = \"客服管理\"\n break\n case \"/workorder\":\n title = \"工单管理\"\n break\n case \"/users\":\n title = \"用户管理\"\n break\n case \"/system\":\n title = \"系统设置\"\n break\n }\n this.$store.commit(\"onChangeHeaserTitle\", title)\n }\n },\n watch: {\n \"$route\"(){\n this.setHeaderTitle()\n }\n }\n}\n</script>\n<style lang=\"stylus\">\n .mini-im-aside{\n background-color: #3e444a\n display flex\n flex-direction column\n .mini-im-logo{\n width 100%;\n height: 100px;\n display flex\n justify-content center\n flex-direction column\n align-items center\n border-bottom 1px solid #ddd\n img{\n height : 30px\n }\n }\n .el-menu{\n border-right 0\n }\n .el-badge__content{\n border 0\n top 30px\n }\n .fix-bottom{\n flex-grow 1\n display flex\n flex-direction column\n justify-content flex-end\n padding-bottom 30px\n a{\n cursor pointer\n padding 0 30px\n text-align center\n align-items center\n color #fff\n display flex\n align-content center\n .github-log{\n width 50px\n }\n span{\n margin-top 3px\n margin-left 5px\n }\n }\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-aside.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-aside.vue?vue&type=template&id=73d02b9f&\"\nimport script from \"./me-aside.vue?vue&type=script&lang=js&\"\nexport * from \"./me-aside.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-aside.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-row',{attrs:{\"type\":\"flex\",\"justify\":\"end\",\"gutter\":20}},[_c('el-col',{attrs:{\"span\":5}},[_c('el-button',{staticClass:\"mini-im-button\",attrs:{\"type\":\"info\",\"icon\":_vm.$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'},on:{\"click\":function($event){return _vm.$store.commit('onChangeToggleAside', !_vm.$store.state.isShowAside)}}})],1),_c('el-col',{attrs:{\"span\":16}},[_c('div',{staticClass:\"mini-im-title\"},[_vm._v(_vm._s(_vm.$store.state.heaserTitle))])]),_c('el-col',{attrs:{\"span\":5}},[_c('el-row',{staticClass:\"mini-im-dropdown\",attrs:{\"type\":\"flex\",\"justify\":\"end\"}},[_c('el-dropdown',{attrs:{\"trigger\":\"click\"},on:{\"command\":_vm.handleCommand}},[_c('div',{staticClass:\"el-dropdown-link\"},[_c('el-avatar',{staticClass:\"mini-im-avatar\",attrs:{\"size\":25}},[_c('img',{attrs:{\"src\":_vm.$store.getters.avatar}})]),_c('span',{staticStyle:{\"padding\":\"0 5px\"}},[_vm._v(\" \"+_vm._s(_vm.$store.getters.nickname)+\" \")]),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})],1),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[_c('el-dropdown-item',{attrs:{\"command\":\"a\"}},[_c('i',{staticClass:\"el-icon-user icon\"}),_vm._v(\"\\n 修改资料\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"b\"}},[_c('i',{staticClass:\"el-icon-unlock icon\"}),_vm._v(\"\\n 修改密码\\n \")]),_c('el-dropdown-item',{attrs:{\"command\":\"c\",\"divided\":\"\"}},[_c('i',{staticClass:\"el-icon-caret-right icon\"}),_vm._v(\"\\n 退出登录\\n \")])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-row type=\"flex\" justify=\"end\" :gutter=\"20\">\n <el-col :span=\"5\">\n <el-button\n @click=\"$store.commit('onChangeToggleAside', !$store.state.isShowAside)\"\n class=\"mini-im-button\"\n type=\"info\"\n :icon=\"$store.state.isShowAside ? 'el-icon-s-fold' : 'el-icon-s-unfold'\"\n >\n </el-button>\n </el-col>\n <el-col :span=\"16\" >\n <div class=\"mini-im-title\">{{$store.state.heaserTitle}}</div>\n </el-col>\n <el-col :span=\"5\">\n <el-row type=\"flex\" justify=\"end\" class=\"mini-im-dropdown\">\n <el-dropdown @command=\"handleCommand\" trigger=\"click\">\n <div class=\"el-dropdown-link\">\n <el-avatar :size=\"25\" class=\"mini-im-avatar\">\n <img :src=\"$store.getters.avatar\"/>\n </el-avatar>\n <span style=\"padding:0 5px;\"> {{$store.getters.nickname}} </span>\n <i class=\"el-icon-arrow-down el-icon--right\"></i>\n </div>\n <el-dropdown-menu slot=\"dropdown\">\n <el-dropdown-item command=\"a\">\n <i class=\"el-icon-user icon\"></i>\n 修改资料\n </el-dropdown-item>\n <el-dropdown-item command=\"b\">\n <i class=\"el-icon-unlock icon\"></i>\n 修改密码\n </el-dropdown-item>\n <el-dropdown-item command=\"c\" divided>\n <i class=\"el-icon-caret-right icon\"></i>\n 退出登录\n </el-dropdown-item>\n </el-dropdown-menu>\n </el-dropdown>\n </el-row>\n </el-col>\n </el-row>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: \"mini-im-aside\",\n data(){\n return {\n bgColor: \"#ffffff\"\n }\n },\n props: {\n title: String\n },\n methods: {\n // 退出登录\n logout(){\n axios.put('/admin/online/0')\n axios.get('/auth/logout')\n .then(() => {\n this.$store.commit(\"onReset\")\n this.$store.commit(\"onChangeAdminInfo\", null)\n this.$router.push({ path: '/login'})\n this.$mimcInstance.logout()\n this.$store.commit(\"onIsLogin\", false)\n localStorage.clear()\n })\n .catch(error => {\n this.$message.error('退出失败')\n console.log(error)\n })\n },\n handleCommand(command){\n switch(command){\n case 'a':\n this.$store.commit(\"onChangeEditDialogFormVisible\", true)\n break\n case 'b':\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", true)\n break\n case 'c':\n this.$confirm('您确定要退出登录吗? ', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => this.logout())\n break\n\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-header {\n background-color: #545c64;\n border-bottom: 1px solid #545c64;\n .mini-im-dropdown{\n height 100%\n }\n .mini-im-button{\n border 0\n font-size 35px\n display block\n background 0\n padding-left 0\n }\n .mini-im-title{\n color #fff\n font-size 16px\n text-align center\n line-height 60px\n }\n .icon {\n color: #fff;\n }\n .el-dropdown-link {\n cursor: pointer;\n display flex\n height 100%\n line-height 60px\n align-items center\n color: #fff;\n }\n .el-icon-arrow-down {\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-header.vue?vue&type=template&id=7a297760&scoped=true&\"\nimport script from \"./me-header.vue?vue&type=script&lang=js&\"\nexport * from \"./me-header.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a297760\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改资料\",\"show-close\":false,\"visible\":_vm.$store.state.editDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"账号\",\"label-width\":_vm.formLabelWidth}},[_vm._v(\"\\n \"+_vm._s(_vm.form.username)+\"\\n \")]),_c('el-form-item',{attrs:{\"label\":\"昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自动回复语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入自动回复语,不支持emoji,请使用简单语句描述\",\"autocomplete\":\"off\"},model:{value:(_vm.form.auto_reply),callback:function ($$v) {_vm.$set(_vm.form, \"auto_reply\", $$v)},expression:\"form.auto_reply\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改资料\" :show-close=\"false\" :visible.sync=\"$store.state.editDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar :size=\"50\" :src=\"form.avatar || $store.state.avatar\"></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\">\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\">\n </el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"账号\" :label-width=\"formLabelWidth\">\n {{form.username}}\n </el-form-item>\n <el-form-item label=\"昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"自动回复语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.auto_reply\" type=\"textarea\" placeholder=\"请输入自动回复语,不支持emoji,请使用简单语句描述\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../common/upload'\nexport default {\n name: 'mini-im-edit-profile',\n data(){\n return {\n form: {\n id: \"\",\n avatar: \"\",\n username: \"\",\n nickname: '',\n phone: '',\n auto_reply: ''\n },\n formLabelWidth: \"90px\",\n isUploading: false,\n uploadPercent: \"\"\n }\n },\n computed: {\n adminInfo(){\n return this.$store.state.adminInfo\n }\n },\n methods: {\n // 关闭窗口\n closeModal(){\n this.$store.commit(\"onChangeEditDialogFormVisible\", false)\n },\n // 保存\n save(){\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.$store.dispatch('ON_GET_ME')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n // 上传头像\n changeFile(file){\n\n upload({\n file: file.target.files[0],\n progress: (percent) => {\n this.isUploading = true\n this.uploadPercent = percent + \"%\"\n },\n success: (url) => {\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.success(\"上传成功\")\n var imgUrl = this.$store.getters.configs.upload_host +\"/\"+ url\n this.form.avatar = imgUrl\n },\n error: (err)=>{\n this.isUploading = false\n this.uploadPercent = \"\"\n this.$message.error(err.message)\n }\n });\n \n }\n },\n watch: {\n adminInfo(){\n if(!this.adminInfo) return\n const {avatar,username, nickname, phone, id, auto_reply } = this.$store.state.adminInfo\n this.form = {avatar,username, nickname, phone, id, auto_reply }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n .mini-im-file-button{\n width 50px\n height 50px\n border-radius 50%\n position relative\n overflow hidden\n input{\n font-size 100px\n position absolute\n top 0px\n left 0px\n cursor pointer\n opacity 0\n }\n cursor pointer\n .mini-im-file-percent{\n position absolute\n top 0px\n left 0px\n width 100%\n height 100%\n display flex\n align-items center\n justify-content center\n border-radius 50%\n background-color rgba(0,0,0, .5)\n color #fff\n font-size 12px\n }\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-profile.vue?vue&type=template&id=30d0eb80&scoped=true&\"\nimport script from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-profile.vue?vue&type=script&lang=js&\"\nimport style0 from \"./me-edit-profile.vue?vue&type=style&index=0&id=30d0eb80&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"30d0eb80\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"500px\",\"title\":\"修改密码\",\"show-close\":false,\"visible\":_vm.$store.state.editPasswordDialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){return _vm.$set(_vm.$store.state, \"editPasswordDialogFormVisible\", $event)}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"旧密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入旧密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.old_password),callback:function ($$v) {_vm.$set(_vm.form, \"old_password\", $$v)},expression:\"form.old_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"新密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.new_password),callback:function ($$v) {_vm.$set(_vm.form, \"new_password\", $$v)},expression:\"form.new_password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请再次输入新密码\",\"autocomplete\":\"off\"},model:{value:(_vm.form.enter_password),callback:function ($$v) {_vm.$set(_vm.form, \"enter_password\", $$v)},expression:\"form.enter_password\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog width=\"500px\" title=\"修改密码\" :show-close=\"false\" :visible.sync=\"$store.state.editPasswordDialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"旧密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.old_password\" placeholder=\"请输入旧密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"新密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.new_password\" placeholder=\"请输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"确认密码\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.enter_password\" placeholder=\"请再次输入新密码\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'mini-im-create-knowledge',\n data(){\n return {\n form: {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n },\n robotSwitch: true,\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean\n },\n mounted(){\n },\n methods: {\n // 关闭\n closeModal(){\n this.resize()\n this.$store.commit(\"onChangeEditPasswordDialogFormVisible\", false)\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: '保存中...',\n spinner: 'el-icon-loading',\n background: 'rgba(0, 0, 0, 0.5)'\n });\n axios.put('/admin/password', this.form)\n .then(response => {\n console.log(response)\n loading.close();\n this.$message.success(\"资料修改成功\")\n this.closeModal()\n this.resize()\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message)\n });\n\n },\n resize(){\n this.form = {\n old_password: \"\",\n new_password: \"\",\n enter_password: \"\"\n }\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-password.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./me-edit-password.vue?vue&type=template&id=5987490c&scoped=true&\"\nimport script from \"./me-edit-password.vue?vue&type=script&lang=js&\"\nexport * from \"./me-edit-password.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5987490c\",\n null\n \n)\n\nexport default component.exports","<template>\n <el-container>\n <me-aside v-if=\"$store.state.isShowAside\"></me-aside>\n <el-container style=\"min-width: 800px;\">\n <el-header class=\"mini-im-header\">\n <me-heaser title=\"sdfsd\"></me-heaser>\n </el-header>\n <el-main :style=\"'background-color:' + workbenchBgColor\">\n <router-view></router-view>\n </el-main>\n </el-container>\n <EditProfile />\n <EditPassword />\n </el-container>\n</template>\n\n<script>\n\nimport MeAside from \"@/components/me-aside.vue\";\nimport MeHeaser from \"@/components/me-header.vue\";\nimport EditProfile from \"@/components/me-edit-profile.vue\";\nimport EditPassword from \"@/components/me-edit-password.vue\";\n\nexport default {\n name: \"home\",\n components: {\n MeAside,MeHeaser,EditProfile,EditPassword\n },\n computed: {\n workbenchBgColor(){\n if(this.$route.path == \"/workbench\"){\n return this.$store.getters.workbenchBgColor\n }\n return \"#ffffff\"\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-header{\n background-color #545c64\n border-bottom 1px solid #545c64\n }\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=61095d10&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"61095d10\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=30d0eb80&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-edit-profile.vue?vue&type=style&index=0&id=30d0eb80&scoped=true&lang=stylus&\"","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./me-header.vue?vue&type=style&index=0&id=7a297760&scoped=true&lang=stylus&\"","module.exports = __webpack_public_path__ + \"img/kefu_logo.9c308a55.png\";","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=61095d10&lang=stylus&scoped=true&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d213a0b"],{"4f37":function(t,e,s){"use strict";s("aa77")("trim",(function(t){return function(){return t(this,3)}}))},a84c:function(t,e,s){"use strict";var n=s("ed2b"),a=s.n(n);a.a},aa77:function(t,e,s){var n=s("5ca1"),a=s("be13"),o=s("79e5"),i=s("fdef"),r="["+i+"]",c="​…",l=RegExp("^"+r+r+"*"),u=RegExp(r+r+"*$"),m=function(t,e,s){var a={},r=o((function(){return!!i[t]()||c[t]()!=c})),l=a[t]=r?e(p):i[t];s&&(a[s]=l),n(n.P+n.F*r,"String",a)},p=m.trim=function(t,e){return t=String(a(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=m},bd01:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"login"},[s("div",{staticClass:"form"},[s("div",{staticClass:"left"},[s("div",{staticClass:"tit"},[t._v("欢迎回来, 请登录!")]),s("span",[t._v("客服系统-工作台")]),s("div",{staticClass:"client"},[s("p",[t._v("客户端下载")]),s("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-download"},on:{click:t.dmac}},[t._v("Mac 版下载")]),s("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-download"},on:{click:t.dwin}},[t._v("Windows 版下载")])],1)]),s("div",{staticClass:"right"},[s("el-form",{ref:"form",attrs:{model:t.form,onsubmit:"return false","label-width":"80px"}},[s("span",{staticClass:"lable"},[t._v("用户登录")]),s("el-input",{staticClass:"input",attrs:{placeholder:"请输入用户名","prefix-icon":"el-icon-user"},model:{value:t.form.username,callback:function(e){t.$set(t.form,"username",e)},expression:"form.username"}}),s("el-input",{staticClass:"input",attrs:{type:"password",placeholder:"请输入密码","prefix-icon":"el-icon-unlock","show-password":""},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),s("el-row",{staticClass:"btn-group",attrs:{type:"flex"}},[s("el-button",{attrs:{"native-type":"submit",size:"small",type:"primary"},on:{click:t.login}},[t._v("登录")]),s("el-button",{attrs:{size:"small",type:"info"}},[t._v("重置")])],1)],1)],1)])])},a=[],o=(s("4f37"),s("bc3a")),i=s.n(o),r={name:"login",data:function(){return{form:{auth_type:1,username:"",password:""}}},mounted:function(){document.title="用户登录"},methods:{login:function(){var t=this;""!=this.form.username.trim()?""!=this.form.password.trim()?i.a.post("/auth/login",this.form).then((function(e){t.$store.commit("onChangeAdminInfo",e.data.data),t.$store.commit("onIsLogin",!0),localStorage.setItem("Authorization",e.data.data.token),t.$message({message:"登录成功!",type:"success"}),t.$router.push({path:"/index"})})).catch((function(e){console.log(e),t.$message.error(e.response.data.message)})):this.$message.error("密码不能为空!"):this.$message.error("用户名不能为空!")},dmac:function(){window.open("http://kf.aissz.com:666/static/app/mac-0.0.1.dmg")},dwin:function(){window.open("http://kf.aissz.com:666/static/app/win-0.0.1.exe")}}},c=r,l=(s("a84c"),s("2877")),u=Object(l["a"])(c,n,a,!1,null,"11ae6484",null);e["default"]=u.exports},ed2b:function(t,e,s){},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-4d213a0b.3bbca8ee.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-4d213a0b.21e8499f.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./src/views/auth/login.vue?fc67","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/views/auth/login.vue?e89e","webpack:///src/views/auth/login.vue","webpack:///./src/views/auth/login.vue?767d","webpack:///./src/views/auth/login.vue","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["$trim","this","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","P","F","string","TYPE","String","replace","module","exports","render","_vm","_h","$createElement","_c","_self","staticClass","_v","attrs","on","dmac","dwin","ref","form","model","value","callback","$$v","$set","expression","login","staticRenderFns","name","data","auth_type","username","password","mounted","document","title","methods","localStorage","setItem","response","token","message","type","console","log","error","$message","window","open","component"],"mappings":"kHAEA,EAAQ,OAAR,CAA0B,QAAQ,SAAUA,GAC1C,OAAO,WACL,OAAOA,EAAMC,KAAM,Q,kCCJvB,yBAAyjB,EAAG,G,qBCA5jB,IAAIC,EAAU,EAAQ,QAClBC,EAAU,EAAQ,QAClBC,EAAQ,EAAQ,QAChBC,EAAS,EAAQ,QACjBC,EAAQ,IAAMD,EAAS,IACvBE,EAAM,KACNC,EAAQC,OAAO,IAAMH,EAAQA,EAAQ,KACrCI,EAAQD,OAAOH,EAAQA,EAAQ,MAE/BK,EAAW,SAAUC,EAAKC,EAAMC,GAClC,IAAIC,EAAM,GACNC,EAAQZ,GAAM,WAChB,QAASC,EAAOO,MAAUL,EAAIK,MAAUL,KAEtCU,EAAKF,EAAIH,GAAOI,EAAQH,EAAKK,GAAQb,EAAOO,GAC5CE,IAA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AU","file":"js/chunk-4d213a0b.21e8499f.js","sourcesContent":["'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=style&index=0&id=11ae6484&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=style&index=0&id=11ae6484&lang=stylus&scoped=true&\"","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"login\"},[_c('div',{staticClass:\"form\"},[_c('div',{staticClass:\"left\"},[_c('div',{staticClass:\"tit\"},[_vm._v(\"欢迎回来, 请登录!\")]),_c('span',[_vm._v(\"客服系统-工作台\")]),_c('div',{staticClass:\"client\"},[_c('p',[_vm._v(\"客户端下载\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.dmac}},[_vm._v(\"Mac 版下载\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.dwin}},[_vm._v(\"Windows 版下载\")])],1)]),_c('div',{staticClass:\"right\"},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"onsubmit\":\"return false\",\"label-width\":\"80px\"}},[_c('span',{staticClass:\"lable\"},[_vm._v(\"用户登录\")]),_c('el-input',{staticClass:\"input\",attrs:{\"placeholder\":\"请输入用户名\",\"prefix-icon\":\"el-icon-user\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}}),_c('el-input',{staticClass:\"input\",attrs:{\"type\":\"password\",\"placeholder\":\"请输入密码\",\"prefix-icon\":\"el-icon-unlock\",\"show-password\":\"\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}}),_c('el-row',{staticClass:\"btn-group\",attrs:{\"type\":\"flex\"}},[_c('el-button',{attrs:{\"native-type\":\"submit\",\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.login}},[_vm._v(\"登录\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"info\"}},[_vm._v(\"重置\")])],1)],1)],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"login\">\n <div class=\"form\">\n <div class=\"left\">\n <div class=\"tit\">欢迎回来, 请登录!</div>\n <span>客服系统-工作台</span>\n <div class=\"client\">\n <p>客户端下载</p>\n <el-button @click=\"dmac\" type=\"primary\" size=\"mini\" icon=\"el-icon-download\">Mac 版下载</el-button>\n <el-button @click=\"dwin\" type=\"primary\" size=\"mini\" icon=\"el-icon-download\">Windows 版下载</el-button>\n </div>\n </div>\n <div class=\"right\">\n <el-form ref=\"form\" :model=\"form\" onsubmit=\"return false\" label-width=\"80px\">\n <span class=\"lable\">用户登录</span>\n <el-input\n class=\"input\"\n placeholder=\"请输入用户名\"\n prefix-icon=\"el-icon-user\"\n v-model=\"form.username\">\n </el-input>\n <el-input\n class=\"input\"\n type=\"password\"\n placeholder=\"请输入密码\"\n prefix-icon=\"el-icon-unlock\"\n show-password\n v-model=\"form.password\">\n </el-input>\n <el-row type=\"flex\" class=\"btn-group\">\n <el-button native-type=\"submit\" @click=\"login\" size=\"small\" type=\"primary\">登录</el-button>\n <el-button size=\"small\" type=\"info\">重置</el-button>\n </el-row>\n </el-form>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'login',\n data(){\n return{\n form: {\n auth_type: 1,\n username: \"\",\n password: \"\"\n }\n }\n },\n mounted(){\n document.title = \"用户登录\"\n },\n methods: {\n // login\n login(){\n // valid\n if(this.form.username.trim() == \"\"){\n this.$message.error('用户名不能为空!')\n return\n }\n if(this.form.password.trim() == \"\"){\n this.$message.error('密码不能为空!')\n return\n }\n axios.post('/auth/login', this.form)\n .then(response => {\n this.$store.commit(\"onChangeAdminInfo\", response.data.data)\n this.$store.commit(\"onIsLogin\", true)\n localStorage.setItem(\"Authorization\", response.data.data.token)\n this.$message({\n message: '登录成功!',\n type: 'success'\n });\n this.$router.push({ path: '/index'})\n })\n .catch(error => {\n console.log(error)\n this.$message.error(error.response.data.message)\n });\n },\n dmac(){\n window.open(\"http://kf.aissz.com:666/static/app/mac-0.0.1.dmg\")\n },\n dwin(){\n window.open(\"http://kf.aissz.com:666/static/app/win-0.0.1.exe\")\n }\n }\n}\n</script>\n<style lang=\"stylus\" scoped>\n .login{\n display flex\n width 100%\n height 100%\n background url('../../assets/login_bg.jpg') center bottom no-repeat;\n background-size cover\n .form{\n display flex\n overflow hidden\n width 600px;\n height 300px;\n background-color #fff\n margin auto\n border-radius 5px;\n .left{\n width 350px\n height 100%\n padding 20px;\n box-sizing border-box\n background url('../../assets/login_bg1.jpg') center bottom no-repeat;\n background-size cover\n font-size 18px;\n color #fff\n display flex\n flex-direction column\n justify-content center\n .tit{\n margin-top: 50px;\n border-bottom 1px solid #fff\n }\n div{\n width 300px\n padding-bottom 10px;\n margin-bottom 10px;\n }\n span{\n font-size 14px;\n }\n .client{\n margin-top: 80px;\n button{\n margin-top 10px\n }\n }\n }\n .right{\n padding 20px;\n padding-top: 50px;\n .input{\n margin-bottom 20px;\n }\n .btn-group{\n margin-top: 15px;\n }\n .lable{\n font-size 18px;\n color: #606266;\n margin-bottom 15px;\n display block\n }\n }\n }\n }\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./login.vue?vue&type=template&id=11ae6484&scoped=true&\"\nimport script from \"./login.vue?vue&type=script&lang=js&\"\nexport * from \"./login.vue?vue&type=script&lang=js&\"\nimport style0 from \"./login.vue?vue&type=style&index=0&id=11ae6484&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"11ae6484\",\n null\n \n)\n\nexport default component.exports","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./src/views/auth/login.vue?fc67","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./src/views/auth/login.vue?2f4b","webpack:///src/views/auth/login.vue","webpack:///./src/views/auth/login.vue?767d","webpack:///./src/views/auth/login.vue?8ac9","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["$trim","this","$export","defined","fails","spaces","space","non","ltrim","RegExp","rtrim","exporter","KEY","exec","ALIAS","exp","FORCE","fn","trim","P","F","string","TYPE","String","replace","module","exports","render","_vm","_h","$createElement","_c","_self","staticClass","_v","attrs","on","dmac","dwin","ref","form","model","value","callback","$$v","$set","expression","login","staticRenderFns","name","data","auth_type","username","password","mounted","document","title","methods","localStorage","setItem","response","token","message","type","console","log","error","$message","window","open","component"],"mappings":"kHAEA,EAAQ,OAAR,CAA0B,QAAQ,SAAUA,GAC1C,OAAO,WACL,OAAOA,EAAMC,KAAM,Q,kCCJvB,yBAAyjB,EAAG,G,qBCA5jB,IAAIC,EAAU,EAAQ,QAClBC,EAAU,EAAQ,QAClBC,EAAQ,EAAQ,QAChBC,EAAS,EAAQ,QACjBC,EAAQ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R,iCAEA,mBACQC,QAAQC,IAAIC,GACZ,EAAR,2CAhBQjE,KAAKkE,SAASD,MAAM,WAJpBjE,KAAKkE,SAASD,MAAM,aAuBxB7B,KA5BJ,WA6BM+B,OAAOC,KAAK,qDAEd/B,KA/BJ,WAgCM8B,OAAOC,KAAK,uDCtF+W,I,wBCQ7XC,EAAY,eACd,EACA3C,EACAqB,GACA,EACA,KACA,WACA,MAIa,aAAAsB,E,mDCnBf7C,EAAOC,QAAU","file":"js/chunk-4d213a0b.3bbca8ee.js","sourcesContent":["'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=style&index=0&id=11ae6484&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=style&index=0&id=11ae6484&lang=stylus&scoped=true&\"","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"login\"},[_c('div',{staticClass:\"form\"},[_c('div',{staticClass:\"left\"},[_c('div',{staticClass:\"tit\"},[_vm._v(\"欢迎回来, 请登录!\")]),_c('span',[_vm._v(\"客服系统-工作台\")]),_c('div',{staticClass:\"client\"},[_c('p',[_vm._v(\"客户端下载\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.dmac}},[_vm._v(\"Mac 版下载\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"size\":\"mini\",\"icon\":\"el-icon-download\"},on:{\"click\":_vm.dwin}},[_vm._v(\"Windows 版下载\")])],1)]),_c('div',{staticClass:\"right\"},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"onsubmit\":\"return false\",\"label-width\":\"80px\"}},[_c('span',{staticClass:\"lable\"},[_vm._v(\"用户登录\")]),_c('el-input',{staticClass:\"input\",attrs:{\"placeholder\":\"请输入用户名\",\"prefix-icon\":\"el-icon-user\"},model:{value:(_vm.form.username),callback:function ($$v) {_vm.$set(_vm.form, \"username\", $$v)},expression:\"form.username\"}}),_c('el-input',{staticClass:\"input\",attrs:{\"type\":\"password\",\"placeholder\":\"请输入密码\",\"prefix-icon\":\"el-icon-unlock\",\"show-password\":\"\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}}),_c('el-row',{staticClass:\"btn-group\",attrs:{\"type\":\"flex\"}},[_c('el-button',{attrs:{\"native-type\":\"submit\",\"size\":\"small\",\"type\":\"primary\"},on:{\"click\":_vm.login}},[_vm._v(\"登录\")]),_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"info\"}},[_vm._v(\"重置\")])],1)],1)],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"login\">\n <div class=\"form\">\n <div class=\"left\">\n <div class=\"tit\">欢迎回来, 请登录!</div>\n <span>客服系统-工作台</span>\n <div class=\"client\">\n <p>客户端下载</p>\n <el-button @click=\"dmac\" type=\"primary\" size=\"mini\" icon=\"el-icon-download\">Mac 版下载</el-button>\n <el-button @click=\"dwin\" type=\"primary\" size=\"mini\" icon=\"el-icon-download\">Windows 版下载</el-button>\n </div>\n </div>\n <div class=\"right\">\n <el-form ref=\"form\" :model=\"form\" onsubmit=\"return false\" label-width=\"80px\">\n <span class=\"lable\">用户登录</span>\n <el-input\n class=\"input\"\n placeholder=\"请输入用户名\"\n prefix-icon=\"el-icon-user\"\n v-model=\"form.username\">\n </el-input>\n <el-input\n class=\"input\"\n type=\"password\"\n placeholder=\"请输入密码\"\n prefix-icon=\"el-icon-unlock\"\n show-password\n v-model=\"form.password\">\n </el-input>\n <el-row type=\"flex\" class=\"btn-group\">\n <el-button native-type=\"submit\" @click=\"login\" size=\"small\" type=\"primary\">登录</el-button>\n <el-button size=\"small\" type=\"info\">重置</el-button>\n </el-row>\n </el-form>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport axios from 'axios'\nexport default {\n name: 'login',\n data(){\n return{\n form: {\n auth_type: 1,\n username: \"\",\n password: \"\"\n }\n }\n },\n mounted(){\n document.title = \"用户登录\"\n },\n methods: {\n // login\n login(){\n // valid\n if(this.form.username.trim() == \"\"){\n this.$message.error('用户名不能为空!')\n return\n }\n if(this.form.password.trim() == \"\"){\n this.$message.error('密码不能为空!')\n return\n }\n axios.post('/auth/login', this.form)\n .then(response => {\n this.$store.commit(\"onChangeAdminInfo\", response.data.data)\n this.$store.commit(\"onIsLogin\", true)\n localStorage.setItem(\"Authorization\", response.data.data.token)\n this.$message({\n message: '登录成功!',\n type: 'success'\n });\n this.$router.push({ path: '/index'})\n })\n .catch(error => {\n console.log(error)\n this.$message.error(error.response.data.message)\n });\n },\n dmac(){\n window.open(\"http://kf.aissz.com:666/static/app/mac-0.0.1.dmg\")\n },\n dwin(){\n window.open(\"http://kf.aissz.com:666/static/app/win-0.0.1.exe\")\n }\n }\n}\n</script>\n<style lang=\"stylus\" scoped>\n .login{\n display flex\n width 100%\n height 100%\n background url('../../assets/login_bg.jpg') center bottom no-repeat;\n background-size cover\n .form{\n display flex\n overflow hidden\n width 600px;\n height 300px;\n background-color #fff\n margin auto\n border-radius 5px;\n .left{\n width 350px\n height 100%\n padding 20px;\n box-sizing border-box\n background url('../../assets/login_bg1.jpg') center bottom no-repeat;\n background-size cover\n font-size 18px;\n color #fff\n display flex\n flex-direction column\n justify-content center\n .tit{\n margin-top: 50px;\n border-bottom 1px solid #fff\n }\n div{\n width 300px\n padding-bottom 10px;\n margin-bottom 10px;\n }\n span{\n font-size 14px;\n }\n .client{\n margin-top: 80px;\n button{\n margin-top 10px\n }\n }\n }\n .right{\n padding 20px;\n padding-top: 50px;\n .input{\n margin-bottom 20px;\n }\n .btn-group{\n margin-top: 15px;\n }\n .lable{\n font-size 18px;\n color: #606266;\n margin-bottom 15px;\n display block\n }\n }\n }\n }\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./login.vue?vue&type=template&id=11ae6484&scoped=true&\"\nimport script from \"./login.vue?vue&type=script&lang=js&\"\nexport * from \"./login.vue?vue&type=script&lang=js&\"\nimport style0 from \"./login.vue?vue&type=style&index=0&id=11ae6484&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"11ae6484\",\n null\n \n)\n\nexport default component.exports","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56896308"],{4468: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",[a("div",{staticClass:"mini-im-head"},[a("span",[a("i",{staticClass:"el-icon-user"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("用户管理")])])]),a("el-divider"),a("div",{staticClass:"search"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{width:"120px"}},[a("el-form",{ref:"form",attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"按条件查找:"}})],1)],1),a("el-col",{attrs:{span:3}},[a("el-select",{attrs:{placeholder:"请选择平台"},model:{value:e.tableData.platform,callback:function(t){e.$set(e.tableData,"platform",t)},expression:"tableData.platform"}},e._l(e.platformConfig,(function(e){return a("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1)],1),a("el-col",{attrs:{span:4}},[a("el-input",{attrs:{placeholder:"请输入关键词","prefix-icon":"el-icon-search",clearable:""},model:{value:e.tableData.keyword,callback:function(t){e.$set(e.tableData,"keyword",t)},expression:"tableData.keyword"}})],1),a("el-col",{attrs:{span:6.5}},[a("el-date-picker",{attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.selectDate,callback:function(t){e.selectDate=t},expression:"selectDate"}})],1),a("el-col",{attrs:{span:3}},[a("el-button",{on:{click:e.search}},[e._v("查 找")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.list}},[a("el-table-column",{attrs:{type:"index",index:e.indexMethod,label:"#序号",width:"60"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-avatar",{attrs:{size:40,src:t.row.avatar||e.$store.state.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"nickname",label:"用户昵称"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.nickname?a("span",[e._v(e._s(t.row.nickname))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"uid",label:"业务平台ID"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.uid?a("span",[e._v(e._s(t.row.uid))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"address",label:"所在地区"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.address?a("span",[e._v(e._s(t.row.address))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"phone",label:"联系方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[""!=t.row.phone?a("span",[e._v(e._s(t.row.phone))]):a("span",[e._v("------")])]}}])}),a("el-table-column",{attrs:{prop:"online",align:"center",label:"在线状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.online?a("el-tag",{attrs:{type:"success"}},[e._v("在线")]):e._e(),0==t.row.online?a("el-tag",{attrs:{type:"info"}},[e._v("离线")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"platform",align:"center",label:"服务平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",[e._v(e._s(e.$getPlatformItem(t.row.platform).title))])]}}])}),a("el-table-column",{attrs:{prop:"remarks",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.remarks||"------")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"注册时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$formatUnixDate(t.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"operating",align:"center",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.edit(t.row)}}},[e._v("编 辑")]),1==e.$store.getters.adminInfo.root?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return e.deleteUser(t.row)}}},[e._v("删 除")]):e._e()]}}])})],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[e._v("共找到"+e._s(e.tableData.total)+"条数据")]),a("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":e.tableData.page_on,"page-sizes":[5,10,15,20],total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),a("EditDialog",{attrs:{complete:e.getUsers,formData:e.editItem,dialogFormVisible:e.editDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editDialogFormVisible=t}}})],1)},l=[],s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"编辑用户","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"头像","label-width":e.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:e.form.avatar||e.$store.state.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[e._v(e._s(e.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"用户昵称","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入用户昵称",autocomplete:"off"},model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"所在地区","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入所在地区",autocomplete:"off"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),a("el-form-item",{attrs:{label:"联系方式","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入联系方式",autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),a("el-form-item",{attrs:{label:"备注","label-width":e.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入备注",autocomplete:"off"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},n=[],r=a("bc3a"),i=a.n(r),c=a("fb21"),d={name:"mini-im-edit-user",data:function(){return{form:{id:"",avatar:"",phone:"",address:"",nickname:"",remarks:""},formLabelWidth:"120px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},changeFile:function(e){var t=this,a=e.target.files[0];Object(c["a"])({file:a,progress:function(e){t.isUploading=!0,t.uploadPercent=e+"%"},success:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.success("上传成功");var a=t.$store.getters.configs.upload_host+"/"+e;t.form.avatar=a},error:function(e){t.isUploading=!1,t.uploadPercent="",t.$message.error(e.message)}})},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});i.a.put("/user",this.form).then((function(a){try{console.log(a),t.close(),e.$message.success("修改成功"),e.closeModal(),e.complete()}catch(o){console.log(o)}})).catch((function(a){t.close(),e.$message.error(a.response.data.message)}))}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},u=d,p=(a("b65d"),a("2877")),f=Object(p["a"])(u,s,n,!1,null,"3c5e06b6",null),m=f.exports,b=a("c1df"),g={name:"robot",components:{EditDialog:m},data:function(){return{loading:!0,selectDate:[],tableData:{list:[],page_on:1,page_size:10,keyword:"",total:0,platform:1,date_start:"",date_end:""},editItem:{},editDialogFormVisible:!1}},computed:{platformConfig:function(){return this.$store.getters.platformConfig}},created:function(){var e=this;setTimeout((function(){return e.getUsers(1)}),500)},methods:{indexMethod:function(e){return(this.tableData.page_on-1)*this.tableData.page_size+e+1},edit:function(e){this.editItem=e,this.editDialogFormVisible=!0},deleteUser:function(e){var t=this;this.$confirm("您确定要删除该用户吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){i.a.delete("/user/"+e.id).then((function(e){console.log(e.data),t.$message.success("删除成功"),t.getUsers(1)})).catch((function(e){t.$message.error(e.response.data.message)}))}))},handleSizeChange:function(e){this.tableData.page_size=e,this.getUsers()},handleCurrentChange:function(e){this.tableData.page_on=e,this.getUsers()},search:function(){2==this.selectDate.length?(this.tableData.date_start=b(this.selectDate[0]).format("YYYY-MM-DD"),this.tableData.date_end=b(this.selectDate[1]).format("YYYY-MM-DD")):(this.tableData.date_start="",this.tableData.date_end=""),this.getUsers(1)},getUsers:function(e){var t=this;e&&(this.tableData.page_on=e);var a=this.tableData,o=a.page_on,l=a.page_size,s=a.keyword,n=a.date_start,r=a.date_end,c=a.platform;i.a.post("/user/list",{page_on:o,page_size:l,keyword:s,date_start:n,date_end:r,platform:c}).then((function(e){t.loading=!1,t.tableData=e.data.data})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))}}},h=g,_=(a("ae04"),Object(p["a"])(h,o,l,!1,null,"3a13145a",null));t["default"]=_.exports},"978f":function(e,t,a){},ae04:function(e,t,a){"use strict";var o=a("978f"),l=a.n(o);l.a},b65d:function(e,t,a){"use strict";var o=a("d5ea"),l=a.n(o);l.a},d5ea:function(e,t,a){}}]);
//# sourceMappingURL=chunk-56896308.d6c7d80b.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-56896308.2e82959c.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/users/index.vue?be28","webpack:///./src/views/users/edit.vue?9c24","webpack:///src/views/users/edit.vue","webpack:///./src/views/users/edit.vue?2db2","webpack:///./src/views/users/edit.vue","webpack:///src/views/users/index.vue","webpack:///./src/views/users/index.vue?6c0d","webpack:///./src/views/users/index.vue","webpack:///./src/views/users/index.vue?24a9","webpack:///./src/views/users/edit.vue?0ce9"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","model","value","tableData","callback","$$v","$set","expression","_l","item","key","id","title","selectDate","on","search","directives","name","rawName","list","indexMethod","scopedSlots","_u","fn","scope","row","avatar","$store","state","nickname","_s","uid","address","phone","online","_e","$getPlatformItem","platform","remarks","$formatUnixDate","create_at","$event","edit","getters","adminInfo","root","deleteUser","total","page_on","handleSizeChange","handleCurrentChange","getUsers","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","changeFile","uploadPercent","closeModal","save","data","isUploading","props","Boolean","complete","Function","formData","Object","methods","$emit","fileData","file","target","files","lock","text","spinner","background","watch","assign","component","moment","components","EditDialog","loading","page_size","keyword","date_start","date_end","computed","platformConfig","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","val","format"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,iBAAiBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,cAAcL,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,SAAS,CAACG,MAAM,CAAC,OAAS,KAAK,CAACH,EAAG,SAAS,CAACM,YAAY,CAAC,MAAQ,UAAU,CAACN,EAAG,UAAU,CAACO,IAAI,OAAOJ,MAAM,CAAC,cAAc,UAAU,CAACH,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,aAAa,IAAI,GAAGH,EAAG,SAAS,CAACG,MAAM,CAAC,KAAO,IAAI,CAACH,EAAG,YAAY,CAACG,MAAM,CAAC,YAAc,SAASK,MAAM,CAACC,MAAOb,EAAIc,UAAkB,SAAEC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIc,UAAW,WAAYE,IAAME,WAAW,uBAAuBlB,EAAImB,GAAInB,EAAkB,gBAAE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AWA,cACMxD,KAAK0G,SAAS,uBAAwB,QAAS,CAC7CC,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRC,KAAM,YACd,iBACQ,EAAR,wBACA,kBACU,QAAV,YACU,EAAV,yBACU,EAAV,eAEA,mBACU,EAAV,+CAKInD,iBA9BJ,SA8BA,GACM3D,KAAKa,UAAUoF,UAAYc,EAC3B/G,KAAK6D,YAGPD,oBAnCJ,SAmCA,GACM5D,KAAKa,UAAU6C,QAAUqD,EACzB/G,KAAK6D,YAGPpC,OAxCJ,WAyCA,2BACQzB,KAAKa,UAAUsF,WAAaN,EAAO7F,KAAKuB,WAAW,IAAIyF,OAAO,cAC9DhH,KAAKa,UAAUuF,SAAWP,EAAO7F,KAAKuB,WAAW,IAAIyF,OAAO,gBAE5DhH,KAAKa,UAAUsF,WAAa,GAC5BnG,KAAKa,UAAUuF,SAAW,IAE5BpG,KAAK6D,SAAS,IAGhBA,SAnDJ,SAmDA,cACA,8BADA,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,UAFA,EAEA,aAFA,EAEA,WAFA,EAEA,SACM,EAAN,0FACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,8CC7NiY,ICQ7X,G,UAAY,eACd,EACA/D,EACAkE,GACA,EACA,KACA,WACA,OAIa,e,oECnBf,yBAAyjB,EAAG,G,kCCA5jB,yBAAwjB,EAAG,G","file":"js/chunk-56896308.2e82959c.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按条件查找:\"}})],1)],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择平台\"},model:{value:(_vm.tableData.platform),callback:function ($$v) {_vm.$set(_vm.tableData, \"platform\", $$v)},expression:\"tableData.platform\"}},_vm._l((_vm.platformConfig),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1),_c('el-col',{attrs:{\"span\":4}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":6.5}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"align\":\"right\",\"unlink-panels\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"80\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"用户昵称\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.nickname != '')?_c('span',[_vm._v(_vm._s(scope.row.nickname))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"uid\",\"label\":\"业务平台ID\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.uid != '')?_c('span',[_vm._v(_vm._s(scope.row.uid))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"address\",\"label\":\"所在地区\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.address != '')?_c('span',[_vm._v(_vm._s(scope.row.address))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"联系方式\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.phone != '')?_c('span',[_vm._v(_vm._s(scope.row.phone))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"服务平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"remarks\",\"label\":\"备注\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.remarks || '------')+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"注册时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),(_vm.$store.getters.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteUser(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('EditDialog',{attrs:{\"complete\":_vm.getUsers,\"formData\":_vm.editItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"编辑用户\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"用户昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入用户昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"所在地区\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入所在地区\",\"autocomplete\":\"off\"},model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"备注\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入备注\",\"autocomplete\":\"off\"},model:{value:(_vm.form.remarks),callback:function ($$v) {_vm.$set(_vm.form, \"remarks\", $$v)},expression:\"form.remarks\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n title=\"编辑用户\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"用户昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入用户昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"所在地区\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.address\" placeholder=\"请输入所在地区\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"备注\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.remarks\" type=\"textarea\" placeholder=\"请输入备注\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-edit-user\",\n data() {\n return {\n form: {\n id: \"\",\n avatar: \"\",\n phone: \"\",\n address: \"\",\n nickname: \"\",\n remarks: \"\"\n },\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/user\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n },\n watch:{\n formData(){\n this.form = Object.assign({},this.form, this.formData)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=3c5e06b6&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=3c5e06b6&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3c5e06b6\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按条件查找:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"3\">\n <el-select v-model=\"tableData.platform\" placeholder=\"请选择平台\">\n <el-option\n v-for=\"item in platformConfig\"\n :key=\"item.id\"\n :label=\"item.title\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"4\">\n <el-input placeholder=\"请输入关键词\" prefix-icon=\"el-icon-search\" v-model=\"tableData.keyword\" clearable></el-input>\n </el-col>\n <el-col :span=\"6.5\">\n <el-date-picker\n v-model=\"selectDate\"\n type=\"daterange\"\n align=\"right\"\n unlink-panels\n range-separator=\"至\"\n start-placeholder=\"开始日期\"\n end-placeholder=\"结束日期\"\n ></el-date-picker>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"avatar\" label=\"头像\" width=\"80\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"用户昵称\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.nickname != ''\">{{scope.row.nickname}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"uid\" label=\"业务平台ID\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.uid != ''\">{{scope.row.uid}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"address\" label=\"所在地区\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.address != ''\">{{scope.row.address}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"phone\" label=\"联系方式\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.phone != ''\">{{scope.row.phone}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"online\" align=\"center\" label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" align=\"center\" label=\"服务平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"remarks\" label=\"备注\">\n <template slot-scope=\"scope\">\n {{scope.row.remarks || '------'}}\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"注册时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button v-if=\"$store.getters.adminInfo.root == 1\" size=\"mini\" type=\"danger\" @click=\"deleteUser(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <EditDialog :complete=\"getUsers\" :formData=\"editItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport EditDialog from \"./edit\";\nimport axios from 'axios'\nvar moment = require('moment');\nexport default {\n name: \"robot\",\n components: {\n EditDialog\n },\n data() {\n return {\n loading: true,\n selectDate: [],\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n platform: 1,\n date_start: \"\",\n date_end: \"\",\n },\n editItem: {},\n editDialogFormVisible: false,\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n }\n },\n created() {\n setTimeout(()=> this.getUsers(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 删除\n deleteUser(item) {\n this.$confirm('您确定要删除该用户吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/user/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getUsers(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getUsers()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getUsers()\n },\n // 查询\n search(){\n if(this.selectDate.length == 2){\n this.tableData.date_start = moment(this.selectDate[0]).format(\"YYYY-MM-DD\")\n this.tableData.date_end = moment(this.selectDate[1]).format(\"YYYY-MM-DD\")\n }else{\n this.tableData.date_start = \"\"\n this.tableData.date_end = \"\"\n }\n this.getUsers(1)\n },\n // 获取数据\n getUsers(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword, date_start, date_end, platform} = this.tableData\n axios.post('/user/list', {page_on, page_size, keyword, date_start, date_end, platform})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3a13145a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a13145a\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3c5e06b6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3c5e06b6&scoped=true&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/users/index.vue?e818","webpack:///./src/views/users/edit.vue?8595","webpack:///src/views/users/edit.vue","webpack:///./src/views/users/edit.vue?2db2","webpack:///./src/views/users/edit.vue?6561","webpack:///src/views/users/index.vue","webpack:///./src/views/users/index.vue?6c0d","webpack:///./src/views/users/index.vue?9410","webpack:///./src/views/users/index.vue?24a9","webpack:///./src/views/users/edit.vue?0ce9"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","ref","model","value","tableData","callback","$$v","$set","expression","_l","item","key","id","title","selectDate","on","search","directives","name","rawName","list","indexMethod","scopedSlots","_u","fn","scope","row","avatar","$store","state","nickname","_s","uid","address","phone","online","_e","$getPlatformItem","platform","remarks","$formatUnixDate","create_at","$event","edit","getters","adminInfo","root","deleteUser","total","page_on","handleSizeChange","handleCurrentChange","getUsers","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","changeFile","uploadPercent","closeModal","save","data","isUploading","props","Boolean","complete","Function","formData","Object","methods","$emit","fileData","file","target","files","lock","text","spinner","background","watch","assign","component","moment","components","EditDialog","loading","page_size","keyword","date_start","date_end","computed","platformConfig","created","setTimeout","index","$confirm","confirmButtonText","cancelButtonText","center","type","val","format"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,iBAAiBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,cAAcL,EAAG,cAAcA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,SAAS,CAACG,MAAM,CAAC,OAAS,KAAK,CAACH,EAAG,SAAS,CAACM,YAAY,CAAC,MAAQ,UAAU,CAACN,EAAG,UAAU,CAACO,IAAI,OAAOJ,MAAM,CAAC,cAAc,UAAU,CAACH,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQ,aAAa,IAAI,GAAGH,EAAG,SAAS,CAACG,MAAM,CAAC,KAAO,IAAI,CAACH,EAAG,YAAY,CAACG,MAAM,CAAC,YAAc,SAASK,MAAM,CAACC,MAAOb,EAAIc,UAAkB,SAAEC,SAAS,SAAUC,GAAMhB,EAAIiB,KAAKjB,EAAIc,UAAW,WAAYE,IAAME,WAAW,uBAAuBlB,EAAImB,GAAInB,EAAkB,gBAAE,SAASoB,GAAM,OAAOhB,EAAG,YAAY,CAACiB,IAAID,EAAKE,GAAGf,MAAM,CAAC,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AClBC,QAAQ,EACRC,KAAM,YACd,iBACQ,EAAR,wBACA,kBACU,QAAV,YACU,EAAV,yBACU,EAAV,eAEA,mBACU,EAAV,+CAKInD,iBA9BJ,SA8BA,GACM3D,KAAKa,UAAUoF,UAAYc,EAC3B/G,KAAK6D,YAGPD,oBAnCJ,SAmCA,GACM5D,KAAKa,UAAU6C,QAAUqD,EACzB/G,KAAK6D,YAGPpC,OAxCJ,WAyCA,2BACQzB,KAAKa,UAAUsF,WAAaN,EAAO7F,KAAKuB,WAAW,IAAIyF,OAAO,cAC9DhH,KAAKa,UAAUuF,SAAWP,EAAO7F,KAAKuB,WAAW,IAAIyF,OAAO,gBAE5DhH,KAAKa,UAAUsF,WAAa,GAC5BnG,KAAKa,UAAUuF,SAAW,IAE5BpG,KAAK6D,SAAS,IAGhBA,SAnDJ,SAmDA,cACA,8BADA,MAEA,iBAFA,EAEA,UAFA,EAEA,YAFA,EAEA,UAFA,EAEA,aAFA,EAEA,WAFA,EAEA,SACM,EAAN,0FACA,kBACQ,EAAR,WACQ,EAAR,yBAEA,mBACQ,EAAR,WACQ,EAAR,8CC7NiY,ICQ7X,G,UAAY,eACd,EACA/D,EACAkE,GACA,EACA,KACA,WACA,OAIa,e,oECnBf,yBAAyjB,EAAG,G,kCCA5jB,yBAAwjB,EAAG,G","file":"js/chunk-56896308.d6c7d80b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-user\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"用户管理\")])])]),_c('el-divider'),_c('div',{staticClass:\"search\"},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticStyle:{\"width\":\"120px\"}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"120px\"}},[_c('el-form-item',{attrs:{\"label\":\"按条件查找:\"}})],1)],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-select',{attrs:{\"placeholder\":\"请选择平台\"},model:{value:(_vm.tableData.platform),callback:function ($$v) {_vm.$set(_vm.tableData, \"platform\", $$v)},expression:\"tableData.platform\"}},_vm._l((_vm.platformConfig),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1),_c('el-col',{attrs:{\"span\":4}},[_c('el-input',{attrs:{\"placeholder\":\"请输入关键词\",\"prefix-icon\":\"el-icon-search\",\"clearable\":\"\"},model:{value:(_vm.tableData.keyword),callback:function ($$v) {_vm.$set(_vm.tableData, \"keyword\", $$v)},expression:\"tableData.keyword\"}})],1),_c('el-col',{attrs:{\"span\":6.5}},[_c('el-date-picker',{attrs:{\"type\":\"daterange\",\"align\":\"right\",\"unlink-panels\":\"\",\"range-separator\":\"至\",\"start-placeholder\":\"开始日期\",\"end-placeholder\":\"结束日期\"},model:{value:(_vm.selectDate),callback:function ($$v) {_vm.selectDate=$$v},expression:\"selectDate\"}})],1),_c('el-col',{attrs:{\"span\":3}},[_c('el-button',{on:{\"click\":_vm.search}},[_vm._v(\"查 找\")])],1)],1)],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"label\":\"#序号\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"80\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar || _vm.$store.state.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"用户昵称\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.nickname != '')?_c('span',[_vm._v(_vm._s(scope.row.nickname))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"uid\",\"label\":\"业务平台ID\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.uid != '')?_c('span',[_vm._v(_vm._s(scope.row.uid))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"address\",\"label\":\"所在地区\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.address != '')?_c('span',[_vm._v(_vm._s(scope.row.address))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"phone\",\"label\":\"联系方式\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.phone != '')?_c('span',[_vm._v(_vm._s(scope.row.phone))]):_c('span',[_vm._v(\"------\")])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"online\",\"align\":\"center\",\"label\":\"在线状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.online == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"在线\")]):_vm._e(),(scope.row.online == 0)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\"离线\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"platform\",\"align\":\"center\",\"label\":\"服务平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"remarks\",\"label\":\"备注\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.remarks || '------')+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"注册时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),(_vm.$store.getters.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteUser(scope.row)}}},[_vm._v(\"删 除\")]):_vm._e()]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1),_c('EditDialog',{attrs:{\"complete\":_vm.getUsers,\"formData\":_vm.editItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"编辑用户\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar || _vm.$store.state.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"用户昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入用户昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"所在地区\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入所在地区\",\"autocomplete\":\"off\"},model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1),_c('el-form-item',{attrs:{\"label\":\"联系方式\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入联系方式\",\"autocomplete\":\"off\"},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":\"备注\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":\"请输入备注\",\"autocomplete\":\"off\"},model:{value:(_vm.form.remarks),callback:function ($$v) {_vm.$set(_vm.form, \"remarks\", $$v)},expression:\"form.remarks\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n title=\"编辑用户\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar || $store.state.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"用户昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入用户昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"所在地区\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.address\" placeholder=\"请输入所在地区\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"联系方式\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.phone\" placeholder=\"请输入联系方式\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"备注\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.remarks\" type=\"textarea\" placeholder=\"请输入备注\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-edit-user\",\n data() {\n return {\n form: {\n id: \"\",\n avatar: \"\",\n phone: \"\",\n address: \"\",\n nickname: \"\",\n remarks: \"\"\n },\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/user\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n },\n watch:{\n formData(){\n this.form = Object.assign({},this.form, this.formData)\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=3c5e06b6&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=3c5e06b6&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3c5e06b6\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-user\"></i>\n <span slot=\"title\">用户管理</span>\n </span>\n </div>\n <el-divider />\n <div class=\"search\">\n <el-row :gutter=\"20\">\n <el-col style=\"width: 120px\">\n <el-form ref=\"form\" label-width=\"120px\">\n <el-form-item label=\"按条件查找:\"></el-form-item>\n </el-form>\n </el-col>\n <el-col :span=\"3\">\n <el-select v-model=\"tableData.platform\" placeholder=\"请选择平台\">\n <el-option\n v-for=\"item in platformConfig\"\n :key=\"item.id\"\n :label=\"item.title\"\n :value=\"item.id\"\n ></el-option>\n </el-select>\n </el-col>\n <el-col :span=\"4\">\n <el-input placeholder=\"请输入关键词\" prefix-icon=\"el-icon-search\" v-model=\"tableData.keyword\" clearable></el-input>\n </el-col>\n <el-col :span=\"6.5\">\n <el-date-picker\n v-model=\"selectDate\"\n type=\"daterange\"\n align=\"right\"\n unlink-panels\n range-separator=\"至\"\n start-placeholder=\"开始日期\"\n end-placeholder=\"结束日期\"\n ></el-date-picker>\n </el-col>\n <el-col :span=\"3\">\n <el-button @click=\"search\">查 找</el-button>\n </el-col>\n </el-row>\n </div>\n <el-table :data=\"tableData.list\" v-loading=\"loading\" style=\"width: 100%\">\n <el-table-column\n type=\"index\"\n :index=\"indexMethod\"\n label=\"#序号\"\n width=\"60\">\n </el-table-column>\n <el-table-column prop=\"avatar\" label=\"头像\" width=\"80\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar || $store.state.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column prop=\"nickname\" label=\"用户昵称\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.nickname != ''\">{{scope.row.nickname}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"uid\" label=\"业务平台ID\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.uid != ''\">{{scope.row.uid}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"address\" label=\"所在地区\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.address != ''\">{{scope.row.address}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"phone\" label=\"联系方式\">\n <template slot-scope=\"scope\">\n <span v-if=\"scope.row.phone != ''\">{{scope.row.phone}}</span>\n <span v-else>------</span>\n </template>\n </el-table-column>\n <el-table-column prop=\"online\" align=\"center\" label=\"在线状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.online == 1\">在线</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.online == 0\">离线</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"platform\" align=\"center\" label=\"服务平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"remarks\" label=\"备注\">\n <template slot-scope=\"scope\">\n {{scope.row.remarks || '------'}}\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"注册时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" label=\"操作\" width=\"150\">\n <template slot-scope=\"scope\">\n <el-button size=\"mini\" @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button v-if=\"$store.getters.adminInfo.root == 1\" size=\"mini\" type=\"danger\" @click=\"deleteUser(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\">\n </el-pagination>\n </el-row>\n <EditDialog :complete=\"getUsers\" :formData=\"editItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport EditDialog from \"./edit\";\nimport axios from 'axios'\nvar moment = require('moment');\nexport default {\n name: \"robot\",\n components: {\n EditDialog\n },\n data() {\n return {\n loading: true,\n selectDate: [],\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n keyword: \"\",\n total: 0,\n platform: 1,\n date_start: \"\",\n date_end: \"\",\n },\n editItem: {},\n editDialogFormVisible: false,\n };\n },\n computed: {\n platformConfig(){\n return this.$store.getters.platformConfig\n }\n },\n created() {\n setTimeout(()=> this.getUsers(1), 500)\n },\n methods: {\n // 行号\n indexMethod(index) {\n return (this.tableData.page_on - 1) * this.tableData.page_size + index +1;\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 删除\n deleteUser(item) {\n this.$confirm('您确定要删除该用户吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/user/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getUsers(1)\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val\n this.getUsers()\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val\n this.getUsers()\n },\n // 查询\n search(){\n if(this.selectDate.length == 2){\n this.tableData.date_start = moment(this.selectDate[0]).format(\"YYYY-MM-DD\")\n this.tableData.date_end = moment(this.selectDate[1]).format(\"YYYY-MM-DD\")\n }else{\n this.tableData.date_start = \"\"\n this.tableData.date_end = \"\"\n }\n this.getUsers(1)\n },\n // 获取数据\n getUsers(index){\n if(index) this.tableData.page_on = index\n const {page_on, page_size, keyword, date_start, date_end, platform} = this.tableData\n axios.post('/user/list', {page_on, page_size, keyword, date_start, date_end, platform})\n .then(response => {\n this.loading = false\n this.tableData = response.data.data\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.mini-im-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3a13145a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a13145a\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a13145a&lang=stylus&scoped=true&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3c5e06b6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=3c5e06b6&scoped=true&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d055fa8"],{"11e9":function(t,e,s){var r=s("52a7"),o=s("4630"),a=s("6821"),n=s("6a99"),i=s("69a8"),c=s("c69a"),l=Object.getOwnPropertyDescriptor;e.f=s("9e1e")?l:function(t,e){if(t=a(t),e=n(e,!0),c)try{return l(t,e)}catch(s){}if(i(t,e))return o(!r.f.call(t,e),t[e])}},"1c01":function(t,e,s){var r=s("5ca1");r(r.S+r.F*!s("9e1e"),"Object",{defineProperty:s("86cc").f})},"42f5":function(t,e,s){},"454f":function(t,e,s){s("46a7");var r=s("584a").Object;t.exports=function(t,e,s){return r.defineProperty(t,e,s)}},"456d":function(t,e,s){var r=s("4bf8"),o=s("0d58");s("5eda")("keys",(function(){return function(t){return o(r(t))}}))},"46a7":function(t,e,s){var r=s("63b6");r(r.S+r.F*!s("8e60"),"Object",{defineProperty:s("d9f6").f})},"4f37":function(t,e,s){"use strict";s("aa77")("trim",(function(t){return function(){return t(this,3)}}))},"58b2":function(t,e,s){var r=s("5ca1");r(r.S+r.F*!s("9e1e"),"Object",{defineProperties:s("1495")})},"5eda":function(t,e,s){var r=s("5ca1"),o=s("8378"),a=s("79e5");t.exports=function(t,e){var s=(o.Object||{})[t]||Object[t],n={};n[t]=e(s),r(r.S+r.F*a((function(){s(1)})),"Object",n)}},"71c11":function(t,e,s){"use strict";var r=s("bf4b"),o=s.n(r);o.a},7893:function(t,e,s){"use strict";var r=s("7ea9"),o=s.n(r);o.a},"7ea9":function(t,e,s){},"82f4":function(t,e,s){"use strict";var r=s("42f5"),o=s.n(r);o.a},"85f2":function(t,e,s){t.exports=s("454f")},"8b02":function(t,e,s){},"8e6e":function(t,e,s){var r=s("5ca1"),o=s("990b"),a=s("6821"),n=s("11e9"),i=s("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){var e,s,r=a(t),c=n.f,l=o(r),u={},d=0;while(l.length>d)s=c(r,e=l[d++]),void 0!==s&&i(u,e,s);return u}})},9093:function(t,e,s){var r=s("ce10"),o=s("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"965d":function(t,e,s){"use strict";var r=s("8b02"),o=s.n(r);o.a},"990b":function(t,e,s){var r=s("9093"),o=s("2621"),a=s("cb7c"),n=s("7726").Reflect;t.exports=n&&n.ownKeys||function(t){var e=r.f(a(t)),s=o.f;return s?e.concat(s(t)):e}},aa77:function(t,e,s){var r=s("5ca1"),o=s("be13"),a=s("79e5"),n=s("fdef"),i="["+n+"]",c="​…",l=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),d=function(t,e,s){var o={},i=a((function(){return!!n[t]()||c[t]()!=c})),l=o[t]=i?e(p):n[t];s&&(o[s]=l),r(r.P+r.F*i,"String",o)},p=d.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},ac6a:function(t,e,s){for(var r=s("cadf"),o=s("0d58"),a=s("2aba"),n=s("7726"),i=s("32e9"),c=s("84f2"),l=s("2b4c"),u=l("iterator"),d=l("toStringTag"),p=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(f),v=0;v<h.length;v++){var w,m=h[v],g=f[m],b=n[m],y=b&&b.prototype;if(y&&(y[u]||i(y,u,p),y[d]||i(y,d,m),c[m]=p,g))for(w in r)y[w]||a(y,w,r[w],!0)}},bd86:function(t,e,s){"use strict";s.d(e,"a",(function(){return a}));var r=s("85f2"),o=s.n(r);function a(t,e,s){return e in t?o()(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}},bf4b:function(t,e,s){},d25f:function(t,e,s){"use strict";var r=s("5ca1"),o=s("0a49")(2);r(r.P+r.F*!s("2f21")([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},df5f:function(t,e,s){"use strict";s.r(e);var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"me-head"},[s("span",[s("i",{staticClass:"el-icon-tickets"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("工单管理")]),s("span",{staticStyle:{"font-size":"15px","margin-left":"30px",color:"#e7a646"}},[t.workOrderCounts.status0>0||t.workOrderCounts.status2?[t._v("\n 当前有: \n ")]:t._e(),t.workOrderCounts.status0>0?[s("strong",{staticStyle:{color:"#f56c6c"}},[t._v(t._s(t.workOrderCounts.status0))]),t._v("条待处理 ,\n ")]:t._e(),t.workOrderCounts.status2>0?[s("strong",{staticStyle:{color:"#f56c6c"}},[t._v(" "+t._s(t.workOrderCounts.status2))]),t._v("条待回复工单 \n ")]:t._e()],2)]),1==t.adminInfo.root?s("el-row",{staticStyle:{width:"300px"},attrs:{type:"flex",align:"middle",justify:"space-between"}},[s("div",{staticClass:"switch"},[s("el-switch",{attrs:{"inactive-color":"#cccccc","active-color":"#8bc34a","active-text":t.isOpenWorkorder?"工单功能启用中":"工单功能关闭中"},on:{change:t.changeSwitch},model:{value:t.isOpenWorkorder,callback:function(e){t.isOpenWorkorder=e},expression:"isOpenWorkorder"}}),s("div",[t._v("工单关闭后客户端无法发起工单~")])],1),s("div",[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.isShowTypesView=!0}}},[t._v("分类设置")])],1)]):t._e()],1),s("el-divider"),s("el-row",{staticClass:"container-box",attrs:{type:"flex",justify:"space-between"}},[s("div",{staticClass:"menu"},[s("el-tabs",{staticStyle:{width:"200px",height:"80vh"},attrs:{"tab-position":"left"},on:{"tab-click":t.tabsChange}},[t._l(t.workorderTypes,(function(t){return[s("el-tab-pane",{key:t.id,attrs:{label:t.title+"("+t.count+")"}})]}))],2)],1),s("div",{staticClass:"table-content"},[s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list}},[s("el-table-column",{attrs:{type:"index",index:t.indexMethod,width:"60",label:"#序号"}}),s("el-table-column",{attrs:{prop:"title",label:"工单标题"}}),s("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.workorderTypes.length-1==t.tabIndex?[s("span",{staticStyle:{color:"#f56c6b"}},[t._v("已删除")])]:[0==e.row.status?s("el-tag",{attrs:{type:"danger"}},[t._v("待客服处理")]):t._e(),2==e.row.status?s("el-tag",{attrs:{type:"warning"}},[t._v("待客服回复")]):t._e(),1==e.row.status?s("el-tag",{attrs:{type:"success"}},[t._v("客服已回复")]):t._e(),3==e.row.status?s("el-tag",{attrs:{type:"info"}},[t._v(" 工单已结束 ")]):t._e()]]}}])}),s("el-table-column",{attrs:{prop:"u_nickname",label:"用户"}}),s("el-table-column",{attrs:{prop:"a_nickname",label:"最近处理(客服)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.a_nickname||"-----")+"\n ")]}}])}),s("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.$formatUnixDate(e.row.create_at,"YYYY/MM/DD")))]}}])}),s("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return t.onShow(e.row)}}},[t._v("查 看")])]}}])})],1),s("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[s("span",{staticStyle:{color:"#666","font-size":"14px"}},[t._v("共找到"+t._s(t.tableData.total)+"条数据")]),s("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":t.tableData.page_on,"page-sizes":[5,10,15,20],total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)]),s("WorkOrderView",{attrs:{workorderTypes:t.workorderTypes,prop:t.showWorkOrder},model:{value:t.isShowWorkOrderView,callback:function(e){t.isShowWorkOrderView=e},expression:"isShowWorkOrderView"}}),s("WorkOrderTypesView",{attrs:{workorderTypes:t.workorderTypes},model:{value:t.isShowTypesView,callback:function(e){t.isShowTypesView=e},expression:"isShowTypesView"}})],1)},o=[],a=(s("1c01"),s("58b2"),s("8e6e"),s("f3e2"),s("d25f"),s("ac6a"),s("456d"),s("bd86")),n=s("bc3a"),i=s.n(n),c=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"workorder-view"},[s("div",{staticClass:"mask",on:{dblclick:t.close}}),s("transition",{attrs:{name:"el-zoom-in-bottom"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"content-box",class:{"padding-bottom30":3==t.showData.status}},[s("div",{staticClass:"title"},[s("i",{staticClass:"el-icon-tickets"}),t._v(" 工单详细\n ")]),s("div",{staticClass:"buttons"},[1!=t.showData.status&&2!=t.showData.status||0!=t.showData.delete?t._e():s("el-button",{attrs:{size:"mini",type:"warning"},on:{click:t.closeWorkorder}},[t._v("关闭工单")]),3==t.showData.status&&1==t.adminInfo.root&&0==t.showData.delete?s("el-button",{attrs:{size:"mini",type:"danger"},on:{click:t.delWorkorder}},[t._v("删除工单")]):t._e(),1==t.showData.delete?s("div",{staticStyle:{"font-size":"13px","margin-top":"5px",color:"#f44336"}},[t._v("该工单已删除")]):t._e()],1),s("span",{staticClass:"close",on:{click:t.close}},[s("i",{staticClass:"el-icon-close"})]),s("div",{staticClass:"content"},[s("div",{staticClass:"scroll"},[s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("标题:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.title))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("用户:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.u_nickname))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("手机:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.phone))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("邮箱:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.email||"未预留邮箱"))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("类型:")]),s("div",{staticClass:"con"},[t._v(t._s(t.typeName||"---"))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("状态:")]),s("div",{staticClass:"con"},[0==t.showData.status?s("span",{staticStyle:{color:"#f56c6b"}},[t._v("待客服处理")]):t._e(),2==t.showData.status?s("span",{staticStyle:{color:"#e6a23c"}},[t._v("待客服回复")]):t._e(),1==t.showData.status?s("span",{staticStyle:{color:"#67c23a"}},[t._v("客服已回复")]):t._e(),3==t.showData.status?s("span",{staticStyle:{color:"#909399"}},[t._v("工单已结束")]):t._e()])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("内容:")]),s("div",{staticClass:"con",domProps:{innerHTML:t._s(t.showData.content)}})]),s("el-divider",{staticStyle:{height:"10px"}}),s("div",{staticClass:"comments"},[t.comments.length<=0&&!t.isShowGetCommentsLoading?s("div",{staticClass:"no-data"},[t._v("暂无回复内容~")]):t._e(),t.isShowGetCommentsLoading?s("div",{staticClass:"comments-loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[t._v("正在努力加载中~")])]):t._l(t.comments,(function(e,r){return[s("div",{key:r,staticClass:"item"},[s("div",{staticClass:"avatar"},[e.aid==t.adminInfo.id?s("img",{attrs:{src:t.adminInfo.avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}}):s("img",{attrs:{src:e.a_avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}})]),s("div",{staticClass:"right"},[0==e.aid?s("div",{staticClass:"nickname"},[t._v(t._s(e.u_nickname))]):s("div",{staticClass:"nickname"},[t._v(t._s(e.a_nickname))]),s("div",{staticClass:"detail",domProps:{innerHTML:t._s(e.content)}}),s("div",{staticClass:"date"},[t._v(t._s(t.$formatDate(e.create_at)))])])])]})),t.showData&&3==t.showData.status?s("div",{staticClass:"workorder-close"},[t._v("工单已结束~")]):t._e()],2)],1)]),""!=t.request.source||t.isShowUploadLoading?s("div",{staticClass:"file-view"},[t.isShowUploadLoading?s("span",[s("i",{staticClass:"el-icon-loading"}),s("i",[t._v("上传中~")])]):s("span",[s("i",{staticClass:"el-icon-paperclip"}),s("i",[t._v("你已成功添加附件,重新上传可替换~")])])]):t._e(),3!=t.showData.status?s("div",{staticClass:"input-form"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.request.content,expression:"request.content"}],attrs:{placeholder:"请输入内容~"},domProps:{value:t.request.content},on:{blur:function(e){return t.inputBlur()},input:function(e){e.target.composing||t.$set(t.request,"content",e.target.value)}}}),s("span",{staticClass:"icon-btn"},[s("input",{attrs:{title:"添加附件",type:"file",onclick:"this.value = null"},on:{change:t.uploadFile}})]),s("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.reply()}}},[t._v("提交")])],1):t._e()])])],1)},l=[],u=(s("57e7"),s("9865"),s("4f37"),s("2f62")),d=s("fb21");function p(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function f(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?p(Object(s),!0).forEach((function(e){Object(a["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var h={name:"workorder-view",data:function(){return{isShowUploadLoading:!1,isShowGetCommentsLoading:!1,isSubmit:!1,workorder:null,comments:[],fileType:"",request:{source:"",content:""}}},props:{value:{default:!1,type:Boolean},prop:Object,workorderTypes:Array},created:function(){this.comments=[]},computed:f({showData:function(){return this.workorder||this.prop},isShowAside:function(){return this.$store.state.isShowAside},typeName:function(){var t=this;try{return this.workorderTypes.filter((function(e){return e.id==t.showData.tid}))[0].title}catch(e){return""}}},Object(u["b"])(["adminInfo","configs"])),methods:{close:function(){this.$emit("input",!1)},getWorkOrder:function(){var t=this;i.a.get("/public/workorder/"+this.prop.id).then((function(e){null!=e.data.data&&(t.workorder=e.data.data),setTimeout((function(){return t.$previewRefresh()}),500)}))},getComments:function(){var t=this;this.isShowGetCommentsLoading=!0,i.a.get("/public/workorder/comments/"+this.prop.id).then((function(e){null!=e.data.data&&(t.comments=e.data.data),setTimeout((function(){return t.$previewRefresh()}),500),t.isShowGetCommentsLoading=!1})).catch((function(e){console.log(e),t.isShowGetCommentsLoading=!1,t.$message.error("加载失败,请刷新尝试~")}))},closeWorkorder:function(){var t=this;this.$prompt("请输入关闭原因!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"关闭工单原因不能为空~"}).then((function(e){var s=e.value,r=t.showData.id,o=s;i.a.post("/workorder/close",{wid:r,remark:o}).then((function(){t.getWorkOrder(),t.$notify({title:"温馨提示!",message:"工单已关闭~",showClose:!1,type:"success"})})).catch((function(){t.$message.error("工单关闭失败~")}))}))},delWorkorder:function(){var t=this;this.$confirm("您确定删除该工单吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t.showData.id;i.a.delete("/public/workorder/"+e).then((function(){t.$notify({title:"温馨提示!",message:"工单已删除~",showClose:!1,type:"success"}),t.close()})).catch((function(){t.$message.error("工单删除失败~")}))}))},reply:function(){var t=this,e=this.request.content+this.request.source;if(""!=e.trim()){if(!this.isSubmit){this.isSubmit=!0;var s=this.showData.id;i.a.post("/public/workorder/reply",{wid:s,content:e}).then((function(e){t.isSubmit=!1,console.log(e),t.getComments(),t.request={source:"",content:""},t.$notify({title:"温馨提示!",message:"回复成功~",showClose:!1,type:"success"}),setTimeout((function(){var t=document.querySelector(".content").clientHeight,e=document.querySelector(".scroll").clientHeight;document.querySelector(".content").scrollTop=e-t+20}),500)})).catch((function(e){t.isSubmit=!1,console.log(e),t.$message.error("提交失败~")}))}}else this.$message.error("请输入内容~")},inputBlur:function(){setTimeout((function(){document.body.scrollTo=0,window.scrollTo(0,0)}),100)},uploadFile:function(t){var e=t.target,s=e.files[0];this.isShowUploadLoading=!0;var r=this;Object(d["a"])({file:s,mode:this.configs.upload_mode,progress:function(){},success:function(t){var e;r.isShowUploadLoading=!1;var s=r.configs.upload_host+"/"+t,o=t.substr(t.lastIndexOf(".")+1);-1!="jpg,jpeg,png,JPG,JPEG,PNG".indexOf(o)?e="<br><img style='max-width:45%;margin-top:5px;' preview='1' src='"+s+"' />":(e="<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />",e+="<a target='_blank' style='color: #2e9dfc;' href='"+s+"'>下载附件</a>"),r.request.source=e,r.$notify({title:"温馨提示!",message:"上传成功~",showClose:!1,type:"success"})},error:function(t){r.isShowUploadLoading=!1,t.response&&t.response.data&&r.$message.error(t.response.data.message)}})}},watch:{prop:function(){var t=this;this.getWorkOrder(),setTimeout((function(){t.$previewRefresh(),t.getComments()}),500)}}},v=h,w=(s("71c11"),s("2877")),m=Object(w["a"])(v,c,l,!1,null,"058f6a25",null),g=m.exports,b=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"workorder-view"},[s("div",{staticClass:"mask",on:{dblclick:t.close}}),s("div",{staticClass:"content-box"},[s("el-row",{staticClass:"title",attrs:{type:"flex"}},[s("span",[s("i",{staticClass:"el-icon-tickets"}),t._v(" 分类设置\n ")]),s("div",[s("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.add}},[t._v("添加分类")])],1)]),s("span",{staticClass:"close",on:{click:t.close}},[s("i",{staticClass:"el-icon-close"})]),s("div",{staticClass:"content"},[s("div",{staticClass:"scroll"},[s("ul",{staticClass:"list"},[t._l(t.showWorkorderTypes,(function(e){return[s("li",{key:e.id},[s("el-row",{attrs:{type:"flex",algin:"middle"}},[s("div",[s("i",{staticClass:"el-icon-tickets"})]),s("span",[t._v(t._s(e.title))]),s("div",{staticClass:"update",on:{click:function(s){return t.update(e)}}},[s("i",{staticClass:"el-icon-edit-outline"})]),s("div",{staticClass:"del",on:{click:function(s){return t.del(e)}}},[s("i",{staticClass:"el-icon-close"})])])],1)]}))],2)])])],1)])},y=[],k={name:"workorder-view",data:function(){return{isSubmit:!1,types:null}},props:{value:{default:!1,type:Boolean},workorderTypes:Array},created:function(){this.getWorkorderTypes()},computed:{showWorkorderTypes:function(){return this.types||this.workorderTypes.slice(1,this.workorderTypes.length-2)},isShowAside:function(){return this.$store.state.isShowAside}},methods:{close:function(){this.$emit("input",!1)},getWorkorderTypes:function(){var t=this;i.a.get("/workorder/types").then((function(e){t.types=e.data.data})).catch((function(e){t.$message.error(e.response.data.message)}))},add:function(){var t=this;this.$prompt("请输入分类名称!","添加分类",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"分类名称不能为空~"}).then((function(e){var s=e.value;i.a.post("/workorder/type/",{title:s}).then((function(){t.getWorkorderTypes()})).catch((function(e){t.$message.error(e.response.data.message)}))}))},del:function(t){var e=this;this.$confirm("您确定删除 "+t.title+" 该分类吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.a.delete("/workorder/type/"+t.id).then((function(){e.getWorkorderTypes()})).catch((function(t){e.$message.error(t.response.data.message)}))}))},update:function(t){var e=this;this.$prompt("","分类修改",{confirmButtonText:"确定",cancelButtonText:"取消",inputPlaceholder:"请输入新分类名称~",inputPattern:/\S/,inputValue:t.title,inputErrorMessage:"分类名称不能为空~"}).then((function(s){var r=s.value;r!=t.title&&i.a.put("/workorder/type/",{id:t.id,title:r}).then((function(){e.getWorkorderTypes()})).catch((function(t){e.$message.error(t.response.data.message)}))}))}},watch:{}},_=k,C=(s("965d"),Object(w["a"])(_,b,y,!1,null,"db72d194",null)),O=C.exports;function S(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function T(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?S(Object(s),!0).forEach((function(e){Object(a["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):S(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var x={name:"workorder-index",components:{WorkOrderView:g,WorkOrderTypesView:O},data:function(){return{loading:!0,isShowWorkOrderView:!1,isShowTypesView:!1,showWorkOrder:{},tableData:{list:[],page_on:1,page_size:10,total:0,status:"",del:0,tid:0},tabIndex:0,del:0,isOpenWorkorder:!1,workorderTypes:[]}},computed:T({workStatus:function(){return this.tabIndex==this.workorderTypes.length-1&&this.workorderTypes.length>1?"0,1,2,3":this.tabIndex==this.workorderTypes.length-2&&this.workorderTypes.length>1?"3":"0,1,2"}},Object(u["b"])(["workOrderCounts","adminInfo","systemInfo","configs"])),created:function(){this.getWorkorderList(),this.getWorkorderTypes(),this.isOpenWorkorder=1==this.configs.open_workorder,this.$store.dispatch("ON_GET_WORKORDER_COUNTS")},methods:{onShow:function(t){this.showWorkOrder=t,this.isShowWorkOrderView=!0},tabsChange:function(t){this.tabIndex=parseInt(t.index),this.del=0,this.tabIndex==this.workorderTypes.length-1&&(this.del=1),this.changeType(this.workorderTypes[this.tabIndex].id)},changeSwitch:function(t){var e=this,s="您确定打开工单功能吗?",r=1;t||(s="您确定关闭工单功能吗?",r=0),this.$confirm(s,"温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.a.put("/system/workorder/",{open_workorder:r}).then((function(){e.$store.dispatch("ON_GET_CONFIGS")})).catch((function(t){e.$message.error(t.response.data.message)}))})).catch((function(){e.isOpenWorkorder=!e.isOpenWorkorder}))},indexMethod:function(t){return(this.tableData.page_on-1)*this.tableData.page_size+t+1},changeType:function(t){this.tableData.tid=t,this.getWorkorderList(1)},getWorkorderList:function(t){var e=this;t&&(this.tableData.page_on=t),this.tableData.status=this.workStatus,this.tableData.del=this.del;var s=this.tableData,r=s.page_on,o=s.page_size,a=s.tid,n=s.status,c=s.del;i.a.post("/workorder/list",{page_on:r,page_size:o,tid:a,status:n,del:c}).then((function(t){e.loading=!1,e.tableData=t.data.data})).catch((function(t){e.loading=!1,e.$message.error(t.response.data.message)}))},getWorkorderTypes:function(){var t=this;i.a.get("/workorder/types").then((function(e){t.workorderTypes=[{id:0,count:0,title:"全部工单"}],t.workorderTypes=t.workorderTypes.concat(e.data.data);for(var s=0;s<e.data.data.length;s++)t.workorderTypes[0].count+=e.data.data[s].count;t.workorderTypes.push({id:-1,count:t.workOrderCounts.status3,title:"已结单"}),t.workorderTypes.push({id:-2,count:t.workOrderCounts.delete_count,title:"回收站"})})).catch((function(e){t.$message.error(e.response.data.message)}))},handleSizeChange:function(t){this.tableData.page_size=t,this.getWorkorderList()},handleCurrentChange:function(t){this.tableData.page_on=t,this.getWorkorderList()}},watch:{isShowTypesView:function(t){t||(this.workorderTypes=[],this.getWorkorderTypes())},isShowWorkOrderView:function(t){t||(this.$store.dispatch("ON_GET_WORKORDER_COUNTS"),this.getWorkorderList())},systemInfo:function(){this.isOpenWorkorder=1==this.systemInfo.open_workorder}}},D=x,j=(s("7893"),s("82f4"),Object(w["a"])(D,r,o,!1,null,"15cab2f6",null));e["default"]=j.exports},f1ae:function(t,e,s){"use strict";var r=s("86cc"),o=s("4630");t.exports=function(t,e,s){e in t?r.f(t,e,o(0,s)):t[e]=s}},f3e2:function(t,e,s){"use strict";var r=s("5ca1"),o=s("0a49")(0),a=s("2f21")([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-5d055fa8.fbfb58a4.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_object-gopd.js","webpack:///./node_modules/core-js/modules/es6.object.define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/modules/es6.object.keys.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./node_modules/core-js/modules/es6.object.define-properties.js","webpack:///./node_modules/core-js/modules/_object-sap.js","webpack:///./src/views/workorder/workorder-view.vue?b8ed","webpack:///./src/views/workorder/index.vue?3477","webpack:///./src/views/workorder/index.vue?c2b9","webpack:///./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js","webpack:///./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack:///./node_modules/core-js/modules/_object-gopn.js","webpack:///./src/views/workorder/workorder-types-view.vue?56af","webpack:///./node_modules/core-js/modules/_own-keys.js","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./node_modules/core-js/modules/web.dom.iterable.js","webpack:///./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js","webpack:///./node_modules/core-js/modules/es6.array.filter.js","webpack:///./src/views/workorder/index.vue?564a","webpack:///./src/views/workorder/workorder-view.vue?04fb","webpack:///src/views/workorder/workorder-view.vue","webpack:///./src/views/workorder/workorder-view.vue?47c8","webpack:///./src/views/workorder/workorder-view.vue?98b1","webpack:///./src/views/workorder/workorder-types-view.vue?9711","webpack:///src/views/workorder/workorder-types-view.vue","webpack:///./src/views/workorder/workorder-types-view.vue?d6b9","webpack:///./src/views/workorder/workorder-types-view.vue?a6f3","webpack:///src/views/workorder/index.vue","webpack:///./src/views/workorder/index.vue?4c70","webpack:///./src/views/workorder/index.vue?20cf","webpack:///./node_modules/core-js/modules/_create-property.js","webpack:///./node_modules/core-js/modules/es6.array.for-each.js","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["pIE","createDesc","toIObject","toPrimitive","has","IE8_DOM_DEFINE","gOPD","Object","getOwnPropertyDescriptor","exports","f","O","P","e","call","$export","S","F","defineProperty","$Object","module","it","key","desc","toObject","$keys","$trim","this","defineProperties","core","fails","KEY","exec","fn","exp","ownKeys","createProperty","getOwnPropertyDescriptors","object","getDesc","keys","result","i","length","undefined","hiddenKeys","concat","getOwnPropertyNames","gOPN","gOPS","anObject","Reflect","getSymbols","defined","spaces","space","non","ltrim","RegExp","rtrim","exporter","ALIAS","FORCE","trim","string","TYPE","String","replace","$iterators","getKeys","redefine","global","hide","Iterators","wks","ITERATOR","TO_STRING_TAG","ArrayValues","Array","DOMIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","collections","NAME","explicit","Collection","proto","prototype","_defineProperty","obj","value","enumerable","configurable","writable","$filter","filter","callbackfn","arguments","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","workOrderCounts","status0","status2","_e","_s","adminInfo","root","isOpenWorkorder","on","changeSwitch","model","callback","$$v","expression","$event","isShowTypesView","tabsChange","_l","item","id","title","count","directives","name","rawName","tableData","list","indexMethod","scopedSlots","_u","scope","workorderTypes","tabIndex","row","status","a_nickname","$formatUnixDate","create_at","onShow","total","page_on","handleSizeChange","handleCurrentChange","showWorkOrder","isShowWorkOrderView","staticRenderFns","close","class","showData","delete","closeWorkorder","delWorkorder","u_nickname","phone","email","typeName","domProps","content","comments","isShowGetCommentsLoading","index","aid","avatar","a_avatar","$formatDate","request","source","isShowUploadLoading","inputBlur","target","composing","$set","uploadFile","reply","data","isSubmit","workorder","fileType","props","default","type","Boolean","prop","created","computed","isShowAside","$store","state","methods","$emit","getWorkOrder","response","setTimeout","getComments","$prompt","confirmButtonText","cancelButtonText","inputPattern","inputErrorMessage","$message","error","document","body","scrollTo","window","fileDom","file","files","mode","configs","upload_mode","progress","success","html","self","fullPath","upload_host","src","substr","lastIndexOf","indexOf","$notify","message","showClose","watch","component","add","update","del","types","getWorkorderTypes","showWorkorderTypes","$confirm","inputPlaceholder","inputValue","components","WorkOrderView","WorkOrderTypesView","loading","page_size","tid","workStatus","getWorkorderList","open_workorder","dispatch","parseInt","tab","changeType","val","systemInfo","$defineProperty","$forEach","STRICT","forEach"],"mappings":"qGAAA,IAAIA,EAAM,EAAQ,QACdC,EAAa,EAAQ,QACrBC,EAAY,EAAQ,QACpBC,EAAc,EAAQ,QACtBC,EAAM,EAAQ,QACdC,EAAiB,EAAQ,QACzBC,EAAOC,OAAOC,yBAElBC,EAAQC,EAAI,EAAQ,QAAoBJ,EAAO,SAAkCK,EAAGC,GAGlF,GAFAD,EAAIT,EAAUS,GACdC,EAAIT,EAAYS,GAAG,GACfP,EAAgB,IAClB,OAAOC,EAAKK,EAAGC,GACf,MAAOC,IACT,GAAIT,EAAIO,EAAGC,GAAI,OAAOX,GAAYD,EAAIU,EAAEI,KAAKH,EAAGC,GAAID,EAAEC,M,uBCdxD,IAAIG,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAID,EAAQE,GAAK,EAAQ,QAAmB,SAAU,CAAEC,eAAgB,EAAQ,QAAgBR,K,gDCFhH,EAAQ,QACR,IAAIS,EAAU,EAAQ,QAAuBZ,OAC7Ca,EAAOX,QAAU,SAAwBY,EAAIC,EAAKC,GAChD,OAAOJ,EAAQD,eAAeG,EAAIC,EAAKC,K,uBCFzC,IAAIC,EAAW,EAAQ,QACnBC,EAAQ,EAAQ,QAEpB,EAAQ,OAAR,CAAyB,QAAQ,WAC/B,OAAO,SAAcJ,GACnB,OAAOI,EAAMD,EAASH,S,uBCN1B,IAAIN,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAID,EAAQE,GAAK,EAAQ,QAAmB,SAAU,CAAEC,eAAgB,EAAQ,QAAgBR,K,oCCAhH,EAAQ,OAAR,CAA0B,QAA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ACrB/P,KAAK6P,qBAGTO,WAbJ,WAcMpQ,KAAKsH,gBAAoD,GAAlCtH,KAAKoQ,WAAWN,kBC1QoV,ICS7X,G,oBAAY,eACd,EACA1J,EACAwD,GACA,EACA,KACA,WACA,OAIa,e,2CCnBf,IAAIyG,EAAkB,EAAQ,QAC1B/R,EAAa,EAAQ,QAEzBmB,EAAOX,QAAU,SAAU6B,EAAQgK,EAAO/E,GACpC+E,KAAShK,EAAQ0P,EAAgBtR,EAAE4B,EAAQgK,EAAOrM,EAAW,EAAGsH,IAC/DjF,EAAOgK,GAAS/E,I,kCCLvB,IAAIxG,EAAU,EAAQ,QAClBkR,EAAW,EAAQ,OAAR,CAA4B,GACvCC,EAAS,EAAQ,OAAR,CAA4B,GAAGC,SAAS,GAErDpR,EAAQA,EAAQH,EAAIG,EAAQE,GAAKiR,EAAQ,QAAS,CAEhDC,QAAS,SAAiBtK,GACxB,OAAOoK,EAAStQ,KAAMkG,EAAYC,UAAU,Q,mBCRhD1G,EAAOX,QAAU","file":"js/chunk-5d055fa8.fbfb58a4.js","sourcesContent":["var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","var $export = require('./_export');\n// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperties: require('./_object-dps') });\n","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=style&index=0&id=058f6a25&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=style&index=0&id=058f6a25&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=15cab2f6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=15cab2f6&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=1&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=1&lang=stylus&\"","module.exports = require(\"core-js/library/fn/object/define-property\");","// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = require('./_export');\nvar ownKeys = require('./_own-keys');\nvar toIObject = require('./_to-iobject');\nvar gOPD = require('./_object-gopd');\nvar createProperty = require('./_create-property');\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIObject(object);\n var getDesc = gOPD.f;\n var keys = ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) createProperty(result, key, desc);\n }\n return result;\n }\n});\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=style&index=0&id=db72d194&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=style&index=0&id=db72d194&scoped=true&lang=stylus&\"","// all object keys, includes non-enumerable and symbols\nvar gOPN = require('./_object-gopn');\nvar gOPS = require('./_object-gops');\nvar anObject = require('./_an-object');\nvar Reflect = require('./_global').Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = gOPN.f(anObject(it));\n var getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","import _Object$defineProperty from \"../../core-js/object/define-property\";\nexport default function _defineProperty(obj, key, value) {\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"me-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-tickets\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工单管理\")]),_c('span',{staticStyle:{\"font-size\":\"15px\",\"margin-left\":\"30px\",\"color\":\"#e7a646\"}},[(_vm.workOrderCounts.status0 > 0 || _vm.workOrderCounts.status2)?[_vm._v(\"\\n 当前有: \\n \")]:_vm._e(),(_vm.workOrderCounts.status0 > 0)?[_c('strong',{staticStyle:{\"color\":\"#f56c6c\"}},[_vm._v(_vm._s(_vm.workOrderCounts.status0))]),_vm._v(\"条待处理 ,\\n \")]:_vm._e(),(_vm.workOrderCounts.status2 > 0)?[_c('strong',{staticStyle:{\"color\":\"#f56c6c\"}},[_vm._v(\" \"+_vm._s(_vm.workOrderCounts.status2))]),_vm._v(\"条待回复工单 \\n \")]:_vm._e()],2)]),(_vm.adminInfo.root == 1)?_c('el-row',{staticStyle:{\"width\":\"300px\"},attrs:{\"type\":\"flex\",\"align\":\"middle\",\"justify\":\"space-between\"}},[_c('div',{staticClass:\"switch\"},[_c('el-switch',{attrs:{\"inactive-color\":\"#cccccc\",\"active-color\":\"#8bc34a\",\"active-text\":_vm.isOpenWorkorder ? '工单功能启用中' : '工单功能关闭中'},on:{\"change\":_vm.changeSwitch},model:{value:(_vm.isOpenWorkorder),callback:function ($$v) {_vm.isOpenWorkorder=$$v},expression:\"isOpenWorkorder\"}}),_c('div',[_vm._v(\"工单关闭后客户端无法发起工单~\")])],1),_c('div',[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.isShowTypesView = true}}},[_vm._v(\"分类设置\")])],1)]):_vm._e()],1),_c('el-divider'),_c('el-row',{staticClass:\"container-box\",attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('div',{staticClass:\"menu\"},[_c('el-tabs',{staticStyle:{\"width\":\"200px\",\"height\":\"80vh\"},attrs:{\"tab-position\":\"left\"},on:{\"tab-click\":_vm.tabsChange}},[_vm._l((_vm.workorderTypes),function(item){return [_c('el-tab-pane',{key:item.id,attrs:{\"label\":item.title + '('+item.count+')'}})]})],2)],1),_c('div',{staticClass:\"table-content\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\",\"label\":\"#序号\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"工单标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(_vm.workorderTypes.length-1 == _vm.tabIndex)?[_c('span',{staticStyle:{\"color\":\"#f56c6b\"}},[_vm._v(\"已删除\")])]:[(scope.row.status == 0)?_c('el-tag',{attrs:{\"type\":\"danger\"}},[_vm._v(\"待客服处理\")]):_vm._e(),(scope.row.status == 2)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"待客服回复\")]):_vm._e(),(scope.row.status == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"客服已回复\")]):_vm._e(),(scope.row.status == 3)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\" 工单已结束 \")]):_vm._e()]]}}])}),_c('el-table-column',{attrs:{\"prop\":\"u_nickname\",\"label\":\"用户\"}}),_c('el-table-column',{attrs:{\"prop\":\"a_nickname\",\"label\":\"最近处理(客服)\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.a_nickname || '-----')+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")))]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.onShow(scope.row)}}},[_vm._v(\"查 看\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1)]),_c('WorkOrderView',{attrs:{\"workorderTypes\":_vm.workorderTypes,\"prop\":_vm.showWorkOrder},model:{value:(_vm.isShowWorkOrderView),callback:function ($$v) {_vm.isShowWorkOrderView=$$v},expression:\"isShowWorkOrderView\"}}),_c('WorkOrderTypesView',{attrs:{\"workorderTypes\":_vm.workorderTypes},model:{value:(_vm.isShowTypesView),callback:function ($$v) {_vm.isShowTypesView=$$v},expression:\"isShowTypesView\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"workorder-view\"},[_c('div',{staticClass:\"mask\",on:{\"dblclick\":_vm.close}}),_c('transition',{attrs:{\"name\":\"el-zoom-in-bottom\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"content-box\",class:{'padding-bottom30': _vm.showData.status == 3}},[_c('div',{staticClass:\"title\"},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" 工单详细\\n \")]),_c('div',{staticClass:\"buttons\"},[((_vm.showData.status == 1 || _vm.showData.status == 2) && _vm.showData.delete == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"warning\"},on:{\"click\":_vm.closeWorkorder}},[_vm._v(\"关闭工单\")]):_vm._e(),(_vm.showData.status == 3 && _vm.adminInfo.root == 1 && _vm.showData.delete == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":_vm.delWorkorder}},[_vm._v(\"删除工单\")]):_vm._e(),(_vm.showData.delete == 1)?_c('div',{staticStyle:{\"font-size\":\"13px\",\"margin-top\":\"5px\",\"color\":\"#f44336\"}},[_vm._v(\"该工单已删除\")]):_vm._e()],1),_c('span',{staticClass:\"close\",on:{\"click\":_vm.close}},[_c('i',{staticClass:\"el-icon-close\"})]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"scroll\"},[_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"标题:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.title))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"用户:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.u_nickname))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"手机:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.phone))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"邮箱:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.email || '未预留邮箱'))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"类型:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.typeName || '---'))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"状态:\")]),_c('div',{staticClass:\"con\"},[(_vm.showData.status == 0)?_c('span',{staticStyle:{\"color\":\"#f56c6b\"}},[_vm._v(\"待客服处理\")]):_vm._e(),(_vm.showData.status == 2)?_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(\"待客服回复\")]):_vm._e(),(_vm.showData.status == 1)?_c('span',{staticStyle:{\"color\":\"#67c23a\"}},[_vm._v(\"客服已回复\")]):_vm._e(),(_vm.showData.status == 3)?_c('span',{staticStyle:{\"color\":\"#909399\"}},[_vm._v(\"工单已结束\")]):_vm._e()])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"内容:\")]),_c('div',{staticClass:\"con\",domProps:{\"innerHTML\":_vm._s(_vm.showData.content)}})]),_c('el-divider',{staticStyle:{\"height\":\"10px\"}}),_c('div',{staticClass:\"comments\"},[(_vm.comments.length <= 0 && !_vm.isShowGetCommentsLoading)?_c('div',{staticClass:\"no-data\"},[_vm._v(\"暂无回复内容~\")]):_vm._e(),(_vm.isShowGetCommentsLoading)?_c('div',{staticClass:\"comments-loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(\"正在努力加载中~\")])]):_vm._l((_vm.comments),function(item,index){return [_c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"avatar\"},[(item.aid == _vm.adminInfo.id)?_c('img',{attrs:{\"src\":_vm.adminInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}}):_c('img',{attrs:{\"src\":item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}})]),_c('div',{staticClass:\"right\"},[(item.aid == 0)?_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.u_nickname))]):_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.a_nickname))]),_c('div',{staticClass:\"detail\",domProps:{\"innerHTML\":_vm._s(item.content)}}),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm.$formatDate(item.create_at)))])])])]}),(_vm.showData && _vm.showData.status == 3)?_c('div',{staticClass:\"workorder-close\"},[_vm._v(\"工单已结束~\")]):_vm._e()],2)],1)]),(_vm.request.source != '' || _vm.isShowUploadLoading)?_c('div',{staticClass:\"file-view\"},[(_vm.isShowUploadLoading)?_c('span',[_c('i',{staticClass:\"el-icon-loading\"}),_c('i',[_vm._v(\"上传中~\")])]):_c('span',[_c('i',{staticClass:\"el-icon-paperclip\"}),_c('i',[_vm._v(\"你已成功添加附件,重新上传可替换~\")])])]):_vm._e(),(_vm.showData.status != 3)?_c('div',{staticClass:\"input-form\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.content),expression:\"request.content\"}],attrs:{\"placeholder\":\"请输入内容~\"},domProps:{\"value\":(_vm.request.content)},on:{\"blur\":function($event){return _vm.inputBlur()},\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"content\", $event.target.value)}}}),_c('span',{staticClass:\"icon-btn\"},[_c('input',{attrs:{\"title\":\"添加附件\",\"type\":\"file\",\"onclick\":\"this.value = null\"},on:{\"change\":_vm.uploadFile}})]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.reply()}}},[_vm._v(\"提交\")])],1):_vm._e()])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n<template>\n <div class=\"workorder-view\" v-show=\"value\">\n <div class=\"mask\" @dblclick=\"close\"></div>\n <transition name=\"el-zoom-in-bottom\">\n <div class=\"content-box\" :class=\"{'padding-bottom30': showData.status == 3}\" v-show=\"value\">\n <div class=\"title\">\n <i class=\"el-icon-tickets\"></i> 工单详细\n </div>\n <div class=\"buttons\">\n <el-button\n size=\"mini\"\n @click=\"closeWorkorder\"\n v-if=\"(showData.status == 1 || showData.status == 2) && showData.delete == 0\"\n type=\"warning\"\n >关闭工单</el-button>\n <el-button\n size=\"mini\"\n @click=\"delWorkorder\"\n v-if=\"showData.status == 3 && adminInfo.root == 1 && showData.delete == 0\"\n type=\"danger\"\n >删除工单</el-button>\n <div v-if=\"showData.delete == 1\" style=\"font-size:13px;margin-top:5px;color:#f44336\">该工单已删除</div>\n </div>\n <span class=\"close\" @click=\"close\">\n <i class=\"el-icon-close\"></i>\n </span>\n <div class=\"content\">\n <div class=\"scroll\">\n <div class=\"form-line\">\n <span class=\"lable\">标题:</span>\n <div class=\"con\">{{showData.title}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">用户:</span>\n <div class=\"con\">{{showData.u_nickname}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">手机:</span>\n <div class=\"con\">{{showData.phone}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">邮箱:</span>\n <div class=\"con\">{{showData.email || '未预留邮箱'}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">类型:</span>\n <div class=\"con\">{{typeName || '---'}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">状态:</span>\n <div class=\"con\">\n <span style=\"color:#f56c6b\" v-if=\"showData.status == 0\">待客服处理</span>\n <span style=\"color:#e6a23c;\" v-if=\"showData.status == 2\">待客服回复</span>\n <span style=\"color:#67c23a;\" v-if=\"showData.status == 1\">客服已回复</span>\n <span style=\"color:#909399;\" v-if=\"showData.status == 3\">工单已结束</span>\n </div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">内容:</span>\n <div class=\"con\" v-html=\"showData.content\"></div>\n </div>\n <el-divider style=\"height:10px;\" />\n <div class=\"comments\">\n <div class=\"no-data\" v-if=\"comments.length <= 0 && !isShowGetCommentsLoading\">暂无回复内容~</div>\n <div class=\"comments-loading\" v-if=\"isShowGetCommentsLoading\">\n <i class=\"el-icon-loading\"></i>\n <span>正在努力加载中~</span>\n </div>\n <template v-else v-for=\"(item,index) in comments\">\n <div :key=\"index\" class=\"item\">\n <div class=\"avatar\">\n <img\n v-if=\"item.aid == adminInfo.id\"\n :src=\"adminInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n <img\n v-else\n :src=\"item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n </div>\n <div class=\"right\">\n <div class=\"nickname\" v-if=\"item.aid == 0\">{{item.u_nickname}}</div>\n <div class=\"nickname\" v-else>{{item.a_nickname}}</div>\n <div class=\"detail\" v-html=\"item.content\"></div>\n <div class=\"date\">{{$formatDate(item.create_at)}}</div>\n </div>\n </div>\n </template>\n <div class=\"workorder-close\" v-if=\"showData && showData.status == 3\">工单已结束~</div>\n </div>\n </div>\n </div>\n <div class=\"file-view\" v-if=\"request.source != '' || isShowUploadLoading\">\n <span v-if=\"isShowUploadLoading\">\n <i class=\"el-icon-loading\"></i>\n <i>上传中~</i>\n </span>\n <span v-else>\n <i class=\"el-icon-paperclip\"></i>\n <i>你已成功添加附件,重新上传可替换~</i>\n </span>\n </div>\n <div class=\"input-form\" v-if=\"showData.status != 3\">\n <textarea v-model=\"request.content\" @blur=\"inputBlur()\" placeholder=\"请输入内容~\"></textarea>\n <span class=\"icon-btn\">\n <input title=\"添加附件\" type=\"file\" @change=\"uploadFile\" onclick=\"this.value = null\" />\n </span>\n <el-button type=\"primary\" @click=\"reply()\">提交</el-button>\n </div>\n </div>\n </transition>\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport { mapGetters } from \"vuex\";\nimport upload from \"../../common/upload\";\nexport default {\n name: \"workorder-view\",\n data() {\n return {\n isShowUploadLoading: false,\n isShowGetCommentsLoading: false,\n isSubmit: false,\n workorder: null,\n comments: [],\n fileType: \"\",\n request: {\n source: \"\",\n content: \"\"\n }\n };\n },\n props: {\n value: {\n default: false,\n type: Boolean\n },\n prop: Object,\n workorderTypes: Array\n },\n created() {\n this.comments = [];\n },\n computed: {\n showData() {\n return this.workorder || this.prop;\n },\n isShowAside() {\n return this.$store.state.isShowAside;\n },\n typeName(){\n try{\n return this.workorderTypes.filter((i)=>i.id == this.showData.tid)[0].title\n }catch(e){\n return \"\"\n }\n },\n ...mapGetters([\"adminInfo\", \"configs\"])\n },\n methods: {\n // 按钮操作\n close() {\n this.$emit(\"input\", false);\n },\n getWorkOrder() {\n axios.get(\"/public/workorder/\" + this.prop.id).then(response => {\n if (response.data.data != null) this.workorder = response.data.data;\n setTimeout(() => this.$previewRefresh(), 500);\n });\n },\n getComments() {\n this.isShowGetCommentsLoading = true;\n axios\n .get(\"/public/workorder/comments/\" + this.prop.id)\n .then(response => {\n if (response.data.data != null) this.comments = response.data.data;\n setTimeout(() => this.$previewRefresh(), 500);\n this.isShowGetCommentsLoading = false;\n })\n .catch(error => {\n console.log(error);\n this.isShowGetCommentsLoading = false;\n this.$message.error(\"加载失败,请刷新尝试~\");\n });\n },\n closeWorkorder() {\n this.$prompt(\"请输入关闭原因!\", \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n inputPattern: /\\S/,\n inputErrorMessage: \"关闭工单原因不能为空~\"\n }).then(({ value }) => {\n const wid = this.showData.id;\n let remark = value\n axios\n .post(\"/workorder/close\", { wid, remark })\n .then(() => {\n this.getWorkOrder()\n this.$notify({\n title: \"温馨提示!\",\n message: \"工单已关闭~\",\n showClose: false,\n type: \"success\"\n });\n })\n .catch(() => {\n this.$message.error(\"工单关闭失败~\");\n });\n });\n },\n delWorkorder() {\n this.$confirm('您确定删除该工单吗?', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n const wid = this.showData.id;\n axios\n .delete(\"/public/workorder/\" +wid)\n .then(() => {\n this.$notify({\n title: \"温馨提示!\",\n message: \"工单已删除~\",\n showClose: false,\n type: \"success\"\n });\n this.close()\n })\n .catch(() => {\n this.$message.error(\"工单删除失败~\");\n });\n });\n },\n reply() {\n const content = this.request.content + this.request.source;\n if (content.trim() == \"\") {\n this.$message.error(\"请输入内容~\");\n return;\n }\n if (this.isSubmit) return;\n this.isSubmit = true;\n const wid = this.showData.id;\n axios\n .post(\"/public/workorder/reply\", { wid, content })\n .then(response => {\n this.isSubmit = false;\n console.log(response);\n this.getComments();\n this.request = {\n source: \"\",\n content: \"\"\n };\n this.$notify({\n title: \"温馨提示!\",\n message: \"回复成功~\",\n showClose: false,\n type: \"success\"\n });\n setTimeout(() => {\n var sBoxHeight = document.querySelector(\".content\").clientHeight;\n var sHeight = document.querySelector(\".scroll\").clientHeight;\n document.querySelector(\".content\").scrollTop =\n sHeight - sBoxHeight + 20;\n }, 500);\n })\n .catch(error => {\n this.isSubmit = false;\n console.log(error);\n this.$message.error(\"提交失败~\");\n });\n },\n inputBlur() {\n setTimeout(() => {\n document.body.scrollTo = 0;\n window.scrollTo(0, 0);\n }, 100);\n },\n uploadFile(e) {\n var fileDom = e.target;\n var file = fileDom.files[0];\n this.isShowUploadLoading = true;\n const self = this;\n upload({\n file,\n mode: this.configs.upload_mode,\n progress() {},\n success(src) {\n self.isShowUploadLoading = false;\n var html;\n var fullPath = self.configs.upload_host + \"/\" + src;\n var fileType = src.substr(src.lastIndexOf(\".\") + 1);\n if (\"jpg,jpeg,png,JPG,JPEG,PNG\".indexOf(fileType) != -1) {\n html =\n \"<br><img style='max-width:45%;margin-top:5px;' preview='1' src='\" +\n fullPath +\n \"' />\";\n } else {\n html =\n \"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />\";\n html +=\n \"<a target='_blank' style='color: #2e9dfc;' href='\" +\n fullPath +\n \"'>下载附件</a>\";\n }\n self.request.source = html;\n self.$notify({\n title: \"温馨提示!\",\n message: \"上传成功~\",\n showClose: false,\n type: \"success\"\n });\n },\n error(e) {\n self.isShowUploadLoading = false;\n if (e.response && e.response.data) {\n self.$message.error(e.response.data.message);\n return;\n }\n }\n });\n }\n },\n watch: {\n prop() {\n this.getWorkOrder();\n setTimeout(() => {\n this.$previewRefresh();\n this.getComments();\n }, 500);\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.workorder-view {\n width: 100vw;\n height: 100vh;\n position: fixed;\n right: 0;\n top: 0px;\n left: 0px;\n background-color: rgba(0, 0, 0, 0.8);\n z-index: 9;\n\n .mask {\n width: 100%;\n height: 100%;\n }\n\n .no-data {\n color: #666;\n font-size: 14px;\n }\n\n .workorder-close, .comments-loading {\n text-align: center;\n color: #666;\n font-size: 14px;\n padding: 10px;\n }\n\n .comments {\n padding: 10px;\n\n .item {\n display: flex;\n\n .avatar {\n padding-top: 10px;\n\n img {\n width: 30px;\n height: 30px;\n border-radius: 100px;\n display: block;\n }\n\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n }\n\n .right {\n padding: 10px 5px;\n flex-grow: 1;\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n\n .nickname {\n font-size: 15px;\n color: #333;\n }\n\n .detail {\n font-size: 15px;\n color: #333;\n margin-top: 5px;\n }\n\n .date {\n color: #999;\n font-size: 14px;\n margin-top: 5px;\n }\n }\n\n &:last-child {\n .right, .avatar {\n border-bottom: 0;\n }\n }\n }\n }\n\n .content-box {\n width: 600px;\n height: 100%;\n background-color: #fff;\n position: fixed;\n right: 0px;\n left: 260px;\n margin: 0 auto;\n top: 30px;\n overflow: hidden;\n border-radius: 5px 5px 0 0;\n padding-top: 40px;\n padding-bottom: 135px;\n box-sizing: border-box;\n &.padding-bottom30{\n padding-bottom: 30px;\n }\n\n .content {\n box-sizing: border-box;\n width: 100%;\n padding: 0 10px;\n height: 100%;\n overflow: hidden;\n overflow-y: auto;\n padding-top: 10px;\n position: relative;\n padding-bottom: 20px;\n }\n\n .file-view {\n position: absolute;\n bottom: 135px;\n left: 0;\n right: 0;\n padding: 5px 10px;\n margin: 0 auto;\n font-size: 13px;\n color: #8bc34a;\n\n span {\n display: flex;\n align-content: center;\n align-items: center;\n\n img {\n width: 20px;\n height: 20px;\n }\n\n i {\n font-style: normal;\n margin-left: 5px;\n }\n }\n }\n\n .input-form {\n position: absolute;\n bottom: 35px;\n left: 0;\n right: 0;\n margin: 0 auto;\n width: 100%;\n height: 100px;\n background-color: #fff;\n border-top: 1px solid rgba(158, 158, 158, 0.13);\n display: flex;\n justify-content: space-between;\n padding: 10px 10px 0;\n box-sizing: border-box;\n align-content: center;\n align-items: center;\n\n textarea {\n height: 90%;\n flex-grow: 1;\n border-radius: 0;\n border: 0;\n color: #333;\n font-size: 14px;\n resize: none;\n }\n\n .icon-btn {\n background: url('../../assets/upload.png') center center no-repeat;\n background-size: 30px;\n width: 55px;\n height: 55px;\n overflow: hidden;\n\n input {\n display: block;\n width: 100%;\n height: 100%;\n font-size: 100px;\n opacity: 0;\n }\n }\n }\n\n .title {\n width: 100%;\n height: 40px;\n border-bottom: 1px solid #ddd;\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n padding: 10px 0 0 10px;\n box-sizing: border-box;\n }\n\n .buttons {\n position: absolute;\n top: 5px;\n right: 50px;\n }\n\n .close {\n position: absolute;\n top: 5px;\n right: 5px;\n font-size: 25px;\n color: #ccc;\n cursor: pointer;\n }\n\n .form-line {\n margin-bottom: 5px;\n font-size: 14px;\n color: #333;\n display: flex;\n\n .lable {\n width: 50px;\n flex-shrink: 0;\n }\n\n .con {\n flex-grow: 1;\n }\n\n img {\n width: 30%;\n }\n }\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder-view.vue?vue&type=template&id=058f6a25&scoped=true&\"\nimport script from \"./workorder-view.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder-view.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder-view.vue?vue&type=style&index=0&id=058f6a25&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"058f6a25\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"workorder-view\"},[_c('div',{staticClass:\"mask\",on:{\"dblclick\":_vm.close}}),_c('div',{staticClass:\"content-box\"},[_c('el-row',{staticClass:\"title\",attrs:{\"type\":\"flex\"}},[_c('span',[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" 分类设置\\n \")]),_c('div',[_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"primary\"},on:{\"click\":_vm.add}},[_vm._v(\"添加分类\")])],1)]),_c('span',{staticClass:\"close\",on:{\"click\":_vm.close}},[_c('i',{staticClass:\"el-icon-close\"})]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"scroll\"},[_c('ul',{staticClass:\"list\"},[_vm._l((_vm.showWorkorderTypes),function(item){return [_c('li',{key:item.id},[_c('el-row',{attrs:{\"type\":\"flex\",\"algin\":\"middle\"}},[_c('div',[_c('i',{staticClass:\"el-icon-tickets\"})]),_c('span',[_vm._v(_vm._s(item.title))]),_c('div',{staticClass:\"update\",on:{\"click\":function($event){return _vm.update(item)}}},[_c('i',{staticClass:\"el-icon-edit-outline\"})]),_c('div',{staticClass:\"del\",on:{\"click\":function($event){return _vm.del(item)}}},[_c('i',{staticClass:\"el-icon-close\"})])])],1)]})],2)])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n<template>\n <div class=\"workorder-view\" v-show=\"value\">\n <div class=\"mask\" @dblclick=\"close\"></div>\n <div class=\"content-box\">\n <el-row type=\"flex\" class=\"title\">\n <span>\n <i class=\"el-icon-tickets\"></i> 分类设置\n </span>\n <div>\n <el-button @click=\"add\" size=\"mini\" type=\"primary\">添加分类</el-button>\n </div>\n </el-row>\n <span class=\"close\" @click=\"close\">\n <i class=\"el-icon-close\"></i>\n </span>\n <div class=\"content\">\n <div class=\"scroll\">\n <ul class=\"list\">\n <template v-for=\"item in showWorkorderTypes\">\n <li :key=\"item.id\">\n <el-row type=\"flex\" algin=\"middle\">\n <div>\n <i class=\"el-icon-tickets\"></i>\n </div>\n <span>{{item.title}}</span>\n <div class=\"update\" @click=\"update(item)\">\n <i class=\"el-icon-edit-outline\"></i>\n </div>\n <div class=\"del\" @click=\"del(item)\">\n <i class=\"el-icon-close\"></i>\n </div>\n </el-row>\n </li>\n </template>\n </ul>\n </div>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: \"workorder-view\",\n data() {\n return {\n isSubmit: false,\n types: null\n };\n },\n props: {\n value: {\n default: false,\n type: Boolean\n },\n workorderTypes: Array\n },\n created() {\n this.getWorkorderTypes();\n },\n computed: {\n showWorkorderTypes() {\n return (\n this.types ||\n this.workorderTypes.slice(1, this.workorderTypes.length - 2)\n );\n },\n isShowAside() {\n return this.$store.state.isShowAside;\n }\n },\n methods: {\n // 按钮操作\n close() {\n this.$emit(\"input\", false);\n },\n // 获取类型数据\n getWorkorderTypes() {\n axios\n .get(\"/workorder/types\")\n .then(response => {\n this.types = response.data.data;\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n },\n add() {\n this.$prompt(\"请输入分类名称!\", \"添加分类\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n inputPattern: /\\S/,\n inputErrorMessage: \"分类名称不能为空~\"\n }).then(({ value }) => {\n axios\n .post(\"/workorder/type/\", { title: value })\n .then(() => {\n this.getWorkorderTypes();\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n },\n del(type) {\n this.$confirm(\"您确定删除 \"+type.title+\" 该分类吗?\", \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(() => {\n axios\n .delete(\"/workorder/type/\" + type.id)\n .then(() => {\n this.getWorkorderTypes()\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n },\n update(type) {\n this.$prompt(\"\", \"分类修改\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n inputPlaceholder: \"请输入新分类名称~\",\n inputPattern: /\\S/,\n inputValue: type.title,\n inputErrorMessage: \"分类名称不能为空~\"\n }).then(({ value }) => {\n if(value == type.title) return\n axios\n .put(\"/workorder/type/\", { id:type.id, title: value })\n .then(() => {\n this.getWorkorderTypes();\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n }\n },\n watch: {}\n};\n</script>\n<style scoped lang=\"stylus\">\n.workorder-view {\n width: 100vw;\n height: 100vh;\n position: fixed;\n right: 0;\n top: 0px;\n left: 0px;\n background-color: rgba(0, 0, 0, 0.8);\n z-index: 9;\n\n .mask {\n width: 100%;\n height: 100%;\n }\n\n .content-box {\n width: 400px;\n height: 100%;\n background-color: #fff;\n position: fixed;\n right: 0px;\n margin: 0 auto;\n top: 0px;\n overflow: hidden;\n padding-top: 40px;\n box-sizing: border-box;\n padding-bottom: 30px;\n\n .content {\n height: 100%;\n overflow: hidden;\n overflow-y: auto;\n margin-top: 20px;\n }\n\n .list {\n padding: 0 10px;\n display: block;\n\n li {\n height: 50px;\n line-height: 50px;\n border-bottom: 1px solid #ddd;\n position: relative;\n\n .del, .update {\n position: absolute;\n display: none;\n right: 0px;\n top: 0;\n bottom: 0;\n margin: auto 0;\n width: 25px;\n height: 30px;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n\n i {\n color: #ccc;\n }\n }\n\n &:hover {\n .del, .update {\n display: block;\n }\n }\n\n .update {\n right: 30px;\n }\n\n span {\n margin-left: 10px;\n color: #333;\n font-size: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding-right 50px\n }\n }\n }\n\n .title {\n width: 100%;\n height: 60px;\n border-bottom: 1px solid #ddd;\n position: absolute;\n top: 0;\n left: 0;\n padding: 0 10px;\n background-color: #fff;\n box-sizing: border-box;\n\n &>span {\n width: 270px;\n }\n\n align-content: center;\n align-items: center;\n }\n\n .close {\n position: absolute;\n top: 15px;\n right: 5px;\n font-size: 25px;\n color: #ccc;\n cursor: pointer;\n }\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder-types-view.vue?vue&type=template&id=db72d194&scoped=true&\"\nimport script from \"./workorder-types-view.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder-types-view.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder-types-view.vue?vue&type=style&index=0&id=db72d194&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"db72d194\",\n null\n \n)\n\nexport default component.exports","\n<template>\n <div>\n <div class=\"me-head\">\n <span>\n <i class=\"el-icon-tickets\"></i>\n <span slot=\"title\">工单管理</span>\n <span style=\"font-size:15px;margin-left: 30px;color:#e7a646\">\n <template v-if=\"workOrderCounts.status0 > 0 || workOrderCounts.status2\">\n 当前有: \n </template>\n <template v-if=\"workOrderCounts.status0 > 0\">\n <strong style=\"color: #f56c6c\">{{workOrderCounts.status0}}</strong>条待处理 ,\n </template>\n <template v-if=\"workOrderCounts.status2 > 0\">\n <strong style=\"color: #f56c6c\"> {{workOrderCounts.status2}}</strong>条待回复工单 \n </template>\n </span>\n </span>\n <el-row style=\"width:300px;\" type=\"flex\" align=\"middle\" justify=\"space-between\" v-if=\"adminInfo.root == 1\">\n <div class=\"switch\">\n <el-switch\n @change=\"changeSwitch\"\n v-model=\"isOpenWorkorder\"\n inactive-color=\"#cccccc\"\n active-color=\"#8bc34a\"\n :active-text=\"isOpenWorkorder ? '工单功能启用中' : '工单功能关闭中'\"\n >\n </el-switch>\n <div>工单关闭后客户端无法发起工单~</div>\n </div>\n <div>\n <el-button size=\"mini\" @click=\"isShowTypesView = true\">分类设置</el-button>\n </div>\n </el-row>\n </div>\n <el-divider />\n <el-row class=\"container-box\" type=\"flex\" justify=\"space-between\">\n <div class=\"menu\">\n <el-tabs @tab-click=\"tabsChange\" tab-position=\"left\" style=\"width:200px;height: 80vh;\">\n <template size=\"small\" v-for=\"item in workorderTypes\" border>\n <el-tab-pane :key=\"item.id\" :label=\"item.title + '('+item.count+')'\"></el-tab-pane>\n </template>\n </el-tabs>\n </div>\n <div class=\"table-content\">\n <el-table :data=\"tableData.list\" style=\"width: 100%\" v-loading=\"loading\">\n <el-table-column type=\"index\" :index=\"indexMethod\" width=\"60\" label=\"#序号\"></el-table-column>\n <el-table-column prop=\"title\" label=\"工单标题\"></el-table-column>\n <el-table-column prop=\"status\" label=\"状态\">\n <template slot-scope=\"scope\">\n <template v-if=\"workorderTypes.length-1 == tabIndex\">\n <span style=\"color:#f56c6b\">已删除</span>\n </template>\n <template v-else>\n <el-tag type=\"danger\" v-if=\"scope.row.status == 0\">待客服处理</el-tag>\n <el-tag type=\"warning\" v-if=\"scope.row.status == 2\">待客服回复</el-tag>\n <el-tag type=\"success\" v-if=\"scope.row.status == 1\">客服已回复</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.status == 3\"> 工单已结束 </el-tag>\n </template>\n </template>\n </el-table-column>\n <el-table-column prop=\"u_nickname\" label=\"用户\"></el-table-column>\n <el-table-column prop=\"a_nickname\" label=\"最近处理(客服)\">\n <template slot-scope=\"scope\">\n {{scope.row.a_nickname || '-----'}}\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"创建时间\">\n <template slot-scope=\"scope\">{{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}</template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" width=\"150\" label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button @click=\"onShow(scope.row)\" size=\"mini\">查 看</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\"\n ></el-pagination>\n </el-row>\n </div>\n </el-row>\n <WorkOrderView :workorderTypes=\"workorderTypes\" :prop=\"showWorkOrder\" v-model=\"isShowWorkOrderView\" />\n <WorkOrderTypesView :workorderTypes=\"workorderTypes\" v-model=\"isShowTypesView\" />\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport WorkOrderView from \"./workorder-view\"\nimport WorkOrderTypesView from \"./workorder-types-view\"\nimport { mapGetters } from 'vuex'\nexport default {\n name: \"workorder-index\",\n components: {\n WorkOrderView,\n WorkOrderTypesView\n },\n data() {\n return {\n loading: true,\n isShowWorkOrderView: false,\n isShowTypesView: false,\n showWorkOrder: {},\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n total: 0,\n status: \"\",\n del: 0,\n tid: 0\n },\n tabIndex: 0,\n del: 0,\n isOpenWorkorder: false,\n workorderTypes:[],\n };\n },\n computed: {\n workStatus(){\n if(this.tabIndex == this.workorderTypes.length-1 && this.workorderTypes.length > 1){\n return '0,1,2,3'\n }\n if(this.tabIndex == this.workorderTypes.length-2 && this.workorderTypes.length > 1){\n return '3'\n }\n return \"0,1,2\"\n },\n ...mapGetters([\n \"workOrderCounts\",\n \"adminInfo\",\n \"systemInfo\",\n \"configs\",\n ])\n },\n created() {\n this.getWorkorderList();\n this.getWorkorderTypes()\n this.isOpenWorkorder = this.configs.open_workorder == 1\n this.$store.dispatch('ON_GET_WORKORDER_COUNTS')\n },\n methods: {\n onShow(item){\n this.showWorkOrder = item\n this.isShowWorkOrderView = true\n },\n tabsChange(tab){\n this.tabIndex = parseInt(tab.index)\n this.del = 0\n if(this.tabIndex == this.workorderTypes.length-1) this.del = 1\n this.changeType(this.workorderTypes[this.tabIndex].id)\n },\n changeSwitch(open){\n var title = \"您确定打开工单功能吗?\"\n var open_workorder = 1\n if(!open){\n title = \"您确定关闭工单功能吗?\"\n open_workorder = 0\n }\n this.$confirm(title, \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(() => {\n axios\n .put(\"/system/workorder/\", {open_workorder})\n .then(() => {\n this.$store.dispatch('ON_GET_CONFIGS')\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n }).catch(() => {\n this.isOpenWorkorder = !this.isOpenWorkorder \n });\n },\n // 行号\n indexMethod(index) {\n return (\n (this.tableData.page_on - 1) * this.tableData.page_size + index + 1\n );\n },\n changeType(tid){\n this.tableData.tid = tid;\n this.getWorkorderList(1);\n },\n // 获取数据\n getWorkorderList(index) {\n if (index) this.tableData.page_on = index;\n this.tableData.status = this.workStatus\n this.tableData.del = this.del\n const { page_on, page_size, tid, status, del } = this.tableData;\n axios\n .post(\"/workorder/list\", { page_on, page_size, tid, status, del })\n .then(response => {\n this.loading = false;\n this.tableData = response.data.data;\n })\n .catch(error => {\n this.loading = false;\n this.$message.error(error.response.data.message);\n });\n },\n // 获取类型数据\n getWorkorderTypes() {\n axios\n .get(\"/workorder/types\")\n .then(response => {\n this.workorderTypes = [{\n \"id\": 0,\n \"count\": 0,\n \"title\": \"全部工单\"\n }];\n this.workorderTypes = this.workorderTypes.concat(response.data.data);\n for(var i=0; i<response.data.data.length; i++){\n this.workorderTypes[0].count += response.data.data[i].count\n }\n this.workorderTypes.push({\n \"id\": -1,\n \"count\": this.workOrderCounts.status3,\n \"title\": \"已结单\"\n })\n this.workorderTypes.push({\n \"id\": -2,\n \"count\": this.workOrderCounts.delete_count,\n \"title\": \"回收站\"\n })\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val;\n this.getWorkorderList();\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val;\n this.getWorkorderList();\n }\n },\n watch: {\n isShowTypesView(show){\n if(!show){\n this.workorderTypes = []\n this.getWorkorderTypes();\n }\n },\n isShowWorkOrderView(show){\n if(!show){\n this.$store.dispatch('ON_GET_WORKORDER_COUNTS')\n this.getWorkorderList();\n }\n },\n systemInfo(){\n this.isOpenWorkorder = this.systemInfo.open_workorder == 1\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.me-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n .switch{\n div{\n font-size 13px\n padding-top 5px\n color #ccc\n span.el-switch__label{\n color #ff5722!important\n }\n }\n }\n i {\n margin-right: 5px;\n }\n}\n.container-box{\n .menu{\n flex-shrink: 0;\n width 180px;\n }\n .table-content{\n width 500px;\n flex-grow 1\n }\n}\n</style>\n<style lang=\"stylus\">\n.switch{\n div{\n span.el-switch__label{\n color #ff5722!important\n }\n span.el-switch__label.is-active{\n color #8bc34a!important\n }\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=15cab2f6&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=15cab2f6&scoped=true&lang=stylus&\"\nimport style1 from \"./index.vue?vue&type=style&index=1&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"15cab2f6\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n","'use strict';\nvar $export = require('./_export');\nvar $forEach = require('./_array-methods')(0);\nvar STRICT = require('./_strict-method')([].forEach, true);\n\n$export($export.P + $export.F * !STRICT, 'Array', {\n // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])\n forEach: function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments[1]);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/system/index.vue?6849","webpack:///./src/views/system/create_platform.vue?6eab","webpack:///src/views/system/create_platform.vue","webpack:///./src/views/system/create_platform.vue?17f1","webpack:///./src/views/system/create_platform.vue","webpack:///./src/views/system/edit_platform.vue?adc4","webpack:///src/views/system/edit_platform.vue","webpack:///./src/views/system/edit_platform.vue?54ae","webpack:///./src/views/system/edit_platform.vue","webpack:///src/views/system/index.vue","webpack:///./src/views/system/index.vue?cbce","webpack:///./src/views/system/index.vue?4920","webpack:///./src/views/system/index.vue?747d"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","model","value","callback","$$v","activeName","expression","ref","staticStyle","systemInfo","logo","isRoot","on","systemLogoUpload","directives","name","rawName","_s","uploadysLogoPercent","$set","_l","$store","getters","item","key","id","saveSystem","_e","companyInfo","companyLogoUpload","uploadCompanyPercent","saveCompany","qiniuSecret","saveQiniu","platformConfig","scopedSlots","_u","fn","scope","row","system","title","$event","editPlatform","deletePlatform","createDialogFormVisible","editPlatformItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","closeModal","save","data","props","Boolean","complete","Function","methods","$emit","lock","text","spinner","background","resize","component","formData","Object","watch","assign","components","CreatePlatformDialog","EditPlatformDialog","isUploadingSysLogo","isUploadingCompany","computed","adminInfo","root","updated","$nextTick","mounted","onSubmit","$confirm","confirmButtonText","cancelButtonText","center","type","fileData","file","target","files","imgUrl","getQiniu"],"mappings":"yHAAA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KAAKsD,iBAAmBvB,EACxB/B,KAAKuD,uBAAwB,KCpV8V,ICQ7X,G,UAAY,eACd,EACAzD,EACA0D,GACA,EACA,KACA,WACA,OAIa,e,oECnBf,yBAAyjB,EAAG","file":"js/chunk-650419d0.394afa0b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])]),_c('el-tabs',{model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{attrs:{\"label\":\"基本设置\",\"name\":\"first\"}},[_c('el-form',{ref:\"form\",staticStyle:{\"width\":\"500px\"},attrs:{\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"系统LOGO\",\"label-width\":\"120px\"}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('img',{attrs:{\"src\":_vm.systemInfo.logo,\"alt\":\"点击上传图片\"}}),_c('input',{attrs:{\"disabled\":!_vm.isRoot,\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.systemLogoUpload}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploadingSysLogo),expression:\"isUploadingSysLogo\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadysLogoPercent))])])])]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"系统名称\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入系统名称\"},model:{value:(_vm.systemInfo.title),callback:function ($$v) {_vm.$set(_vm.systemInfo, \"title\", $$v)},expression:\"systemInfo.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"版权信息\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入版权信息\"},model:{value:(_vm.systemInfo.copy_right),callback:function ($$v) {_vm.$set(_vm.systemInfo, \"copy_right\", $$v)},expression:\"systemInfo.copy_right\"}})],1),_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"选择资源存储空间服务商(上传的,图片,文件)\")]),_c('el-form-item',{attrs:{\"label\":\"上传选项\"}},[_c('el-select',{model:{value:(_vm.systemInfo.upload_mode),callback:function ($$v) {_vm.$set(_vm.systemInfo, \"upload_mode\", $$v)},expression:\"systemInfo.upload_mode\"}},_vm._l((_vm.$store.getters.uploadsConfigs),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',[(_vm.isRoot)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":_vm.saveSystem}},[_vm._v(\"保存设置\")]):_vm._e()],1)],1)],1),_c('el-tab-pane',{attrs:{\"label\":\"公司信息\",\"name\":\"second\"}},[_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"该配置信息会展示在各个前台给客户\")]),_c('el-form',{ref:\"form\",staticStyle:{\"width\":\"500px\"},attrs:{\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"公司LOGO\",\"label-width\":\"120px\"}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('img',{attrs:{\"src\":_vm.companyInfo.logo,\"alt\":\"点击上传图片\"}}),_c('input',{attrs:{\"disabled\":!_vm.isRoot,\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.companyLogoUpload}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploadingCompany),expression:\"isUploadingCompany\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadCompanyPercent))])])])]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"公司名称\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入公司名称\"},model:{value:(_vm.companyInfo.title),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"title\", $$v)},expression:\"companyInfo.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"服务时间\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入在线客服服务时间\"},model:{value:(_vm.companyInfo.service),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"service\", $$v)},expression:\"companyInfo.service\"}})],1),_c('el-form-item',{attrs:{\"label\":\"公司邮箱\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入公司邮箱\"},model:{value:(_vm.companyInfo.email),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"email\", $$v)},expression:\"companyInfo.email\"}})],1),_c('el-form-item',{attrs:{\"label\":\"公司电话\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入公司电话\"},model:{value:(_vm.companyInfo.tel),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"tel\", $$v)},expression:\"companyInfo.tel\"}})],1),_c('el-form-item',{attrs:{\"label\":\"公司地址\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"type\":\"textarea\",\"rows\":\"5\",\"placeholder\":\"请输入公司地址\"},model:{value:(_vm.companyInfo.address),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"address\", $$v)},expression:\"companyInfo.address\"}})],1),_c('el-form-item',[(_vm.isRoot)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":_vm.saveCompany}},[_vm._v(\"保存设置\")]):_vm._e()],1)],1)],1),(_vm.isRoot)?_c('el-tab-pane',{attrs:{\"label\":\"七牛云存储配置\",\"name\":\"three\"}},[_c('el-form',{ref:\"form\",staticStyle:{\"width\":\"500px\"},attrs:{\"label-width\":\"100px\"}},[_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"请不要随意修改该选项,可能会导致客户端上传不了文件或图片\")]),_c('el-form-item',{attrs:{\"label\":\"Bucket\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入bucket\"},model:{value:(_vm.qiniuSecret.bucket),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"bucket\", $$v)},expression:\"qiniuSecret.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"accessKey\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入accessKey\",\"show-password\":\"\"},model:{value:(_vm.qiniuSecret.access_key),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"access_key\", $$v)},expression:\"qiniuSecret.access_key\"}})],1),_c('el-form-item',{attrs:{\"label\":\"secretKey\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入secretKey\",\"show-password\":\"\"},model:{value:(_vm.qiniuSecret.secret_key),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"secret_key\", $$v)},expression:\"qiniuSecret.secret_key\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Host\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入host\"},model:{value:(_vm.qiniuSecret.host),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"host\", $$v)},expression:\"qiniuSecret.host\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":_vm.saveQiniu}},[_vm._v(\"保存设置\")])],1)],1)],1):_vm._e(),_c('el-tab-pane',{attrs:{\"label\":\"客户端平台\",\"name\":\"fives\"}},[_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"通过该配置,对接的平台,机器人,知识库匹配等 (系统默认项不可修改)\")]),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.$store.getters.platformConfig}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"#ID\",\"width\":\"80\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.system == 1)?_c('el-tag',{attrs:{\"type\":\"danger\"}},[_vm._v(_vm._s(scope.row.title))]):_vm._e(),(scope.row.system == 0)?_c('el-tag',[_vm._v(_vm._s(scope.row.title))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"alias\",\"label\":\"别名\",\"align\":\"center\"}}),(_vm.isRoot)?_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.system == 0)?[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.editPlatform(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deletePlatform(scope.row)}}},[_vm._v(\"删 除\")])]:_vm._e(),(scope.row.system == 1)?_c('span',{staticStyle:{\"font-size\":\"12px\",\"color\":\"#999\"}},[_vm._v(\"系统内置,不可操作\")]):_vm._e()]}}],null,false,748916141)}):_vm._e(),_c('el-table-column')],1),(_vm.isRoot)?_c('el-button',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添加新平台\")]):_vm._e()],1)],1),_c('CreatePlatformDialog',{attrs:{\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditPlatformDialog',{attrs:{\"formData\":_vm.editPlatformItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"添加平台\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"平台名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台名称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"平台别名\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台别名\",\"autocomplete\":\"off\"},model:{value:(_vm.form.alias),callback:function ($$v) {_vm.$set(_vm.form, \"alias\", $$v)},expression:\"form.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog title=\"添加平台\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"平台名称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入平台名称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"平台别名\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.alias\" placeholder=\"请输入平台别名\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'mini-im-create-admin',\n data(){\n return {\n form: {\n title: '',\n alias: '',\n },\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .post(\"/platform\", this.form)\n .then(response => {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.form = {\n title: '',\n alias: '',\n };\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create_platform.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create_platform.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create_platform.vue?vue&type=template&id=74dae80a&scoped=true&\"\nimport script from \"./create_platform.vue?vue&type=script&lang=js&\"\nexport * from \"./create_platform.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"74dae80a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"修改平台\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"平台名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台名称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"平台别名\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台别名\",\"autocomplete\":\"off\"},model:{value:(_vm.form.alias),callback:function ($$v) {_vm.$set(_vm.form, \"alias\", $$v)},expression:\"form.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog title=\"修改平台\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"平台名称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入平台名称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"平台别名\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.alias\" placeholder=\"请输入平台别名\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'me-create-admin',\n data(){\n return {\n form: {\n title: '',\n alias: '',\n },\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/platform\", this.form)\n .then(response => {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n }\n },\n watch:{\n formData(){\n this.form = Object.assign({},this.form, this.formData)\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit_platform.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit_platform.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit_platform.vue?vue&type=template&id=51cfd3c3&scoped=true&\"\nimport script from \"./edit_platform.vue?vue&type=script&lang=js&\"\nexport * from \"./edit_platform.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"51cfd3c3\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-setting\"></i>\n <span slot=\"title\">系统设置</span>\n </span>\n </div>\n <el-tabs v-model=\"activeName\">\n <el-tab-pane label=\"基本设置\" name=\"first\">\n <el-form style=\"width:500px\" ref=\"form\" label-width=\"100px\">\n <el-form-item label=\"系统LOGO\" label-width=\"120px\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <img :src=\"systemInfo.logo\" alt=\"点击上传图片\">\n <input\n :disabled=\"!isRoot\"\n onClick=\"this.value = null\"\n @change=\"systemLogoUpload\"\n type=\"file\"\n accept=\"image/*\"\n />\n <div v-show=\"isUploadingSysLogo\" class=\"mini-im-file-percent\">\n <span>{{uploadysLogoPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"系统名称\">\n <el-input :readonly=\"!isRoot\" v-model=\"systemInfo.title\" placeholder=\"请输入系统名称\"></el-input>\n </el-form-item>\n <el-form-item label=\"版权信息\">\n <el-input :readonly=\"!isRoot\" v-model=\"systemInfo.copy_right\" placeholder=\"请输入版权信息\"></el-input>\n </el-form-item>\n <el-divider content-position=\"left\">选择资源存储空间服务商(上传的,图片,文件)</el-divider>\n <el-form-item label=\"上传选项\">\n <el-select v-model=\"systemInfo.upload_mode\">\n <el-option :label=\"item.name\" :value=\"item.id\" :key=\"item.id\" v-for=\"item in $store.getters.uploadsConfigs\"></el-option>\n </el-select>\n </el-form-item>\n <el-form-item>\n <el-button v-if=\"isRoot\" @click=\"saveSystem\" size=\"mini\">保存设置</el-button>\n </el-form-item>\n </el-form>\n </el-tab-pane>\n <el-tab-pane label=\"公司信息\" name=\"second\">\n <el-divider content-position=\"left\">该配置信息会展示在各个前台给客户</el-divider>\n <el-form style=\"width:500px\" ref=\"form\" label-width=\"100px\">\n <el-form-item label=\"公司LOGO\" label-width=\"120px\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <img :src=\"companyInfo.logo\" alt=\"点击上传图片\">\n <input\n :disabled=\"!isRoot\"\n onClick=\"this.value = null\"\n @change=\"companyLogoUpload\"\n type=\"file\"\n accept=\"image/*\"\n />\n <div v-show=\"isUploadingCompany\" class=\"mini-im-file-percent\">\n <span>{{uploadCompanyPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"公司名称\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.title\" placeholder=\"请输入公司名称\"></el-input>\n </el-form-item>\n <el-form-item label=\"服务时间\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.service\" placeholder=\"请输入在线客服服务时间\"></el-input>\n </el-form-item>\n <el-form-item label=\"公司邮箱\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.email\" placeholder=\"请输入公司邮箱\"></el-input>\n </el-form-item>\n <el-form-item label=\"公司电话\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.tel\" placeholder=\"请输入公司电话\"></el-input>\n </el-form-item>\n <el-form-item label=\"公司地址\">\n <el-input :readonly=\"!isRoot\" type=\"textarea\" rows=\"5\" v-model=\"companyInfo.address\" placeholder=\"请输入公司地址\"></el-input>\n </el-form-item>\n <el-form-item>\n <el-button v-if=\"isRoot\" @click=\"saveCompany\" size=\"mini\">保存设置</el-button>\n </el-form-item>\n </el-form>\n </el-tab-pane>\n <el-tab-pane v-if=\"isRoot\" label=\"七牛云存储配置\" name=\"three\">\n <el-form style=\"width:500px\" ref=\"form\" label-width=\"100px\">\n <el-divider content-position=\"left\">请不要随意修改该选项,可能会导致客户端上传不了文件或图片</el-divider>\n <el-form-item label=\"Bucket\">\n <el-input v-model=\"qiniuSecret.bucket\" placeholder=\"请输入bucket\"></el-input>\n </el-form-item>\n <el-form-item label=\"accessKey\">\n <el-input v-model=\"qiniuSecret.access_key\" placeholder=\"请输入accessKey\" show-password></el-input>\n </el-form-item>\n <el-form-item label=\"secretKey\">\n <el-input v-model=\"qiniuSecret.secret_key\" placeholder=\"请输入secretKey\" show-password></el-input>\n </el-form-item>\n <el-form-item label=\"Host\">\n <el-input v-model=\"qiniuSecret.host\" placeholder=\"请输入host\"></el-input>\n </el-form-item>\n <el-form-item>\n <el-button @click=\"saveQiniu\" size=\"mini\">保存设置</el-button>\n </el-form-item>\n </el-form>\n </el-tab-pane>\n <el-tab-pane label=\"客户端平台\" name=\"fives\">\n <el-divider content-position=\"left\">通过该配置,对接的平台,机器人,知识库匹配等 (系统默认项不可修改)</el-divider>\n <el-table :data=\"$store.getters.platformConfig\" style=\"width: 100%\">\n <el-table-column prop=\"id\" label=\"#ID\" width=\"80\"></el-table-column>\n <el-table-column prop=\"title\" label=\"名称\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-tag type=\"danger\" v-if=\"scope.row.system == 1\">{{scope.row.title}}</el-tag>\n <el-tag v-if=\"scope.row.system == 0\">{{scope.row.title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"alias\" label=\"别名\" align=\"center\"></el-table-column>\n <el-table-column v-if=\"isRoot\" label=\"操作\" align=\"center\">\n <template slot-scope=\"scope\">\n <template v-if=\"scope.row.system == 0\">\n <el-button @click=\"editPlatform(scope.row)\" size=\"mini\">编 辑</el-button>\n <el-button @click=\"deletePlatform(scope.row)\" size=\"mini\" type=\"danger\">删 除</el-button>\n </template>\n <span v-if=\"scope.row.system == 1\" style=\"font-size: 12px;color: #999;\">系统内置,不可操作</span>\n </template>\n </el-table-column>\n <el-table-column></el-table-column>\n </el-table>\n <el-button v-if=\"isRoot\" style=\"margin-top:20px;\" @click=\"createDialogFormVisible = true\" size=\"mini\">添加新平台</el-button>\n </el-tab-pane>\n </el-tabs>\n <CreatePlatformDialog :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditPlatformDialog :formData=\"editPlatformItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nimport CreatePlatformDialog from \"./create_platform\"\nimport EditPlatformDialog from \"./edit_platform\"\nexport default {\n name: \"system\",\n components: {\n CreatePlatformDialog,\n EditPlatformDialog,\n },\n data() {\n return {\n activeName: \"first\",\n systemInfo: {},\n companyInfo: {},\n isUploadingSysLogo: false,\n uploadysLogoPercent: \"\",\n isUploadingCompany: false,\n uploadCompanyPercent: \"\",\n qiniuSecret: {},\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n editPlatformItem: {}\n }\n },\n computed:{\n isRoot(){\n if(this.$store.getters.adminInfo){\n return this.$store.getters.adminInfo.root == 1\n }else{\n return false\n }\n \n }\n },\n updated: function () {\n this.$nextTick(function () {\n this.systemInfo = this.$store.getters.systemInfo\n this.companyInfo = this.$store.getters.companyInfo\n })\n },\n mounted(){\n this.systemInfo = this.$store.getters.systemInfo\n this.companyInfo = this.$store.getters.companyInfo\n if(this.isRoot) this.getQiniu()\n },\n methods: {\n onSubmit() {\n this.$confirm(\"您确定要保存修改后的配置吗?\", \"温馨提示!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n });\n },\n // 系统logo上传\n systemLogoUpload(file) {\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploadingSysLogo = true;\n this.uploadysLogoPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploadingSysLogo = false;\n this.uploadysLogoPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url;\n this.systemInfo.logo = imgUrl;\n },\n error: (err)=>{\n this.isUploadingSysLogo = false;\n this.uploadysLogoPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n },\n // 保存系统配置\n saveSystem(){\n this.$confirm(\"您确定要保存修改后的系统配置吗?\", \"温馨提示!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(()=>{\n axios\n .put(\"/system\", this.systemInfo)\n .then(response => {\n this.$store.commit('onChangeSystemInfo', response.data.data)\n this.$message.success(\"保存成功\");\n this.$store.dispatch('ON_GET_SYSTEM')\n this.$store.dispatch('ON_GET_UPLOADS_CONFIG')\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n })\n },\n // 公司logo上传\n companyLogoUpload(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploadingCompany = true;\n this.uploadCompanyPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploadingCompany = false;\n this.uploadCompanyPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url;\n this.companyInfo.logo = imgUrl;\n },\n error: (err)=>{\n this.isUploadingCompany = false;\n this.uploadCompanyPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n \n },\n // 保存公司配置\n saveCompany(){\n this.$confirm(\"您确定要保存修改后的公司信息吗?\", \"温馨提示!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(()=>{\n axios\n .put(\"/company\", this.companyInfo)\n .then(response => {\n this.$store.commit('onChangeCompanyInfo', response.data.data)\n this.$message.success(\"保存成功\");\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n })\n },\n // 获取七牛配置\n getQiniu(){\n axios.get('/qiniu')\n .then(response => {\n this.qiniuSecret = response.data.data\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 保存七牛配置\n saveQiniu(){\n this.$confirm(\"您确定要保存修改后的七牛配置信息吗?如配置信息错误会导致客户端无法上传图片文件\", \"警告!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(()=>{\n axios\n .put(\"/qiniu\", this.qiniuSecret)\n .then(response => {\n console.log(response.data.data)\n this.$message.success(\"保存成功\");\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n })\n },\n // 删除平台\n deletePlatform(item){\n console.log(item)\n this.$confirm('您确定要删除该平台配置吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n \n axios.delete('/platform/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑平台\n editPlatform(item){\n this.editPlatformItem = item\n this.editDialogFormVisible = true\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.mini-im-head {\n height: 60px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n\n.mini-im-file-button {\n width: 180px;\n position: relative;\n overflow: hidden;\n // background-color #f3f3f3\n border-radius 3px\n padding 5px\n box-shadow 1px 1px 7px 0px #ccc\n input {\n width: 180px;\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n opacity 0\n cursor: pointer;\n opacity 0\n }\n img{\n width 100%\n display block\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3a76b6f8&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3a76b6f8&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a76b6f8\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a76b6f8&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a76b6f8&lang=stylus&scoped=true&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-650419d0"],{"26b0":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{staticClass:"mini-im-head"},[o("span",[o("i",{staticClass:"el-icon-setting"}),o("span",{attrs:{slot:"title"},slot:"title"},[e._v("系统设置")])])]),o("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[o("el-tab-pane",{attrs:{label:"基本设置",name:"first"}},[o("el-form",{ref:"form",staticStyle:{width:"500px"},attrs:{"label-width":"100px"}},[o("el-form-item",{attrs:{label:"系统LOGO","label-width":"120px"}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:3}},[o("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[o("img",{attrs:{src:e.systemInfo.logo,alt:"点击上传图片"}}),o("input",{attrs:{disabled:!e.isRoot,onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.systemLogoUpload}}),o("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploadingSysLogo,expression:"isUploadingSysLogo"}],staticClass:"mini-im-file-percent"},[o("span",[e._v(e._s(e.uploadysLogoPercent))])])])]),o("el-col",{attrs:{span:6}})],1)],1),o("el-form-item",{attrs:{label:"系统名称"}},[o("el-input",{attrs:{readonly:!e.isRoot,placeholder:"请输入系统名称"},model:{value:e.systemInfo.title,callback:function(t){e.$set(e.systemInfo,"title",t)},expression:"systemInfo.title"}})],1),o("el-form-item",{attrs:{label:"版权信息"}},[o("el-input",{attrs:{readonly:!e.isRoot,placeholder:"请输入版权信息"},model:{value:e.systemInfo.copy_right,callback:function(t){e.$set(e.systemInfo,"copy_right",t)},expression:"systemInfo.copy_right"}})],1),o("el-divider",{attrs:{"content-position":"left"}},[e._v("选择资源存储空间服务商(上传的,图片,文件)")]),o("el-form-item",{attrs:{label:"上传选项"}},[o("el-select",{model:{value:e.systemInfo.upload_mode,callback:function(t){e.$set(e.systemInfo,"upload_mode",t)},expression:"systemInfo.upload_mode"}},e._l(e.$store.getters.uploadsConfigs,(function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),o("el-form-item",[e.isRoot?o("el-button",{attrs:{size:"mini"},on:{click:e.saveSystem}},[e._v("保存设置")]):e._e()],1)],1)],1),o("el-tab-pane",{attrs:{label:"公司信息",name:"second"}},[o("el-divider",{attrs:{"content-position":"left"}},[e._v("该配置信息会展示在各个前台给客户")]),o("el-form",{ref:"form",staticStyle:{width:"500px"},attrs:{"label-width":"100px"}},[o("el-form-item",{attrs:{label:"公司LOGO","label-width":"120px"}},[o("el-row",{attrs:{gutter:10}},[o("el-col",{attrs:{span:3}},[o("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[o("img",{attrs:{src:e.companyInfo.logo,alt:"点击上传图片"}}),o("input",{attrs:{disabled:!e.isRoot,onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:e.companyLogoUpload}}),o("div",{directives:[{name:"show",rawName:"v-show",value:e.isUploadingCompany,expression:"isUploadingCompany"}],staticClass:"mini-im-file-percent"},[o("span",[e._v(e._s(e.uploadCompanyPercent))])])])]),o("el-col",{attrs:{span:6}})],1)],1),o("el-form-item",{attrs:{label:"公司名称"}},[o("el-input",{attrs:{readonly:!e.isRoot,placeholder:"请输入公司名称"},model:{value:e.companyInfo.title,callback:function(t){e.$set(e.companyInfo,"title",t)},expression:"companyInfo.title"}})],1),o("el-form-item",{attrs:{label:"服务时间"}},[o("el-input",{attrs:{readonly:!e.isRoot,placeholder:"请输入在线客服服务时间"},model:{value:e.companyInfo.service,callback:function(t){e.$set(e.companyInfo,"service",t)},expression:"companyInfo.service"}})],1),o("el-form-item",{attrs:{label:"公司邮箱"}},[o("el-input",{attrs:{readonly:!e.isRoot,placeholder:"请输入公司邮箱"},model:{value:e.companyInfo.email,callback:function(t){e.$set(e.companyInfo,"email",t)},expression:"companyInfo.email"}})],1),o("el-form-item",{attrs:{label:"公司电话"}},[o("el-input",{attrs:{readonly:!e.isRoot,placeholder:"请输入公司电话"},model:{value:e.companyInfo.tel,callback:function(t){e.$set(e.companyInfo,"tel",t)},expression:"companyInfo.tel"}})],1),o("el-form-item",{attrs:{label:"公司地址"}},[o("el-input",{attrs:{readonly:!e.isRoot,type:"textarea",rows:"5",placeholder:"请输入公司地址"},model:{value:e.companyInfo.address,callback:function(t){e.$set(e.companyInfo,"address",t)},expression:"companyInfo.address"}})],1),o("el-form-item",[e.isRoot?o("el-button",{attrs:{size:"mini"},on:{click:e.saveCompany}},[e._v("保存设置")]):e._e()],1)],1)],1),e.isRoot?o("el-tab-pane",{attrs:{label:"七牛云存储配置",name:"three"}},[o("el-form",{ref:"form",staticStyle:{width:"500px"},attrs:{"label-width":"100px"}},[o("el-divider",{attrs:{"content-position":"left"}},[e._v("请不要随意修改该选项,可能会导致客户端上传不了文件或图片")]),o("el-form-item",{attrs:{label:"Bucket"}},[o("el-input",{attrs:{placeholder:"请输入bucket"},model:{value:e.qiniuSecret.bucket,callback:function(t){e.$set(e.qiniuSecret,"bucket",t)},expression:"qiniuSecret.bucket"}})],1),o("el-form-item",{attrs:{label:"accessKey"}},[o("el-input",{attrs:{placeholder:"请输入accessKey","show-password":""},model:{value:e.qiniuSecret.access_key,callback:function(t){e.$set(e.qiniuSecret,"access_key",t)},expression:"qiniuSecret.access_key"}})],1),o("el-form-item",{attrs:{label:"secretKey"}},[o("el-input",{attrs:{placeholder:"请输入secretKey","show-password":""},model:{value:e.qiniuSecret.secret_key,callback:function(t){e.$set(e.qiniuSecret,"secret_key",t)},expression:"qiniuSecret.secret_key"}})],1),o("el-form-item",{attrs:{label:"Host"}},[o("el-input",{attrs:{placeholder:"请输入host"},model:{value:e.qiniuSecret.host,callback:function(t){e.$set(e.qiniuSecret,"host",t)},expression:"qiniuSecret.host"}})],1),o("el-form-item",[o("el-button",{attrs:{size:"mini"},on:{click:e.saveQiniu}},[e._v("保存设置")])],1)],1)],1):e._e(),o("el-tab-pane",{attrs:{label:"客户端平台",name:"fives"}},[o("el-divider",{attrs:{"content-position":"left"}},[e._v("通过该配置,对接的平台,机器人,知识库匹配等 (系统默认项不可修改)")]),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.$store.getters.platformConfig}},[o("el-table-column",{attrs:{prop:"id",label:"#ID",width:"80"}}),o("el-table-column",{attrs:{prop:"title",label:"名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.system?o("el-tag",{attrs:{type:"danger"}},[e._v(e._s(t.row.title))]):e._e(),0==t.row.system?o("el-tag",[e._v(e._s(t.row.title))]):e._e()]}}])}),o("el-table-column",{attrs:{prop:"alias",label:"别名",align:"center"}}),e.isRoot?o("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.system?[o("el-button",{attrs:{size:"mini"},on:{click:function(o){return e.editPlatform(t.row)}}},[e._v("编 辑")]),o("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(o){return e.deletePlatform(t.row)}}},[e._v("删 除")])]:e._e(),1==t.row.system?o("span",{staticStyle:{"font-size":"12px",color:"#999"}},[e._v("系统内置,不可操作")]):e._e()]}}],null,!1,748916141)}):e._e(),o("el-table-column")],1),e.isRoot?o("el-button",{staticStyle:{"margin-top":"20px"},attrs:{size:"mini"},on:{click:function(t){e.createDialogFormVisible=!0}}},[e._v("添加新平台")]):e._e()],1)],1),o("CreatePlatformDialog",{attrs:{dialogFormVisible:e.createDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.createDialogFormVisible=t},"update:dialog-form-visible":function(t){e.createDialogFormVisible=t}}}),o("EditPlatformDialog",{attrs:{formData:e.editPlatformItem,dialogFormVisible:e.editDialogFormVisible},on:{"update:dialogFormVisible":function(t){e.editDialogFormVisible=t},"update:dialog-form-visible":function(t){e.editDialogFormVisible=t}}})],1)},s=[],i=o("bc3a"),l=o.n(i),n=o("fb21"),r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"添加平台","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[o("el-form",{attrs:{model:e.form}},[o("el-form-item",{attrs:{label:"平台名称","label-width":e.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入平台名称",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),o("el-form-item",{attrs:{label:"平台别名","label-width":e.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入平台别名",autocomplete:"off"},model:{value:e.form.alias,callback:function(t){e.$set(e.form,"alias",t)},expression:"form.alias"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},c=[],m={name:"mini-im-create-admin",data:function(){return{form:{title:"",alias:""},formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});l.a.post("/platform",this.form).then((function(o){console.log(o),t.close(),e.$message.success("添加成功"),e.closeModal(),e.resize(),e.$store.dispatch("ON_GET_PLATFORM_CONFIG")})).catch((function(o){t.close(),e.$message.error(o.response.data.message)}))},resize:function(){this.form={title:"",alias:""}}}},f=m,u=o("2877"),d=Object(u["a"])(f,r,c,!1,null,"74dae80a",null),p=d.exports,g=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"修改平台","show-close":!1,visible:e.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[o("el-form",{attrs:{model:e.form}},[o("el-form-item",{attrs:{label:"平台名称","label-width":e.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入平台名称",autocomplete:"off"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),o("el-form-item",{attrs:{label:"平台别名","label-width":e.formLabelWidth}},[o("el-input",{attrs:{placeholder:"请输入平台别名",autocomplete:"off"},model:{value:e.form.alias,callback:function(t){e.$set(e.form,"alias",t)},expression:"form.alias"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1)],1)},b=[],h={name:"me-create-admin",data:function(){return{form:{title:"",alias:""},formLabelWidth:"80px"}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},save:function(){var e=this,t=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});l.a.put("/platform",this.form).then((function(o){console.log(o),t.close(),e.$message.success("添加成功"),e.closeModal(),e.$store.dispatch("ON_GET_PLATFORM_CONFIG")})).catch((function(o){t.close(),e.$message.error(o.response.data.message)}))}},watch:{formData:function(){this.form=Object.assign({},this.form,this.formData)}}},y=h,v=Object(u["a"])(y,g,b,!1,null,"51cfd3c3",null),_=v.exports,$={name:"system",components:{CreatePlatformDialog:p,EditPlatformDialog:_},data:function(){return{activeName:"first",systemInfo:{},companyInfo:{},isUploadingSysLogo:!1,uploadysLogoPercent:"",isUploadingCompany:!1,uploadCompanyPercent:"",qiniuSecret:{},createDialogFormVisible:!1,editDialogFormVisible:!1,editPlatformItem:{}}},computed:{isRoot:function(){return!!this.$store.getters.adminInfo&&1==this.$store.getters.adminInfo.root}},updated:function(){this.$nextTick((function(){this.systemInfo=this.$store.getters.systemInfo,this.companyInfo=this.$store.getters.companyInfo}))},mounted:function(){this.systemInfo=this.$store.getters.systemInfo,this.companyInfo=this.$store.getters.companyInfo,this.isRoot&&this.getQiniu()},methods:{onSubmit:function(){this.$confirm("您确定要保存修改后的配置吗?","温馨提示!",{confirmButtonText:"保存",cancelButtonText:"取消",center:!0,type:"warning"})},systemLogoUpload:function(e){var t=this,o=e.target.files[0];Object(n["a"])({file:o,progress:function(e){t.isUploadingSysLogo=!0,t.uploadysLogoPercent=e+"%"},success:function(e){t.isUploadingSysLogo=!1,t.uploadysLogoPercent="",t.$message.success("上传成功");var o=t.$store.getters.configs.upload_host+"/"+e;t.systemInfo.logo=o},error:function(e){t.isUploadingSysLogo=!1,t.uploadysLogoPercent="",t.$message.error(e.message)}})},saveSystem:function(){var e=this;this.$confirm("您确定要保存修改后的系统配置吗?","温馨提示!",{confirmButtonText:"保存",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){l.a.put("/system",e.systemInfo).then((function(t){e.$store.commit("onChangeSystemInfo",t.data.data),e.$message.success("保存成功"),e.$store.dispatch("ON_GET_SYSTEM"),e.$store.dispatch("ON_GET_UPLOADS_CONFIG")})).catch((function(t){e.$message.error(t.response.data.message)}))}))},companyLogoUpload:function(e){var t=this,o=e.target.files[0];Object(n["a"])({file:o,progress:function(e){t.isUploadingCompany=!0,t.uploadCompanyPercent=e+"%"},success:function(e){t.isUploadingCompany=!1,t.uploadCompanyPercent="",t.$message.success("上传成功");var o=t.$store.getters.configs.upload_host+"/"+e;t.companyInfo.logo=o},error:function(e){t.isUploadingCompany=!1,t.uploadCompanyPercent="",t.$message.error(e.message)}})},saveCompany:function(){var e=this;this.$confirm("您确定要保存修改后的公司信息吗?","温馨提示!",{confirmButtonText:"保存",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){l.a.put("/company",e.companyInfo).then((function(t){e.$store.commit("onChangeCompanyInfo",t.data.data),e.$message.success("保存成功")})).catch((function(t){e.$message.error(t.response.data.message)}))}))},getQiniu:function(){var e=this;l.a.get("/qiniu").then((function(t){e.qiniuSecret=t.data.data})).catch((function(t){e.$message.error(t.response.data.message)}))},saveQiniu:function(){var e=this;this.$confirm("您确定要保存修改后的七牛配置信息吗?如配置信息错误会导致客户端无法上传图片文件","警告!",{confirmButtonText:"保存",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){l.a.put("/qiniu",e.qiniuSecret).then((function(t){console.log(t.data.data),e.$message.success("保存成功")})).catch((function(t){e.$message.error(t.response.data.message)}))}))},deletePlatform:function(e){var t=this;console.log(e),this.$confirm("您确定要删除该平台配置吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){l.a.delete("/platform/"+e.id).then((function(e){console.log(e.data),t.$message.success("删除成功"),t.$store.dispatch("ON_GET_PLATFORM_CONFIG")})).catch((function(e){t.$message.error(e.response.data.message)}))}))},editPlatform:function(e){this.editPlatformItem=e,this.editDialogFormVisible=!0}}},k=$,I=(o("dbd7"),Object(u["a"])(k,a,s,!1,null,"3a76b6f8",null));t["default"]=I.exports},"2fec":function(e,t,o){},dbd7:function(e,t,o){"use strict";var a=o("2fec"),s=o.n(a);s.a}}]);
//# sourceMappingURL=chunk-650419d0.394afa0b.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-650419d0.99e278a2.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/system/index.vue?dd4b","webpack:///./src/views/system/create_platform.vue?ead6","webpack:///src/views/system/create_platform.vue","webpack:///./src/views/system/create_platform.vue?17f1","webpack:///./src/views/system/create_platform.vue","webpack:///./src/views/system/edit_platform.vue?f3a6","webpack:///src/views/system/edit_platform.vue","webpack:///./src/views/system/edit_platform.vue?54ae","webpack:///./src/views/system/edit_platform.vue","webpack:///src/views/system/index.vue","webpack:///./src/views/system/index.vue?cbce","webpack:///./src/views/system/index.vue","webpack:///./src/views/system/index.vue?747d"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","model","value","callback","$$v","activeName","expression","ref","staticStyle","systemInfo","logo","isRoot","on","systemLogoUpload","directives","name","rawName","_s","uploadysLogoPercent","$set","_l","$store","getters","item","key","id","saveSystem","_e","companyInfo","companyLogoUpload","uploadCompanyPercent","saveCompany","qiniuSecret","saveQiniu","platformConfig","scopedSlots","_u","fn","scope","row","system","title","$event","editPlatform","deletePlatform","createDialogFormVisible","editPlatformItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","closeModal","save","data","props","Boolean","complete","Function","methods","$emit","lock","text","spinner","background","resize","component","formData","Object","watch","assign","components","CreatePlatformDialog","EditPlatformDialog","isUploadingSysLogo","isUploadingCompany","computed","adminInfo","root","updated","$nextTick","mounted","onSubmit","$confirm","confirmButtonText","cancelButtonText","center","type","fileData","file","target","files","imgUrl","getQiniu"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,oBAAoBF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,cAAcL,EAAG,UAAU,CAACM,MAAM,CAACC,MAAOX,EAAc,WAAEY,SAAS,SAAUC,GAAMb,EAAIc,WAAWD,GAAKE,WAAW,eAAe,CAACX,EAAG,cAAc,CAACG,MAAM,CAAC,MAAQ,OAAO,KAAO,UAAU,CAACH,EAAG,UAAU,CAACY,IAAI,OAAOC,YAAY,CAAC,MAAQ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AV,wBACU,EAAV,8BAOI7D,YAjFJ,WAiFA,WACMvC,KAAK2F,SAAS,mBAAoB,QAAS,CACzCC,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRC,KAAM,YACd,iBACQ,EAAR,EACA,8BACA,kBACU,EAAV,iDACU,EAAV,4BAEA,mBACU,EAAV,+CAKIM,SApGJ,WAoGA,WACM,EAAN,gBACA,kBACQ,EAAR,2BAEA,mBACQ,EAAR,4CAII5D,UA9GJ,WA8GA,WACMzC,KAAK2F,SAAS,0CAA2C,MAAO,CAC9DC,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRC,KAAM,YACd,iBACQ,EAAR,EACA,4BACA,kBACU,QAAV,iBACU,EAAV,4BAEA,mBACU,EAAV,+CAKI3C,eAjIJ,SAiIA,cACM,QAAN,OACMpD,KAAK2F,SAAS,yBAA0B,QAAS,CAC/CC,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRC,KAAM,YACd,iBAEQ,EAAR,4BACA,kBACU,QAAV,YACU,EAAV,yBACU,EAAV,6CAEA,mBACU,EAAV,+CAKI5C,aAtJJ,SAsJA,GACMnD,KAAKsD,iBAAmBvB,EACxB/B,KAAKuD,uBAAwB,KCpV8V,ICQ7X,G,UAAY,eACd,EACAzD,EACA0D,GACA,EACA,KACA,WACA,OAIa,e,oECnBf,yBAAyjB,EAAG","file":"js/chunk-650419d0.99e278a2.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-setting\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"系统设置\")])])]),_c('el-tabs',{model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{attrs:{\"label\":\"基本设置\",\"name\":\"first\"}},[_c('el-form',{ref:\"form\",staticStyle:{\"width\":\"500px\"},attrs:{\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"系统LOGO\",\"label-width\":\"120px\"}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('img',{attrs:{\"src\":_vm.systemInfo.logo,\"alt\":\"点击上传图片\"}}),_c('input',{attrs:{\"disabled\":!_vm.isRoot,\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.systemLogoUpload}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploadingSysLogo),expression:\"isUploadingSysLogo\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadysLogoPercent))])])])]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"系统名称\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入系统名称\"},model:{value:(_vm.systemInfo.title),callback:function ($$v) {_vm.$set(_vm.systemInfo, \"title\", $$v)},expression:\"systemInfo.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"版权信息\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入版权信息\"},model:{value:(_vm.systemInfo.copy_right),callback:function ($$v) {_vm.$set(_vm.systemInfo, \"copy_right\", $$v)},expression:\"systemInfo.copy_right\"}})],1),_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"选择资源存储空间服务商(上传的,图片,文件)\")]),_c('el-form-item',{attrs:{\"label\":\"上传选项\"}},[_c('el-select',{model:{value:(_vm.systemInfo.upload_mode),callback:function ($$v) {_vm.$set(_vm.systemInfo, \"upload_mode\", $$v)},expression:\"systemInfo.upload_mode\"}},_vm._l((_vm.$store.getters.uploadsConfigs),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}),1)],1),_c('el-form-item',[(_vm.isRoot)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":_vm.saveSystem}},[_vm._v(\"保存设置\")]):_vm._e()],1)],1)],1),_c('el-tab-pane',{attrs:{\"label\":\"公司信息\",\"name\":\"second\"}},[_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"该配置信息会展示在各个前台给客户\")]),_c('el-form',{ref:\"form\",staticStyle:{\"width\":\"500px\"},attrs:{\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"label\":\"公司LOGO\",\"label-width\":\"120px\"}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('img',{attrs:{\"src\":_vm.companyInfo.logo,\"alt\":\"点击上传图片\"}}),_c('input',{attrs:{\"disabled\":!_vm.isRoot,\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.companyLogoUpload}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploadingCompany),expression:\"isUploadingCompany\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadCompanyPercent))])])])]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"公司名称\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入公司名称\"},model:{value:(_vm.companyInfo.title),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"title\", $$v)},expression:\"companyInfo.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"服务时间\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入在线客服服务时间\"},model:{value:(_vm.companyInfo.service),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"service\", $$v)},expression:\"companyInfo.service\"}})],1),_c('el-form-item',{attrs:{\"label\":\"公司邮箱\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入公司邮箱\"},model:{value:(_vm.companyInfo.email),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"email\", $$v)},expression:\"companyInfo.email\"}})],1),_c('el-form-item',{attrs:{\"label\":\"公司电话\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"placeholder\":\"请输入公司电话\"},model:{value:(_vm.companyInfo.tel),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"tel\", $$v)},expression:\"companyInfo.tel\"}})],1),_c('el-form-item',{attrs:{\"label\":\"公司地址\"}},[_c('el-input',{attrs:{\"readonly\":!_vm.isRoot,\"type\":\"textarea\",\"rows\":\"5\",\"placeholder\":\"请输入公司地址\"},model:{value:(_vm.companyInfo.address),callback:function ($$v) {_vm.$set(_vm.companyInfo, \"address\", $$v)},expression:\"companyInfo.address\"}})],1),_c('el-form-item',[(_vm.isRoot)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":_vm.saveCompany}},[_vm._v(\"保存设置\")]):_vm._e()],1)],1)],1),(_vm.isRoot)?_c('el-tab-pane',{attrs:{\"label\":\"七牛云存储配置\",\"name\":\"three\"}},[_c('el-form',{ref:\"form\",staticStyle:{\"width\":\"500px\"},attrs:{\"label-width\":\"100px\"}},[_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"请不要随意修改该选项,可能会导致客户端上传不了文件或图片\")]),_c('el-form-item',{attrs:{\"label\":\"Bucket\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入bucket\"},model:{value:(_vm.qiniuSecret.bucket),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"bucket\", $$v)},expression:\"qiniuSecret.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"accessKey\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入accessKey\",\"show-password\":\"\"},model:{value:(_vm.qiniuSecret.access_key),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"access_key\", $$v)},expression:\"qiniuSecret.access_key\"}})],1),_c('el-form-item',{attrs:{\"label\":\"secretKey\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入secretKey\",\"show-password\":\"\"},model:{value:(_vm.qiniuSecret.secret_key),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"secret_key\", $$v)},expression:\"qiniuSecret.secret_key\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Host\"}},[_c('el-input',{attrs:{\"placeholder\":\"请输入host\"},model:{value:(_vm.qiniuSecret.host),callback:function ($$v) {_vm.$set(_vm.qiniuSecret, \"host\", $$v)},expression:\"qiniuSecret.host\"}})],1),_c('el-form-item',[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":_vm.saveQiniu}},[_vm._v(\"保存设置\")])],1)],1)],1):_vm._e(),_c('el-tab-pane',{attrs:{\"label\":\"客户端平台\",\"name\":\"fives\"}},[_c('el-divider',{attrs:{\"content-position\":\"left\"}},[_vm._v(\"通过该配置,对接的平台,机器人,知识库匹配等 (系统默认项不可修改)\")]),_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.$store.getters.platformConfig}},[_c('el-table-column',{attrs:{\"prop\":\"id\",\"label\":\"#ID\",\"width\":\"80\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.system == 1)?_c('el-tag',{attrs:{\"type\":\"danger\"}},[_vm._v(_vm._s(scope.row.title))]):_vm._e(),(scope.row.system == 0)?_c('el-tag',[_vm._v(_vm._s(scope.row.title))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"alias\",\"label\":\"别名\",\"align\":\"center\"}}),(_vm.isRoot)?_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.system == 0)?[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.editPlatform(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deletePlatform(scope.row)}}},[_vm._v(\"删 除\")])]:_vm._e(),(scope.row.system == 1)?_c('span',{staticStyle:{\"font-size\":\"12px\",\"color\":\"#999\"}},[_vm._v(\"系统内置,不可操作\")]):_vm._e()]}}],null,false,748916141)}):_vm._e(),_c('el-table-column')],1),(_vm.isRoot)?_c('el-button',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添加新平台\")]):_vm._e()],1)],1),_c('CreatePlatformDialog',{attrs:{\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditPlatformDialog',{attrs:{\"formData\":_vm.editPlatformItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"添加平台\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"平台名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台名称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"平台别名\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台别名\",\"autocomplete\":\"off\"},model:{value:(_vm.form.alias),callback:function ($$v) {_vm.$set(_vm.form, \"alias\", $$v)},expression:\"form.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog title=\"添加平台\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"平台名称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入平台名称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"平台别名\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.alias\" placeholder=\"请输入平台别名\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'mini-im-create-admin',\n data(){\n return {\n form: {\n title: '',\n alias: '',\n },\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .post(\"/platform\", this.form)\n .then(response => {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n resize() {\n this.form = {\n title: '',\n alias: '',\n };\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create_platform.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create_platform.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create_platform.vue?vue&type=template&id=74dae80a&scoped=true&\"\nimport script from \"./create_platform.vue?vue&type=script&lang=js&\"\nexport * from \"./create_platform.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"74dae80a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"title\":\"修改平台\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"平台名称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台名称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":\"平台别名\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入平台别名\",\"autocomplete\":\"off\"},model:{value:(_vm.form.alias),callback:function ($$v) {_vm.$set(_vm.form, \"alias\", $$v)},expression:\"form.alias\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog title=\"修改平台\" :show-close=\"false\" :visible.sync=\"dialogFormVisible\" :close-on-click-modal=\"false\">\n <el-form :model=\"form\">\n <el-form-item label=\"平台名称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.title\" placeholder=\"请输入平台名称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"平台别名\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.alias\" placeholder=\"请输入平台别名\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: 'me-create-admin',\n data(){\n return {\n form: {\n title: '',\n alias: '',\n },\n formLabelWidth: \"80px\"\n }\n },\n props:{\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal(){\n this.$emit('update:dialogFormVisible', false);\n },\n // 保存\n save() {\n // 验证字段 !! 算了其它前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n axios\n .put(\"/platform\", this.form)\n .then(response => {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n }\n },\n watch:{\n formData(){\n this.form = Object.assign({},this.form, this.formData)\n }\n }\n}\n</script>\n<style scoped lang=\"stylus\">\n \n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit_platform.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit_platform.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit_platform.vue?vue&type=template&id=51cfd3c3&scoped=true&\"\nimport script from \"./edit_platform.vue?vue&type=script&lang=js&\"\nexport * from \"./edit_platform.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"51cfd3c3\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-setting\"></i>\n <span slot=\"title\">系统设置</span>\n </span>\n </div>\n <el-tabs v-model=\"activeName\">\n <el-tab-pane label=\"基本设置\" name=\"first\">\n <el-form style=\"width:500px\" ref=\"form\" label-width=\"100px\">\n <el-form-item label=\"系统LOGO\" label-width=\"120px\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <img :src=\"systemInfo.logo\" alt=\"点击上传图片\">\n <input\n :disabled=\"!isRoot\"\n onClick=\"this.value = null\"\n @change=\"systemLogoUpload\"\n type=\"file\"\n accept=\"image/*\"\n />\n <div v-show=\"isUploadingSysLogo\" class=\"mini-im-file-percent\">\n <span>{{uploadysLogoPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"系统名称\">\n <el-input :readonly=\"!isRoot\" v-model=\"systemInfo.title\" placeholder=\"请输入系统名称\"></el-input>\n </el-form-item>\n <el-form-item label=\"版权信息\">\n <el-input :readonly=\"!isRoot\" v-model=\"systemInfo.copy_right\" placeholder=\"请输入版权信息\"></el-input>\n </el-form-item>\n <el-divider content-position=\"left\">选择资源存储空间服务商(上传的,图片,文件)</el-divider>\n <el-form-item label=\"上传选项\">\n <el-select v-model=\"systemInfo.upload_mode\">\n <el-option :label=\"item.name\" :value=\"item.id\" :key=\"item.id\" v-for=\"item in $store.getters.uploadsConfigs\"></el-option>\n </el-select>\n </el-form-item>\n <el-form-item>\n <el-button v-if=\"isRoot\" @click=\"saveSystem\" size=\"mini\">保存设置</el-button>\n </el-form-item>\n </el-form>\n </el-tab-pane>\n <el-tab-pane label=\"公司信息\" name=\"second\">\n <el-divider content-position=\"left\">该配置信息会展示在各个前台给客户</el-divider>\n <el-form style=\"width:500px\" ref=\"form\" label-width=\"100px\">\n <el-form-item label=\"公司LOGO\" label-width=\"120px\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <img :src=\"companyInfo.logo\" alt=\"点击上传图片\">\n <input\n :disabled=\"!isRoot\"\n onClick=\"this.value = null\"\n @change=\"companyLogoUpload\"\n type=\"file\"\n accept=\"image/*\"\n />\n <div v-show=\"isUploadingCompany\" class=\"mini-im-file-percent\">\n <span>{{uploadCompanyPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"公司名称\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.title\" placeholder=\"请输入公司名称\"></el-input>\n </el-form-item>\n <el-form-item label=\"服务时间\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.service\" placeholder=\"请输入在线客服服务时间\"></el-input>\n </el-form-item>\n <el-form-item label=\"公司邮箱\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.email\" placeholder=\"请输入公司邮箱\"></el-input>\n </el-form-item>\n <el-form-item label=\"公司电话\">\n <el-input :readonly=\"!isRoot\" v-model=\"companyInfo.tel\" placeholder=\"请输入公司电话\"></el-input>\n </el-form-item>\n <el-form-item label=\"公司地址\">\n <el-input :readonly=\"!isRoot\" type=\"textarea\" rows=\"5\" v-model=\"companyInfo.address\" placeholder=\"请输入公司地址\"></el-input>\n </el-form-item>\n <el-form-item>\n <el-button v-if=\"isRoot\" @click=\"saveCompany\" size=\"mini\">保存设置</el-button>\n </el-form-item>\n </el-form>\n </el-tab-pane>\n <el-tab-pane v-if=\"isRoot\" label=\"七牛云存储配置\" name=\"three\">\n <el-form style=\"width:500px\" ref=\"form\" label-width=\"100px\">\n <el-divider content-position=\"left\">请不要随意修改该选项,可能会导致客户端上传不了文件或图片</el-divider>\n <el-form-item label=\"Bucket\">\n <el-input v-model=\"qiniuSecret.bucket\" placeholder=\"请输入bucket\"></el-input>\n </el-form-item>\n <el-form-item label=\"accessKey\">\n <el-input v-model=\"qiniuSecret.access_key\" placeholder=\"请输入accessKey\" show-password></el-input>\n </el-form-item>\n <el-form-item label=\"secretKey\">\n <el-input v-model=\"qiniuSecret.secret_key\" placeholder=\"请输入secretKey\" show-password></el-input>\n </el-form-item>\n <el-form-item label=\"Host\">\n <el-input v-model=\"qiniuSecret.host\" placeholder=\"请输入host\"></el-input>\n </el-form-item>\n <el-form-item>\n <el-button @click=\"saveQiniu\" size=\"mini\">保存设置</el-button>\n </el-form-item>\n </el-form>\n </el-tab-pane>\n <el-tab-pane label=\"客户端平台\" name=\"fives\">\n <el-divider content-position=\"left\">通过该配置,对接的平台,机器人,知识库匹配等 (系统默认项不可修改)</el-divider>\n <el-table :data=\"$store.getters.platformConfig\" style=\"width: 100%\">\n <el-table-column prop=\"id\" label=\"#ID\" width=\"80\"></el-table-column>\n <el-table-column prop=\"title\" label=\"名称\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-tag type=\"danger\" v-if=\"scope.row.system == 1\">{{scope.row.title}}</el-tag>\n <el-tag v-if=\"scope.row.system == 0\">{{scope.row.title}}</el-tag>\n </template>\n </el-table-column>\n <el-table-column prop=\"alias\" label=\"别名\" align=\"center\"></el-table-column>\n <el-table-column v-if=\"isRoot\" label=\"操作\" align=\"center\">\n <template slot-scope=\"scope\">\n <template v-if=\"scope.row.system == 0\">\n <el-button @click=\"editPlatform(scope.row)\" size=\"mini\">编 辑</el-button>\n <el-button @click=\"deletePlatform(scope.row)\" size=\"mini\" type=\"danger\">删 除</el-button>\n </template>\n <span v-if=\"scope.row.system == 1\" style=\"font-size: 12px;color: #999;\">系统内置,不可操作</span>\n </template>\n </el-table-column>\n <el-table-column></el-table-column>\n </el-table>\n <el-button v-if=\"isRoot\" style=\"margin-top:20px;\" @click=\"createDialogFormVisible = true\" size=\"mini\">添加新平台</el-button>\n </el-tab-pane>\n </el-tabs>\n <CreatePlatformDialog :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditPlatformDialog :formData=\"editPlatformItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nimport CreatePlatformDialog from \"./create_platform\"\nimport EditPlatformDialog from \"./edit_platform\"\nexport default {\n name: \"system\",\n components: {\n CreatePlatformDialog,\n EditPlatformDialog,\n },\n data() {\n return {\n activeName: \"first\",\n systemInfo: {},\n companyInfo: {},\n isUploadingSysLogo: false,\n uploadysLogoPercent: \"\",\n isUploadingCompany: false,\n uploadCompanyPercent: \"\",\n qiniuSecret: {},\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n editPlatformItem: {}\n }\n },\n computed:{\n isRoot(){\n if(this.$store.getters.adminInfo){\n return this.$store.getters.adminInfo.root == 1\n }else{\n return false\n }\n \n }\n },\n updated: function () {\n this.$nextTick(function () {\n this.systemInfo = this.$store.getters.systemInfo\n this.companyInfo = this.$store.getters.companyInfo\n })\n },\n mounted(){\n this.systemInfo = this.$store.getters.systemInfo\n this.companyInfo = this.$store.getters.companyInfo\n if(this.isRoot) this.getQiniu()\n },\n methods: {\n onSubmit() {\n this.$confirm(\"您确定要保存修改后的配置吗?\", \"温馨提示!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n });\n },\n // 系统logo上传\n systemLogoUpload(file) {\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploadingSysLogo = true;\n this.uploadysLogoPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploadingSysLogo = false;\n this.uploadysLogoPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url;\n this.systemInfo.logo = imgUrl;\n },\n error: (err)=>{\n this.isUploadingSysLogo = false;\n this.uploadysLogoPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n },\n // 保存系统配置\n saveSystem(){\n this.$confirm(\"您确定要保存修改后的系统配置吗?\", \"温馨提示!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(()=>{\n axios\n .put(\"/system\", this.systemInfo)\n .then(response => {\n this.$store.commit('onChangeSystemInfo', response.data.data)\n this.$message.success(\"保存成功\");\n this.$store.dispatch('ON_GET_SYSTEM')\n this.$store.dispatch('ON_GET_UPLOADS_CONFIG')\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n })\n },\n // 公司logo上传\n companyLogoUpload(file) {\n\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploadingCompany = true;\n this.uploadCompanyPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploadingCompany = false;\n this.uploadCompanyPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url;\n this.companyInfo.logo = imgUrl;\n },\n error: (err)=>{\n this.isUploadingCompany = false;\n this.uploadCompanyPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n \n },\n // 保存公司配置\n saveCompany(){\n this.$confirm(\"您确定要保存修改后的公司信息吗?\", \"温馨提示!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(()=>{\n axios\n .put(\"/company\", this.companyInfo)\n .then(response => {\n this.$store.commit('onChangeCompanyInfo', response.data.data)\n this.$message.success(\"保存成功\");\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n })\n },\n // 获取七牛配置\n getQiniu(){\n axios.get('/qiniu')\n .then(response => {\n this.qiniuSecret = response.data.data\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n },\n // 保存七牛配置\n saveQiniu(){\n this.$confirm(\"您确定要保存修改后的七牛配置信息吗?如配置信息错误会导致客户端无法上传图片文件\", \"警告!\", {\n confirmButtonText: \"保存\",\n cancelButtonText: \"取消\",\n center: true,\n type: \"warning\"\n }).then(()=>{\n axios\n .put(\"/qiniu\", this.qiniuSecret)\n .then(response => {\n console.log(response.data.data)\n this.$message.success(\"保存成功\");\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n })\n },\n // 删除平台\n deletePlatform(item){\n console.log(item)\n this.$confirm('您确定要删除该平台配置吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n \n axios.delete('/platform/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.$store.dispatch('ON_GET_PLATFORM_CONFIG')\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑平台\n editPlatform(item){\n this.editPlatformItem = item\n this.editDialogFormVisible = true\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.mini-im-head {\n height: 60px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n\n i {\n margin-right: 5px;\n }\n}\n\n.mini-im-file-button {\n width: 180px;\n position: relative;\n overflow: hidden;\n // background-color #f3f3f3\n border-radius 3px\n padding 5px\n box-shadow 1px 1px 7px 0px #ccc\n input {\n width: 180px;\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n opacity 0\n cursor: pointer;\n opacity 0\n }\n img{\n width 100%\n display block\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3a76b6f8&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=3a76b6f8&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a76b6f8\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a76b6f8&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=3a76b6f8&lang=stylus&scoped=true&\""],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-724a4e2a"],{"0980":function(t,e,a){"use strict";var o=a("89c6"),i=a.n(o);i.a},2157:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"mini-im-head"},[a("span",[a("i",{staticClass:"el-icon-picture-outline-round"}),a("span",{attrs:{slot:"title"},slot:"title"},[t._v("机器人管理")])]),1==t.adminInfo.root?a("el-button",{attrs:{size:"mini"},on:{click:function(e){t.createDialogFormVisible=!0}}},[t._v("添 加")]):t._e()],1),a("el-divider"),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{type:"index",width:"60"}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像",width:"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-avatar",{attrs:{size:40,src:t.row.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"nickname",label:"机器人昵称"}}),a("el-table-column",{attrs:{prop:"welcome",label:"欢迎语"}}),a("el-table-column",{attrs:{prop:"understand",label:"无匹配知识库语"}}),a("el-table-column",{attrs:{prop:"timeout_text",label:"超时结束提示"}}),a("el-table-column",{attrs:{prop:"no_services",label:"无人工在线提示"}}),a("el-table-column",{attrs:{prop:"loog_time_wait_text",label:"长时间等待提示"}}),a("el-table-column",{attrs:{prop:"keyword",label:"检索知识库热词"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.keyword.replace(/\|/g," , ")))])]}}])}),a("el-table-column",{attrs:{prop:"artificial",label:"转人工关键词"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.artificial.replace(/\|/g," , ")))])]}}])}),a("el-table-column",{attrs:{prop:"switch",align:"center",label:"运行状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.switch?a("el-tag",{attrs:{type:"success"}},[t._v("服务中")]):t._e(),0==e.row.switch?a("el-tag",{attrs:{type:"danger"}},[t._v("服务暂停")]):t._e()]}}])}),a("el-table-column",{attrs:{align:"center",prop:"platform",label:"服务平台"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tag",[t._v(t._s(t.$getPlatformItem(e.row.platform).title))])]}}])}),a("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.$formatUnixDate(e.row.create_at,"YYYY/MM/DD"))+"\n ")]}}])}),1==t.adminInfo.root?a("el-table-column",{attrs:{prop:"operating",align:"center",label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return t.edit(e.row)}}},[t._v("编 辑")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){return t.deleteRobot(e.row)}}},[t._v("删 除")])]}}],null,!1,289946275)}):t._e()],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[a("span",{staticStyle:{color:"#666","font-size":"14px"}},[t._v("当前有"+t._s(t.tableData.length)+"个机器人")])]),a("CreateDialog",{attrs:{complete:t.getRobotList,dialogFormVisible:t.createDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.createDialogFormVisible=e},"update:dialog-form-visible":function(e){t.createDialogFormVisible=e}}}),a("EditDialog",{attrs:{complete:t.getRobotList,formData:t.editItem,dialogFormVisible:t.editDialogFormVisible},on:{"update:dialogFormVisible":function(e){t.editDialogFormVisible=e},"update:dialog-form-visible":function(e){t.editDialogFormVisible=e}}})],1)},i=[],l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"添加机器人","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{attrs:{model:t.form}},[a("el-form-item",{attrs:{label:"头像","label-width":t.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:t.form.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:t.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[t._v(t._s(t.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"机器人昵称","label-width":t.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入机器人昵称",autocomplete:"off"},model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{label:"机器人欢迎语","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入机器人欢迎语",autocomplete:"off"},model:{value:t.form.welcome,callback:function(e){t.$set(t.form,"welcome",e)},expression:"form.welcome"}})],1),a("el-form-item",{attrs:{label:"无匹配知识库语","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入无法识别回复语",autocomplete:"off"},model:{value:t.form.understand,callback:function(e){t.$set(t.form,"understand",e)},expression:"form.understand"}})],1),a("el-form-item",{attrs:{label:"超时结束提示","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入会话超时结束提示",autocomplete:"off"},model:{value:t.form.timeout_text,callback:function(e){t.$set(t.form,"timeout_text",e)},expression:"form.timeout_text"}})],1),a("el-form-item",{attrs:{label:"无人工在线提示","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入无人工在线提示",autocomplete:"off"},model:{value:t.form.no_services,callback:function(e){t.$set(t.form,"no_services",e)},expression:"form.no_services"}})],1),a("el-form-item",{attrs:{label:"长时间等待提示","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入长时间等待提示语",autocomplete:"off"},model:{value:t.form.loog_time_wait_text,callback:function(e){t.$set(t.form,"loog_time_wait_text",e)},expression:"form.loog_time_wait_text"}})],1),a("el-form-item",{attrs:{label:"检索知识库热词","label-width":t.formLabelWidth}},[t._l(t.keyWordTags,(function(e){return a("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return t.handleKeyWordDel(e,"keyWordTagsInput")}}},[t._v(t._s(e))])})),t.showkeyWordTagsInput?a("el-input",{ref:"keyWordTagsInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputkeyWordTagValue,callback:function(e){t.inputkeyWordTagValue=e},expression:"inputkeyWordTagValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(e){return t.showTagInput("keyWordTagsInput")}}},[t._v("+ 新增")]),a("div",{staticStyle:{"font-size":"12px"}},[t._v("* 该词库会在用户输入的时候去匹配检索提示")])],2),a("el-form-item",{attrs:{label:"转人工关键词","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return a("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return t.handleKeyWordDel(e,"dynamicTagsInput")}}},[t._v(t._s(e))])})),t.showDynamicTagsInput?a("el-input",{ref:"dynamicTagsInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputDynamicTagValue,callback:function(e){t.inputDynamicTagValue=e},expression:"inputDynamicTagValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(e){return t.showTagInput("dynamicTagsInput")}}},[t._v("+ 新增")]),a("div",{staticStyle:{"font-size":"12px"}},[t._v('* 匹配该关键词进入人工,系统已内置: "人工"')])],2),a("el-form-item",{attrs:{label:"运行状态","label-width":t.formLabelWidth}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.robotSwitch,callback:function(e){t.robotSwitch=e},expression:"robotSwitch"}})],1),a("el-form-item",{attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[a("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.$store.getters.platformConfig,(function(t,e){return a("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},n=[],s=(a("57e7"),a("bc3a")),r=a.n(s),c=a("fb21"),u={name:"mini-im-create-robot",data:function(){return{dynamicTags:[],keyWordTags:[],showkeyWordTagsInput:!1,inputkeyWordTagValue:"",showDynamicTagsInput:!1,inputDynamicTagValue:"",form:{nickname:"",avatar:"",welcome:"",understand:"",artificial:"",keyword:"",timeout_text:"",no_services:"",loog_time_wait_text:"",platform:1,switch:1},robotSwitch:!0,formLabelWidth:"120px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function},methods:{closeModal:function(){this.resize(),this.$emit("update:dialogFormVisible",!1)},changeFile:function(t){var e=this,a=t.target.files[0];Object(c["a"])({file:a,progress:function(t){e.isUploading=!0,e.uploadPercent=t+"%"},success:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.success("上传成功");var a=e.$store.getters.configs.upload_host+"/"+t;e.form.avatar=a},error:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.error(t.message)}})},handleKeyWordDel:function(t,e){"dynamicTagsInput"==e?this.dynamicTags.splice(this.dynamicTags.indexOf(t),1):"keyWordTagsInput"==e&&this.keyWordTags.splice(this.keyWordTags.indexOf(t),1)},showTagInput:function(t){var e=this;"dynamicTagsInput"==t?(this.showDynamicTagsInput=!0,this.$nextTick((function(){e.$refs.dynamicTagsInput.$refs.input.focus()}))):"keyWordTagsInput"==t&&(this.showkeyWordTagsInput=!0,this.$nextTick((function(){e.$refs.keyWordTagsInput.$refs.input.focus()})))},handleInputConfirm:function(){var t=this.inputDynamicTagValue,e=this.inputkeyWordTagValue;t&&this.dynamicTags.push(t),e&&this.keyWordTags.push(e),this.showkeyWordTagsInput=!1,this.showDynamicTagsInput=!1,this.inputDynamicTagValue="",this.inputkeyWordTagValue=""},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.artificial=this.dynamicTags.join("|"),this.form.keyword=this.keyWordTags.join("|"),this.form.switch=this.robotSwitch?1:0,r.a.post("/robot",this.form).then((function(a){try{console.log(a),e.close(),t.$message.success("添加成功"),t.closeModal(),t.resize(),t.complete()}catch(o){console.log(o)}})).catch((function(a){e.close(),t.$message.error(a.response.data.message)}))},resize:function(){this.dynamicTags=[],this.inputVisible=!1,this.inputValue="",this.form={nickname:"",avatar:"",welcome:"",timeout_text:"",no_services:"",loog_time_wait_text:"",understand:"",artificial:"",platform:1,switch:1}}}},m=u,d=(a("2670"),a("2877")),f=Object(d["a"])(m,l,n,!1,null,"64756e50",null),p=f.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"编辑机器人","show-close":!1,visible:t.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{attrs:{model:t.form}},[a("el-form-item",{attrs:{label:"头像","label-width":t.formLabelWidth}},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:3}},[a("div",{staticClass:"mini-im-file-button",attrs:{title:"点击上传图片"}},[a("el-avatar",{attrs:{size:50,src:t.form.avatar}}),a("input",{attrs:{onClick:"this.value = null",type:"file",accept:"image/*"},on:{change:t.changeFile}}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isUploading,expression:"isUploading"}],staticClass:"mini-im-file-percent"},[a("span",[t._v(t._s(t.uploadPercent))])])],1)]),a("el-col",{attrs:{span:6}})],1)],1),a("el-form-item",{attrs:{label:"机器人昵称","label-width":t.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入机器人昵称",autocomplete:"off"},model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),a("el-form-item",{attrs:{type:"textarea",rows:2,label:"机器人欢迎语","label-width":t.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入机器人欢迎语",autocomplete:"off"},model:{value:t.form.welcome,callback:function(e){t.$set(t.form,"welcome",e)},expression:"form.welcome"}})],1),a("el-form-item",{attrs:{label:"无匹配知识库语","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入无法识别回复语",autocomplete:"off"},model:{value:t.form.understand,callback:function(e){t.$set(t.form,"understand",e)},expression:"form.understand"}})],1),a("el-form-item",{attrs:{label:"超时结束提示","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入会话超时结束提示",autocomplete:"off"},model:{value:t.form.timeout_text,callback:function(e){t.$set(t.form,"timeout_text",e)},expression:"form.timeout_text"}})],1),a("el-form-item",{attrs:{label:"无人工在线提示","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入无人工在线提示",autocomplete:"off"},model:{value:t.form.no_services,callback:function(e){t.$set(t.form,"no_services",e)},expression:"form.no_services"}})],1),a("el-form-item",{attrs:{label:"长时间等待提示","label-width":t.formLabelWidth}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入长时间等待提示语",autocomplete:"off"},model:{value:t.form.loog_time_wait_text,callback:function(e){t.$set(t.form,"loog_time_wait_text",e)},expression:"form.loog_time_wait_text"}})],1),a("el-form-item",{attrs:{label:"检索知识库热词","label-width":t.formLabelWidth}},[t._l(t.keyWordTags,(function(e){return a("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return t.handleKeyWordDel(e,"keyWordTagsInput")}}},[t._v(t._s(e))])})),t.showkeyWordTagsInput?a("el-input",{ref:"keyWordTagsInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputkeyWordTagValue,callback:function(e){t.inputkeyWordTagValue=e},expression:"inputkeyWordTagValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(e){return t.showTagInput("keyWordTagsInput")}}},[t._v("+ 新增")]),a("div",{staticStyle:{"font-size":"12px"}},[t._v("* 该词库会在用户输入的时候去匹配检索提示")])],2),a("el-form-item",{attrs:{label:"转人工关键词","label-width":t.formLabelWidth}},[t._l(t.dynamicTags,(function(e){return a("el-tag",{key:e,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){return t.handleKeyWordDel(e,"dynamicTagsInput")}}},[t._v(t._s(e))])})),t.showDynamicTagsInput?a("el-input",{ref:"dynamicTagsInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm(e)}},model:{value:t.inputDynamicTagValue,callback:function(e){t.inputDynamicTagValue=e},expression:"inputDynamicTagValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:function(e){return t.showTagInput("dynamicTagsInput")}}},[t._v("+ 新增")]),a("div",{staticStyle:{"font-size":"12px"}},[t._v('* 匹配该关键词进入人工,系统已内置: "人工"')])],2),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1!=t.formData.system,expression:"formData.system != 1"}],attrs:{label:"运行状态","label-width":t.formLabelWidth}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.robotSwitch,callback:function(e){t.robotSwitch=e},expression:"robotSwitch"}})],1),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:1!=t.formData.system,expression:"formData.system != 1"}],attrs:{label:"匹配平台","label-width":t.formLabelWidth}},[a("el-select",{attrs:{placeholder:"请选择匹配平台"},model:{value:t.form.platform,callback:function(e){t.$set(t.form,"platform",e)},expression:"form.platform"}},t._l(t.$store.getters.platformConfig,(function(t,e){return a("el-option",{key:e,attrs:{label:t.title,value:t.id}})})),1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeModal}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)},g=[],b=(a("28a5"),{name:"mini-im-edit-robot",data:function(){return{dynamicTags:[],keyWordTags:[],showkeyWordTagsInput:!1,inputkeyWordTagValue:"",showDynamicTagsInput:!1,inputDynamicTagValue:"",form:{nickname:"",avatar:"",welcome:"",understand:"",artificial:"",keyword:"",timeout_text:"",no_services:"",loog_time_wait_text:"",platform:1,switch:1},robotSwitch:!0,formLabelWidth:"120px",isUploading:!1,uploadPercent:""}},props:{dialogFormVisible:Boolean,complete:Function,formData:Object},methods:{closeModal:function(){this.$emit("update:dialogFormVisible",!1)},changeFile:function(t){var e=this,a=t.target.files[0];Object(c["a"])({file:a,progress:function(t){e.isUploading=!0,e.uploadPercent=t+"%"},success:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.success("上传成功");var a=e.$store.getters.configs.upload_host+"/"+t;e.form.avatar=a},error:function(t){e.isUploading=!1,e.uploadPercent="",e.$message.error(t.message)}})},handleKeyWordDel:function(t,e){"dynamicTagsInput"==e?this.dynamicTags.splice(this.dynamicTags.indexOf(t),1):"keyWordTagsInput"==e&&this.keyWordTags.splice(this.keyWordTags.indexOf(t),1)},showTagInput:function(t){var e=this;"dynamicTagsInput"==t?(this.showDynamicTagsInput=!0,this.$nextTick((function(){e.$refs.dynamicTagsInput.$refs.input.focus()}))):"keyWordTagsInput"==t&&(this.showkeyWordTagsInput=!0,this.$nextTick((function(){e.$refs.keyWordTagsInput.$refs.input.focus()})))},handleInputConfirm:function(){var t=this.inputDynamicTagValue,e=this.inputkeyWordTagValue;t&&this.dynamicTags.push(t),e&&this.keyWordTags.push(e),this.showkeyWordTagsInput=!1,this.showDynamicTagsInput=!1,this.inputDynamicTagValue="",this.inputkeyWordTagValue=""},save:function(){var t=this,e=this.$loading({lock:!0,text:"保存中...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.5)"});this.form.artificial=this.dynamicTags.join("|"),this.form.keyword=this.keyWordTags.join("|"),this.form.switch=this.robotSwitch?1:0,r.a.put("/robot",this.form).then((function(a){try{console.log(a),e.close(),t.$message.success("修改成功"),t.closeModal(),t.complete()}catch(o){console.log(o)}})).catch((function(a){e.close(),t.$message.error(a.response.data.message)}))}},watch:{formData:function(){this.platformConfig=this.$store.getters.platformConfig,this.form=Object.assign({},this.form,this.formData),""!=this.formData.artificial&&(this.dynamicTags=this.formData.artificial.split("|")),""!=this.formData.keyword&&(this.keyWordTags=this.formData.keyword.split("|")),this.robotSwitch=1==this.form.switch}}}),y=b,w=(a("5e7b"),Object(d["a"])(y,h,g,!1,null,"2a9629a8",null)),k=w.exports,v={name:"robot",components:{CreateDialog:p,EditDialog:k},data:function(){return{createDialogFormVisible:!1,editDialogFormVisible:!1,loading:!0,editItem:{}}},created:function(){var t=this;setTimeout((function(){return t.getRobotList()}),500)},computed:{tableData:function(){return this.$store.getters.robots||[]},adminInfo:function(){return this.$store.getters.adminInfo||{}}},methods:{deleteRobot:function(t){var e=this;this.$confirm("您确定要删除该机器人吗? 删除后不可恢复!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,type:"warning"}).then((function(){r.a.delete("/robot/"+t.id).then((function(t){console.log(t.data),e.$message.success("删除成功"),e.getRobotList()})).catch((function(t){e.$message.error(t.response.data.message)}))}))},edit:function(t){this.editItem=t,this.editDialogFormVisible=!0},getRobotList:function(){var t=this;r.a.get("/robot/list").then((function(e){t.loading=!1,t.$store.commit("onChangeRobos",e.data.data)})).catch((function(e){t.loading=!1,t.$message.error(e.response.data.message)}))}}},_=v,T=(a("0980"),Object(d["a"])(_,o,i,!1,null,"dea0f158",null));e["default"]=T.exports},2670:function(t,e,a){"use strict";var o=a("fee4"),i=a.n(o);i.a},"5e7b":function(t,e,a){"use strict";var o=a("8786"),i=a.n(o);i.a},8786:function(t,e,a){},"89c6":function(t,e,a){},fee4:function(t,e,a){}}]);
//# sourceMappingURL=chunk-724a4e2a.fc934ad3.js.map
\ No newline at end of file
//# sourceMappingURL=chunk-724a4e2a.f58c8db3.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/robot/index.vue?32d5","webpack:///./src/views/robot/index.vue?53c4","webpack:///./src/views/robot/create.vue?05c5","webpack:///src/views/robot/create.vue","webpack:///./src/views/robot/create.vue?68be","webpack:///./src/views/robot/create.vue","webpack:///./src/views/robot/edit.vue?24c3","webpack:///src/views/robot/edit.vue","webpack:///./src/views/robot/edit.vue?8ee4","webpack:///./src/views/robot/edit.vue","webpack:///src/views/robot/index.vue","webpack:///./src/views/robot/index.vue?870d","webpack:///./src/views/robot/index.vue","webpack:///./src/views/robot/create.vue?6bb4","webpack:///./src/views/robot/edit.vue?b4d6"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","adminInfo","root","on","$event","createDialogFormVisible","_e","directives","name","rawName","value","expression","staticStyle","tableData","scopedSlots","_u","key","fn","scope","row","avatar","_s","keyword","replace","artificial","switch","$getPlatformItem","platform","title","$formatUnixDate","create_at","edit","deleteRobot","length","getRobotList","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","changeFile","uploadPercent","model","callback","$$v","$set","_l","tag","handleKeyWordDel","ref","handleInputConfirm","nativeOn","type","indexOf","_k","keyCode","inputkeyWordTagValue","showTagInput","inputDynamicTagValue","robotSwitch","$store","getters","item","index","id","closeModal","save","data","dynamicTags","keyWordTags","showkeyWordTagsInput","showDynamicTagsInput","nickname","welcome","understand","timeout_text","no_services","loog_time_wait_text","isUploading","props","Boolean","complete","Function","methods","resize","$emit","fileData","file","target","files","imgUrl","splice","$nextTick","push","lock","text","spinner","background","join","inputVisible","inputValue","component","formData","system","Object","watch","platformConfig","assign","components","CreateDialog","EditDialog","loading","created","setTimeout","computed","robots","$confirm","confirmButtonText","cancelButtonText","center"],"mappings":"kHAAA,yBAAyjB,EAAG,G,yCCA5jB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,OAAO,CAACA,EAAG,IAAI,CAACE,YAAY,kCAAkCF,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASC,KAAK,SAAS,CAACR,EAAIS,GAAG,aAAoC,GAAtBT,EAAIU,UAAUC,KAAWP,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,QAAQK,GAAG,CAAC,MAAQ,SAASC,GAAQb,EAAIc,yBAA0B,KAAQ,CAACd,EAAIS,GAAG,SAAST,EAAIe,MAAM,GAAGX,EAAG,cAAcA,EAAG,WAAW,CAACY,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAOnB,EAAW,QAAEoB,WAAW,YAAYC,YAAY,CAAC,MAAQ,QAAQd,MAAM,CAAC,KAAOP,EAAIsB,YAAY,CAAClB,EAAG,kBAAkB,CAACG,MAAM,CAAC,KAAO,QAAQ,MAAQ,QAAQH,EAAG,kBAAkB,CAACG,MAAM,CAAC,KAAO,SAAS,MAAQ,KAAK,MAAQ,MAAMgB,YAAYvB,EAAIwB,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GAAO,MAAO,CAACvB,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,GAAG,IAAMoB,EAAMC,IAAIC,iBAAiBzB,EAAG,kBAAkB,CAACG,MAAM,CAAC,KAAO,WAAW,MAA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,CAEPpD,YAFJ,SAEA,cACMxC,KAAK6H,SAAS,wBAAyB,QAAS,CAC9CC,kBAAmB,KACnBC,iBAAkB,KAClBC,QAAQ,EACRnE,KAAM,YACd,iBACQ,EAAR,yBACA,kBACU,QAAV,YACU,EAAV,yBACU,EAAV,kBAEA,mBACU,EAAV,+CAKItB,KArBJ,SAqBA,GACMvC,KAAK2C,SAAW4B,EAChBvE,KAAK4C,uBAAwB,GAG/BF,aA1BJ,WA0BA,WACM,EAAN,qBACA,kBACQ,EAAR,WACQ,EAAR,8CAEA,mBACQ,EAAR,WACQ,EAAR,8CCnLiY,ICQ7X,G,UAAY,eACd,EACA5C,EACA+C,GACA,EACA,KACA,WACA,OAIa,e,2CCnBf,yBAA0jB,EAAG,G,oCCA7jB,yBAAwjB,EAAG,G","file":"js/chunk-724a4e2a.f58c8db3.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=dea0f158&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=dea0f158&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-picture-outline-round\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"机器人管理\")])]),(_vm.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")]):_vm._e()],1),_c('el-divider'),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"80\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"机器人昵称\"}}),_c('el-table-column',{attrs:{\"prop\":\"welcome\",\"label\":\"欢迎语\"}}),_c('el-table-column',{attrs:{\"prop\":\"understand\",\"label\":\"无匹配知识库语\"}}),_c('el-table-column',{attrs:{\"prop\":\"timeout_text\",\"label\":\"超时结束提示\"}}),_c('el-table-column',{attrs:{\"prop\":\"no_services\",\"label\":\"无人工在线提示\"}}),_c('el-table-column',{attrs:{\"prop\":\"loog_time_wait_text\",\"label\":\"长时间等待提示\"}}),_c('el-table-column',{attrs:{\"prop\":\"keyword\",\"label\":\"检索知识库热词\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.keyword.replace(/\\|/g, \" , \")))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"artificial\",\"label\":\"转人工关键词\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.artificial.replace(/\\|/g, \" , \")))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"switch\",\"align\":\"center\",\"label\":\"运行状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.switch == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"服务中\")]):_vm._e(),(scope.row.switch == 0)?_c('el-tag',{attrs:{\"type\":\"danger\"}},[_vm._v(\"服务暂停\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"platform\",\"label\":\"服务平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),(_vm.adminInfo.root == 1)?_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteRobot(scope.row)}}},[_vm._v(\"删 除\")])]}}],null,false,289946275)}):_vm._e()],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"当前有\"+_vm._s(_vm.tableData.length)+\"个机器人\")])]),_c('CreateDialog',{attrs:{\"complete\":_vm.getRobotList,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"complete\":_vm.getRobotList,\"formData\":_vm.editItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加机器人\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"机器人昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入机器人昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"机器人欢迎语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入机器人欢迎语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.welcome),callback:function ($$v) {_vm.$set(_vm.form, \"welcome\", $$v)},expression:\"form.welcome\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无匹配知识库语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无法识别回复语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.understand),callback:function ($$v) {_vm.$set(_vm.form, \"understand\", $$v)},expression:\"form.understand\"}})],1),_c('el-form-item',{attrs:{\"label\":\"超时结束提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入会话超时结束提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.timeout_text),callback:function ($$v) {_vm.$set(_vm.form, \"timeout_text\", $$v)},expression:\"form.timeout_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无人工在线提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无人工在线提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.no_services),callback:function ($$v) {_vm.$set(_vm.form, \"no_services\", $$v)},expression:\"form.no_services\"}})],1),_c('el-form-item',{attrs:{\"label\":\"长时间等待提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入长时间等待提示语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.loog_time_wait_text),callback:function ($$v) {_vm.$set(_vm.form, \"loog_time_wait_text\", $$v)},expression:\"form.loog_time_wait_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"检索知识库热词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.keyWordTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'keyWordTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showkeyWordTagsInput)?_c('el-input',{ref:\"keyWordTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputkeyWordTagValue),callback:function ($$v) {_vm.inputkeyWordTagValue=$$v},expression:\"inputkeyWordTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('keyWordTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 该词库会在用户输入的时候去匹配检索提示\")])],2),_c('el-form-item',{attrs:{\"label\":\"转人工关键词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'dynamicTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showDynamicTagsInput)?_c('el-input',{ref:\"dynamicTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputDynamicTagValue),callback:function ($$v) {_vm.inputDynamicTagValue=$$v},expression:\"inputDynamicTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('dynamicTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 匹配该关键词进入人工,系统已内置: \\\"人工\\\"\")])],2),_c('el-form-item',{attrs:{\"label\":\"运行状态\",\"label-width\":_vm.formLabelWidth}},[_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\"},model:{value:(_vm.robotSwitch),callback:function ($$v) {_vm.robotSwitch=$$v},expression:\"robotSwitch\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"添加机器人\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"机器人昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入机器人昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"机器人欢迎语\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.welcome\" placeholder=\"请输入机器人欢迎语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无匹配知识库语\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.understand\" placeholder=\"请输入无法识别回复语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"超时结束提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.timeout_text\" placeholder=\"请输入会话超时结束提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无人工在线提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.no_services\" placeholder=\"请输入无人工在线提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"长时间等待提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.loog_time_wait_text\" placeholder=\"请输入长时间等待提示语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"检索知识库热词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in keyWordTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'keyWordTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showkeyWordTagsInput\"\n v-model=\"inputkeyWordTagValue\"\n ref=\"keyWordTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('keyWordTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 该词库会在用户输入的时候去匹配检索提示</div>\n </el-form-item>\n <el-form-item label=\"转人工关键词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'dynamicTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showDynamicTagsInput\"\n v-model=\"inputDynamicTagValue\"\n ref=\"dynamicTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('dynamicTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 匹配该关键词进入人工,系统已内置: \"人工\"</div>\n </el-form-item>\n <el-form-item label=\"运行状态\" :label-width=\"formLabelWidth\">\n <el-switch v-model=\"robotSwitch\" active-color=\"#13ce66\" inactive-color=\"#ff4949\"></el-switch>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-create-robot\",\n data() {\n return {\n dynamicTags: [],\n keyWordTags: [],\n showkeyWordTagsInput: false,\n inputkeyWordTagValue: \"\",\n showDynamicTagsInput: false,\n inputDynamicTagValue: \"\",\n form: {\n nickname: \"\",\n avatar: \"\",\n welcome: \"\",\n understand: \"\",\n artificial: \"\",\n keyword: \"\",\n timeout_text: \"\",\n no_services: \"\",\n loog_time_wait_text: \"\",\n platform: 1,\n switch: 1\n },\n robotSwitch: true,\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal() {\n this.resize();\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n \n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 删除标签\n handleKeyWordDel(tag, type) {\n if(type == \"dynamicTagsInput\"){\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n }\n else if(type == \"keyWordTagsInput\"){\n this.keyWordTags.splice(this.keyWordTags.indexOf(tag), 1);\n }\n },\n // 显示子标题输入框\n showTagInput(type) {\n if(type == \"dynamicTagsInput\"){\n this.showDynamicTagsInput = true;\n this.$nextTick(() => {\n this.$refs.dynamicTagsInput.$refs.input.focus();\n });\n }else if(type == \"keyWordTagsInput\"){\n this.showkeyWordTagsInput = true;\n this.$nextTick(() => {\n this.$refs.keyWordTagsInput.$refs.input.focus();\n });\n }\n \n },\n // 标签确定\n handleInputConfirm() {\n let inputDynamicTagValue = this.inputDynamicTagValue;\n let inputkeyWordTagValue = this.inputkeyWordTagValue;\n if (inputDynamicTagValue) {\n this.dynamicTags.push(inputDynamicTagValue);\n }\n if (inputkeyWordTagValue) {\n this.keyWordTags.push(inputkeyWordTagValue);\n }\n this.showkeyWordTagsInput = false;\n this.showDynamicTagsInput = false;\n this.inputDynamicTagValue = \"\";\n this.inputkeyWordTagValue = \"\";\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.artificial = this.dynamicTags.join(\"|\");\n this.form.keyword = this.keyWordTags.join(\"|\");\n this.form.switch = this.robotSwitch ? 1 : 0\n axios\n .post(\"/robot\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n // 重置\n resize(){\n this.dynamicTags = []\n this.inputVisible = false\n this.inputValue = \"\"\n this.form = {\n nickname: \"\",\n avatar: \"\",\n welcome: \"\",\n timeout_text: \"\",\n no_services: \"\",\n loog_time_wait_text: \"\",\n understand: \"\",\n artificial: \"\",\n platform: 1,\n switch: 1\n }\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=64756e50&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./create.vue?vue&type=style&index=0&id=64756e50&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"64756e50\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"编辑机器人\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"机器人昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入机器人昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"type\":\"textarea\",\"rows\":2,\"label\":\"机器人欢迎语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入机器人欢迎语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.welcome),callback:function ($$v) {_vm.$set(_vm.form, \"welcome\", $$v)},expression:\"form.welcome\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无匹配知识库语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无法识别回复语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.understand),callback:function ($$v) {_vm.$set(_vm.form, \"understand\", $$v)},expression:\"form.understand\"}})],1),_c('el-form-item',{attrs:{\"label\":\"超时结束提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入会话超时结束提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.timeout_text),callback:function ($$v) {_vm.$set(_vm.form, \"timeout_text\", $$v)},expression:\"form.timeout_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无人工在线提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无人工在线提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.no_services),callback:function ($$v) {_vm.$set(_vm.form, \"no_services\", $$v)},expression:\"form.no_services\"}})],1),_c('el-form-item',{attrs:{\"label\":\"长时间等待提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入长时间等待提示语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.loog_time_wait_text),callback:function ($$v) {_vm.$set(_vm.form, \"loog_time_wait_text\", $$v)},expression:\"form.loog_time_wait_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"检索知识库热词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.keyWordTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'keyWordTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showkeyWordTagsInput)?_c('el-input',{ref:\"keyWordTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputkeyWordTagValue),callback:function ($$v) {_vm.inputkeyWordTagValue=$$v},expression:\"inputkeyWordTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('keyWordTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 该词库会在用户输入的时候去匹配检索提示\")])],2),_c('el-form-item',{attrs:{\"label\":\"转人工关键词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'dynamicTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showDynamicTagsInput)?_c('el-input',{ref:\"dynamicTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputDynamicTagValue),callback:function ($$v) {_vm.inputDynamicTagValue=$$v},expression:\"inputDynamicTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('dynamicTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 匹配该关键词进入人工,系统已内置: \\\"人工\\\"\")])],2),_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.formData.system != 1),expression:\"formData.system != 1\"}],attrs:{\"label\":\"运行状态\",\"label-width\":_vm.formLabelWidth}},[_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\"},model:{value:(_vm.robotSwitch),callback:function ($$v) {_vm.robotSwitch=$$v},expression:\"robotSwitch\"}})],1),_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.formData.system != 1),expression:\"formData.system != 1\"}],attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"编辑机器人\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"机器人昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入机器人昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item type=\"textarea\" :rows=\"2\" label=\"机器人欢迎语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.welcome\" placeholder=\"请输入机器人欢迎语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无匹配知识库语\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.understand\" placeholder=\"请输入无法识别回复语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"超时结束提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.timeout_text\" placeholder=\"请输入会话超时结束提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无人工在线提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.no_services\" placeholder=\"请输入无人工在线提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"长时间等待提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.loog_time_wait_text\" placeholder=\"请输入长时间等待提示语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"检索知识库热词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in keyWordTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'keyWordTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showkeyWordTagsInput\"\n v-model=\"inputkeyWordTagValue\"\n ref=\"keyWordTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('keyWordTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 该词库会在用户输入的时候去匹配检索提示</div>\n </el-form-item>\n <el-form-item label=\"转人工关键词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'dynamicTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showDynamicTagsInput\"\n v-model=\"inputDynamicTagValue\"\n ref=\"dynamicTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('dynamicTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 匹配该关键词进入人工,系统已内置: \"人工\"</div>\n </el-form-item>\n <el-form-item v-show=\"formData.system != 1\" label=\"运行状态\" :label-width=\"formLabelWidth\">\n <el-switch v-model=\"robotSwitch\" active-color=\"#13ce66\" inactive-color=\"#ff4949\"></el-switch>\n </el-form-item>\n <el-form-item v-show=\"formData.system != 1\" label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-edit-robot\",\n data() {\n return {\n dynamicTags: [],\n keyWordTags: [],\n showkeyWordTagsInput: false,\n inputkeyWordTagValue: \"\",\n showDynamicTagsInput: false,\n inputDynamicTagValue: \"\",\n form: {\n nickname: \"\",\n avatar: \"\",\n welcome: \"\",\n understand: \"\",\n artificial: \"\",\n keyword: \"\",\n timeout_text: \"\",\n no_services: \"\",\n loog_time_wait_text: \"\",\n platform: 1,\n switch: 1\n },\n robotSwitch: true,\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n \n },\n // 删除标签\n handleKeyWordDel(tag, type) {\n if(type == \"dynamicTagsInput\"){\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n }\n else if(type == \"keyWordTagsInput\"){\n this.keyWordTags.splice(this.keyWordTags.indexOf(tag), 1);\n }\n },\n // 显示子标题输入框\n showTagInput(type) {\n if(type == \"dynamicTagsInput\"){\n this.showDynamicTagsInput = true;\n this.$nextTick(() => {\n this.$refs.dynamicTagsInput.$refs.input.focus();\n });\n }else if(type == \"keyWordTagsInput\"){\n this.showkeyWordTagsInput = true;\n this.$nextTick(() => {\n this.$refs.keyWordTagsInput.$refs.input.focus();\n });\n }\n \n },\n // 标签确定\n handleInputConfirm() {\n let inputDynamicTagValue = this.inputDynamicTagValue;\n let inputkeyWordTagValue = this.inputkeyWordTagValue;\n if (inputDynamicTagValue) {\n this.dynamicTags.push(inputDynamicTagValue);\n }\n if (inputkeyWordTagValue) {\n this.keyWordTags.push(inputkeyWordTagValue);\n }\n this.showkeyWordTagsInput = false;\n this.showDynamicTagsInput = false;\n this.inputDynamicTagValue = \"\";\n this.inputkeyWordTagValue = \"\";\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.artificial = this.dynamicTags.join(\"|\");\n this.form.keyword = this.keyWordTags.join(\"|\");\n this.form.switch = this.robotSwitch ? 1 : 0\n axios\n .put(\"/robot\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n },\n watch:{\n formData(){\n this.platformConfig = this.$store.getters.platformConfig\n this.form = Object.assign({},this.form, this.formData)\n if(this.formData.artificial != \"\") this.dynamicTags = this.formData.artificial.split(\"|\")\n if(this.formData.keyword != \"\") this.keyWordTags = this.formData.keyword.split(\"|\")\n this.robotSwitch = this.form.switch == 1 ? true : false\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=2a9629a8&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=2a9629a8&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a9629a8\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-picture-outline-round\"></i>\n <span slot=\"title\">机器人管理</span>\n </span>\n <el-button v-if=\"adminInfo.root == 1\" @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <el-table\n :data=\"tableData\"\n style=\"width: 100%\"\n v-loading=\"loading\"\n >\n <el-table-column\n type=\"index\"\n width=\"60\">\n </el-table-column>\n <el-table-column\n prop=\"avatar\"\n label=\"头像\"\n width=\"80\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"nickname\"\n label=\"机器人昵称\">\n </el-table-column>\n <el-table-column\n prop=\"welcome\"\n label=\"欢迎语\">\n </el-table-column>\n <el-table-column\n prop=\"understand\"\n label=\"无匹配知识库语\">\n </el-table-column>\n <el-table-column\n prop=\"timeout_text\"\n label=\"超时结束提示\">\n </el-table-column>\n <el-table-column\n prop=\"no_services\"\n label=\"无人工在线提示\">\n </el-table-column>\n <el-table-column\n prop=\"loog_time_wait_text\"\n label=\"长时间等待提示\">\n </el-table-column>\n <el-table-column\n prop=\"keyword\"\n label=\"检索知识库热词\">\n <template slot-scope=\"scope\">\n <span>{{scope.row.keyword.replace(/\\|/g, \" , \")}}</span>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"artificial\"\n label=\"转人工关键词\">\n <template slot-scope=\"scope\">\n <span>{{scope.row.artificial.replace(/\\|/g, \" , \")}}</span>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"switch\"\n align=\"center\"\n label=\"运行状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.switch == 1\">服务中</el-tag>\n <el-tag type=\"danger\" v-if=\"scope.row.switch == 0\">服务暂停</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n align=\"center\"\n prop=\"platform\"\n label=\"服务平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n\n <el-table-column\n prop=\"create_at\"\n label=\"创建时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column\n v-if=\"adminInfo.root == 1\"\n prop=\"operating\"\n align=\"center\"\n label=\"操作\"\n width=\"150\"\n >\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n @click=\"deleteRobot(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">当前有{{tableData.length}}个机器人</span>\n </el-row>\n <CreateDialog :complete=\"getRobotList\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog :complete=\"getRobotList\" :formData=\"editItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\"\nimport EditDialog from \"./edit\"\nimport axios from 'axios'\nexport default {\n name: \"robot\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: {}\n }\n },\n created(){\n setTimeout( ()=> this.getRobotList(), 500)\n },\n computed: {\n tableData(){\n return this.$store.getters.robots || []\n },\n adminInfo(){\n return this.$store.getters.adminInfo || {}\n }\n },\n methods: {\n // 删除\n deleteRobot(item){\n this.$confirm('您确定要删除该机器人吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/robot/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getRobotList()\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 获取数据\n getRobotList(){\n axios.get('/robot/list')\n .then(response => {\n this.loading = false\n this.$store.commit('onChangeRobos', response.data.data)\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-head{\n height 30px\n display flex\n align-items center\n font-size 20px\n justify-content space-between\n color #666\n i{\n margin-right 5px\n }\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=dea0f158&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=dea0f158&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dea0f158\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=64756e50&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=64756e50&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=2a9629a8&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=2a9629a8&scoped=true&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/robot/index.vue?32d5","webpack:///./src/views/robot/index.vue?9aa1","webpack:///./src/views/robot/create.vue?f554","webpack:///src/views/robot/create.vue","webpack:///./src/views/robot/create.vue?68be","webpack:///./src/views/robot/create.vue?2bd6","webpack:///./src/views/robot/edit.vue?ab75","webpack:///src/views/robot/edit.vue","webpack:///./src/views/robot/edit.vue?8ee4","webpack:///./src/views/robot/edit.vue?358a","webpack:///src/views/robot/index.vue","webpack:///./src/views/robot/index.vue?870d","webpack:///./src/views/robot/index.vue?e378","webpack:///./src/views/robot/create.vue?6bb4","webpack:///./src/views/robot/edit.vue?b4d6"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","adminInfo","root","on","$event","createDialogFormVisible","_e","directives","name","rawName","value","expression","staticStyle","tableData","scopedSlots","_u","key","fn","scope","row","avatar","_s","keyword","replace","artificial","switch","$getPlatformItem","platform","title","$formatUnixDate","create_at","edit","deleteRobot","length","getRobotList","editItem","editDialogFormVisible","staticRenderFns","dialogFormVisible","form","formLabelWidth","changeFile","uploadPercent","model","callback","$$v","$set","_l","tag","handleKeyWordDel","ref","handleInputConfirm","nativeOn","type","indexOf","_k","keyCode","inputkeyWordTagValue","showTagInput","inputDynamicTagValue","robotSwitch","$store","getters","item","index","id","closeModal","save","data","dynamicTags","keyWordTags","showkeyWordTagsInput","showDynamicTagsInput","nickname","welcome","understand","timeout_text","no_services","loog_time_wait_text","isUploading","props","Boolean","complete","Function","methods","resize","$emit","fileData","file","target","files","imgUrl","splice","$nextTick","push","lock","text","spinner","background","join","inputVisible","inputValue","component","formData","system","Object","watch","platformConfig","assign","components","CreateDialog","EditDialog","loading","created","setTimeout","computed","robots","$confirm","confirmButtonText","cancelButtonText","center"],"mappings":"kHAAA,yBAAyjB,EAAG,G,yCCA5jB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAA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,qBACA,kBACQ,EAAR,WACQ,EAAR,8CAEA,mBACQ,EAAR,WACQ,EAAR,8CCnLiY,ICQ7X,G,UAAY,eACd,EACA5C,EACA+C,GACA,EACA,KACA,WACA,OAIa,e,2CCnBf,yBAA0jB,EAAG,G,oCCA7jB,yBAAwjB,EAAG,G","file":"js/chunk-724a4e2a.fc934ad3.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=dea0f158&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=dea0f158&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"mini-im-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-picture-outline-round\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"机器人管理\")])]),(_vm.adminInfo.root == 1)?_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.createDialogFormVisible = true}}},[_vm._v(\"添 加\")]):_vm._e()],1),_c('el-divider'),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"width\":\"60\"}}),_c('el-table-column',{attrs:{\"prop\":\"avatar\",\"label\":\"头像\",\"width\":\"80\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-avatar',{attrs:{\"size\":40,\"src\":scope.row.avatar}})]}}])}),_c('el-table-column',{attrs:{\"prop\":\"nickname\",\"label\":\"机器人昵称\"}}),_c('el-table-column',{attrs:{\"prop\":\"welcome\",\"label\":\"欢迎语\"}}),_c('el-table-column',{attrs:{\"prop\":\"understand\",\"label\":\"无匹配知识库语\"}}),_c('el-table-column',{attrs:{\"prop\":\"timeout_text\",\"label\":\"超时结束提示\"}}),_c('el-table-column',{attrs:{\"prop\":\"no_services\",\"label\":\"无人工在线提示\"}}),_c('el-table-column',{attrs:{\"prop\":\"loog_time_wait_text\",\"label\":\"长时间等待提示\"}}),_c('el-table-column',{attrs:{\"prop\":\"keyword\",\"label\":\"检索知识库热词\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.keyword.replace(/\\|/g, \" , \")))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"artificial\",\"label\":\"转人工关键词\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(scope.row.artificial.replace(/\\|/g, \" , \")))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"switch\",\"align\":\"center\",\"label\":\"运行状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.switch == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"服务中\")]):_vm._e(),(scope.row.switch == 0)?_c('el-tag',{attrs:{\"type\":\"danger\"}},[_vm._v(\"服务暂停\")]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"align\":\"center\",\"prop\":\"platform\",\"label\":\"服务平台\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-tag',[_vm._v(_vm._s(_vm.$getPlatformItem(scope.row.platform).title))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\"))+\"\\n \")]}}])}),(_vm.adminInfo.root == 1)?_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"label\":\"操作\",\"width\":\"150\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.edit(scope.row)}}},[_vm._v(\"编 辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteRobot(scope.row)}}},[_vm._v(\"删 除\")])]}}],null,false,289946275)}):_vm._e()],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"当前有\"+_vm._s(_vm.tableData.length)+\"个机器人\")])]),_c('CreateDialog',{attrs:{\"complete\":_vm.getRobotList,\"dialogFormVisible\":_vm.createDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.createDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.createDialogFormVisible=$event}}}),_c('EditDialog',{attrs:{\"complete\":_vm.getRobotList,\"formData\":_vm.editItem,\"dialogFormVisible\":_vm.editDialogFormVisible},on:{\"update:dialogFormVisible\":function($event){_vm.editDialogFormVisible=$event},\"update:dialog-form-visible\":function($event){_vm.editDialogFormVisible=$event}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"添加机器人\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"机器人昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入机器人昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"label\":\"机器人欢迎语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入机器人欢迎语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.welcome),callback:function ($$v) {_vm.$set(_vm.form, \"welcome\", $$v)},expression:\"form.welcome\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无匹配知识库语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无法识别回复语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.understand),callback:function ($$v) {_vm.$set(_vm.form, \"understand\", $$v)},expression:\"form.understand\"}})],1),_c('el-form-item',{attrs:{\"label\":\"超时结束提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入会话超时结束提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.timeout_text),callback:function ($$v) {_vm.$set(_vm.form, \"timeout_text\", $$v)},expression:\"form.timeout_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无人工在线提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无人工在线提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.no_services),callback:function ($$v) {_vm.$set(_vm.form, \"no_services\", $$v)},expression:\"form.no_services\"}})],1),_c('el-form-item',{attrs:{\"label\":\"长时间等待提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入长时间等待提示语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.loog_time_wait_text),callback:function ($$v) {_vm.$set(_vm.form, \"loog_time_wait_text\", $$v)},expression:\"form.loog_time_wait_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"检索知识库热词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.keyWordTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'keyWordTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showkeyWordTagsInput)?_c('el-input',{ref:\"keyWordTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputkeyWordTagValue),callback:function ($$v) {_vm.inputkeyWordTagValue=$$v},expression:\"inputkeyWordTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('keyWordTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 该词库会在用户输入的时候去匹配检索提示\")])],2),_c('el-form-item',{attrs:{\"label\":\"转人工关键词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'dynamicTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showDynamicTagsInput)?_c('el-input',{ref:\"dynamicTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputDynamicTagValue),callback:function ($$v) {_vm.inputDynamicTagValue=$$v},expression:\"inputDynamicTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('dynamicTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 匹配该关键词进入人工,系统已内置: \\\"人工\\\"\")])],2),_c('el-form-item',{attrs:{\"label\":\"运行状态\",\"label-width\":_vm.formLabelWidth}},[_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\"},model:{value:(_vm.robotSwitch),callback:function ($$v) {_vm.robotSwitch=$$v},expression:\"robotSwitch\"}})],1),_c('el-form-item',{attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"添加机器人\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"机器人昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入机器人昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"机器人欢迎语\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.welcome\" placeholder=\"请输入机器人欢迎语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无匹配知识库语\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.understand\" placeholder=\"请输入无法识别回复语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"超时结束提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.timeout_text\" placeholder=\"请输入会话超时结束提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无人工在线提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.no_services\" placeholder=\"请输入无人工在线提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"长时间等待提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.loog_time_wait_text\" placeholder=\"请输入长时间等待提示语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"检索知识库热词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in keyWordTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'keyWordTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showkeyWordTagsInput\"\n v-model=\"inputkeyWordTagValue\"\n ref=\"keyWordTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('keyWordTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 该词库会在用户输入的时候去匹配检索提示</div>\n </el-form-item>\n <el-form-item label=\"转人工关键词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'dynamicTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showDynamicTagsInput\"\n v-model=\"inputDynamicTagValue\"\n ref=\"dynamicTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('dynamicTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 匹配该关键词进入人工,系统已内置: \"人工\"</div>\n </el-form-item>\n <el-form-item label=\"运行状态\" :label-width=\"formLabelWidth\">\n <el-switch v-model=\"robotSwitch\" active-color=\"#13ce66\" inactive-color=\"#ff4949\"></el-switch>\n </el-form-item>\n <el-form-item label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-create-robot\",\n data() {\n return {\n dynamicTags: [],\n keyWordTags: [],\n showkeyWordTagsInput: false,\n inputkeyWordTagValue: \"\",\n showDynamicTagsInput: false,\n inputDynamicTagValue: \"\",\n form: {\n nickname: \"\",\n avatar: \"\",\n welcome: \"\",\n understand: \"\",\n artificial: \"\",\n keyword: \"\",\n timeout_text: \"\",\n no_services: \"\",\n loog_time_wait_text: \"\",\n platform: 1,\n switch: 1\n },\n robotSwitch: true,\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function\n },\n methods: {\n // 关闭\n closeModal() {\n this.resize();\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n \n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n\n\n },\n // 删除标签\n handleKeyWordDel(tag, type) {\n if(type == \"dynamicTagsInput\"){\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n }\n else if(type == \"keyWordTagsInput\"){\n this.keyWordTags.splice(this.keyWordTags.indexOf(tag), 1);\n }\n },\n // 显示子标题输入框\n showTagInput(type) {\n if(type == \"dynamicTagsInput\"){\n this.showDynamicTagsInput = true;\n this.$nextTick(() => {\n this.$refs.dynamicTagsInput.$refs.input.focus();\n });\n }else if(type == \"keyWordTagsInput\"){\n this.showkeyWordTagsInput = true;\n this.$nextTick(() => {\n this.$refs.keyWordTagsInput.$refs.input.focus();\n });\n }\n \n },\n // 标签确定\n handleInputConfirm() {\n let inputDynamicTagValue = this.inputDynamicTagValue;\n let inputkeyWordTagValue = this.inputkeyWordTagValue;\n if (inputDynamicTagValue) {\n this.dynamicTags.push(inputDynamicTagValue);\n }\n if (inputkeyWordTagValue) {\n this.keyWordTags.push(inputkeyWordTagValue);\n }\n this.showkeyWordTagsInput = false;\n this.showDynamicTagsInput = false;\n this.inputDynamicTagValue = \"\";\n this.inputkeyWordTagValue = \"\";\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.artificial = this.dynamicTags.join(\"|\");\n this.form.keyword = this.keyWordTags.join(\"|\");\n this.form.switch = this.robotSwitch ? 1 : 0\n axios\n .post(\"/robot\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"添加成功\");\n this.closeModal();\n this.resize();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n // 重置\n resize(){\n this.dynamicTags = []\n this.inputVisible = false\n this.inputValue = \"\"\n this.form = {\n nickname: \"\",\n avatar: \"\",\n welcome: \"\",\n timeout_text: \"\",\n no_services: \"\",\n loog_time_wait_text: \"\",\n understand: \"\",\n artificial: \"\",\n platform: 1,\n switch: 1\n }\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./create.vue?vue&type=template&id=64756e50&scoped=true&\"\nimport script from \"./create.vue?vue&type=script&lang=js&\"\nexport * from \"./create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./create.vue?vue&type=style&index=0&id=64756e50&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"64756e50\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{attrs:{\"width\":\"600px\",\"title\":\"编辑机器人\",\"show-close\":false,\"visible\":_vm.dialogFormVisible,\"close-on-click-modal\":false},on:{\"update:visible\":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{\"model\":_vm.form}},[_c('el-form-item',{attrs:{\"label\":\"头像\",\"label-width\":_vm.formLabelWidth}},[_c('el-row',{attrs:{\"gutter\":10}},[_c('el-col',{attrs:{\"span\":3}},[_c('div',{staticClass:\"mini-im-file-button\",attrs:{\"title\":\"点击上传图片\"}},[_c('el-avatar',{attrs:{\"size\":50,\"src\":_vm.form.avatar}}),_c('input',{attrs:{\"onClick\":\"this.value = null\",\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.changeFile}}),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUploading),expression:\"isUploading\"}],staticClass:\"mini-im-file-percent\"},[_c('span',[_vm._v(_vm._s(_vm.uploadPercent))])])],1)]),_c('el-col',{attrs:{\"span\":6}})],1)],1),_c('el-form-item',{attrs:{\"label\":\"机器人昵称\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入机器人昵称\",\"autocomplete\":\"off\"},model:{value:(_vm.form.nickname),callback:function ($$v) {_vm.$set(_vm.form, \"nickname\", $$v)},expression:\"form.nickname\"}})],1),_c('el-form-item',{attrs:{\"type\":\"textarea\",\"rows\":2,\"label\":\"机器人欢迎语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"placeholder\":\"请输入机器人欢迎语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.welcome),callback:function ($$v) {_vm.$set(_vm.form, \"welcome\", $$v)},expression:\"form.welcome\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无匹配知识库语\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无法识别回复语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.understand),callback:function ($$v) {_vm.$set(_vm.form, \"understand\", $$v)},expression:\"form.understand\"}})],1),_c('el-form-item',{attrs:{\"label\":\"超时结束提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入会话超时结束提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.timeout_text),callback:function ($$v) {_vm.$set(_vm.form, \"timeout_text\", $$v)},expression:\"form.timeout_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"无人工在线提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入无人工在线提示\",\"autocomplete\":\"off\"},model:{value:(_vm.form.no_services),callback:function ($$v) {_vm.$set(_vm.form, \"no_services\", $$v)},expression:\"form.no_services\"}})],1),_c('el-form-item',{attrs:{\"label\":\"长时间等待提示\",\"label-width\":_vm.formLabelWidth}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":2,\"placeholder\":\"请输入长时间等待提示语\",\"autocomplete\":\"off\"},model:{value:(_vm.form.loog_time_wait_text),callback:function ($$v) {_vm.$set(_vm.form, \"loog_time_wait_text\", $$v)},expression:\"form.loog_time_wait_text\"}})],1),_c('el-form-item',{attrs:{\"label\":\"检索知识库热词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.keyWordTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'keyWordTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showkeyWordTagsInput)?_c('el-input',{ref:\"keyWordTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputkeyWordTagValue),callback:function ($$v) {_vm.inputkeyWordTagValue=$$v},expression:\"inputkeyWordTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('keyWordTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 该词库会在用户输入的时候去匹配检索提示\")])],2),_c('el-form-item',{attrs:{\"label\":\"转人工关键词\",\"label-width\":_vm.formLabelWidth}},[_vm._l((_vm.dynamicTags),function(tag){return _c('el-tag',{key:tag,attrs:{\"closable\":\"\",\"disable-transitions\":false},on:{\"close\":function($event){return _vm.handleKeyWordDel(tag, 'dynamicTagsInput')}}},[_vm._v(_vm._s(tag))])}),(_vm.showDynamicTagsInput)?_c('el-input',{ref:\"dynamicTagsInput\",staticClass:\"input-new-tag\",attrs:{\"size\":\"small\"},on:{\"blur\":_vm.handleInputConfirm},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleInputConfirm($event)}},model:{value:(_vm.inputDynamicTagValue),callback:function ($$v) {_vm.inputDynamicTagValue=$$v},expression:\"inputDynamicTagValue\"}}):_c('el-button',{staticClass:\"button-new-tag\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.showTagInput('dynamicTagsInput')}}},[_vm._v(\"+ 新增\")]),_c('div',{staticStyle:{\"font-size\":\"12px\"}},[_vm._v(\"* 匹配该关键词进入人工,系统已内置: \\\"人工\\\"\")])],2),_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.formData.system != 1),expression:\"formData.system != 1\"}],attrs:{\"label\":\"运行状态\",\"label-width\":_vm.formLabelWidth}},[_c('el-switch',{attrs:{\"active-color\":\"#13ce66\",\"inactive-color\":\"#ff4949\"},model:{value:(_vm.robotSwitch),callback:function ($$v) {_vm.robotSwitch=$$v},expression:\"robotSwitch\"}})],1),_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.formData.system != 1),expression:\"formData.system != 1\"}],attrs:{\"label\":\"匹配平台\",\"label-width\":_vm.formLabelWidth}},[_c('el-select',{attrs:{\"placeholder\":\"请选择匹配平台\"},model:{value:(_vm.form.platform),callback:function ($$v) {_vm.$set(_vm.form, \"platform\", $$v)},expression:\"form.platform\"}},_vm._l((_vm.$store.getters.platformConfig),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.title,\"value\":item.id}})}),1)],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":_vm.closeModal}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.save}},[_vm._v(\"保 存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-dialog\n width=\"600px\"\n title=\"编辑机器人\"\n :show-close=\"false\"\n :visible.sync=\"dialogFormVisible\"\n :close-on-click-modal=\"false\"\n >\n <el-form :model=\"form\">\n <el-form-item label=\"头像\" :label-width=\"formLabelWidth\">\n <el-row :gutter=\"10\">\n <el-col :span=\"3\">\n <div class=\"mini-im-file-button\" title=\"点击上传图片\">\n <el-avatar\n :size=\"50\"\n :src=\"form.avatar\"\n ></el-avatar>\n <input onClick=\"this.value = null\" @change=\"changeFile\" type=\"file\" accept=\"image/*\" />\n <div v-show=\"isUploading\" class=\"mini-im-file-percent\">\n <span>{{uploadPercent}}</span>\n </div>\n </div>\n </el-col>\n <el-col :span=\"6\"></el-col>\n </el-row>\n </el-form-item>\n <el-form-item label=\"机器人昵称\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.nickname\" placeholder=\"请输入机器人昵称\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item type=\"textarea\" :rows=\"2\" label=\"机器人欢迎语\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.welcome\" placeholder=\"请输入机器人欢迎语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无匹配知识库语\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.understand\" placeholder=\"请输入无法识别回复语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"超时结束提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.timeout_text\" placeholder=\"请输入会话超时结束提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"无人工在线提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.no_services\" placeholder=\"请输入无人工在线提示\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"长时间等待提示\" :label-width=\"formLabelWidth\">\n <el-input type=\"textarea\" :rows=\"2\" v-model=\"form.loog_time_wait_text\" placeholder=\"请输入长时间等待提示语\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"检索知识库热词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in keyWordTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'keyWordTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showkeyWordTagsInput\"\n v-model=\"inputkeyWordTagValue\"\n ref=\"keyWordTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('keyWordTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 该词库会在用户输入的时候去匹配检索提示</div>\n </el-form-item>\n <el-form-item label=\"转人工关键词\" :label-width=\"formLabelWidth\">\n <el-tag\n :key=\"tag\"\n v-for=\"tag in dynamicTags\"\n closable\n :disable-transitions=\"false\"\n @close=\"handleKeyWordDel(tag, 'dynamicTagsInput')\"\n >{{tag}}</el-tag>\n <el-input\n class=\"input-new-tag\"\n v-if=\"showDynamicTagsInput\"\n v-model=\"inputDynamicTagValue\"\n ref=\"dynamicTagsInput\"\n size=\"small\"\n @keyup.enter.native=\"handleInputConfirm\"\n @blur=\"handleInputConfirm\"\n ></el-input>\n <el-button v-else class=\"button-new-tag\" size=\"small\" @click=\"showTagInput('dynamicTagsInput')\">+ 新增</el-button>\n <div style=\"font-size:12px;\">* 匹配该关键词进入人工,系统已内置: \"人工\"</div>\n </el-form-item>\n <el-form-item v-show=\"formData.system != 1\" label=\"运行状态\" :label-width=\"formLabelWidth\">\n <el-switch v-model=\"robotSwitch\" active-color=\"#13ce66\" inactive-color=\"#ff4949\"></el-switch>\n </el-form-item>\n <el-form-item v-show=\"formData.system != 1\" label=\"匹配平台\" :label-width=\"formLabelWidth\">\n <el-select v-model=\"form.platform\" placeholder=\"请选择匹配平台\">\n <el-option\n :label=\"item.title\"\n :value=\"item.id\"\n :key=\"index\"\n v-for=\"(item, index) in $store.getters.platformConfig\"\n ></el-option>\n </el-select>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"closeModal\">取 消</el-button>\n <el-button type=\"primary\" @click=\"save\">保 存</el-button>\n </div>\n </el-dialog>\n</template>\n<script>\nimport axios from 'axios'\nimport upload from '../../common/upload'\nexport default {\n name: \"mini-im-edit-robot\",\n data() {\n return {\n dynamicTags: [],\n keyWordTags: [],\n showkeyWordTagsInput: false,\n inputkeyWordTagValue: \"\",\n showDynamicTagsInput: false,\n inputDynamicTagValue: \"\",\n form: {\n nickname: \"\",\n avatar: \"\",\n welcome: \"\",\n understand: \"\",\n artificial: \"\",\n keyword: \"\",\n timeout_text: \"\",\n no_services: \"\",\n loog_time_wait_text: \"\",\n platform: 1,\n switch: 1\n },\n robotSwitch: true,\n formLabelWidth: \"120px\",\n isUploading: false,\n uploadPercent: \"\"\n };\n },\n props: {\n dialogFormVisible: Boolean,\n complete: Function,\n formData: Object\n },\n methods: {\n // 关闭\n closeModal() {\n this.$emit(\"update:dialogFormVisible\", false);\n },\n // 上传\n changeFile(file) {\n var fileData = file.target.files[0];\n upload({\n file: fileData,\n progress: (percent) => {\n this.isUploading = true;\n this.uploadPercent = percent + \"%\";\n },\n success: (url) => {\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.success(\"上传成功\");\n var imgUrl = this.$store.getters.configs.upload_host + \"/\" + url\n this.form.avatar = imgUrl;\n },\n error: (err)=>{\n this.isUploading = false;\n this.uploadPercent = \"\";\n this.$message.error(err.message);\n }\n });\n \n },\n // 删除标签\n handleKeyWordDel(tag, type) {\n if(type == \"dynamicTagsInput\"){\n this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);\n }\n else if(type == \"keyWordTagsInput\"){\n this.keyWordTags.splice(this.keyWordTags.indexOf(tag), 1);\n }\n },\n // 显示子标题输入框\n showTagInput(type) {\n if(type == \"dynamicTagsInput\"){\n this.showDynamicTagsInput = true;\n this.$nextTick(() => {\n this.$refs.dynamicTagsInput.$refs.input.focus();\n });\n }else if(type == \"keyWordTagsInput\"){\n this.showkeyWordTagsInput = true;\n this.$nextTick(() => {\n this.$refs.keyWordTagsInput.$refs.input.focus();\n });\n }\n \n },\n // 标签确定\n handleInputConfirm() {\n let inputDynamicTagValue = this.inputDynamicTagValue;\n let inputkeyWordTagValue = this.inputkeyWordTagValue;\n if (inputDynamicTagValue) {\n this.dynamicTags.push(inputDynamicTagValue);\n }\n if (inputkeyWordTagValue) {\n this.keyWordTags.push(inputkeyWordTagValue);\n }\n this.showkeyWordTagsInput = false;\n this.showDynamicTagsInput = false;\n this.inputDynamicTagValue = \"\";\n this.inputkeyWordTagValue = \"\";\n },\n // 保存\n save(){\n // 验证字段 !! 算了前端不验证了\n const loading = this.$loading({\n lock: true,\n text: \"保存中...\",\n spinner: \"el-icon-loading\",\n background: \"rgba(0, 0, 0, 0.5)\"\n });\n this.form.artificial = this.dynamicTags.join(\"|\");\n this.form.keyword = this.keyWordTags.join(\"|\");\n this.form.switch = this.robotSwitch ? 1 : 0\n axios\n .put(\"/robot\", this.form)\n .then(response => {\n try {\n console.log(response);\n loading.close();\n this.$message.success(\"修改成功\");\n this.closeModal();\n this.complete();\n } catch (e) {\n console.log(e);\n }\n })\n .catch(error => {\n loading.close();\n this.$message.error(error.response.data.message);\n });\n },\n },\n watch:{\n formData(){\n this.platformConfig = this.$store.getters.platformConfig\n this.form = Object.assign({},this.form, this.formData)\n if(this.formData.artificial != \"\") this.dynamicTags = this.formData.artificial.split(\"|\")\n if(this.formData.keyword != \"\") this.keyWordTags = this.formData.keyword.split(\"|\")\n this.robotSwitch = this.form.switch == 1 ? true : false\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.mini-im-file-button {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: relative;\n overflow: hidden;\n\n input {\n font-size: 100px;\n position: absolute;\n top: 0px;\n left: 0px;\n cursor: pointer;\n opacity 0\n }\n\n cursor: pointer;\n\n .mini-im-file-percent {\n position: absolute;\n top: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.5);\n color: #fff;\n font-size: 12px;\n }\n}\n\n.el-tag + .el-tag {\n margin-left: 10px;\n}\n\n.button-new-tag {\n margin-left: 10px;\n height: 32px;\n line-height: 30px;\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.input-new-tag {\n width: 150px;\n margin-left: 10px;\n vertical-align: bottom;\n}\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=2a9629a8&scoped=true&\"\nimport script from \"./edit.vue?vue&type=script&lang=js&\"\nexport * from \"./edit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./edit.vue?vue&type=style&index=0&id=2a9629a8&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a9629a8\",\n null\n \n)\n\nexport default component.exports","<template>\n <div>\n <div class=\"mini-im-head\">\n <span>\n <i class=\"el-icon-picture-outline-round\"></i>\n <span slot=\"title\">机器人管理</span>\n </span>\n <el-button v-if=\"adminInfo.root == 1\" @click=\"createDialogFormVisible = true\" size=\"mini\">添 加</el-button>\n </div>\n <el-divider />\n <el-table\n :data=\"tableData\"\n style=\"width: 100%\"\n v-loading=\"loading\"\n >\n <el-table-column\n type=\"index\"\n width=\"60\">\n </el-table-column>\n <el-table-column\n prop=\"avatar\"\n label=\"头像\"\n width=\"80\">\n <template slot-scope=\"scope\">\n <el-avatar :size=\"40\" :src=\"scope.row.avatar\"></el-avatar>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"nickname\"\n label=\"机器人昵称\">\n </el-table-column>\n <el-table-column\n prop=\"welcome\"\n label=\"欢迎语\">\n </el-table-column>\n <el-table-column\n prop=\"understand\"\n label=\"无匹配知识库语\">\n </el-table-column>\n <el-table-column\n prop=\"timeout_text\"\n label=\"超时结束提示\">\n </el-table-column>\n <el-table-column\n prop=\"no_services\"\n label=\"无人工在线提示\">\n </el-table-column>\n <el-table-column\n prop=\"loog_time_wait_text\"\n label=\"长时间等待提示\">\n </el-table-column>\n <el-table-column\n prop=\"keyword\"\n label=\"检索知识库热词\">\n <template slot-scope=\"scope\">\n <span>{{scope.row.keyword.replace(/\\|/g, \" , \")}}</span>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"artificial\"\n label=\"转人工关键词\">\n <template slot-scope=\"scope\">\n <span>{{scope.row.artificial.replace(/\\|/g, \" , \")}}</span>\n </template>\n </el-table-column>\n <el-table-column\n prop=\"switch\"\n align=\"center\"\n label=\"运行状态\">\n <template slot-scope=\"scope\">\n <el-tag type=\"success\" v-if=\"scope.row.switch == 1\">服务中</el-tag>\n <el-tag type=\"danger\" v-if=\"scope.row.switch == 0\">服务暂停</el-tag>\n </template>\n </el-table-column>\n <el-table-column\n align=\"center\"\n prop=\"platform\"\n label=\"服务平台\">\n <template slot-scope=\"scope\">\n <el-tag>{{$getPlatformItem(scope.row.platform).title}}</el-tag>\n </template>\n </el-table-column>\n\n <el-table-column\n prop=\"create_at\"\n label=\"创建时间\">\n <template slot-scope=\"scope\">\n {{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}\n </template>\n </el-table-column>\n <el-table-column\n v-if=\"adminInfo.root == 1\"\n prop=\"operating\"\n align=\"center\"\n label=\"操作\"\n width=\"150\"\n >\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n @click=\"edit(scope.row)\">编 辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n @click=\"deleteRobot(scope.row)\">删 除</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">当前有{{tableData.length}}个机器人</span>\n </el-row>\n <CreateDialog :complete=\"getRobotList\" :dialogFormVisible.sync=\"createDialogFormVisible\" />\n <EditDialog :complete=\"getRobotList\" :formData=\"editItem\" :dialogFormVisible.sync=\"editDialogFormVisible\" />\n </div>\n</template>\n\n<script>\nimport CreateDialog from \"./create\"\nimport EditDialog from \"./edit\"\nimport axios from 'axios'\nexport default {\n name: \"robot\",\n components: {\n CreateDialog,\n EditDialog\n },\n data() {\n return {\n createDialogFormVisible: false,\n editDialogFormVisible: false,\n loading: true,\n editItem: {}\n }\n },\n created(){\n setTimeout( ()=> this.getRobotList(), 500)\n },\n computed: {\n tableData(){\n return this.$store.getters.robots || []\n },\n adminInfo(){\n return this.$store.getters.adminInfo || {}\n }\n },\n methods: {\n // 删除\n deleteRobot(item){\n this.$confirm('您确定要删除该机器人吗? 删除后不可恢复!', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n center: true,\n type: 'warning'\n }).then(() => {\n axios.delete('/robot/' + item.id)\n .then(response => {\n console.log(response.data)\n this.$message.success(\"删除成功\")\n this.getRobotList()\n })\n .catch(error => {\n this.$message.error(error.response.data.message)\n });\n })\n },\n // 编辑\n edit(item){\n this.editItem = item\n this.editDialogFormVisible = true\n },\n // 获取数据\n getRobotList(){\n axios.get('/robot/list')\n .then(response => {\n this.loading = false\n this.$store.commit('onChangeRobos', response.data.data)\n })\n .catch(error => {\n this.loading = false\n this.$message.error(error.response.data.message)\n });\n },\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n .mini-im-head{\n height 30px\n display flex\n align-items center\n font-size 20px\n justify-content space-between\n color #666\n i{\n margin-right 5px\n }\n }\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=dea0f158&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=dea0f158&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dea0f158\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=64756e50&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./create.vue?vue&type=style&index=0&id=64756e50&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=2a9629a8&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=style&index=0&id=2a9629a8&scoped=true&lang=stylus&\""],"sourceRoot":""}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-93f1e5fa"],{"11e9":function(t,e,s){var r=s("52a7"),o=s("4630"),a=s("6821"),n=s("6a99"),i=s("69a8"),c=s("c69a"),l=Object.getOwnPropertyDescriptor;e.f=s("9e1e")?l:function(t,e){if(t=a(t),e=n(e,!0),c)try{return l(t,e)}catch(s){}if(i(t,e))return o(!r.f.call(t,e),t[e])}},"1c01":function(t,e,s){var r=s("5ca1");r(r.S+r.F*!s("9e1e"),"Object",{defineProperty:s("86cc").f})},"42f5":function(t,e,s){},"454f":function(t,e,s){s("46a7");var r=s("584a").Object;t.exports=function(t,e,s){return r.defineProperty(t,e,s)}},"456d":function(t,e,s){var r=s("4bf8"),o=s("0d58");s("5eda")("keys",(function(){return function(t){return o(r(t))}}))},"46a7":function(t,e,s){var r=s("63b6");r(r.S+r.F*!s("8e60"),"Object",{defineProperty:s("d9f6").f})},"4f37":function(t,e,s){"use strict";s("aa77")("trim",(function(t){return function(){return t(this,3)}}))},"58b2":function(t,e,s){var r=s("5ca1");r(r.S+r.F*!s("9e1e"),"Object",{defineProperties:s("1495")})},"5eda":function(t,e,s){var r=s("5ca1"),o=s("8378"),a=s("79e5");t.exports=function(t,e){var s=(o.Object||{})[t]||Object[t],n={};n[t]=e(s),r(r.S+r.F*a((function(){s(1)})),"Object",n)}},7893:function(t,e,s){"use strict";var r=s("7ea9"),o=s.n(r);o.a},"7ea9":function(t,e,s){},"82f4":function(t,e,s){"use strict";var r=s("42f5"),o=s.n(r);o.a},"85f2":function(t,e,s){t.exports=s("454f")},"8b02":function(t,e,s){},"8e6e":function(t,e,s){var r=s("5ca1"),o=s("990b"),a=s("6821"),n=s("11e9"),i=s("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){var e,s,r=a(t),c=n.f,l=o(r),u={},d=0;while(l.length>d)s=c(r,e=l[d++]),void 0!==s&&i(u,e,s);return u}})},9093:function(t,e,s){var r=s("ce10"),o=s("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"965d":function(t,e,s){"use strict";var r=s("8b02"),o=s.n(r);o.a},"990b":function(t,e,s){var r=s("9093"),o=s("2621"),a=s("cb7c"),n=s("7726").Reflect;t.exports=n&&n.ownKeys||function(t){var e=r.f(a(t)),s=o.f;return s?e.concat(s(t)):e}},aa77:function(t,e,s){var r=s("5ca1"),o=s("be13"),a=s("79e5"),n=s("fdef"),i="["+n+"]",c="​…",l=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),d=function(t,e,s){var o={},i=a((function(){return!!n[t]()||c[t]()!=c})),l=o[t]=i?e(p):n[t];s&&(o[s]=l),r(r.P+r.F*i,"String",o)},p=d.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},ac6a:function(t,e,s){for(var r=s("cadf"),o=s("0d58"),a=s("2aba"),n=s("7726"),i=s("32e9"),c=s("84f2"),l=s("2b4c"),u=l("iterator"),d=l("toStringTag"),p=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(f),v=0;v<h.length;v++){var w,m=h[v],g=f[m],y=n[m],b=y&&y.prototype;if(b&&(b[u]||i(b,u,p),b[d]||i(b,d,m),c[m]=p,g))for(w in r)b[w]||a(b,w,r[w],!0)}},bd86:function(t,e,s){"use strict";s.d(e,"a",(function(){return a}));var r=s("85f2"),o=s.n(r);function a(t,e,s){return e in t?o()(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}},c375:function(t,e,s){"use strict";var r=s("ef23"),o=s.n(r);o.a},d25f:function(t,e,s){"use strict";var r=s("5ca1"),o=s("0a49")(2);r(r.P+r.F*!s("2f21")([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},df5f:function(t,e,s){"use strict";s.r(e);var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"me-head"},[s("span",[s("i",{staticClass:"el-icon-tickets"}),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("工单管理")]),s("span",{staticStyle:{"font-size":"15px","margin-left":"30px",color:"#e7a646"}},[t.workOrderCounts.status0>0||t.workOrderCounts.status2?[t._v("\n 当前有: \n ")]:t._e(),t.workOrderCounts.status0>0?[s("strong",{staticStyle:{color:"#f56c6c"}},[t._v(t._s(t.workOrderCounts.status0))]),t._v("条待处理 ,\n ")]:t._e(),t.workOrderCounts.status2>0?[s("strong",{staticStyle:{color:"#f56c6c"}},[t._v(" "+t._s(t.workOrderCounts.status2))]),t._v("条待回复工单 \n ")]:t._e()],2)]),1==t.adminInfo.root?s("el-row",{staticStyle:{width:"300px"},attrs:{type:"flex",align:"middle",justify:"space-between"}},[s("div",{staticClass:"switch"},[s("el-switch",{attrs:{"inactive-color":"#cccccc","active-color":"#8bc34a","active-text":t.isOpenWorkorder?"工单功能启用中":"工单功能关闭中"},on:{change:t.changeSwitch},model:{value:t.isOpenWorkorder,callback:function(e){t.isOpenWorkorder=e},expression:"isOpenWorkorder"}}),s("div",[t._v("工单关闭后客户端无法发起工单~")])],1),s("div",[s("el-button",{attrs:{size:"mini"},on:{click:function(e){t.isShowTypesView=!0}}},[t._v("分类设置")])],1)]):t._e()],1),s("el-divider"),s("el-row",{staticClass:"container-box",attrs:{type:"flex",justify:"space-between"}},[s("div",{staticClass:"menu"},[s("el-tabs",{staticStyle:{width:"200px",height:"80vh"},attrs:{"tab-position":"left"},on:{"tab-click":t.tabsChange}},[t._l(t.workorderTypes,(function(t){return[s("el-tab-pane",{key:t.id,attrs:{label:t.title+"("+t.count+")"}})]}))],2)],1),s("div",{staticClass:"table-content"},[s("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.list}},[s("el-table-column",{attrs:{type:"index",index:t.indexMethod,width:"60",label:"#序号"}}),s("el-table-column",{attrs:{prop:"title",label:"工单标题"}}),s("el-table-column",{attrs:{prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.workorderTypes.length-1==t.tabIndex?[s("span",{staticStyle:{color:"#f56c6b"}},[t._v("已删除")])]:[0==e.row.status?s("el-tag",{attrs:{type:"danger"}},[t._v("待客服处理")]):t._e(),2==e.row.status?s("el-tag",{attrs:{type:"warning"}},[t._v("待客服回复")]):t._e(),1==e.row.status?s("el-tag",{attrs:{type:"success"}},[t._v("客服已回复")]):t._e(),3==e.row.status?s("el-tag",{attrs:{type:"info"}},[t._v(" 工单已结束 ")]):t._e()]]}}])}),s("el-table-column",{attrs:{prop:"u_nickname",label:"用户"}}),s("el-table-column",{attrs:{prop:"a_nickname",label:"最近处理(客服)"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.a_nickname||"-----")+"\n ")]}}])}),s("el-table-column",{attrs:{prop:"create_at",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t.$formatUnixDate(e.row.create_at,"YYYY/MM/DD")))]}}])}),s("el-table-column",{attrs:{prop:"operating",align:"center",width:"150",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-button",{attrs:{size:"mini"},on:{click:function(s){return t.onShow(e.row)}}},[t._v("查 看")])]}}])})],1),s("el-row",{staticStyle:{"margin-top":"20px"},attrs:{type:"flex",justify:"space-between"}},[s("span",{staticStyle:{color:"#666","font-size":"14px"}},[t._v("共找到"+t._s(t.tableData.total)+"条数据")]),s("el-pagination",{attrs:{background:"",layout:"sizes, prev, pager, next","current-page":t.tableData.page_on,"page-sizes":[5,10,15,20],total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)]),s("WorkOrderView",{attrs:{workorderTypes:t.workorderTypes,prop:t.showWorkOrder},model:{value:t.isShowWorkOrderView,callback:function(e){t.isShowWorkOrderView=e},expression:"isShowWorkOrderView"}}),s("WorkOrderTypesView",{attrs:{workorderTypes:t.workorderTypes},model:{value:t.isShowTypesView,callback:function(e){t.isShowTypesView=e},expression:"isShowTypesView"}})],1)},o=[],a=(s("1c01"),s("58b2"),s("8e6e"),s("f3e2"),s("d25f"),s("ac6a"),s("456d"),s("bd86")),n=s("bc3a"),i=s.n(n),c=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"workorder-view"},[s("div",{staticClass:"mask",on:{dblclick:t.close}}),s("transition",{attrs:{name:"el-zoom-in-bottom"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"content-box",class:{"padding-bottom30":3==t.showData.status}},[s("div",{staticClass:"title"},[s("i",{staticClass:"el-icon-tickets"}),t._v(" 工单详细\n ")]),s("div",{staticClass:"buttons"},[1!=t.showData.status&&2!=t.showData.status||0!=t.showData.delete?t._e():s("el-button",{attrs:{size:"mini",type:"warning"},on:{click:t.closeWorkorder}},[t._v("关闭工单")]),3==t.showData.status&&1==t.adminInfo.root&&0==t.showData.delete?s("el-button",{attrs:{size:"mini",type:"danger"},on:{click:t.delWorkorder}},[t._v("删除工单")]):t._e(),1==t.showData.delete?s("div",{staticStyle:{"font-size":"13px","margin-top":"5px",color:"#f44336"}},[t._v("该工单已删除")]):t._e()],1),s("span",{staticClass:"close",on:{click:t.close}},[s("i",{staticClass:"el-icon-close"})]),s("div",{staticClass:"content"},[s("div",{staticClass:"scroll"},[s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("标题:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.title))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("用户:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.u_nickname))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("手机:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.phone))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("邮箱:")]),s("div",{staticClass:"con"},[t._v(t._s(t.showData.email||"未预留邮箱"))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("类型:")]),s("div",{staticClass:"con"},[t._v(t._s(t.typeName||"---"))])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("状态:")]),s("div",{staticClass:"con"},[0==t.showData.status?s("span",{staticStyle:{color:"#f56c6b"}},[t._v("待客服处理")]):t._e(),2==t.showData.status?s("span",{staticStyle:{color:"#e6a23c"}},[t._v("待客服回复")]):t._e(),1==t.showData.status?s("span",{staticStyle:{color:"#67c23a"}},[t._v("客服已回复")]):t._e(),3==t.showData.status?s("span",{staticStyle:{color:"#909399"}},[t._v("工单已结束")]):t._e()])]),s("div",{staticClass:"form-line"},[s("span",{staticClass:"lable"},[t._v("内容:")]),s("div",{staticClass:"con",domProps:{innerHTML:t._s(t.showData.content)}})]),s("el-divider",{staticStyle:{height:"10px"}}),s("div",{staticClass:"comments"},[t.comments.length<=0&&!t.isShowGetCommentsLoading?s("div",{staticClass:"no-data"},[t._v("暂无回复内容~")]):t._e(),t.isShowGetCommentsLoading?s("div",{staticClass:"comments-loading"},[s("i",{staticClass:"el-icon-loading"}),s("span",[t._v("正在努力加载中~")])]):t._l(t.comments,(function(e,r){return[s("div",{key:r,staticClass:"item"},[s("div",{staticClass:"avatar"},[e.aid==t.adminInfo.id?s("img",{attrs:{src:t.adminInfo.avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}}):s("img",{attrs:{src:e.a_avatar||"http://qiniu.cmp520.com/avatar_degault_3.png",alt:""}})]),s("div",{staticClass:"right"},[0==e.aid?s("div",{staticClass:"nickname"},[t._v(t._s(e.u_nickname))]):s("div",{staticClass:"nickname"},[t._v(t._s(e.a_nickname))]),s("div",{staticClass:"detail",domProps:{innerHTML:t._s(e.content)}}),s("div",{staticClass:"date"},[t._v(t._s(t.$formatDate(e.create_at)))])])])]})),t.showData&&3==t.showData.status?s("div",{staticClass:"workorder-close"},[t._v("工单已结束~")]):t._e()],2)],1)]),""!=t.request.source||t.isShowUploadLoading?s("div",{staticClass:"file-view"},[t.isShowUploadLoading?s("span",[s("i",{staticClass:"el-icon-loading"}),s("i",[t._v("上传中~")])]):s("span",[s("i",{staticClass:"el-icon-paperclip"}),s("i",[t._v("你已成功添加附件,重新上传可替换~")])])]):t._e(),3!=t.showData.status?s("div",{staticClass:"input-form"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.request.content,expression:"request.content"}],attrs:{placeholder:"请输入内容~"},domProps:{value:t.request.content},on:{blur:function(e){return t.inputBlur()},input:function(e){e.target.composing||t.$set(t.request,"content",e.target.value)}}}),s("span",{staticClass:"icon-btn"},[s("input",{attrs:{title:"添加附件",type:"file",onclick:"this.value = null"},on:{change:t.uploadFile}})]),s("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.reply()}}},[t._v("提交")])],1):t._e()])])],1)},l=[],u=(s("57e7"),s("9865"),s("4f37"),s("2f62")),d=s("fb21");function p(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function f(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?p(Object(s),!0).forEach((function(e){Object(a["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var h={name:"workorder-view",data:function(){return{isShowUploadLoading:!1,isShowGetCommentsLoading:!1,isSubmit:!1,workorder:null,comments:[],fileType:"",request:{source:"",content:""}}},props:{value:{default:!1,type:Boolean},prop:Object,workorderTypes:Array},created:function(){this.comments=[]},computed:f({showData:function(){return this.workorder||this.prop},isShowAside:function(){return this.$store.state.isShowAside},typeName:function(){var t=this;try{return this.workorderTypes.filter((function(e){return e.id==t.showData.tid}))[0].title}catch(e){return""}}},Object(u["b"])(["adminInfo","configs"])),methods:{close:function(){this.$emit("input",!1)},getWorkOrder:function(){var t=this;i.a.get("/public/workorder/"+this.prop.id).then((function(e){null!=e.data.data&&(t.workorder=e.data.data),setTimeout((function(){return t.$previewRefresh()}),500)}))},getComments:function(){var t=this;this.isShowGetCommentsLoading=!0,i.a.get("/public/workorder/comments/"+this.prop.id).then((function(e){null!=e.data.data&&(t.comments=e.data.data),setTimeout((function(){return t.$previewRefresh()}),500),t.isShowGetCommentsLoading=!1})).catch((function(e){console.log(e),t.isShowGetCommentsLoading=!1,t.$message.error("加载失败,请刷新尝试~")}))},closeWorkorder:function(){var t=this;this.$prompt("请输入关闭原因!","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"关闭工单原因不能为空~"}).then((function(e){var s=e.value,r=t.showData.id,o=s;i.a.post("/workorder/close",{wid:r,remark:o}).then((function(){t.getWorkOrder(),t.$notify({title:"温馨提示!",message:"工单已关闭~",showClose:!1,type:"success"})})).catch((function(){t.$message.error("工单关闭失败~")}))}))},delWorkorder:function(){var t=this;this.$confirm("您确定删除该工单吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t.showData.id;i.a.delete("/public/workorder/"+e).then((function(){t.$notify({title:"温馨提示!",message:"工单已删除~",showClose:!1,type:"success"}),t.close()})).catch((function(){t.$message.error("工单删除失败~")}))}))},reply:function(){var t=this,e=this.request.content+this.request.source;if(""!=e.trim()){if(!this.isSubmit){this.isSubmit=!0;var s=this.showData.id;i.a.post("/public/workorder/reply",{wid:s,content:e}).then((function(e){t.isSubmit=!1,console.log(e),t.getComments(),t.request={source:"",content:""},t.$notify({title:"温馨提示!",message:"回复成功~",showClose:!1,type:"success"}),setTimeout((function(){var t=document.querySelector(".content").clientHeight,e=document.querySelector(".scroll").clientHeight;document.querySelector(".content").scrollTop=e-t+20}),500)})).catch((function(e){t.isSubmit=!1,console.log(e),t.$message.error("提交失败~")}))}}else this.$message.error("请输入内容~")},inputBlur:function(){setTimeout((function(){document.body.scrollTo=0,window.scrollTo(0,0)}),100)},uploadFile:function(t){var e=t.target,s=e.files[0];this.isShowUploadLoading=!0;var r=this;Object(d["a"])({file:s,mode:this.configs.upload_mode,progress:function(){},success:function(t){var e;r.isShowUploadLoading=!1;var s=r.configs.upload_host+"/"+t,o=t.substr(t.lastIndexOf(".")+1);-1!="jpg,jpeg,png,JPG,JPEG,PNG".indexOf(o)?e="<br><img style='max-width:45%;margin-top:5px;' preview='1' src='"+s+"' />":(e="<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />",e+="<a target='_blank' style='color: #2e9dfc;' href='"+s+"'>下载附件</a>"),r.request.source=e,r.$notify({title:"温馨提示!",message:"上传成功~",showClose:!1,type:"success"})},error:function(t){r.isShowUploadLoading=!1,t.response&&t.response.data&&r.$message.error(t.response.data.message)}})}},watch:{prop:function(){var t=this;this.comments=[],this.getWorkOrder(),setTimeout((function(){t.$previewRefresh(),t.getComments()}),500)}}},v=h,w=(s("c375"),s("2877")),m=Object(w["a"])(v,c,l,!1,null,"7cd97b62",null),g=m.exports,y=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"workorder-view"},[s("div",{staticClass:"mask",on:{dblclick:t.close}}),s("div",{staticClass:"content-box"},[s("el-row",{staticClass:"title",attrs:{type:"flex"}},[s("span",[s("i",{staticClass:"el-icon-tickets"}),t._v(" 分类设置\n ")]),s("div",[s("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.add}},[t._v("添加分类")])],1)]),s("span",{staticClass:"close",on:{click:t.close}},[s("i",{staticClass:"el-icon-close"})]),s("div",{staticClass:"content"},[s("div",{staticClass:"scroll"},[s("ul",{staticClass:"list"},[t._l(t.showWorkorderTypes,(function(e){return[s("li",{key:e.id},[s("el-row",{attrs:{type:"flex",algin:"middle"}},[s("div",[s("i",{staticClass:"el-icon-tickets"})]),s("span",[t._v(t._s(e.title))]),s("div",{staticClass:"update",on:{click:function(s){return t.update(e)}}},[s("i",{staticClass:"el-icon-edit-outline"})]),s("div",{staticClass:"del",on:{click:function(s){return t.del(e)}}},[s("i",{staticClass:"el-icon-close"})])])],1)]}))],2)])])],1)])},b=[],k={name:"workorder-view",data:function(){return{isSubmit:!1,types:null}},props:{value:{default:!1,type:Boolean},workorderTypes:Array},created:function(){this.getWorkorderTypes()},computed:{showWorkorderTypes:function(){return this.types||this.workorderTypes.slice(1,this.workorderTypes.length-2)},isShowAside:function(){return this.$store.state.isShowAside}},methods:{close:function(){this.$emit("input",!1)},getWorkorderTypes:function(){var t=this;i.a.get("/workorder/types").then((function(e){t.types=e.data.data})).catch((function(e){t.$message.error(e.response.data.message)}))},add:function(){var t=this;this.$prompt("请输入分类名称!","添加分类",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"分类名称不能为空~"}).then((function(e){var s=e.value;i.a.post("/workorder/type/",{title:s}).then((function(){t.getWorkorderTypes()})).catch((function(e){t.$message.error(e.response.data.message)}))}))},del:function(t){var e=this;this.$confirm("您确定删除 "+t.title+" 该分类吗?","温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.a.delete("/workorder/type/"+t.id).then((function(){e.getWorkorderTypes()})).catch((function(t){e.$message.error(t.response.data.message)}))}))},update:function(t){var e=this;this.$prompt("","分类修改",{confirmButtonText:"确定",cancelButtonText:"取消",inputPlaceholder:"请输入新分类名称~",inputPattern:/\S/,inputValue:t.title,inputErrorMessage:"分类名称不能为空~"}).then((function(s){var r=s.value;r!=t.title&&i.a.put("/workorder/type/",{id:t.id,title:r}).then((function(){e.getWorkorderTypes()})).catch((function(t){e.$message.error(t.response.data.message)}))}))}},watch:{}},_=k,C=(s("965d"),Object(w["a"])(_,y,b,!1,null,"db72d194",null)),O=C.exports;function S(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function T(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?S(Object(s),!0).forEach((function(e){Object(a["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):S(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var x={name:"workorder-index",components:{WorkOrderView:g,WorkOrderTypesView:O},data:function(){return{loading:!0,isShowWorkOrderView:!1,isShowTypesView:!1,showWorkOrder:{},tableData:{list:[],page_on:1,page_size:10,total:0,status:"",del:0,tid:0},tabIndex:0,del:0,isOpenWorkorder:!1,workorderTypes:[]}},computed:T({workStatus:function(){return this.tabIndex==this.workorderTypes.length-1&&this.workorderTypes.length>1?"0,1,2,3":this.tabIndex==this.workorderTypes.length-2&&this.workorderTypes.length>1?"3":"0,1,2"}},Object(u["b"])(["workOrderCounts","adminInfo","systemInfo","configs"])),created:function(){this.getWorkorderList(),this.getWorkorderTypes(),this.isOpenWorkorder=1==this.configs.open_workorder,this.$store.dispatch("ON_GET_WORKORDER_COUNTS")},methods:{onShow:function(t){this.showWorkOrder=t,this.isShowWorkOrderView=!0},tabsChange:function(t){this.tabIndex=parseInt(t.index),this.del=0,this.tabIndex==this.workorderTypes.length-1&&(this.del=1),this.changeType(this.workorderTypes[this.tabIndex].id)},changeSwitch:function(t){var e=this,s="您确定打开工单功能吗?",r=1;t||(s="您确定关闭工单功能吗?",r=0),this.$confirm(s,"温馨提示!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.a.put("/system/workorder/",{open_workorder:r}).then((function(){e.$store.dispatch("ON_GET_CONFIGS")})).catch((function(t){e.$message.error(t.response.data.message)}))})).catch((function(){e.isOpenWorkorder=!e.isOpenWorkorder}))},indexMethod:function(t){return(this.tableData.page_on-1)*this.tableData.page_size+t+1},changeType:function(t){this.tableData.tid=t,this.getWorkorderList(1)},getWorkorderList:function(t){var e=this;t&&(this.tableData.page_on=t),this.tableData.status=this.workStatus,this.tableData.del=this.del;var s=this.tableData,r=s.page_on,o=s.page_size,a=s.tid,n=s.status,c=s.del;i.a.post("/workorder/list",{page_on:r,page_size:o,tid:a,status:n,del:c}).then((function(t){e.loading=!1,e.tableData=t.data.data})).catch((function(t){e.loading=!1,e.$message.error(t.response.data.message)}))},getWorkorderTypes:function(){var t=this;i.a.get("/workorder/types").then((function(e){t.workorderTypes=[{id:0,count:0,title:"全部工单"}],t.workorderTypes=t.workorderTypes.concat(e.data.data);for(var s=0;s<e.data.data.length;s++)t.workorderTypes[0].count+=e.data.data[s].count;t.workorderTypes.push({id:-1,count:t.workOrderCounts.status3,title:"已结单"}),t.workorderTypes.push({id:-2,count:t.workOrderCounts.delete_count,title:"回收站"})})).catch((function(e){t.$message.error(e.response.data.message)}))},handleSizeChange:function(t){this.tableData.page_size=t,this.getWorkorderList()},handleCurrentChange:function(t){this.tableData.page_on=t,this.getWorkorderList()}},watch:{isShowTypesView:function(t){t||(this.workorderTypes=[],this.getWorkorderTypes())},isShowWorkOrderView:function(t){t||(this.$store.dispatch("ON_GET_WORKORDER_COUNTS"),this.getWorkorderList())},systemInfo:function(){this.isOpenWorkorder=1==this.systemInfo.open_workorder}}},D=x,j=(s("7893"),s("82f4"),Object(w["a"])(D,r,o,!1,null,"15cab2f6",null));e["default"]=j.exports},ef23:function(t,e,s){},f1ae:function(t,e,s){"use strict";var r=s("86cc"),o=s("4630");t.exports=function(t,e,s){e in t?r.f(t,e,o(0,s)):t[e]=s}},f3e2:function(t,e,s){"use strict";var r=s("5ca1"),o=s("0a49")(0),a=s("2f21")([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-93f1e5fa.a95dbb52.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_object-gopd.js","webpack:///./node_modules/core-js/modules/es6.object.define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/modules/es6.object.keys.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./node_modules/core-js/modules/es6.string.trim.js","webpack:///./node_modules/core-js/modules/es6.object.define-properties.js","webpack:///./node_modules/core-js/modules/_object-sap.js","webpack:///./src/views/workorder/index.vue?3477","webpack:///./src/views/workorder/index.vue?c2b9","webpack:///./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js","webpack:///./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js","webpack:///./node_modules/core-js/modules/_object-gopn.js","webpack:///./src/views/workorder/workorder-types-view.vue?56af","webpack:///./node_modules/core-js/modules/_own-keys.js","webpack:///./node_modules/core-js/modules/_string-trim.js","webpack:///./node_modules/core-js/modules/web.dom.iterable.js","webpack:///./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js","webpack:///./src/views/workorder/workorder-view.vue?b501","webpack:///./node_modules/core-js/modules/es6.array.filter.js","webpack:///./src/views/workorder/index.vue?467b","webpack:///./src/views/workorder/workorder-view.vue?d12b","webpack:///src/views/workorder/workorder-view.vue","webpack:///./src/views/workorder/workorder-view.vue?47c8","webpack:///./src/views/workorder/workorder-view.vue","webpack:///./src/views/workorder/workorder-types-view.vue?1f4f","webpack:///src/views/workorder/workorder-types-view.vue","webpack:///./src/views/workorder/workorder-types-view.vue?d6b9","webpack:///./src/views/workorder/workorder-types-view.vue","webpack:///src/views/workorder/index.vue","webpack:///./src/views/workorder/index.vue?4c70","webpack:///./src/views/workorder/index.vue?20cf","webpack:///./node_modules/core-js/modules/_create-property.js","webpack:///./node_modules/core-js/modules/es6.array.for-each.js","webpack:///./node_modules/core-js/modules/_string-ws.js"],"names":["pIE","createDesc","toIObject","toPrimitive","has","IE8_DOM_DEFINE","gOPD","Object","getOwnPropertyDescriptor","exports","f","O","P","e","call","$export","S","F","defineProperty","$Object","module","it","key","desc","toObject","$keys","$trim","this","defineProperties","core","fails","KEY","exec","fn","exp","ownKeys","createProperty","getOwnPropertyDescriptors","object","getDesc","keys","result","i","length","undefined","hiddenKeys","concat","getOwnPropertyNames","gOPN","gOPS","anObject","Reflect","getSymbols","defined","spaces","space","non","ltrim","RegExp","rtrim","exporter","ALIAS","FORCE","trim","string","TYPE","String","replace","$iterators","getKeys","redefine","global","hide","Iterators","wks","ITERATOR","TO_STRING_TAG","ArrayValues","Array","DOMIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","collections","NAME","explicit","Collection","proto","prototype","_defineProperty","obj","value","enumerable","configurable","writable","$filter","filter","callbackfn","arguments","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","slot","_v","staticStyle","workOrderCounts","status0","status2","_e","_s","adminInfo","root","isOpenWorkorder","on","changeSwitch","model","callback","$$v","expression","$event","isShowTypesView","tabsChange","_l","item","id","title","count","directives","name","rawName","tableData","list","indexMethod","scopedSlots","_u","scope","workorderTypes","tabIndex","row","status","a_nickname","$formatUnixDate","create_at","onShow","total","page_on","handleSizeChange","handleCurrentChange","showWorkOrder","isShowWorkOrderView","staticRenderFns","close","class","showData","delete","closeWorkorder","delWorkorder","u_nickname","phone","email","typeName","domProps","content","comments","isShowGetCommentsLoading","index","aid","avatar","a_avatar","$formatDate","request","source","isShowUploadLoading","inputBlur","target","composing","$set","uploadFile","reply","data","isSubmit","workorder","fileType","props","default","type","Boolean","prop","created","computed","isShowAside","$store","state","methods","$emit","getWorkOrder","response","setTimeout","getComments","$prompt","confirmButtonText","cancelButtonText","inputPattern","inputErrorMessage","$message","error","document","body","scrollTo","window","fileDom","file","files","mode","configs","upload_mode","progress","success","html","self","fullPath","upload_host","src","substr","lastIndexOf","indexOf","$notify","message","showClose","watch","component","add","update","del","types","getWorkorderTypes","showWorkorderTypes","$confirm","inputPlaceholder","inputValue","components","WorkOrderView","WorkOrderTypesView","loading","page_size","tid","workStatus","getWorkorderList","open_workorder","dispatch","parseInt","tab","changeType","val","systemInfo","$defineProperty","$forEach","STRICT","forEach"],"mappings":"qGAAA,IAAIA,EAAM,EAAQ,QACdC,EAAa,EAAQ,QACrBC,EAAY,EAAQ,QACpBC,EAAc,EAAQ,QACtBC,EAAM,EAAQ,QACdC,EAAiB,EAAQ,QACzBC,EAAOC,OAAOC,yBAElBC,EAAQC,EAAI,EAAQ,QAAoBJ,EAAO,SAAkCK,EAAGC,GAGlF,GAFAD,EAAIT,EAAUS,GACdC,EAAIT,EAAYS,GAAG,GACfP,EAAgB,IAClB,OAAOC,EAAKK,EAAGC,GACf,MAAOC,IACT,GAAIT,EAAIO,EAAGC,GAAI,OAAOX,GAAYD,EAAIU,EAAEI,KAAKH,EAAGC,GAAID,EAAEC,M,uBCdxD,IAAIG,EAAU,EAAQ,QAEtBA,EAAQA,EAAQC,EAAID,EAAQE,GAAK,EAAQ,QAAmB,SAAU,CAAEC,eAAgB,EAAQ,QAAgBR,K,gDCFhH,EAAQ,QACR,IAAIS,EAAU,EAAQ,QAAuBZ,OAC7Ca,EAAOX,QAAU,SAAwBY,EAAIC,EAAKC,GAChD,OAAOJ,EAAQD,eAAeG,EAAIC,EAAKC,K,uBCFz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BACQ,EAAR,4CAIIzF,iBA5FJ,SA4FA,GACMxJ,KAAKwI,UAAUkH,UAAYS,EAC3BnQ,KAAK6P,oBAGPpG,oBAjGJ,SAiGA,GACMzJ,KAAKwI,UAAUe,QAAU4G,EACzBnQ,KAAK6P,qBAGTlB,MAAO,CACL7G,gBADJ,SACA,GACA,IACQ9H,KAAK8I,eAAiB,GACtB9I,KAAKiP,sBAGTtF,oBAPJ,SAOA,GACA,IACQ3J,KAAKqM,OAAO0D,SAAS,2BACrB/P,KAAK6P,qBAGTO,WAbJ,WAcMpQ,KAAKsH,gBAAoD,GAAlCtH,KAAKoQ,WAAWN,kBC1QoV,ICS7X,G,oBAAY,eACd,EACA1J,EACAwD,GACA,EACA,KACA,WACA,OAIa,e,kECnBf,IAAIyG,EAAkB,EAAQ,QAC1B/R,EAAa,EAAQ,QAEzBmB,EAAOX,QAAU,SAAU6B,EAAQgK,EAAO/E,GACpC+E,KAAShK,EAAQ0P,EAAgBtR,EAAE4B,EAAQgK,EAAOrM,EAAW,EAAGsH,IAC/DjF,EAAOgK,GAAS/E,I,kCCLvB,IAAIxG,EAAU,EAAQ,QAClBkR,EAAW,EAAQ,OAAR,CAA4B,GACvCC,EAAS,EAAQ,OAAR,CAA4B,GAAGC,SAAS,GAErDpR,EAAQA,EAAQH,EAAIG,EAAQE,GAAKiR,EAAQ,QAAS,CAEhDC,QAAS,SAAiBtK,GACxB,OAAOoK,EAAStQ,KAAMkG,EAAYC,UAAU,Q,mBCRhD1G,EAAOX,QAAU","file":"js/chunk-93f1e5fa.a95dbb52.js","sourcesContent":["var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n","// 19.1.2.14 Object.keys(O)\nvar toObject = require('./_to-object');\nvar $keys = require('./_object-keys');\n\nrequire('./_object-sap')('keys', function () {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n","'use strict';\n// 21.1.3.25 String.prototype.trim()\nrequire('./_string-trim')('trim', function ($trim) {\n return function trim() {\n return $trim(this, 3);\n };\n});\n","var $export = require('./_export');\n// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperties: require('./_object-dps') });\n","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=15cab2f6&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=15cab2f6&scoped=true&lang=stylus&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=1&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=1&lang=stylus&\"","module.exports = require(\"core-js/library/fn/object/define-property\");","// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = require('./_export');\nvar ownKeys = require('./_own-keys');\nvar toIObject = require('./_to-iobject');\nvar gOPD = require('./_object-gopd');\nvar createProperty = require('./_create-property');\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIObject(object);\n var getDesc = gOPD.f;\n var keys = ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) createProperty(result, key, desc);\n }\n return result;\n }\n});\n","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=style&index=0&id=db72d194&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=style&index=0&id=db72d194&scoped=true&lang=stylus&\"","// all object keys, includes non-enumerable and symbols\nvar gOPN = require('./_object-gopn');\nvar gOPS = require('./_object-gops');\nvar anObject = require('./_an-object');\nvar Reflect = require('./_global').Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = gOPN.f(anObject(it));\n var getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n","var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n","var $iterators = require('./es6.array.iterator');\nvar getKeys = require('./_object-keys');\nvar redefine = require('./_redefine');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar wks = require('./_wks');\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n","import _Object$defineProperty from \"../../core-js/object/define-property\";\nexport default function _defineProperty(obj, key, value) {\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=style&index=0&id=7cd97b62&scoped=true&lang=stylus&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=style&index=0&id=7cd97b62&scoped=true&lang=stylus&\"","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"me-head\"},[_c('span',[_c('i',{staticClass:\"el-icon-tickets\"}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"工单管理\")]),_c('span',{staticStyle:{\"font-size\":\"15px\",\"margin-left\":\"30px\",\"color\":\"#e7a646\"}},[(_vm.workOrderCounts.status0 > 0 || _vm.workOrderCounts.status2)?[_vm._v(\"\\n 当前有: \\n \")]:_vm._e(),(_vm.workOrderCounts.status0 > 0)?[_c('strong',{staticStyle:{\"color\":\"#f56c6c\"}},[_vm._v(_vm._s(_vm.workOrderCounts.status0))]),_vm._v(\"条待处理 ,\\n \")]:_vm._e(),(_vm.workOrderCounts.status2 > 0)?[_c('strong',{staticStyle:{\"color\":\"#f56c6c\"}},[_vm._v(\" \"+_vm._s(_vm.workOrderCounts.status2))]),_vm._v(\"条待回复工单 \\n \")]:_vm._e()],2)]),(_vm.adminInfo.root == 1)?_c('el-row',{staticStyle:{\"width\":\"300px\"},attrs:{\"type\":\"flex\",\"align\":\"middle\",\"justify\":\"space-between\"}},[_c('div',{staticClass:\"switch\"},[_c('el-switch',{attrs:{\"inactive-color\":\"#cccccc\",\"active-color\":\"#8bc34a\",\"active-text\":_vm.isOpenWorkorder ? '工单功能启用中' : '工单功能关闭中'},on:{\"change\":_vm.changeSwitch},model:{value:(_vm.isOpenWorkorder),callback:function ($$v) {_vm.isOpenWorkorder=$$v},expression:\"isOpenWorkorder\"}}),_c('div',[_vm._v(\"工单关闭后客户端无法发起工单~\")])],1),_c('div',[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.isShowTypesView = true}}},[_vm._v(\"分类设置\")])],1)]):_vm._e()],1),_c('el-divider'),_c('el-row',{staticClass:\"container-box\",attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('div',{staticClass:\"menu\"},[_c('el-tabs',{staticStyle:{\"width\":\"200px\",\"height\":\"80vh\"},attrs:{\"tab-position\":\"left\"},on:{\"tab-click\":_vm.tabsChange}},[_vm._l((_vm.workorderTypes),function(item){return [_c('el-tab-pane',{key:item.id,attrs:{\"label\":item.title + '('+item.count+')'}})]})],2)],1),_c('div',{staticClass:\"table-content\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.tableData.list}},[_c('el-table-column',{attrs:{\"type\":\"index\",\"index\":_vm.indexMethod,\"width\":\"60\",\"label\":\"#序号\"}}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"label\":\"工单标题\"}}),_c('el-table-column',{attrs:{\"prop\":\"status\",\"label\":\"状态\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(_vm.workorderTypes.length-1 == _vm.tabIndex)?[_c('span',{staticStyle:{\"color\":\"#f56c6b\"}},[_vm._v(\"已删除\")])]:[(scope.row.status == 0)?_c('el-tag',{attrs:{\"type\":\"danger\"}},[_vm._v(\"待客服处理\")]):_vm._e(),(scope.row.status == 2)?_c('el-tag',{attrs:{\"type\":\"warning\"}},[_vm._v(\"待客服回复\")]):_vm._e(),(scope.row.status == 1)?_c('el-tag',{attrs:{\"type\":\"success\"}},[_vm._v(\"客服已回复\")]):_vm._e(),(scope.row.status == 3)?_c('el-tag',{attrs:{\"type\":\"info\"}},[_vm._v(\" 工单已结束 \")]):_vm._e()]]}}])}),_c('el-table-column',{attrs:{\"prop\":\"u_nickname\",\"label\":\"用户\"}}),_c('el-table-column',{attrs:{\"prop\":\"a_nickname\",\"label\":\"最近处理(客服)\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.a_nickname || '-----')+\"\\n \")]}}])}),_c('el-table-column',{attrs:{\"prop\":\"create_at\",\"label\":\"创建时间\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm.$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")))]}}])}),_c('el-table-column',{attrs:{\"prop\":\"operating\",\"align\":\"center\",\"width\":\"150\",\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.onShow(scope.row)}}},[_vm._v(\"查 看\")])]}}])})],1),_c('el-row',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"type\":\"flex\",\"justify\":\"space-between\"}},[_c('span',{staticStyle:{\"color\":\"#666\",\"font-size\":\"14px\"}},[_vm._v(\"共找到\"+_vm._s(_vm.tableData.total)+\"条数据\")]),_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"sizes, prev, pager, next\",\"current-page\":_vm.tableData.page_on,\"page-sizes\":[5, 10, 15, 20],\"total\":_vm.tableData.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}})],1)],1)]),_c('WorkOrderView',{attrs:{\"workorderTypes\":_vm.workorderTypes,\"prop\":_vm.showWorkOrder},model:{value:(_vm.isShowWorkOrderView),callback:function ($$v) {_vm.isShowWorkOrderView=$$v},expression:\"isShowWorkOrderView\"}}),_c('WorkOrderTypesView',{attrs:{\"workorderTypes\":_vm.workorderTypes},model:{value:(_vm.isShowTypesView),callback:function ($$v) {_vm.isShowTypesView=$$v},expression:\"isShowTypesView\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"workorder-view\"},[_c('div',{staticClass:\"mask\",on:{\"dblclick\":_vm.close}}),_c('transition',{attrs:{\"name\":\"el-zoom-in-bottom\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"content-box\",class:{'padding-bottom30': _vm.showData.status == 3}},[_c('div',{staticClass:\"title\"},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" 工单详细\\n \")]),_c('div',{staticClass:\"buttons\"},[((_vm.showData.status == 1 || _vm.showData.status == 2) && _vm.showData.delete == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"warning\"},on:{\"click\":_vm.closeWorkorder}},[_vm._v(\"关闭工单\")]):_vm._e(),(_vm.showData.status == 3 && _vm.adminInfo.root == 1 && _vm.showData.delete == 0)?_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":_vm.delWorkorder}},[_vm._v(\"删除工单\")]):_vm._e(),(_vm.showData.delete == 1)?_c('div',{staticStyle:{\"font-size\":\"13px\",\"margin-top\":\"5px\",\"color\":\"#f44336\"}},[_vm._v(\"该工单已删除\")]):_vm._e()],1),_c('span',{staticClass:\"close\",on:{\"click\":_vm.close}},[_c('i',{staticClass:\"el-icon-close\"})]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"scroll\"},[_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"标题:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.title))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"用户:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.u_nickname))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"手机:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.phone))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"邮箱:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.showData.email || '未预留邮箱'))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"类型:\")]),_c('div',{staticClass:\"con\"},[_vm._v(_vm._s(_vm.typeName || '---'))])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"状态:\")]),_c('div',{staticClass:\"con\"},[(_vm.showData.status == 0)?_c('span',{staticStyle:{\"color\":\"#f56c6b\"}},[_vm._v(\"待客服处理\")]):_vm._e(),(_vm.showData.status == 2)?_c('span',{staticStyle:{\"color\":\"#e6a23c\"}},[_vm._v(\"待客服回复\")]):_vm._e(),(_vm.showData.status == 1)?_c('span',{staticStyle:{\"color\":\"#67c23a\"}},[_vm._v(\"客服已回复\")]):_vm._e(),(_vm.showData.status == 3)?_c('span',{staticStyle:{\"color\":\"#909399\"}},[_vm._v(\"工单已结束\")]):_vm._e()])]),_c('div',{staticClass:\"form-line\"},[_c('span',{staticClass:\"lable\"},[_vm._v(\"内容:\")]),_c('div',{staticClass:\"con\",domProps:{\"innerHTML\":_vm._s(_vm.showData.content)}})]),_c('el-divider',{staticStyle:{\"height\":\"10px\"}}),_c('div',{staticClass:\"comments\"},[(_vm.comments.length <= 0 && !_vm.isShowGetCommentsLoading)?_c('div',{staticClass:\"no-data\"},[_vm._v(\"暂无回复内容~\")]):_vm._e(),(_vm.isShowGetCommentsLoading)?_c('div',{staticClass:\"comments-loading\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('span',[_vm._v(\"正在努力加载中~\")])]):_vm._l((_vm.comments),function(item,index){return [_c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"avatar\"},[(item.aid == _vm.adminInfo.id)?_c('img',{attrs:{\"src\":_vm.adminInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}}):_c('img',{attrs:{\"src\":item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png',\"alt\":\"\"}})]),_c('div',{staticClass:\"right\"},[(item.aid == 0)?_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.u_nickname))]):_c('div',{staticClass:\"nickname\"},[_vm._v(_vm._s(item.a_nickname))]),_c('div',{staticClass:\"detail\",domProps:{\"innerHTML\":_vm._s(item.content)}}),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm.$formatDate(item.create_at)))])])])]}),(_vm.showData && _vm.showData.status == 3)?_c('div',{staticClass:\"workorder-close\"},[_vm._v(\"工单已结束~\")]):_vm._e()],2)],1)]),(_vm.request.source != '' || _vm.isShowUploadLoading)?_c('div',{staticClass:\"file-view\"},[(_vm.isShowUploadLoading)?_c('span',[_c('i',{staticClass:\"el-icon-loading\"}),_c('i',[_vm._v(\"上传中~\")])]):_c('span',[_c('i',{staticClass:\"el-icon-paperclip\"}),_c('i',[_vm._v(\"你已成功添加附件,重新上传可替换~\")])])]):_vm._e(),(_vm.showData.status != 3)?_c('div',{staticClass:\"input-form\"},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.content),expression:\"request.content\"}],attrs:{\"placeholder\":\"请输入内容~\"},domProps:{\"value\":(_vm.request.content)},on:{\"blur\":function($event){return _vm.inputBlur()},\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"content\", $event.target.value)}}}),_c('span',{staticClass:\"icon-btn\"},[_c('input',{attrs:{\"title\":\"添加附件\",\"type\":\"file\",\"onclick\":\"this.value = null\"},on:{\"change\":_vm.uploadFile}})]),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.reply()}}},[_vm._v(\"提交\")])],1):_vm._e()])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n<template>\n <div class=\"workorder-view\" v-show=\"value\">\n <div class=\"mask\" @dblclick=\"close\"></div>\n <transition name=\"el-zoom-in-bottom\">\n <div class=\"content-box\" :class=\"{'padding-bottom30': showData.status == 3}\" v-show=\"value\">\n <div class=\"title\">\n <i class=\"el-icon-tickets\"></i> 工单详细\n </div>\n <div class=\"buttons\">\n <el-button\n size=\"mini\"\n @click=\"closeWorkorder\"\n v-if=\"(showData.status == 1 || showData.status == 2) && showData.delete == 0\"\n type=\"warning\"\n >关闭工单</el-button>\n <el-button\n size=\"mini\"\n @click=\"delWorkorder\"\n v-if=\"showData.status == 3 && adminInfo.root == 1 && showData.delete == 0\"\n type=\"danger\"\n >删除工单</el-button>\n <div v-if=\"showData.delete == 1\" style=\"font-size:13px;margin-top:5px;color:#f44336\">该工单已删除</div>\n </div>\n <span class=\"close\" @click=\"close\">\n <i class=\"el-icon-close\"></i>\n </span>\n <div class=\"content\">\n <div class=\"scroll\">\n <div class=\"form-line\">\n <span class=\"lable\">标题:</span>\n <div class=\"con\">{{showData.title}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">用户:</span>\n <div class=\"con\">{{showData.u_nickname}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">手机:</span>\n <div class=\"con\">{{showData.phone}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">邮箱:</span>\n <div class=\"con\">{{showData.email || '未预留邮箱'}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">类型:</span>\n <div class=\"con\">{{typeName || '---'}}</div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">状态:</span>\n <div class=\"con\">\n <span style=\"color:#f56c6b\" v-if=\"showData.status == 0\">待客服处理</span>\n <span style=\"color:#e6a23c;\" v-if=\"showData.status == 2\">待客服回复</span>\n <span style=\"color:#67c23a;\" v-if=\"showData.status == 1\">客服已回复</span>\n <span style=\"color:#909399;\" v-if=\"showData.status == 3\">工单已结束</span>\n </div>\n </div>\n <div class=\"form-line\">\n <span class=\"lable\">内容:</span>\n <div class=\"con\" v-html=\"showData.content\"></div>\n </div>\n <el-divider style=\"height:10px;\" />\n <div class=\"comments\">\n <div class=\"no-data\" v-if=\"comments.length <= 0 && !isShowGetCommentsLoading\">暂无回复内容~</div>\n <div class=\"comments-loading\" v-if=\"isShowGetCommentsLoading\">\n <i class=\"el-icon-loading\"></i>\n <span>正在努力加载中~</span>\n </div>\n <template v-else v-for=\"(item,index) in comments\">\n <div :key=\"index\" class=\"item\">\n <div class=\"avatar\">\n <img\n v-if=\"item.aid == adminInfo.id\"\n :src=\"adminInfo.avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n <img\n v-else\n :src=\"item.a_avatar || 'http://qiniu.cmp520.com/avatar_degault_3.png'\"\n alt\n />\n </div>\n <div class=\"right\">\n <div class=\"nickname\" v-if=\"item.aid == 0\">{{item.u_nickname}}</div>\n <div class=\"nickname\" v-else>{{item.a_nickname}}</div>\n <div class=\"detail\" v-html=\"item.content\"></div>\n <div class=\"date\">{{$formatDate(item.create_at)}}</div>\n </div>\n </div>\n </template>\n <div class=\"workorder-close\" v-if=\"showData && showData.status == 3\">工单已结束~</div>\n </div>\n </div>\n </div>\n <div class=\"file-view\" v-if=\"request.source != '' || isShowUploadLoading\">\n <span v-if=\"isShowUploadLoading\">\n <i class=\"el-icon-loading\"></i>\n <i>上传中~</i>\n </span>\n <span v-else>\n <i class=\"el-icon-paperclip\"></i>\n <i>你已成功添加附件,重新上传可替换~</i>\n </span>\n </div>\n <div class=\"input-form\" v-if=\"showData.status != 3\">\n <textarea v-model=\"request.content\" @blur=\"inputBlur()\" placeholder=\"请输入内容~\"></textarea>\n <span class=\"icon-btn\">\n <input title=\"添加附件\" type=\"file\" @change=\"uploadFile\" onclick=\"this.value = null\" />\n </span>\n <el-button type=\"primary\" @click=\"reply()\">提交</el-button>\n </div>\n </div>\n </transition>\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport { mapGetters } from \"vuex\";\nimport upload from \"../../common/upload\";\nexport default {\n name: \"workorder-view\",\n data() {\n return {\n isShowUploadLoading: false,\n isShowGetCommentsLoading: false,\n isSubmit: false,\n workorder: null,\n comments: [],\n fileType: \"\",\n request: {\n source: \"\",\n content: \"\"\n }\n };\n },\n props: {\n value: {\n default: false,\n type: Boolean\n },\n prop: Object,\n workorderTypes: Array\n },\n created() {\n this.comments = [];\n },\n computed: {\n showData() {\n return this.workorder || this.prop;\n },\n isShowAside() {\n return this.$store.state.isShowAside;\n },\n typeName(){\n try{\n return this.workorderTypes.filter((i)=>i.id == this.showData.tid)[0].title\n }catch(e){\n return \"\"\n }\n },\n ...mapGetters([\"adminInfo\", \"configs\"])\n },\n methods: {\n // 按钮操作\n close() {\n this.$emit(\"input\", false);\n },\n getWorkOrder() {\n axios.get(\"/public/workorder/\" + this.prop.id).then(response => {\n if (response.data.data != null) this.workorder = response.data.data;\n setTimeout(() => this.$previewRefresh(), 500);\n });\n },\n getComments() {\n this.isShowGetCommentsLoading = true;\n axios\n .get(\"/public/workorder/comments/\" + this.prop.id)\n .then(response => {\n if (response.data.data != null) this.comments = response.data.data;\n setTimeout(() => this.$previewRefresh(), 500);\n this.isShowGetCommentsLoading = false;\n })\n .catch(error => {\n console.log(error);\n this.isShowGetCommentsLoading = false;\n this.$message.error(\"加载失败,请刷新尝试~\");\n });\n },\n closeWorkorder() {\n this.$prompt(\"请输入关闭原因!\", \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n inputPattern: /\\S/,\n inputErrorMessage: \"关闭工单原因不能为空~\"\n }).then(({ value }) => {\n const wid = this.showData.id;\n let remark = value\n axios\n .post(\"/workorder/close\", { wid, remark })\n .then(() => {\n this.getWorkOrder()\n this.$notify({\n title: \"温馨提示!\",\n message: \"工单已关闭~\",\n showClose: false,\n type: \"success\"\n });\n })\n .catch(() => {\n this.$message.error(\"工单关闭失败~\");\n });\n });\n },\n delWorkorder() {\n this.$confirm('您确定删除该工单吗?', '温馨提示!', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n const wid = this.showData.id;\n axios\n .delete(\"/public/workorder/\" +wid)\n .then(() => {\n this.$notify({\n title: \"温馨提示!\",\n message: \"工单已删除~\",\n showClose: false,\n type: \"success\"\n });\n this.close()\n })\n .catch(() => {\n this.$message.error(\"工单删除失败~\");\n });\n });\n },\n reply() {\n const content = this.request.content + this.request.source;\n if (content.trim() == \"\") {\n this.$message.error(\"请输入内容~\");\n return;\n }\n if (this.isSubmit) return;\n this.isSubmit = true;\n const wid = this.showData.id;\n axios\n .post(\"/public/workorder/reply\", { wid, content })\n .then(response => {\n this.isSubmit = false;\n console.log(response);\n this.getComments();\n this.request = {\n source: \"\",\n content: \"\"\n };\n this.$notify({\n title: \"温馨提示!\",\n message: \"回复成功~\",\n showClose: false,\n type: \"success\"\n });\n setTimeout(() => {\n var sBoxHeight = document.querySelector(\".content\").clientHeight;\n var sHeight = document.querySelector(\".scroll\").clientHeight;\n document.querySelector(\".content\").scrollTop =\n sHeight - sBoxHeight + 20;\n }, 500);\n })\n .catch(error => {\n this.isSubmit = false;\n console.log(error);\n this.$message.error(\"提交失败~\");\n });\n },\n inputBlur() {\n setTimeout(() => {\n document.body.scrollTo = 0;\n window.scrollTo(0, 0);\n }, 100);\n },\n uploadFile(e) {\n var fileDom = e.target;\n var file = fileDom.files[0];\n this.isShowUploadLoading = true;\n const self = this;\n upload({\n file,\n mode: this.configs.upload_mode,\n progress() {},\n success(src) {\n self.isShowUploadLoading = false;\n var html;\n var fullPath = self.configs.upload_host + \"/\" + src;\n var fileType = src.substr(src.lastIndexOf(\".\") + 1);\n if (\"jpg,jpeg,png,JPG,JPEG,PNG\".indexOf(fileType) != -1) {\n html =\n \"<br><img style='max-width:45%;margin-top:5px;' preview='1' src='\" +\n fullPath +\n \"' />\";\n } else {\n html =\n \"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />\";\n html +=\n \"<a target='_blank' style='color: #2e9dfc;' href='\" +\n fullPath +\n \"'>下载附件</a>\";\n }\n self.request.source = html;\n self.$notify({\n title: \"温馨提示!\",\n message: \"上传成功~\",\n showClose: false,\n type: \"success\"\n });\n },\n error(e) {\n self.isShowUploadLoading = false;\n if (e.response && e.response.data) {\n self.$message.error(e.response.data.message);\n return;\n }\n }\n });\n }\n },\n watch: {\n prop() {\n this.comments = []\n this.getWorkOrder();\n setTimeout(() => {\n this.$previewRefresh();\n this.getComments();\n }, 500);\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.workorder-view {\n width: 100vw;\n height: 100vh;\n position: fixed;\n right: 0;\n top: 0px;\n left: 0px;\n background-color: rgba(0, 0, 0, 0.8);\n z-index: 9;\n\n .mask {\n width: 100%;\n height: 100%;\n }\n\n .no-data {\n color: #666;\n font-size: 14px;\n }\n\n .workorder-close, .comments-loading {\n text-align: center;\n color: #666;\n font-size: 14px;\n padding: 10px;\n }\n\n .comments {\n padding: 10px;\n\n .item {\n display: flex;\n\n .avatar {\n padding-top: 10px;\n\n img {\n width: 30px;\n height: 30px;\n border-radius: 100px;\n display: block;\n }\n\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n }\n\n .right {\n padding: 10px 5px;\n flex-grow: 1;\n border-bottom: 1px solid rgba(158, 158, 158, 0.13);\n\n .nickname {\n font-size: 15px;\n color: #333;\n }\n\n .detail {\n font-size: 15px;\n color: #333;\n margin-top: 5px;\n }\n\n .date {\n color: #999;\n font-size: 14px;\n margin-top: 5px;\n }\n }\n\n &:last-child {\n .right, .avatar {\n border-bottom: 0;\n }\n }\n }\n }\n\n .content-box {\n width: 600px;\n height: 100%;\n background-color: #fff;\n position: fixed;\n right: 0px;\n left: 260px;\n margin: 0 auto;\n top: 30px;\n overflow: hidden;\n border-radius: 5px 5px 0 0;\n padding-top: 40px;\n padding-bottom: 135px;\n box-sizing: border-box;\n &.padding-bottom30{\n padding-bottom: 30px;\n }\n\n .content {\n box-sizing: border-box;\n width: 100%;\n padding: 0 10px;\n height: 100%;\n overflow: hidden;\n overflow-y: auto;\n padding-top: 10px;\n position: relative;\n padding-bottom: 20px;\n }\n\n .file-view {\n position: absolute;\n bottom: 135px;\n left: 0;\n right: 0;\n padding: 5px 10px;\n margin: 0 auto;\n font-size: 13px;\n color: #8bc34a;\n\n span {\n display: flex;\n align-content: center;\n align-items: center;\n\n img {\n width: 20px;\n height: 20px;\n }\n\n i {\n font-style: normal;\n margin-left: 5px;\n }\n }\n }\n\n .input-form {\n position: absolute;\n bottom: 35px;\n left: 0;\n right: 0;\n margin: 0 auto;\n width: 100%;\n height: 100px;\n background-color: #fff;\n border-top: 1px solid rgba(158, 158, 158, 0.13);\n display: flex;\n justify-content: space-between;\n padding: 10px 10px 0;\n box-sizing: border-box;\n align-content: center;\n align-items: center;\n\n textarea {\n height: 90%;\n flex-grow: 1;\n border-radius: 0;\n border: 0;\n color: #333;\n font-size: 14px;\n resize: none;\n }\n\n .icon-btn {\n background: url('../../assets/upload.png') center center no-repeat;\n background-size: 30px;\n width: 55px;\n height: 55px;\n overflow: hidden;\n\n input {\n display: block;\n width: 100%;\n height: 100%;\n font-size: 100px;\n opacity: 0;\n }\n }\n }\n\n .title {\n width: 100%;\n height: 40px;\n border-bottom: 1px solid #ddd;\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n padding: 10px 0 0 10px;\n box-sizing: border-box;\n }\n\n .buttons {\n position: absolute;\n top: 5px;\n right: 50px;\n }\n\n .close {\n position: absolute;\n top: 5px;\n right: 5px;\n font-size: 25px;\n color: #ccc;\n cursor: pointer;\n }\n\n .form-line {\n margin-bottom: 5px;\n font-size: 14px;\n color: #333;\n display: flex;\n\n .lable {\n width: 50px;\n flex-shrink: 0;\n }\n\n .con {\n flex-grow: 1;\n }\n\n img {\n width: 30%;\n }\n }\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-view.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder-view.vue?vue&type=template&id=7cd97b62&scoped=true&\"\nimport script from \"./workorder-view.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder-view.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder-view.vue?vue&type=style&index=0&id=7cd97b62&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7cd97b62\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"workorder-view\"},[_c('div',{staticClass:\"mask\",on:{\"dblclick\":_vm.close}}),_c('div',{staticClass:\"content-box\"},[_c('el-row',{staticClass:\"title\",attrs:{\"type\":\"flex\"}},[_c('span',[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" 分类设置\\n \")]),_c('div',[_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"primary\"},on:{\"click\":_vm.add}},[_vm._v(\"添加分类\")])],1)]),_c('span',{staticClass:\"close\",on:{\"click\":_vm.close}},[_c('i',{staticClass:\"el-icon-close\"})]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"scroll\"},[_c('ul',{staticClass:\"list\"},[_vm._l((_vm.showWorkorderTypes),function(item){return [_c('li',{key:item.id},[_c('el-row',{attrs:{\"type\":\"flex\",\"algin\":\"middle\"}},[_c('div',[_c('i',{staticClass:\"el-icon-tickets\"})]),_c('span',[_vm._v(_vm._s(item.title))]),_c('div',{staticClass:\"update\",on:{\"click\":function($event){return _vm.update(item)}}},[_c('i',{staticClass:\"el-icon-edit-outline\"})]),_c('div',{staticClass:\"del\",on:{\"click\":function($event){return _vm.del(item)}}},[_c('i',{staticClass:\"el-icon-close\"})])])],1)]})],2)])])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n<template>\n <div class=\"workorder-view\" v-show=\"value\">\n <div class=\"mask\" @dblclick=\"close\"></div>\n <div class=\"content-box\">\n <el-row type=\"flex\" class=\"title\">\n <span>\n <i class=\"el-icon-tickets\"></i> 分类设置\n </span>\n <div>\n <el-button @click=\"add\" size=\"mini\" type=\"primary\">添加分类</el-button>\n </div>\n </el-row>\n <span class=\"close\" @click=\"close\">\n <i class=\"el-icon-close\"></i>\n </span>\n <div class=\"content\">\n <div class=\"scroll\">\n <ul class=\"list\">\n <template v-for=\"item in showWorkorderTypes\">\n <li :key=\"item.id\">\n <el-row type=\"flex\" algin=\"middle\">\n <div>\n <i class=\"el-icon-tickets\"></i>\n </div>\n <span>{{item.title}}</span>\n <div class=\"update\" @click=\"update(item)\">\n <i class=\"el-icon-edit-outline\"></i>\n </div>\n <div class=\"del\" @click=\"del(item)\">\n <i class=\"el-icon-close\"></i>\n </div>\n </el-row>\n </li>\n </template>\n </ul>\n </div>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nexport default {\n name: \"workorder-view\",\n data() {\n return {\n isSubmit: false,\n types: null\n };\n },\n props: {\n value: {\n default: false,\n type: Boolean\n },\n workorderTypes: Array\n },\n created() {\n this.getWorkorderTypes();\n },\n computed: {\n showWorkorderTypes() {\n return (\n this.types ||\n this.workorderTypes.slice(1, this.workorderTypes.length - 2)\n );\n },\n isShowAside() {\n return this.$store.state.isShowAside;\n }\n },\n methods: {\n // 按钮操作\n close() {\n this.$emit(\"input\", false);\n },\n // 获取类型数据\n getWorkorderTypes() {\n axios\n .get(\"/workorder/types\")\n .then(response => {\n this.types = response.data.data;\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n },\n add() {\n this.$prompt(\"请输入分类名称!\", \"添加分类\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n inputPattern: /\\S/,\n inputErrorMessage: \"分类名称不能为空~\"\n }).then(({ value }) => {\n axios\n .post(\"/workorder/type/\", { title: value })\n .then(() => {\n this.getWorkorderTypes();\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n },\n del(type) {\n this.$confirm(\"您确定删除 \"+type.title+\" 该分类吗?\", \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(() => {\n axios\n .delete(\"/workorder/type/\" + type.id)\n .then(() => {\n this.getWorkorderTypes()\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n },\n update(type) {\n this.$prompt(\"\", \"分类修改\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n inputPlaceholder: \"请输入新分类名称~\",\n inputPattern: /\\S/,\n inputValue: type.title,\n inputErrorMessage: \"分类名称不能为空~\"\n }).then(({ value }) => {\n if(value == type.title) return\n axios\n .put(\"/workorder/type/\", { id:type.id, title: value })\n .then(() => {\n this.getWorkorderTypes();\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n });\n }\n },\n watch: {}\n};\n</script>\n<style scoped lang=\"stylus\">\n.workorder-view {\n width: 100vw;\n height: 100vh;\n position: fixed;\n right: 0;\n top: 0px;\n left: 0px;\n background-color: rgba(0, 0, 0, 0.8);\n z-index: 9;\n\n .mask {\n width: 100%;\n height: 100%;\n }\n\n .content-box {\n width: 400px;\n height: 100%;\n background-color: #fff;\n position: fixed;\n right: 0px;\n margin: 0 auto;\n top: 0px;\n overflow: hidden;\n padding-top: 40px;\n box-sizing: border-box;\n padding-bottom: 30px;\n\n .content {\n height: 100%;\n overflow: hidden;\n overflow-y: auto;\n margin-top: 20px;\n }\n\n .list {\n padding: 0 10px;\n display: block;\n\n li {\n height: 50px;\n line-height: 50px;\n border-bottom: 1px solid #ddd;\n position: relative;\n\n .del, .update {\n position: absolute;\n display: none;\n right: 0px;\n top: 0;\n bottom: 0;\n margin: auto 0;\n width: 25px;\n height: 30px;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n\n i {\n color: #ccc;\n }\n }\n\n &:hover {\n .del, .update {\n display: block;\n }\n }\n\n .update {\n right: 30px;\n }\n\n span {\n margin-left: 10px;\n color: #333;\n font-size: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding-right 50px\n }\n }\n }\n\n .title {\n width: 100%;\n height: 60px;\n border-bottom: 1px solid #ddd;\n position: absolute;\n top: 0;\n left: 0;\n padding: 0 10px;\n background-color: #fff;\n box-sizing: border-box;\n\n &>span {\n width: 270px;\n }\n\n align-content: center;\n align-items: center;\n }\n\n .close {\n position: absolute;\n top: 15px;\n right: 5px;\n font-size: 25px;\n color: #ccc;\n cursor: pointer;\n }\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder-types-view.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder-types-view.vue?vue&type=template&id=db72d194&scoped=true&\"\nimport script from \"./workorder-types-view.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder-types-view.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder-types-view.vue?vue&type=style&index=0&id=db72d194&scoped=true&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"db72d194\",\n null\n \n)\n\nexport default component.exports","\n<template>\n <div>\n <div class=\"me-head\">\n <span>\n <i class=\"el-icon-tickets\"></i>\n <span slot=\"title\">工单管理</span>\n <span style=\"font-size:15px;margin-left: 30px;color:#e7a646\">\n <template v-if=\"workOrderCounts.status0 > 0 || workOrderCounts.status2\">\n 当前有: \n </template>\n <template v-if=\"workOrderCounts.status0 > 0\">\n <strong style=\"color: #f56c6c\">{{workOrderCounts.status0}}</strong>条待处理 ,\n </template>\n <template v-if=\"workOrderCounts.status2 > 0\">\n <strong style=\"color: #f56c6c\"> {{workOrderCounts.status2}}</strong>条待回复工单 \n </template>\n </span>\n </span>\n <el-row style=\"width:300px;\" type=\"flex\" align=\"middle\" justify=\"space-between\" v-if=\"adminInfo.root == 1\">\n <div class=\"switch\">\n <el-switch\n @change=\"changeSwitch\"\n v-model=\"isOpenWorkorder\"\n inactive-color=\"#cccccc\"\n active-color=\"#8bc34a\"\n :active-text=\"isOpenWorkorder ? '工单功能启用中' : '工单功能关闭中'\"\n >\n </el-switch>\n <div>工单关闭后客户端无法发起工单~</div>\n </div>\n <div>\n <el-button size=\"mini\" @click=\"isShowTypesView = true\">分类设置</el-button>\n </div>\n </el-row>\n </div>\n <el-divider />\n <el-row class=\"container-box\" type=\"flex\" justify=\"space-between\">\n <div class=\"menu\">\n <el-tabs @tab-click=\"tabsChange\" tab-position=\"left\" style=\"width:200px;height: 80vh;\">\n <template size=\"small\" v-for=\"item in workorderTypes\" border>\n <el-tab-pane :key=\"item.id\" :label=\"item.title + '('+item.count+')'\"></el-tab-pane>\n </template>\n </el-tabs>\n </div>\n <div class=\"table-content\">\n <el-table :data=\"tableData.list\" style=\"width: 100%\" v-loading=\"loading\">\n <el-table-column type=\"index\" :index=\"indexMethod\" width=\"60\" label=\"#序号\"></el-table-column>\n <el-table-column prop=\"title\" label=\"工单标题\"></el-table-column>\n <el-table-column prop=\"status\" label=\"状态\">\n <template slot-scope=\"scope\">\n <template v-if=\"workorderTypes.length-1 == tabIndex\">\n <span style=\"color:#f56c6b\">已删除</span>\n </template>\n <template v-else>\n <el-tag type=\"danger\" v-if=\"scope.row.status == 0\">待客服处理</el-tag>\n <el-tag type=\"warning\" v-if=\"scope.row.status == 2\">待客服回复</el-tag>\n <el-tag type=\"success\" v-if=\"scope.row.status == 1\">客服已回复</el-tag>\n <el-tag type=\"info\" v-if=\"scope.row.status == 3\"> 工单已结束 </el-tag>\n </template>\n </template>\n </el-table-column>\n <el-table-column prop=\"u_nickname\" label=\"用户\"></el-table-column>\n <el-table-column prop=\"a_nickname\" label=\"最近处理(客服)\">\n <template slot-scope=\"scope\">\n {{scope.row.a_nickname || '-----'}}\n </template>\n </el-table-column>\n <el-table-column prop=\"create_at\" label=\"创建时间\">\n <template slot-scope=\"scope\">{{$formatUnixDate(scope.row.create_at, \"YYYY/MM/DD\")}}</template>\n </el-table-column>\n <el-table-column prop=\"operating\" align=\"center\" width=\"150\" label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button @click=\"onShow(scope.row)\" size=\"mini\">查 看</el-button>\n </template>\n </el-table-column>\n </el-table>\n <el-row type=\"flex\" style=\"margin-top: 20px;\" justify=\"space-between\">\n <span style=\"color:#666;font-size: 14px;\">共找到{{tableData.total}}条数据</span>\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"sizes, prev, pager, next\"\n :current-page=\"tableData.page_on\"\n :page-sizes=\"[5, 10, 15, 20]\"\n :total=\"tableData.total\"\n ></el-pagination>\n </el-row>\n </div>\n </el-row>\n <WorkOrderView :workorderTypes=\"workorderTypes\" :prop=\"showWorkOrder\" v-model=\"isShowWorkOrderView\" />\n <WorkOrderTypesView :workorderTypes=\"workorderTypes\" v-model=\"isShowTypesView\" />\n </div>\n</template>\n<script>\nimport axios from \"axios\";\nimport WorkOrderView from \"./workorder-view\"\nimport WorkOrderTypesView from \"./workorder-types-view\"\nimport { mapGetters } from 'vuex'\nexport default {\n name: \"workorder-index\",\n components: {\n WorkOrderView,\n WorkOrderTypesView\n },\n data() {\n return {\n loading: true,\n isShowWorkOrderView: false,\n isShowTypesView: false,\n showWorkOrder: {},\n tableData: {\n list: [],\n page_on: 1,\n page_size: 10,\n total: 0,\n status: \"\",\n del: 0,\n tid: 0\n },\n tabIndex: 0,\n del: 0,\n isOpenWorkorder: false,\n workorderTypes:[],\n };\n },\n computed: {\n workStatus(){\n if(this.tabIndex == this.workorderTypes.length-1 && this.workorderTypes.length > 1){\n return '0,1,2,3'\n }\n if(this.tabIndex == this.workorderTypes.length-2 && this.workorderTypes.length > 1){\n return '3'\n }\n return \"0,1,2\"\n },\n ...mapGetters([\n \"workOrderCounts\",\n \"adminInfo\",\n \"systemInfo\",\n \"configs\",\n ])\n },\n created() {\n this.getWorkorderList();\n this.getWorkorderTypes()\n this.isOpenWorkorder = this.configs.open_workorder == 1\n this.$store.dispatch('ON_GET_WORKORDER_COUNTS')\n },\n methods: {\n onShow(item){\n this.showWorkOrder = item\n this.isShowWorkOrderView = true\n },\n tabsChange(tab){\n this.tabIndex = parseInt(tab.index)\n this.del = 0\n if(this.tabIndex == this.workorderTypes.length-1) this.del = 1\n this.changeType(this.workorderTypes[this.tabIndex].id)\n },\n changeSwitch(open){\n var title = \"您确定打开工单功能吗?\"\n var open_workorder = 1\n if(!open){\n title = \"您确定关闭工单功能吗?\"\n open_workorder = 0\n }\n this.$confirm(title, \"温馨提示!\", {\n confirmButtonText: \"确定\",\n cancelButtonText: \"取消\",\n type: \"warning\"\n }).then(() => {\n axios\n .put(\"/system/workorder/\", {open_workorder})\n .then(() => {\n this.$store.dispatch('ON_GET_CONFIGS')\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n }).catch(() => {\n this.isOpenWorkorder = !this.isOpenWorkorder \n });\n },\n // 行号\n indexMethod(index) {\n return (\n (this.tableData.page_on - 1) * this.tableData.page_size + index + 1\n );\n },\n changeType(tid){\n this.tableData.tid = tid;\n this.getWorkorderList(1);\n },\n // 获取数据\n getWorkorderList(index) {\n if (index) this.tableData.page_on = index;\n this.tableData.status = this.workStatus\n this.tableData.del = this.del\n const { page_on, page_size, tid, status, del } = this.tableData;\n axios\n .post(\"/workorder/list\", { page_on, page_size, tid, status, del })\n .then(response => {\n this.loading = false;\n this.tableData = response.data.data;\n })\n .catch(error => {\n this.loading = false;\n this.$message.error(error.response.data.message);\n });\n },\n // 获取类型数据\n getWorkorderTypes() {\n axios\n .get(\"/workorder/types\")\n .then(response => {\n this.workorderTypes = [{\n \"id\": 0,\n \"count\": 0,\n \"title\": \"全部工单\"\n }];\n this.workorderTypes = this.workorderTypes.concat(response.data.data);\n for(var i=0; i<response.data.data.length; i++){\n this.workorderTypes[0].count += response.data.data[i].count\n }\n this.workorderTypes.push({\n \"id\": -1,\n \"count\": this.workOrderCounts.status3,\n \"title\": \"已结单\"\n })\n this.workorderTypes.push({\n \"id\": -2,\n \"count\": this.workOrderCounts.delete_count,\n \"title\": \"回收站\"\n })\n })\n .catch(error => {\n this.$message.error(error.response.data.message);\n });\n },\n // 改变每页条数\n handleSizeChange(val) {\n this.tableData.page_size = val;\n this.getWorkorderList();\n },\n // 分页\n handleCurrentChange(val) {\n this.tableData.page_on = val;\n this.getWorkorderList();\n }\n },\n watch: {\n isShowTypesView(show){\n if(!show){\n this.workorderTypes = []\n this.getWorkorderTypes();\n }\n },\n isShowWorkOrderView(show){\n if(!show){\n this.$store.dispatch('ON_GET_WORKORDER_COUNTS')\n this.getWorkorderList();\n }\n },\n systemInfo(){\n this.isOpenWorkorder = this.systemInfo.open_workorder == 1\n }\n }\n};\n</script>\n<style scoped lang=\"stylus\">\n.me-head {\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 20px;\n justify-content: space-between;\n color: #666;\n .switch{\n div{\n font-size 13px\n padding-top 5px\n color #ccc\n span.el-switch__label{\n color #ff5722!important\n }\n }\n }\n i {\n margin-right: 5px;\n }\n}\n.container-box{\n .menu{\n flex-shrink: 0;\n width 180px;\n }\n .table-content{\n width 500px;\n flex-grow 1\n }\n}\n</style>\n<style lang=\"stylus\">\n.switch{\n div{\n span.el-switch__label{\n color #ff5722!important\n }\n span.el-switch__label.is-active{\n color #8bc34a!important\n }\n }\n}\n</style>\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=15cab2f6&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=15cab2f6&scoped=true&lang=stylus&\"\nimport style1 from \"./index.vue?vue&type=style&index=1&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"15cab2f6\",\n null\n \n)\n\nexport default component.exports","'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n","'use strict';\nvar $export = require('./_export');\nvar $forEach = require('./_array-methods')(0);\nvar STRICT = require('./_strict-method')([].forEach, true);\n\n$export($export.P + $export.F * !STRICT, 'Array', {\n // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])\n forEach: function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments[1]);\n }\n});\n","module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"],"sourceRoot":""}
\ No newline at end of file
.content[data-v-7cace18b]{padding:50px 10px}.content .field-line[data-v-7cace18b]{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;box-sizing:border-box;height:45px;border-bottom:1px solid #ddd;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#333}.content .field-line span[data-v-7cace18b]:first-child{width:35px}.content .field-line input[data-v-7cace18b]{-ms-flex-positive:1;flex-grow:1;padding-left:10px;height:100%;background:none;border:0;color:#333;font-size:14px;border-radius:0}.content .field-line.algin-left[data-v-7cace18b]{-ms-flex-line-pack:left;align-content:left;-ms-flex-align:left;align-items:left}.content .field-line.arrow-right[data-v-7cace18b]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAFDUlEQVR4Xu2dMU8UQRTH32wBvR/AxmhjJZVS3R4tsdCY2NoabY100IDGUo2x0s7EaGFDtzubkPAdaCz8AFjRkRuzATwCd3s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MH/22bcKADjmp3zI43OHlz0AML8bg6wBgPmLa0C2AMD8xeZnew7AMT/HrV4XCtlVAI75uTd82d8FwHy/sp/lXQDMDzc/mx4A5vczPwsAYH5/85MHAObzzE8aAJjPNz9ZAGD+csxPEgCYvzzzkwMA5i/X/KQAgPnLNz8ZAGD+MOYnAQDMH8588QDA/GHNFw1A0zS7zrmtPhJovNXro5NYAKqqWiuK4pCIVkMTg/lhiol8H8Ba+5qI9sJSIYL5oYoJ/cugpml+OecehqQD80PUmsaKrAB1Xb81xrzyTQnm+yp1PU4qAI+NMT980oL5PirNjxEJQDtda60lolFXejCfZ77YXUA7sbqu2x7gizHmxqw0YT7ffNEAtJOrqupWURTvjDF3nXM3jTHHzrnfzrm98Xi8vxwJdP8WsUuAblviZQ8A4mktciQAINKWeJMCAPG0FjkSABBpS7xJAYB4WoscCQCItCXepABAPK1FjgQARNoSb1IAIJ7WIkcCACJtiTcpABBPa5EjAQCRtsSbFACIp7XIkQCASFviTQoAxNNa5Ej/AAxh3J+K76XOAAAAAElFTkSuQmCC) 100% no-repeat;background-size:18px;padding-right:25px}.content .field-line.file[data-v-7cace18b]{position:relative;overflow:hidden;margin-top:20px;border-top:1px solid #ddd}.content .field-line.file .ed[data-v-7cace18b]{color:#8bc34a}.content .field-line.file input[data-v-7cace18b]{font-size:100px;opacity:0;position:absolute;top:0;right:0}.content .field-line.textarea[data-v-7cace18b]{-ms-flex-align:start;align-items:start;-ms-flex-line-pack:start;align-content:start;border-bottom:0;padding-top:10px;height:100px}.content .field-line.textarea textarea[data-v-7cace18b]{-ms-flex-positive:1;flex-grow:1;border:0;height:100%;resize:none;color:#333;font-size:14px;padding:3px 10px;background-color:rgba(0,0,0,.03);border-radius:3px}.content .tip[data-v-7cace18b]{font-size:11px;color:#ff9800}.content.hide-header[data-v-7cace18b]{padding-top:0}.content .sub-btn[data-v-7cace18b]{display:block;width:100%;height:45px;color:#fff;margin-top:30px;line-height:45px;text-align:center;border-radius:3px;border:none;font-size:14px;background:linear-gradient(90deg,#26a2ff,#736cde);-ms-flex-negative:0;flex-shrink:0}.content .sub-btn[data-v-7cace18b]:active{opacity:.8}.types-sheet[data-v-7cace18b]{width:100vw;height:100vh;position:fixed;top:0;left:0;right:0;bottom:0;margin:auto;background-color:rgba(0,0,0,.5)}.types-sheet .picker-box[data-v-7cace18b]{height:250px;width:100vw;position:absolute;bottom:0;left:0;right:0;margin:0 auto;background-color:#fff}.types-sheet .title[data-v-7cace18b]{height:35px;border-bottom:1px solid #f3f3f3;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 10px;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.types-sheet .title span[data-v-7cace18b]{font-size:14px;color:#333}.types-sheet .title .sub-btn[data-v-7cace18b]{display:block;width:55px;height:30px;color:#26a2ff;line-height:30px;text-align:right;font-size:14px;font-weight:900}.types-sheet .title .sub-btn[data-v-7cace18b]:active{opacity:.8}.tips[data-v-7cace18b]{font-size:12px;color:red;padding:10px 0}
\ No newline at end of file
.content[data-v-51923d50]{padding:50px 10px}.content .field-line[data-v-51923d50]{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;box-sizing:border-box;height:45px;border-bottom:1px solid #ddd;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#333}.content .field-line span[data-v-51923d50]:first-child{width:35px}.content .field-line input[data-v-51923d50]{-ms-flex-positive:1;flex-grow:1;padding-left:10px;height:100%;background:none;border:0;color:#333;font-size:14px;border-radius:0}.content .field-line.algin-left[data-v-51923d50]{-ms-flex-line-pack:left;align-content:left;-ms-flex-align:left;align-items:left}.content .field-line.arrow-right[data-v-51923d50]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAFDUlEQVR4Xu2dMU8UQRTH32wBvR/AxmhjJZVS3R4tsdCY2NoabY100IDGUo2x0s7EaGFDtzubkPAdaCz8A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AKgBg/vU2UA0AMH/22bcKADjmp3zI43OHlz0AML8bg6wBgPmLa0C2AMD8xeZnew7AMT/HrV4XCtlVAI75uTd82d8FwHy/sp/lXQDMDzc/mx4A5vczPwsAYH5/85MHAObzzE8aAJjPNz9ZAGD+csxPEgCYvzzzkwMA5i/X/KQAgPnLNz8ZAGD+MOYnAQDMH8588QDA/GHNFw1A0zS7zrmtPhJovNXro5NYAKqqWiuK4pCIVkMTg/lhiol8H8Ba+5qI9sJSIYL5oYoJ/cugpml+OecehqQD80PUmsaKrAB1Xb81xrzyTQnm+yp1PU4qAI+NMT980oL5PirNjxEJQDtda60lolFXejCfZ77YXUA7sbqu2x7gizHmxqw0YT7ffNEAtJOrqupWURTvjDF3nXM3jTHHzrnfzrm98Xi8vxwJdP8WsUuAblviZQ8A4mktciQAINKWeJMCAPG0FjkSABBpS7xJAYB4WoscCQCItCXepABAPK1FjgQARNoSb1IAIJ7WIkcCACJtiTcpABBPa5EjAQCRtsSbFACIp7XIkQCASFviTQoAxNNa5Ej/AAxh3J+K76XOAAAAAElFTkSuQmCC) 100% no-repeat;background-size:18px;padding-right:25px}.content .field-line.file[data-v-51923d50]{position:relative;overflow:hidden;margin-top:20px;border-top:1px solid #ddd}.content .field-line.file .ed[data-v-51923d50]{color:#8bc34a}.content .field-line.file input[data-v-51923d50]{font-size:100px;opacity:0;position:absolute;top:0;right:0}.content .field-line.textarea[data-v-51923d50]{-ms-flex-align:start;align-items:start;-ms-flex-line-pack:start;align-content:start;border-bottom:0;padding-top:10px;height:100px}.content .field-line.textarea textarea[data-v-51923d50]{-ms-flex-positive:1;flex-grow:1;border:0;height:100%;resize:none;color:#333;font-size:14px;padding:3px 10px;background-color:rgba(0,0,0,.03);border-radius:3px}.content .tip[data-v-51923d50]{font-size:11px;color:#ff9800}.content.hide-header[data-v-51923d50]{padding-top:0}.content .sub-btn[data-v-51923d50]{display:block;width:100%;height:45px;color:#fff;margin-top:30px;line-height:45px;text-align:center;border-radius:3px;border:none;font-size:14px;background:linear-gradient(90deg,#26a2ff,#736cde);-ms-flex-negative:0;flex-shrink:0}.content .sub-btn[data-v-51923d50]:active{opacity:.8}.types-sheet[data-v-51923d50]{width:100vw;height:100vh;position:fixed;top:0;left:0;right:0;bottom:0;margin:auto;background-color:rgba(0,0,0,.5)}.types-sheet .picker-box[data-v-51923d50]{height:250px;width:100vw;position:absolute;bottom:0;left:0;right:0;margin:0 auto;background-color:#fff}.types-sheet .title[data-v-51923d50]{height:35px;border-bottom:1px solid #f3f3f3;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 10px;box-sizing:border-box;-ms-flex-line-pack:center;align-content:center;-ms-flex-align:center;align-items:center}.types-sheet .title span[data-v-51923d50]{font-size:14px;color:#333}.types-sheet .title .sub-btn[data-v-51923d50]{display:block;width:55px;height:30px;color:#26a2ff;line-height:30px;text-align:right;font-size:14px;font-weight:900}.types-sheet .title .sub-btn[data-v-51923d50]:active{opacity:.8}.tips[data-v-51923d50]{font-size:12px;color:red;padding:10px 0}
\ No newline at end of file
......@@ -43,4 +43,4 @@
top:0 !important;
min-height: inherit!important;
left:0 !important; right:0 !important; bottom:0 !important; margin: auto !important;
}</style><link href=css/chunk-1a4e3cd3.bc23f30c.css rel=prefetch><link href=css/chunk-5750b049.975722ef.css rel=prefetch><link href=css/chunk-5e6009ff.86cb9867.css rel=prefetch><link href=css/chunk-bd7efe5c.96f83ab8.css rel=prefetch><link href=js/chunk-1a4e3cd3.81b30056.js rel=prefetch><link href=js/chunk-5750b049.b7cee639.js rel=prefetch><link href=js/chunk-5e6009ff.cb477013.js rel=prefetch><link href=js/chunk-bd7efe5c.3bdd8028.js rel=prefetch><link href=css/app.19de1655.css rel=preload as=style><link href=css/chunk-vendors.5cea36ab.css rel=preload as=style><link href=js/app.8764abed.js rel=preload as=script><link href=js/chunk-vendors.7ce94627.js rel=preload as=script><link href=css/chunk-vendors.5cea36ab.css rel=stylesheet><link href=css/app.19de1655.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.7ce94627.js></script><script src=js/app.8764abed.js></script></body></html>
\ No newline at end of file
}</style><link href=css/chunk-11c35424.f67c0e89.css rel=prefetch><link href=css/chunk-5750b049.975722ef.css rel=prefetch><link href=css/chunk-5e6009ff.86cb9867.css rel=prefetch><link href=css/chunk-bd7efe5c.96f83ab8.css rel=prefetch><link href=js/chunk-11c35424.75674ec0.js rel=prefetch><link href=js/chunk-5750b049.b7cee639.js rel=prefetch><link href=js/chunk-5e6009ff.6619c1ef.js rel=prefetch><link href=js/chunk-bd7efe5c.3bdd8028.js rel=prefetch><link href=css/app.19de1655.css rel=preload as=style><link href=css/chunk-vendors.5cea36ab.css rel=preload as=style><link href=js/app.23ac3c87.js rel=preload as=script><link href=js/chunk-vendors.7ce94627.js rel=preload as=script><link href=css/chunk-vendors.5cea36ab.css rel=stylesheet><link href=css/app.19de1655.css rel=stylesheet></head><body><noscript><strong>We're sorry but m doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.7ce94627.js></script><script src=js/app.23ac3c87.js></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var a,r,c=t[0],i=t[1],u=t[2],l=0,d=[];l<c.length;l++)r=c[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&d.push(o[r][0]),o[r]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);f&&f(t);while(d.length)d.shift()();return s.push.apply(s,u||[]),n()}function n(){for(var e,t=0;t<s.length;t++){for(var n=s[t],a=!0,r=1;r<n.length;r++){var c=n[r];0!==o[c]&&(a=!1)}a&&(s.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={app:0},o={app:0},s=[];function c(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-1a4e3cd3":"81b30056","chunk-5750b049":"b7cee639","chunk-5e6009ff":"cb477013","chunk-bd7efe5c":"3bdd8028"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-1a4e3cd3":1,"chunk-5750b049":1,"chunk-5e6009ff":1,"chunk-bd7efe5c":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-1a4e3cd3":"bc23f30c","chunk-5750b049":"975722ef","chunk-5e6009ff":"86cb9867","chunk-bd7efe5c":"96f83ab8"}[e]+".css",o=i.p+a,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var u=s[c],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===o))return t()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){u=d[c],l=u.getAttribute("data-href");if(l===a||l===o)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var a=t&&t.target&&t.target.src||o,s=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=a,delete r[e],f.parentNode.removeChild(f),n(s)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var s=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=s);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=c(e);var d=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",d.name="ChunkLoadError",d.type=a,d.request=r,n[1](d)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var f=l;s.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowPageLoading?n("div",{staticClass:"mini-im-loading",class:{"pc-mini-im-loading":!e.isMobile}},[n("mt-spinner",{attrs:{type:"triple-bounce",color:"#26a2ff"}})],1):e._e(),n("router-view")],1)},o=[],s=(n("8e6e"),n("ac6a"),n("456d"),n("28a5"),n("a481"),n("bd86")),c=n("2f62");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={name:"app",data:function(){return{}},computed:u({},Object(c["b"])(["isShowPageLoading","userAccount","isArtificial","isMobile","artificialAccount","robotAccount","platform","userLocal","uid","uid"])),created:function(){var e=this;this.getLocal(),setTimeout((function(){e.handelUrl(),e.runApp()}),500),this.onCheckIsOutSession()},methods:{runApp:function(){var e=this,t=this.$mimcInstance.getLocalCacheUser();t&&null!=this.userAccount&&this.userAccount!=t.id&&0!=this.userAccount&&localStorage.clear(),this.$mimcInstance.init({type:0,address:this.userLocal,uid:this.uid||0,platform:this.platform,account_id:this.userAccount||0},(function(t){if(e.upLastActivity(),e.$store.dispatch("onGetCompanyInfo"),e.$store.dispatch("onGetConfigs"),e.$store.dispatch("onGetWorkorderTypes"),e.$store.dispatch("onGetWorkorders"),t){e.$store.commit("updateState",{userAccount:t.id,userInfo:t});var n=e.$mimcInstance.robot;localStorage.setItem("robot_"+n.id,JSON.stringify(n)),e.$store.commit("updateState",{robotAccount:n.id,robotInfo:n});var a=function t(){null!=e.$mimcInstance.user&&e.$mimcInstance.user.isLogin()?e.artificialAccount||(console.log("握手消息"),e.$mimcInstance.sendMessage("handshake",e.robotAccount,"")):setTimeout((function(){return t()}),1e3)};a()}else setTimeout((function(){return e.runApp()}),1e3)}))},handelUrl:function(){var e,t,n,a,r,o,s,c,i=this.queryToJson(location.href.substr(location.href.lastIndexOf("?")).replace("#/index",""));i&&i.c&&localStorage.clear();var u=this.queryToJson(localStorage.getItem("urlQuery"));u&&(i=Object.assign({},u,i)),i&&("0"==i.h&&(e=!1),"0"==i.m&&(t=!1,e=!1),i.u&&(n=parseInt(i.u)),i.p&&(c=parseInt(i.p)),i.uid&&(a=parseInt(i.uid)),"0"==i.r?(r=!0,o=parseInt(i.a)):s=parseInt(i.a));var l=localStorage.getItem("isArtificial"),d=localStorage.getItem("artificialAccount");"true"==l&&(r=!0,o=parseInt(d)),this.$store.commit("updateState",{isShowHeader:e,isMobile:t,userAccount:n,uid:a,isArtificial:r,artificialAccount:o,robotAccount:s,platform:c})},queryToJson:function(e){if(!e||""==e)return null;var t=e.substr(1,e.length).split("&");if(!t)return null;for(var n={},a=0;a<t.length;a++){var r=t[a].split("=");n[r[0]]=r[1]}return n},getLocal:function(){this.$store.dispatch("onGetLocal",this.$store.state.AmapAPPKey)},upLastActivity:function(){var e=this;this.onCheckIsOutSession();var t=this.$mimcInstance.getLocalCacheUser();t&&this.$store.dispatch("onUpdateLastActivity"),this.isArtificial&&localStorage.setItem("artificialTime",Date.now()),setTimeout((function(){return e.upLastActivity()}),6e4)},onCheckIsOutSession:function(){var e=localStorage.getItem("artificialTime");e&&(e=parseInt(e),Date.now()>e+6e5&&this.$store.commit("updateState",{isArtificial:!1,artificialAccount:null}))}}},d=l,f=(n("7faf"),n("2877")),p=Object(f["a"])(d,r,o,!1,null,null,null),m=p.exports,h=n("d1d4"),b=n.n(h),g=n("8c4f");a["default"].use(g["a"]);var j=new g["a"]({base:"",routes:[{path:"/",redirect:"/index"},{path:"/index",name:"index",component:function(){return n.e("chunk-5e6009ff").then(n.bind(null,"e0a0"))}},{path:"/workorder",name:"workorder",component:function(){return n.e("chunk-bd7efe5c").then(n.bind(null,"fb09"))}},{path:"/workorder/create",name:"workorder_create",component:function(){return n.e("chunk-1a4e3cd3").then(n.bind(null,"ede1"))}},{path:"/workorder/detail/:id",name:"workorder_detail",component:function(){return n.e("chunk-5750b049").then(n.bind(null,"4033"))}}]}),k=j,v=n("bc3a"),y=n.n(v),w={onGetMessages:function(e,t){var n=20;y.a.post("/public/messages",{timestamp:t.timestamp,page_size:n}).then((function(a){for(var r=[],o=a.data.data.list||[],s=0;s<o.length;s++)o[s].payload=window.Base64.decode(o[s].payload);(o.length<n||0==o.length)&&e.commit("updateState",{isLoadMorEnd:!0}),r=0==t.oldMsg.length&&o.length>0?a.data.data.list:o.length>0?o.concat(t.oldMsg):t.oldMsg,e.commit("updateState",{messages:r}),t.callback&&t.callback()})).catch((function(e){console.log(e)}))},onGetLocal:function(e,t){y.a.get("https://restapi.amap.com/v3/ip?key="+t).then((function(t){t.data.province&&e.commit("updateState",{userLocal:t.data.province+t.data.city})})).catch((function(e){console.error(e)}))},onCleanRead:function(){y.a.get("/public/clean_read/")},onUpdateLastActivity:function(){y.a.get("/public/activity/")},onToggleWindow:function(e,t){y.a.put("/public/window/",{window:t})},onGetCompanyInfo:function(e){y.a.get("/public/company").then((function(t){e.commit("updateState",{companyInfo:t.data.data})})).catch((function(e){console.error(e)}))},onGetConfigs:function(e){y.a.get("/public/configs").then((function(t){e.commit("updateState",{configs:t.data.data})}))},onGetWorkorderTypes:function(e){y.a.get("/public/workorder/types").then((function(t){e.commit("updateState",{workorderTypes:t.data.data})}))},onGetWorkorders:function(e){y.a.get("/public/workorders").then((function(t){e.commit("updateState",{workorders:t.data.data})}))}},_={updateState:function(e,t){var n=e;for(var a in t)void 0!=t[a]&&(n[a]=t[a]);e=n}},M=(n("4917"),{platform:function(e){return e.platform},isArtificial:function(e){return e.isArtificial},isShowHeader:function(e){return e.isShowHeader},isMobile:function(e){return e.isMobile},uid:function(e){return e.uid},userAccount:function(e){return e.userAccount},artificialAccount:function(e){return e.artificialAccount},robotInfo:function(e){return e.robotInfo},robotAccount:function(e){return e.robotAccount},isLoadMorEnd:function(e){return e.isLoadMorEnd},messages:function(e){return e.messages||[]},userLocal:function(e){return e.userLocal},isLoadMorLoading:function(e){return e.isLoadMorLoading},userInfo:function(e){return e.userInfo},companyInfo:function(e){return e.companyInfo},configs:function(e){return e.configs},isIOS:function(){return!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},isSafari:function(){return navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<1},isJudgeBigScreen:function(){var e=!1,t=window.screen.height/window.screen.width,n=window.screen.height==window.screen.availHeight?1.8:1.65;return t>n&&(e=!0),e},isShowPageLoading:function(e){return e.isShowPageLoading},workorders:function(e){return e.workorders},workorderTypes:function(e){return e.workorderTypes}}),I={platform:5,isShowPageLoading:!1,isShowHeader:!0,isMobile:!0,isArtificial:!1,uid:0,userAccount:0,artificialAccount:null,robotInfo:null,robotAccount:null,messages:[],isLoadMorEnd:!1,userLocal:"",AmapAPPKey:"73ef1dc5c5ea086e7330b95aede42953",isLoadMorLoading:!1,userInfo:{},companyInfo:null,configs:{},workorders:[],workorderTypes:[]};a["default"].use(c["a"]);var S=new c["a"].Store({state:I,getters:M,mutations:_,actions:w}),A=(n("394c"),n("76a0")),L=n.n(A),T=(n("aa35"),n("7f7f"),n("cea2")),C=n("c1df"),O={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$formatUnixDate=function(e,t){return C(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return C().format("YYYYMMDD")==C(parseInt(e+"000")).format("YYYYMMDD")?"今天 "+C(parseInt(e+"000")).format("HH:mm"):C(parseInt(e+"000")).format(t)},e.prototype.$formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return C(parseInt(e+"000")).format(t)},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t},e.prototype.$uploadFile=function(e){var t=e.mode,n=e.secret,a=e.file,r=e.percent,o=e.success,s=e.fail,c=null,i=parseInt(1e4*Math.random()*(new Date).getTime())+a.name.substr(a.name.lastIndexOf("."));if(1==t){var u=new FormData;u.append("file",a),u.append("file_name",i),y.a.post("/public/upload",u).then((function(e){o&&o(e.data.data)})).catch((function(e){s&&s(e)}))}else if(2==t){var l={quality:.92,noCompressIfLarger:!0,maxWidth:1500};T["compressImage"](a,l).then((function(e){var t=T["upload"](e.dist,i,n,{},{mimeType:null});c=t.subscribe({next:function(e){r&&r(e)},error:function(){var e=new FormData;e.append("fileType","image"),e.append("fileName","file"),e.append("key",i),e.append("token",n),e.append("file",a),y.a.post("https://upload.qiniup.com",e).then((function(){o&&o(i)})).catch((function(e){s&&s(e)}))},complete:function(e){o&&o(e.key)}})}))}return c}}},D=O,Y=(n("6b54"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,platform:5,fetchMIMCTokenResult:null,_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,init:function(e,t){this.platform=e.platform,this.fetchMIMCToken(e,t)},getLocalCacheUser:function(){var e=localStorage.getItem("user");return e?JSON.parse(e):null},fetchMIMCToken:function(e,t){var n=this;y.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,localStorage.setItem("user",JSON.stringify(e.data.data.user)),localStorage.setItem("Token",e.data.data.user.token),console.log("MIMC初始化成功"),n.getRobot((function(){t&&t(e.data.data.user)})),n.login()})).catch((function(e){t&&t(null),console.log(e)}))},getRobot:function(e){var t=this;y.a.get("/public/robot/"+this.platform).then((function(n){t.robot=n.data.data,e&&e()})).catch((function(e){console.log("mimc初始化失败,请刷新重试",e)}))},pushMessage:function(e){var t=this;y.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{var n=this.fetchMIMCTokenResult;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,r){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,r)})),this.user.registerServerAckHandler((function(e,n,a,r){t._serverAckCallback&&t._serverAckCallback(e,n,a,r)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.user){var r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,platform:this.platform,transfer_account:0,payload:a+""},o=window.Base64.encode(JSON.stringify(r));return"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&"search_knowledge"!=e&&this.pushMessage(window.Base64.encode(o)),setTimeout((function(){n.user.sendMessage(t.toString(),o)}),150),r}Object(A["Toast"])({message:"服务异常,请刷新重试!"})},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",platform:this.platform,timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return r}}}}),P=Y,$={months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}},z=n("c1df");z.locale("zh-cn",$),y.a.defaults.baseURL="/api",y.a.interceptors.request.use((function(e){if(-1!=e.url.indexOf("https://restapi.amap.com/v3/ip"))return e;var t=localStorage.getItem("Token")||"";return e.headers=Object.assign({},{Token:t},e.headers),e}),(function(e){return console.log(e),Promise.reject(e)}));var x={clickToCloseNonZoomable:!1,fullscreenEl:!1};a["default"].use(b.a,x),a["default"].use(D),a["default"].use(P),a["default"].use(L.a),a["default"].config.productionTip=!1,new a["default"]({router:k,store:S,render:function(e){return e(m)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),r=n.n(a);r.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.8764abed.js.map
\ No newline at end of file
(function(e){function t(t){for(var a,r,c=t[0],i=t[1],u=t[2],l=0,d=[];l<c.length;l++)r=c[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&d.push(o[r][0]),o[r]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);f&&f(t);while(d.length)d.shift()();return s.push.apply(s,u||[]),n()}function n(){for(var e,t=0;t<s.length;t++){for(var n=s[t],a=!0,r=1;r<n.length;r++){var c=n[r];0!==o[c]&&(a=!1)}a&&(s.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={app:0},o={app:0},s=[];function c(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-11c35424":"75674ec0","chunk-5750b049":"b7cee639","chunk-5e6009ff":"6619c1ef","chunk-bd7efe5c":"3bdd8028"}[e]+".js"}function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var t=[],n={"chunk-11c35424":1,"chunk-5750b049":1,"chunk-5e6009ff":1,"chunk-bd7efe5c":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-11c35424":"f67c0e89","chunk-5750b049":"975722ef","chunk-5e6009ff":"86cb9867","chunk-bd7efe5c":"96f83ab8"}[e]+".css",o=i.p+a,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var u=s[c],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===o))return t()}var d=document.getElementsByTagName("style");for(c=0;c<d.length;c++){u=d[c],l=u.getAttribute("data-href");if(l===a||l===o)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var a=t&&t.target&&t.target.src||o,s=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=a,delete r[e],f.parentNode.removeChild(f),n(s)},f.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var s=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=s);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.src=c(e);var d=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",d.name="ChunkLoadError",d.type=a,d.request=r,n[1](d)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var f=l;s.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-SG":"cdab","./en-SG.js":"cdab","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-nz":"6f50","./en-nz.js":"6f50","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id="4678"},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isShowPageLoading?n("div",{staticClass:"mini-im-loading",class:{"pc-mini-im-loading":!e.isMobile}},[n("mt-spinner",{attrs:{type:"triple-bounce",color:"#26a2ff"}})],1):e._e(),n("router-view")],1)},o=[],s=(n("8e6e"),n("ac6a"),n("456d"),n("28a5"),n("a481"),n("bd86")),c=n("2f62");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(s["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={name:"app",data:function(){return{}},computed:u({},Object(c["b"])(["isShowPageLoading","userAccount","isArtificial","isMobile","artificialAccount","robotAccount","platform","userLocal","uid","uid"])),created:function(){var e=this;this.getLocal(),setTimeout((function(){e.handelUrl(),e.runApp()}),500),this.onCheckIsOutSession()},methods:{runApp:function(){var e=this,t=this.$mimcInstance.getLocalCacheUser();t&&null!=this.userAccount&&this.userAccount!=t.id&&0!=this.userAccount&&localStorage.clear(),this.$mimcInstance.init({type:0,address:this.userLocal,uid:this.uid||0,platform:this.platform,account_id:this.userAccount||0},(function(t){if(e.upLastActivity(),e.$store.dispatch("onGetCompanyInfo"),e.$store.dispatch("onGetConfigs"),e.$store.dispatch("onGetWorkorderTypes"),e.$store.dispatch("onGetWorkorders"),t){e.$store.commit("updateState",{userAccount:t.id,userInfo:t});var n=e.$mimcInstance.robot;localStorage.setItem("robot_"+n.id,JSON.stringify(n)),e.$store.commit("updateState",{robotAccount:n.id,robotInfo:n});var a=function t(){null!=e.$mimcInstance.user&&e.$mimcInstance.user.isLogin()?e.artificialAccount||(console.log("握手消息"),e.$mimcInstance.sendMessage("handshake",e.robotAccount,"")):setTimeout((function(){return t()}),1e3)};a()}else setTimeout((function(){return e.runApp()}),1e3)}))},handelUrl:function(){var e,t,n,a,r,o,s,c,i=this.queryToJson(location.href.substr(location.href.lastIndexOf("?")).replace("#/index",""));i&&i.c&&localStorage.clear();var u=this.queryToJson(localStorage.getItem("urlQuery"));u&&(i=Object.assign({},u,i)),i&&("0"==i.h&&(e=!1),"0"==i.m&&(t=!1,e=!1),i.u&&(n=parseInt(i.u)),i.p&&(c=parseInt(i.p)),i.uid&&(a=parseInt(i.uid)),"0"==i.r?(r=!0,o=parseInt(i.a)):s=parseInt(i.a));var l=localStorage.getItem("isArtificial"),d=localStorage.getItem("artificialAccount");"true"==l&&(r=!0,o=parseInt(d)),this.$store.commit("updateState",{isShowHeader:e,isMobile:t,userAccount:n,uid:a,isArtificial:r,artificialAccount:o,robotAccount:s,platform:c})},queryToJson:function(e){if(!e||""==e)return null;var t=e.substr(1,e.length).split("&");if(!t)return null;for(var n={},a=0;a<t.length;a++){var r=t[a].split("=");n[r[0]]=r[1]}return n},getLocal:function(){this.$store.dispatch("onGetLocal",this.$store.state.AmapAPPKey)},upLastActivity:function(){var e=this;this.onCheckIsOutSession();var t=this.$mimcInstance.getLocalCacheUser();t&&this.$store.dispatch("onUpdateLastActivity"),this.isArtificial&&localStorage.setItem("artificialTime",Date.now()),setTimeout((function(){return e.upLastActivity()}),6e4)},onCheckIsOutSession:function(){var e=localStorage.getItem("artificialTime");e&&(e=parseInt(e),Date.now()>e+6e5&&this.$store.commit("updateState",{isArtificial:!1,artificialAccount:null}))}}},d=l,f=(n("7faf"),n("2877")),p=Object(f["a"])(d,r,o,!1,null,null,null),m=p.exports,h=n("d1d4"),b=n.n(h),g=n("8c4f");a["default"].use(g["a"]);var j=new g["a"]({base:"",routes:[{path:"/",redirect:"/index"},{path:"/index",name:"index",component:function(){return n.e("chunk-5e6009ff").then(n.bind(null,"e0a0"))}},{path:"/workorder",name:"workorder",component:function(){return n.e("chunk-bd7efe5c").then(n.bind(null,"fb09"))}},{path:"/workorder/create",name:"workorder_create",component:function(){return n.e("chunk-11c35424").then(n.bind(null,"ede1"))}},{path:"/workorder/detail/:id",name:"workorder_detail",component:function(){return n.e("chunk-5750b049").then(n.bind(null,"4033"))}}]}),k=j,v=n("bc3a"),y=n.n(v),w={onGetMessages:function(e,t){var n=20;y.a.post("/public/messages",{timestamp:t.timestamp,page_size:n}).then((function(a){for(var r=[],o=a.data.data.list||[],s=0;s<o.length;s++)o[s].payload=window.Base64.decode(o[s].payload);(o.length<n||0==o.length)&&e.commit("updateState",{isLoadMorEnd:!0}),r=0==t.oldMsg.length&&o.length>0?a.data.data.list:o.length>0?o.concat(t.oldMsg):t.oldMsg,e.commit("updateState",{messages:r}),t.callback&&t.callback()})).catch((function(e){console.log(e)}))},onGetLocal:function(e,t){y.a.get("https://restapi.amap.com/v3/ip?key="+t).then((function(t){t.data.province&&e.commit("updateState",{userLocal:t.data.province+t.data.city})})).catch((function(e){console.error(e)}))},onCleanRead:function(){y.a.get("/public/clean_read/")},onUpdateLastActivity:function(){y.a.get("/public/activity/")},onToggleWindow:function(e,t){y.a.put("/public/window/",{window:t})},onGetCompanyInfo:function(e){y.a.get("/public/company").then((function(t){e.commit("updateState",{companyInfo:t.data.data})})).catch((function(e){console.error(e)}))},onGetConfigs:function(e){y.a.get("/public/configs").then((function(t){e.commit("updateState",{configs:t.data.data})}))},onGetWorkorderTypes:function(e){y.a.get("/public/workorder/types").then((function(t){e.commit("updateState",{workorderTypes:t.data.data})}))},onGetWorkorders:function(e){y.a.get("/public/workorders").then((function(t){e.commit("updateState",{workorders:t.data.data})}))}},_={updateState:function(e,t){var n=e;for(var a in t)void 0!=t[a]&&(n[a]=t[a]);e=n}},M=(n("4917"),{platform:function(e){return e.platform},isArtificial:function(e){return e.isArtificial},isShowHeader:function(e){return e.isShowHeader},isMobile:function(e){return e.isMobile},uid:function(e){return e.uid},userAccount:function(e){return e.userAccount},artificialAccount:function(e){return e.artificialAccount},robotInfo:function(e){return e.robotInfo},robotAccount:function(e){return e.robotAccount},isLoadMorEnd:function(e){return e.isLoadMorEnd},messages:function(e){return e.messages||[]},userLocal:function(e){return e.userLocal},isLoadMorLoading:function(e){return e.isLoadMorLoading},userInfo:function(e){return e.userInfo},companyInfo:function(e){return e.companyInfo},configs:function(e){return e.configs},isIOS:function(){return!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},isSafari:function(){return navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<1},isJudgeBigScreen:function(){var e=!1,t=window.screen.height/window.screen.width,n=window.screen.height==window.screen.availHeight?1.8:1.65;return t>n&&(e=!0),e},isShowPageLoading:function(e){return e.isShowPageLoading},workorders:function(e){return e.workorders},workorderTypes:function(e){return e.workorderTypes}}),I={platform:5,isShowPageLoading:!1,isShowHeader:!0,isMobile:!0,isArtificial:!1,uid:0,userAccount:0,artificialAccount:null,robotInfo:null,robotAccount:null,messages:[],isLoadMorEnd:!1,userLocal:"",AmapAPPKey:"73ef1dc5c5ea086e7330b95aede42953",isLoadMorLoading:!1,userInfo:{},companyInfo:null,configs:{},workorders:[],workorderTypes:[]};a["default"].use(c["a"]);var S=new c["a"].Store({state:I,getters:M,mutations:_,actions:w}),A=(n("394c"),n("76a0")),L=n.n(A),T=(n("aa35"),n("7f7f"),n("cea2")),C=n("c1df"),O={install:function(e,t){e.prototype.$myMethod=function(){console.log(t)},e.prototype.$formatUnixDate=function(e,t){return C(parseInt(e+"000")).format(t)},e.prototype.$formatFromNowDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm";return C().format("YYYYMMDD")==C(parseInt(e+"000")).format("YYYYMMDD")?"今天 "+C(parseInt(e+"000")).format("HH:mm"):C(parseInt(e+"000")).format(t)},e.prototype.$formatDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return C(parseInt(e+"000")).format(t)},e.prototype.$robotNickname=function(e){for(var t,n=this.$store.getters.robots,a=0;a<n.length;a++)n[a].id==e&&(t=n[a].nickname);return t},e.prototype.$uploadFile=function(e){var t=e.mode,n=e.secret,a=e.file,r=e.percent,o=e.success,s=e.fail,c=null,i=parseInt(1e4*Math.random()*(new Date).getTime())+a.name.substr(a.name.lastIndexOf("."));if(1==t){var u=new FormData;u.append("file",a),u.append("file_name",i),y.a.post("/public/upload",u).then((function(e){o&&o(e.data.data)})).catch((function(e){s&&s(e)}))}else if(2==t){var l={quality:.92,noCompressIfLarger:!0,maxWidth:1500};T["compressImage"](a,l).then((function(e){var t=T["upload"](e.dist,i,n,{},{mimeType:null});c=t.subscribe({next:function(e){r&&r(e)},error:function(){var e=new FormData;e.append("fileType","image"),e.append("fileName","file"),e.append("key",i),e.append("token",n),e.append("file",a),y.a.post("https://upload.qiniup.com",e).then((function(){o&&o(i)})).catch((function(e){s&&s(e)}))},complete:function(e){o&&o(e.key)}})}))}return c}}},D=O,Y=(n("6b54"),{install:function(e,t){console.log(t),e.MimcInstance=e.prototype.$mimcInstance={user:null,robot:null,platform:5,fetchMIMCTokenResult:null,_receiveP2PMsgCallback:null,_statusChangeCallback:null,_serverAckCallback:null,_disconnectCallback:null,init:function(e,t){this.platform=e.platform,this.fetchMIMCToken(e,t)},getLocalCacheUser:function(){var e=localStorage.getItem("user");return e?JSON.parse(e):null},fetchMIMCToken:function(e,t){var n=this;y.a.post("/public/register",e).then((function(e){n.fetchMIMCTokenResult=e.data.data.token,localStorage.setItem("user",JSON.stringify(e.data.data.user)),localStorage.setItem("Token",e.data.data.user.token),console.log("MIMC初始化成功"),n.getRobot((function(){t&&t(e.data.data.user)})),n.login()})).catch((function(e){t&&t(null),console.log(e)}))},getRobot:function(e){var t=this;y.a.get("/public/robot/"+this.platform).then((function(n){t.robot=n.data.data,e&&e()})).catch((function(e){console.log("mimc初始化失败,请刷新重试",e)}))},pushMessage:function(e){var t=this;y.a.post("/public/message/push",{msgType:"NORMAL_MSG",payload:e}).then((function(n){console.log(n.data),200!=n.data["code"]&&setTimeout((function(){return t.pushMessage(e)}),300)})).catch((function(){setTimeout((function(){return t.pushMessage(e)}),300)}))},login:function(e){var t=this;try{var n=this.fetchMIMCTokenResult;this.user=new MIMCUser(n.data.appId,n.data.appAccount,"666"),this.user.registerP2PMsgHandler((function(e){var n=JSON.parse(window.Base64.decode(e.getPayload()));t._receiveP2PMsgCallback&&t._receiveP2PMsgCallback(n)})),this.user.registerFetchToken((function(){return n})),this.user.registerStatusChange((function(e,n,a,r){t._statusChangeCallback&&t._statusChangeCallback(e,n,a,r)})),this.user.registerServerAckHandler((function(e,n,a,r){t._serverAckCallback&&t._serverAckCallback(e,n,a,r)})),this.user.registerDisconnHandler((function(){t._disconnectCallback&&t._disconnectCallback()})),this.user.login(),window.mimcInstance=this,e&&e(),console.log("MIMC登录成功")}catch(a){console.log("MIMC登录失败"),setTimeout((function(){t.login()}),1e3)}},logout:function(){this.user&&(this.user.logout(),this.user=null)},addEventListener:function(e,t){switch(e){case"receiveP2PMsg":this._receiveP2PMsgCallback=t;break;case"statusChange":this._statusChangeCallback=t;break;case"serverAck":this._serverAckCallback=t;break;case"disconnect":this._disconnectCallback=t;break}},sendMessage:function(e,t){var n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.user){var r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,platform:this.platform,transfer_account:0,payload:a+""},o=window.Base64.encode(JSON.stringify(r));return"contacts"!=e&&"pong"!=e&&"welcome"!=e&&"handshake"!=e&&"search_knowledge"!=e&&this.pushMessage(window.Base64.encode(o)),setTimeout((function(){n.user.sendMessage(t.toString(),o)}),150),r}Object(A["Toast"])({message:"服务异常,请刷新重试!"})},createLocalMessage:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r={from_account:parseInt(this.fetchMIMCTokenResult.data.appAccount),to_account:parseInt(t),biz_type:e,version:"0",platform:this.platform,timestamp:parseInt(((new Date).getTime()+" ").substr(0,10)),key:(new Date).getTime(),read:0,transfer_account:parseInt(a),payload:n+""};return r}}}}),P=Y,$={months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY年MM月DD日",LLL:"YYYY年MM月DD日Ah点mm分",LLLL:"YYYY年MM月DD日ddddAh点mm分",l:"YYYY-M-D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}},z=n("c1df");z.locale("zh-cn",$),y.a.defaults.baseURL="/api",y.a.interceptors.request.use((function(e){if(-1!=e.url.indexOf("https://restapi.amap.com/v3/ip"))return e;var t=localStorage.getItem("Token")||"";return e.headers=Object.assign({},{Token:t},e.headers),e}),(function(e){return console.log(e),Promise.reject(e)}));var x={clickToCloseNonZoomable:!1,fullscreenEl:!1};a["default"].use(b.a,x),a["default"].use(D),a["default"].use(P),a["default"].use(L.a),a["default"].config.productionTip=!1,new a["default"]({router:k,store:S,render:function(e){return e(m)}}).$mount("#app")},"7faf":function(e,t,n){"use strict";var a=n("8fba"),r=n.n(a);r.a},"8fba":function(e,t,n){}});
//# sourceMappingURL=app.23ac3c87.js.map
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11c35424"],{"33a5":function(e,t,s){"use strict";var i=s("a2b5"),r=s.n(i);r.a},a2b5:function(e,t,s){},ede1: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:"container"},[e.isShowHeader?s("mt-header",{attrs:{fixed:"",title:"创建工单"}},[s("div",{attrs:{slot:"left"},slot:"left"},[s("mt-button",{attrs:{icon:"back"},on:{click:function(t){return e.$router.go(-1)}}})],1)]):e._e(),s("div",{staticClass:"content",class:{"hide-header":!e.isShowHeader}},[s("div",{staticClass:"field-line arrow-right",on:{click:function(t){e.isShowTypesPicker=!0}}},[s("span",[e._v("类型:")]),s("span",[e._v(e._s(e.selectTyped||"选择工单分类"))])]),s("div",{staticClass:"field-line algin-left"},[s("span",[e._v("标题:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.request.title,expression:"request.title"}],attrs:{type:"text",placeholder:"请输入工单标题~"},domProps:{value:e.request.title},on:{input:function(t){t.target.composing||e.$set(e.request,"title",t.target.value)}}})]),s("div",{staticClass:"field-line algin-left"},[s("span",[e._v("手机:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.request.phone,expression:"request.phone"}],attrs:{type:"number",placeholder:"请输入您的手机~"},domProps:{value:e.request.phone},on:{input:function(t){t.target.composing||e.$set(e.request,"phone",t.target.value)}}})]),s("div",{staticClass:"tip"},[e._v("必填,预留手机号方便客服联系到您~")]),s("div",{staticClass:"field-line algin-left"},[s("span",[e._v("邮箱:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.request.email,expression:"request.email"}],attrs:{type:"email",placeholder:"请输入您的电子邮箱~"},domProps:{value:e.request.email},on:{input:function(t){t.target.composing||e.$set(e.request,"email",t.target.value)}}})]),s("div",{staticClass:"tip"},[e._v("非必填,预留邮箱后若工单回复后会通过邮箱通知您~")]),s("div",{staticClass:"field-line textarea"},[s("span",[e._v("内容:")]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.request.content,expression:"request.content"}],attrs:{placeholder:"请输入您的工单内容~"},domProps:{value:e.request.content},on:{input:function(t){t.target.composing||e.$set(e.request,"content",t.target.value)}}})]),s("div",{staticClass:"field-line arrow-right file"},[s("span",[e._v("附件:")]),s("span",{class:{ed:""!=e.source}},[e._v(e._s(e.source?"已上传附件,重新上传可替换~":"上传附件"))]),s("input",{attrs:{type:"file"},on:{change:e.uploadFile}})]),s("div",{staticClass:"tips"},[e._v("温馨提示:由于客服值班时间原因,工单回复较慢,请您耐心等待~")]),s("span",{staticClass:"sub-btn",on:{click:function(t){return e.submit()}}},[e._v("提交")])]),e.isShowTypesPicker?s("div",{staticClass:"types-sheet"},[s("div",{staticClass:"picker-box"},[s("div",{staticClass:"title"},[s("span",[e._v("选择工单类型")]),s("span",{staticClass:"sub-btn",on:{click:function(t){e.isShowTypesPicker=!1}}},[e._v("确定")])]),s("mt-picker",{attrs:{slots:e.types},on:{change:e.onValuesChange}})],1)]):e._e()],1)},r=[],a=(s("8e6e"),s("ac6a"),s("456d"),s("a481"),s("bd86")),o=s("2f62"),n=s("76a0"),c=s("bc3a"),l=s.n(c);function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?u(Object(s),!0).forEach((function(t){Object(a["a"])(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var d={name:"workorder_create",components:{},data:function(){return{isSubmit:!1,request:{tid:0,title:"",content:"",phone:"",email:""},selectTyped:"",source:"",isShowTypesPicker:!1}},computed:p({},Object(o["b"])(["isShowHeader","workorders","userInfo","workorderTypes","configs","workorderTypes"]),{types:function(){for(var e=[],t=[{flex:1,values:[],className:"workorder-create-picker",textAlign:"center"}],s=0;s<this.workorderTypes.length;s++)e.push(this.workorderTypes[s].title);return t[0].values=e,t}}),mounted:function(){},methods:{onValuesChange:function(e,t){this.selectTyped=t[0];for(var s=0;s<this.workorderTypes.length;s++)if(t[0]==this.workorderTypes[s].title){this.request.tid=this.workorderTypes[s].id;break}console.log(e)},uploadFile:function(e){var t=e.target,s=t.files[0];this.isShowUploadLoading=!0;var i=this;this.$uploadFile({file:s,mode:this.configs.upload_mode,percent:function(){},success:function(e){var t;i.isShowUploadLoading=!1;var s=i.configs.upload_host+"/"+e,r=e.substr(e.lastIndexOf(".")+1);-1!="jpg,jpeg,png,JPG,JPEG,PNG".indexOf(r)?t="<br><img style='max-width:45%;margin-top:5px;' preview='1' src='"+s+"' />":(t="<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />",t+="<a target='_blank' style='color: #2e9dfc;' href='"+s+"'>下载附件</a>"),i.source=t,Object(n["Toast"])({message:"上传成功~"})},fail:function(e){i.isShowUploadLoading=!1,e.response&&e.response.data&&Object(n["Toast"])({message:e.response.data.message})}})},submit:function(){var e=this;0!=this.request.tid?""!=this.request.title.trim()?""!=this.request.content.trim()?this.isSubmit||(this.isSubmit=!0,this.request.content+=this.source,l.a.post("/public/workorder/create",this.request).then((function(t){e.isSubmit=!1,Object(n["Toast"])({message:"工单创建成功~"}),setTimeout((function(){return e.$router.replace("/workorder/detail/"+t.data.data)}),500)})).catch((function(t){e.isSubmit=!1,Object(n["Toast"])({message:t.response.data.message}),console.log(t)}))):Object(n["Toast"])({message:"工单内容不能为空!"}):Object(n["Toast"])({message:"工单标题不能为空!"}):Object(n["Toast"])({message:"请选择工单类型!"})}}},m=d,h=(s("33a5"),s("2877")),f=Object(h["a"])(m,i,r,!1,null,"51923d50",null);t["default"]=f.exports}}]);
//# sourceMappingURL=chunk-11c35424.75674ec0.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/workorder_create.vue?bc0f","webpack:///./src/views/workorder_create.vue?9a43","webpack:///src/views/workorder_create.vue","webpack:///./src/views/workorder_create.vue?1481","webpack:///./src/views/workorder_create.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","on","$event","$router","go","_e","class","isShowHeader","isShowTypesPicker","_v","_s","selectTyped","directives","name","rawName","value","request","expression","domProps","target","composing","$set","source","uploadFile","submit","types","onValuesChange","staticRenderFns","components","data","isSubmit","computed","values","i","workorderTypes","length","push","title","mounted","methods","tid","id","console","log","_","fileDom","e","file","files","isShowUploadLoading","$uploadFile","mode","configs","upload_mode","percent","success","html","self","fullPath","upload_host","src","fileType","substr","lastIndexOf","indexOf","message","fail","response","content","component"],"mappings":"kHAAA,yBAA+iB,EAAG,G,gECAljB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAAEN,EAAgB,aAAEI,EAAG,YAAY,CAACG,MAAM,CAAC,MAAQ,GAAG,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACG,MAAM,CAAC,KAAO,QAAQC,KAAK,QAAQ,CAACJ,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,QAAQE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,QAAQC,IAAI,QAAQ,KAAKZ,EAAIa,KAAKT,EAAG,MAAM,CAACE,YAAY,UAAUQ,MAAM,CAAC,eAAgBd,EAAIe,eAAe,CAACX,EAAG,MAAM,CAACE,YAAY,yBAAyBG,GAAG,CAAC,MAAQ,SAASC,GAAQV,EAAIgB,mBAAoB,KAAQ,CAACZ,EAAG,OAAO,CAACJ,EAAIiB,GAAG,SAASb,EAAG,OAAO,CAACJ,EAAIiB,GAAGjB,EAAIkB,GAAGlB,EAAImB,aAAe,eAAef,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,OAAO,CAACJ,EAAIiB,GAAG,SAASb,EAAG,QAAQ,C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SAAStC,MAC3B,OAAZ,WAAY,CAAZ,CACcoC,QAASnB,EAAEqB,SAAStC,KAAKoC,cAOnCzC,OAjDJ,WAiDA,WACA,oBAMA,8BAMA,gCAMA,gBACM/B,KAAKqC,UAAW,EAChBrC,KAAKuB,QAAQoD,SAAW3E,KAAK6B,OAC7B,EAAN,EACA,8CACA,kBACQ,EAAR,YACQ,OAAR,WAAQ,CAAR,CACU,QAAV,YAEQ,YAAR,WAAU,OAAV,8DAEA,mBACQ,EAAR,YACQ,OAAR,WAAQ,CAAR,CACU,QAAV,0BAEQ,QAAR,WAtBQ,OAAR,WAAQ,CAAR,CACU2C,QAAS,cAPX,OAAR,WAAQ,CAAR,CACUA,QAAS,cAPX,OAAR,WAAQ,CAAR,CACUA,QAAS,gBC7J0W,I,wBCQzXI,EAAY,eACd,EACA9E,EACAoC,GACA,EACA,KACA,WACA,MAIa,aAAA0C,E","file":"js/chunk-1a4e3cd3.81b30056.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=style&index=0&id=7cace18b&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=style&index=0&id=7cace18b&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(_vm.isShowHeader)?_c('mt-header',{attrs:{\"fixed\":\"\",\"title\":\"创建工单\"}},[_c('div',{attrs:{\"slot\":\"left\"},slot:\"left\"},[_c('mt-button',{attrs:{\"icon\":\"back\"},on:{\"click\":function($event){return _vm.$router.go(-1)}}})],1)]):_vm._e(),_c('div',{staticClass:\"content\",class:{'hide-header': !_vm.isShowHeader}},[_c('div',{staticClass:\"field-line arrow-right\",on:{\"click\":function($event){_vm.isShowTypesPicker = true}}},[_c('span',[_vm._v(\"类型:\")]),_c('span',[_vm._v(_vm._s(_vm.selectTyped || '选择工单分类'))])]),_c('div',{staticClass:\"field-line algin-left\"},[_c('span',[_vm._v(\"标题:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.title),expression:\"request.title\"}],attrs:{\"type\":\"text\",\"placeholder\":\"请输入工单标题~\"},domProps:{\"value\":(_vm.request.title)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"title\", $event.target.value)}}})]),_c('div',{staticClass:\"field-line algin-left\"},[_c('span',[_vm._v(\"手机:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.phone),expression:\"request.phone\"}],attrs:{\"type\":\"number\",\"placeholder\":\"请输入您的手机~\"},domProps:{\"value\":(_vm.request.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"phone\", $event.target.value)}}})]),_c('div',{staticClass:\"tip\"},[_vm._v(\"必填,预留手机号方便客服联系到您~\")]),_c('div',{staticClass:\"field-line algin-left\"},[_c('span',[_vm._v(\"邮箱:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.email),expression:\"request.email\"}],attrs:{\"type\":\"email\",\"placeholder\":\"请输入您的电子邮箱~\"},domProps:{\"value\":(_vm.request.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"email\", $event.target.value)}}})]),_c('div',{staticClass:\"tip\"},[_vm._v(\"非必填,预留邮箱后若工单回复后会通过邮箱通知您~\")]),_c('div',{staticClass:\"field-line textarea\"},[_c('span',[_vm._v(\"内容:\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.content),expression:\"request.content\"}],attrs:{\"placeholder\":\"请输入您的工单内容~\"},domProps:{\"value\":(_vm.request.content)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"content\", $event.target.value)}}})]),_c('div',{staticClass:\"field-line arrow-right file\"},[_c('span',[_vm._v(\"附件:\")]),_c('span',{class:{'ed': _vm.source != ''}},[_vm._v(_vm._s(_vm.source ? '已上传附件,重新上传可替换~' : '上传附件'))]),_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":_vm.uploadFile}})]),_c('div',{staticClass:\"tips\"},[_vm._v(\"温馨提示:由于工作时间原因,工单回复较慢,请您耐心等待~\")]),_c('span',{staticClass:\"sub-btn\",on:{\"click\":function($event){return _vm.submit()}}},[_vm._v(\"提交\")])]),(_vm.isShowTypesPicker)?_c('div',{staticClass:\"types-sheet\"},[_c('div',{staticClass:\"picker-box\"},[_c('div',{staticClass:\"title\"},[_c('span',[_vm._v(\"选择工单类型\")]),_c('span',{staticClass:\"sub-btn\",on:{\"click\":function($event){_vm.isShowTypesPicker = false}}},[_vm._v(\"确定\")])]),_c('mt-picker',{attrs:{\"slots\":_vm.types},on:{\"change\":_vm.onValuesChange}})],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"container\">\n <mt-header v-if=\"isShowHeader\" fixed title=\"创建工单\">\n <div slot=\"left\">\n <mt-button @click=\"$router.go(-1)\" icon=\"back\"></mt-button>\n </div>\n </mt-header>\n <div class=\"content\" :class=\"{'hide-header': !isShowHeader}\">\n\n <div class=\"field-line arrow-right\" @click=\"isShowTypesPicker = true\">\n <span>类型:</span>\n <span>{{selectTyped || '选择工单分类'}}</span>\n </div>\n <div class=\"field-line algin-left\">\n <span>标题:</span>\n <input type=\"text\" v-model=\"request.title\" placeholder=\"请输入工单标题~\">\n </div>\n <div class=\"field-line algin-left\">\n <span>手机:</span>\n <input type=\"number\" v-model=\"request.phone\" placeholder=\"请输入您的手机~\">\n </div>\n <div class=\"tip\">必填,预留手机号方便客服联系到您~</div>\n <div class=\"field-line algin-left\">\n <span>邮箱:</span>\n <input type=\"email\" v-model=\"request.email\" placeholder=\"请输入您的电子邮箱~\">\n </div>\n <div class=\"tip\">非必填,预留邮箱后若工单回复后会通过邮箱通知您~</div>\n <div class=\"field-line textarea\">\n <span>内容:</span>\n <textarea v-model=\"request.content\" placeholder=\"请输入您的工单内容~\"></textarea>\n </div>\n <div class=\"field-line arrow-right file\">\n <span>附件:</span>\n <span :class=\"{'ed': source != ''}\">{{source ? '已上传附件,重新上传可替换~' : '上传附件'}}</span>\n <input type=\"file\" @change=\"uploadFile\" />\n </div>\n <div class=\"tips\">温馨提示:由于工作时间原因,工单回复较慢,请您耐心等待~</div>\n <span class=\"sub-btn\" @click=\"submit()\">提交</span>\n </div>\n\n <!-- types-sheet -->\n <div class=\"types-sheet\" v-if=\"isShowTypesPicker\">\n <!-- <div class=\"mask\" @click=\"isShowTypesPicker = false\"></div> -->\n <div class=\"picker-box\">\n <div class=\"title\">\n <span>选择工单类型</span>\n <span class=\"sub-btn\" @click=\"isShowTypesPicker = false\">确定</span>\n </div>\n <mt-picker :slots=\"types\" @change=\"onValuesChange\"></mt-picker>\n </div>\n </div>\n\n </div>\n</template>\n<script>\nimport { mapGetters } from \"vuex\";\nimport { Toast } from \"mint-ui\";\nimport axios from \"axios\";\nexport default {\n name: \"workorder_create\",\n components: {},\n data() {\n return {\n isSubmit: false,\n request: {\n \"tid\": 0,\n \"title\": \"\",\n \"content\": \"\",\n \"phone\": \"\",\n \"email\": \"\"\n },\n selectTyped: \"\",\n source: \"\",\n isShowTypesPicker: false\n };\n },\n computed: {\n ...mapGetters([\n \"isShowHeader\",\n \"workorders\",\n \"userInfo\",\n \"workorderTypes\",\n \"configs\",\n \"workorderTypes\"\n ]),\n types() {\n var values = [];\n var slot = [\n {\n flex: 1,\n values: [],\n className: \"workorder-create-picker\",\n textAlign: \"center\"\n }\n ];\n for (var i = 0; i < this.workorderTypes.length; i++) {\n values.push(this.workorderTypes[i].title);\n }\n slot[0].values = values;\n return slot;\n }\n },\n mounted() {\n \n },\n methods: {\n onValuesChange(_, values) {\n this.selectTyped = values[0]\n for(var i=0; i<this.workorderTypes.length; i++){\n if(values[0] == this.workorderTypes[i].title){\n this.request.tid = this.workorderTypes[i].id\n break\n }\n }\n console.log(_)\n },\n uploadFile(e) {\n var fileDom = e.target;\n var file = fileDom.files[0];\n this.isShowUploadLoading = true;\n const self = this;\n this.$uploadFile({\n file,\n mode: this.configs.upload_mode,\n // 七牛才会执行\n percent() {},\n success(src) {\n\n self.isShowUploadLoading = false;\n var html\n var fullPath = self.configs.upload_host + \"/\" + src;\n var fileType = src.substr(src.lastIndexOf(\".\") + 1);\n if (\"jpg,jpeg,png,JPG,JPEG,PNG\".indexOf(fileType) != -1) {\n html = \"<br><img style='max-width:45%;margin-top:5px;' preview='1' src='\" + fullPath + \"' />\"\n }else{\n html = \"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />\"\n html += \"<a target='_blank' style='color: #2e9dfc;' href='\"+fullPath+\"'>下载附件</a>\"\n }\n self.source = html\n Toast({\n message: \"上传成功~\"\n });\n },\n fail(e) {\n self.isShowUploadLoading = false;\n if (e.response && e.response.data) {\n Toast({\n message: e.response.data.message\n });\n return;\n }\n }\n });\n },\n submit(){\n if(this.request.tid == 0){\n Toast({\n message: \"请选择工单类型!\"\n });\n return\n }\n if(this.request.title.trim() == \"\"){\n Toast({\n message: \"工单标题不能为空!\"\n });\n return\n }\n if(this.request.content.trim() == \"\"){\n Toast({\n message: \"工单内容不能为空!\"\n });\n return\n }\n if(this.isSubmit) return\n this.isSubmit = true\n this.request.content += this.source\n axios\n .post(\"/public/workorder/create\", this.request)\n .then(response => {\n this.isSubmit = false\n Toast({\n message: \"工单创建成功~\"\n });\n setTimeout(()=>this.$router.replace(\"/workorder/detail/\"+response.data.data), 500)\n })\n .catch(error => {\n this.isSubmit = false\n Toast({\n message: error.response.data.message\n });\n console.log(error);\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.content {\n padding 50px 10px\n .field-line{\n display flex\n justify-content space-between\n box-sizing border-box\n height 45px\n border-bottom 1px solid #ddd\n align-content center\n align-items center\n font-size 14px\n color #333\n span:first-child{\n width 35px\n }\n input{\n flex-grow 1\n padding-left 10px\n height 100%\n background none \n border 0\n color #333\n font-size 14px\n border-radius 0\n }\n &.algin-left{\n align-content left \n align-items left\n }\n &.arrow-right{\n background url(./../assets/arrow.png) right center no-repeat\n background-size 18px\n padding-right 25px\n }\n &.file{\n position relative\n overflow hidden\n margin-top 20px\n border-top 1px solid #ddd\n .ed{\n color #8bc34a\n }\n input{\n font-size 100px\n opacity 0\n position absolute\n top 0\n right 0\n }\n }\n &.textarea{\n align-items start\n align-content start\n border-bottom 0\n padding-top 10px\n height 100px\n textarea{\n flex-grow 1\n border 0\n height 100%\n resize none\n color #333\n font-size 14px\n padding 3px 10px\n background-color rgba(0, 0, 0, 0.03);\n border-radius 3px\n }\n }\n }\n .tip{\n font-size 11px\n color #ff9800\n }\n &.hide-header {\n padding-top: 0;\n }\n .sub-btn {\n display: block;\n width: 100%;\n height: 45px;\n color: #fff;\n margin-top 30px\n line-height: 45px;\n text-align: center;\n border-radius: 3px;\n border: none;\n font-size: 14px;\n background: linear-gradient(to right, #26a2ff, #736cde);\n flex-shrink: 0;\n\n &:active {\n opacity: 0.8;\n }\n }\n}\n.types-sheet{\n width 100vw;\n height 100vh\n position fixed\n top 0\n left 0\n right 0\n bottom 0\n margin auto\n background-color rgba(0,0,0,.5)\n // .mask{\n // width 100vw;\n // height 100vh\n // background-color rgba(0,0,0,.5)\n // }\n .picker-box{\n height 250px\n width 100vw\n position absolute\n bottom 0\n left 0\n right 0\n margin 0 auto\n background-color #fff\n }\n .title{\n height 35px\n border-bottom 1px solid #f3f3f3\n display flex\n justify-content space-between\n padding 0 10px\n box-sizing border-box\n align-content center\n align-items center\n span{\n font-size 14px\n color #333\n }\n .sub-btn {\n display: block;\n width: 55px;\n height: 30px;\n color: #26a2ff\n line-height: 30px;\n text-align: right;\n font-size: 14px;\n font-weight 900\n &:active {\n opacity: 0.8;\n }\n }\n }\n}\n.tips{\n font-size 12px\n color red\n padding 10px 0\n}\n</style>\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder_create.vue?vue&type=template&id=7cace18b&scoped=true&\"\nimport script from \"./workorder_create.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder_create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder_create.vue?vue&type=style&index=0&id=7cace18b&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7cace18b\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///./src/views/workorder_create.vue?6158","webpack:///./src/views/workorder_create.vue?fcad","webpack:///src/views/workorder_create.vue","webpack:///./src/views/workorder_create.vue?1481","webpack:///./src/views/workorder_create.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","slot","on","$event","$router","go","_e","class","isShowHeader","isShowTypesPicker","_v","_s","selectTyped","directives","name","rawName","value","request","expression","domProps","target","composing","$set","source","uploadFile","submit","types","onValuesChange","staticRenderFns","components","data","isSubmit","computed","values","i","workorderTypes","length","push","title","mounted","methods","tid","id","console","log","_","fileDom","e","file","files","isShowUploadLoading","$uploadFile","mode","configs","upload_mode","percent","success","html","self","fullPath","upload_host","src","fileType","substr","lastIndexOf","indexOf","message","fail","response","content","component"],"mappings":"kHAAA,yBAA+iB,EAAG,G,gECAljB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAAEN,EAAgB,aAAEI,EAAG,YAAY,CAACG,MAAM,CAAC,MAAQ,GAAG,MAAQ,SAAS,CAACH,EAAG,MAAM,CAACG,MAAM,CAAC,KAAO,QAAQC,KAAK,QAAQ,CAACJ,EAAG,YAAY,CAACG,MAAM,CAAC,KAAO,QAAQE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIW,QAAQC,IAAI,QAAQ,KAAKZ,EAAIa,KAAKT,EAAG,MAAM,CAACE,YAAY,UAAUQ,MAAM,CAAC,eAAgBd,EAAIe,eAAe,CAACX,EAAG,MAAM,CAACE,YAAY,yBAAyBG,GAAG,CAAC,MAAQ,SAASC,GAAQV,EAAIgB,mBAAoB,KAAQ,CAACZ,EAAG,OAAO,CAACJ,EAAIiB,GAAG,SAASb,EAAG,OAAO,CAACJ,EAAIiB,GAAGjB,EAAIkB,GAAGlB,EAAImB,aAAe,eAAef,E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V,CACYS,QAAS,WAGbC,KAtBR,SAsBA,GACUT,EAAKR,qBAAsB,EACvBH,EAAEqB,UAAYrB,EAAEqB,SAAStC,MAC3B,OAAZ,WAAY,CAAZ,CACcoC,QAASnB,EAAEqB,SAAStC,KAAKoC,cAOnCzC,OAjDJ,WAiDA,WACA,oBAMA,8BAMA,gCAMA,gBACM/B,KAAKqC,UAAW,EAChBrC,KAAKuB,QAAQoD,SAAW3E,KAAK6B,OAC7B,EAAN,EACA,8CACA,kBACQ,EAAR,YACQ,OAAR,WAAQ,CAAR,CACU,QAAV,YAEQ,YAAR,WAAU,OAAV,8DAEA,mBACQ,EAAR,YACQ,OAAR,WAAQ,CAAR,CACU,QAAV,0BAEQ,QAAR,WAtBQ,OAAR,WAAQ,CAAR,CACU2C,QAAS,cAPX,OAAR,WAAQ,CAAR,CACUA,QAAS,cAPX,OAAR,WAAQ,CAAR,CACUA,QAAS,gBC7J0W,I,wBCQzXI,EAAY,eACd,EACA9E,EACAoC,GACA,EACA,KACA,WACA,MAIa,aAAA0C,E","file":"js/chunk-11c35424.75674ec0.js","sourcesContent":["import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=style&index=0&id=51923d50&lang=stylus&scoped=true&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/index.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/stylus-loader/index.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=style&index=0&id=51923d50&lang=stylus&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[(_vm.isShowHeader)?_c('mt-header',{attrs:{\"fixed\":\"\",\"title\":\"创建工单\"}},[_c('div',{attrs:{\"slot\":\"left\"},slot:\"left\"},[_c('mt-button',{attrs:{\"icon\":\"back\"},on:{\"click\":function($event){return _vm.$router.go(-1)}}})],1)]):_vm._e(),_c('div',{staticClass:\"content\",class:{'hide-header': !_vm.isShowHeader}},[_c('div',{staticClass:\"field-line arrow-right\",on:{\"click\":function($event){_vm.isShowTypesPicker = true}}},[_c('span',[_vm._v(\"类型:\")]),_c('span',[_vm._v(_vm._s(_vm.selectTyped || '选择工单分类'))])]),_c('div',{staticClass:\"field-line algin-left\"},[_c('span',[_vm._v(\"标题:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.title),expression:\"request.title\"}],attrs:{\"type\":\"text\",\"placeholder\":\"请输入工单标题~\"},domProps:{\"value\":(_vm.request.title)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"title\", $event.target.value)}}})]),_c('div',{staticClass:\"field-line algin-left\"},[_c('span',[_vm._v(\"手机:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.phone),expression:\"request.phone\"}],attrs:{\"type\":\"number\",\"placeholder\":\"请输入您的手机~\"},domProps:{\"value\":(_vm.request.phone)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"phone\", $event.target.value)}}})]),_c('div',{staticClass:\"tip\"},[_vm._v(\"必填,预留手机号方便客服联系到您~\")]),_c('div',{staticClass:\"field-line algin-left\"},[_c('span',[_vm._v(\"邮箱:\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.email),expression:\"request.email\"}],attrs:{\"type\":\"email\",\"placeholder\":\"请输入您的电子邮箱~\"},domProps:{\"value\":(_vm.request.email)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"email\", $event.target.value)}}})]),_c('div',{staticClass:\"tip\"},[_vm._v(\"非必填,预留邮箱后若工单回复后会通过邮箱通知您~\")]),_c('div',{staticClass:\"field-line textarea\"},[_c('span',[_vm._v(\"内容:\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.request.content),expression:\"request.content\"}],attrs:{\"placeholder\":\"请输入您的工单内容~\"},domProps:{\"value\":(_vm.request.content)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.request, \"content\", $event.target.value)}}})]),_c('div',{staticClass:\"field-line arrow-right file\"},[_c('span',[_vm._v(\"附件:\")]),_c('span',{class:{'ed': _vm.source != ''}},[_vm._v(_vm._s(_vm.source ? '已上传附件,重新上传可替换~' : '上传附件'))]),_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":_vm.uploadFile}})]),_c('div',{staticClass:\"tips\"},[_vm._v(\"温馨提示:由于客服值班时间原因,工单回复较慢,请您耐心等待~\")]),_c('span',{staticClass:\"sub-btn\",on:{\"click\":function($event){return _vm.submit()}}},[_vm._v(\"提交\")])]),(_vm.isShowTypesPicker)?_c('div',{staticClass:\"types-sheet\"},[_c('div',{staticClass:\"picker-box\"},[_c('div',{staticClass:\"title\"},[_c('span',[_vm._v(\"选择工单类型\")]),_c('span',{staticClass:\"sub-btn\",on:{\"click\":function($event){_vm.isShowTypesPicker = false}}},[_vm._v(\"确定\")])]),_c('mt-picker',{attrs:{\"slots\":_vm.types},on:{\"change\":_vm.onValuesChange}})],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"container\">\n <mt-header v-if=\"isShowHeader\" fixed title=\"创建工单\">\n <div slot=\"left\">\n <mt-button @click=\"$router.go(-1)\" icon=\"back\"></mt-button>\n </div>\n </mt-header>\n <div class=\"content\" :class=\"{'hide-header': !isShowHeader}\">\n\n <div class=\"field-line arrow-right\" @click=\"isShowTypesPicker = true\">\n <span>类型:</span>\n <span>{{selectTyped || '选择工单分类'}}</span>\n </div>\n <div class=\"field-line algin-left\">\n <span>标题:</span>\n <input type=\"text\" v-model=\"request.title\" placeholder=\"请输入工单标题~\">\n </div>\n <div class=\"field-line algin-left\">\n <span>手机:</span>\n <input type=\"number\" v-model=\"request.phone\" placeholder=\"请输入您的手机~\">\n </div>\n <div class=\"tip\">必填,预留手机号方便客服联系到您~</div>\n <div class=\"field-line algin-left\">\n <span>邮箱:</span>\n <input type=\"email\" v-model=\"request.email\" placeholder=\"请输入您的电子邮箱~\">\n </div>\n <div class=\"tip\">非必填,预留邮箱后若工单回复后会通过邮箱通知您~</div>\n <div class=\"field-line textarea\">\n <span>内容:</span>\n <textarea v-model=\"request.content\" placeholder=\"请输入您的工单内容~\"></textarea>\n </div>\n <div class=\"field-line arrow-right file\">\n <span>附件:</span>\n <span :class=\"{'ed': source != ''}\">{{source ? '已上传附件,重新上传可替换~' : '上传附件'}}</span>\n <input type=\"file\" @change=\"uploadFile\" />\n </div>\n <div class=\"tips\">温馨提示:由于客服值班时间原因,工单回复较慢,请您耐心等待~</div>\n <span class=\"sub-btn\" @click=\"submit()\">提交</span>\n </div>\n\n <!-- types-sheet -->\n <div class=\"types-sheet\" v-if=\"isShowTypesPicker\">\n <!-- <div class=\"mask\" @click=\"isShowTypesPicker = false\"></div> -->\n <div class=\"picker-box\">\n <div class=\"title\">\n <span>选择工单类型</span>\n <span class=\"sub-btn\" @click=\"isShowTypesPicker = false\">确定</span>\n </div>\n <mt-picker :slots=\"types\" @change=\"onValuesChange\"></mt-picker>\n </div>\n </div>\n\n </div>\n</template>\n<script>\nimport { mapGetters } from \"vuex\";\nimport { Toast } from \"mint-ui\";\nimport axios from \"axios\";\nexport default {\n name: \"workorder_create\",\n components: {},\n data() {\n return {\n isSubmit: false,\n request: {\n \"tid\": 0,\n \"title\": \"\",\n \"content\": \"\",\n \"phone\": \"\",\n \"email\": \"\"\n },\n selectTyped: \"\",\n source: \"\",\n isShowTypesPicker: false\n };\n },\n computed: {\n ...mapGetters([\n \"isShowHeader\",\n \"workorders\",\n \"userInfo\",\n \"workorderTypes\",\n \"configs\",\n \"workorderTypes\"\n ]),\n types() {\n var values = [];\n var slot = [\n {\n flex: 1,\n values: [],\n className: \"workorder-create-picker\",\n textAlign: \"center\"\n }\n ];\n for (var i = 0; i < this.workorderTypes.length; i++) {\n values.push(this.workorderTypes[i].title);\n }\n slot[0].values = values;\n return slot;\n }\n },\n mounted() {\n \n },\n methods: {\n onValuesChange(_, values) {\n this.selectTyped = values[0]\n for(var i=0; i<this.workorderTypes.length; i++){\n if(values[0] == this.workorderTypes[i].title){\n this.request.tid = this.workorderTypes[i].id\n break\n }\n }\n console.log(_)\n },\n uploadFile(e) {\n var fileDom = e.target;\n var file = fileDom.files[0];\n this.isShowUploadLoading = true;\n const self = this;\n this.$uploadFile({\n file,\n mode: this.configs.upload_mode,\n // 七牛才会执行\n percent() {},\n success(src) {\n\n self.isShowUploadLoading = false;\n var html\n var fullPath = self.configs.upload_host + \"/\" + src;\n var fileType = src.substr(src.lastIndexOf(\".\") + 1);\n if (\"jpg,jpeg,png,JPG,JPEG,PNG\".indexOf(fileType) != -1) {\n html = \"<br><img style='max-width:45%;margin-top:5px;' preview='1' src='\" + fullPath + \"' />\"\n }else{\n html = \"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />\"\n html += \"<a target='_blank' style='color: #2e9dfc;' href='\"+fullPath+\"'>下载附件</a>\"\n }\n self.source = html\n Toast({\n message: \"上传成功~\"\n });\n },\n fail(e) {\n self.isShowUploadLoading = false;\n if (e.response && e.response.data) {\n Toast({\n message: e.response.data.message\n });\n return;\n }\n }\n });\n },\n submit(){\n if(this.request.tid == 0){\n Toast({\n message: \"请选择工单类型!\"\n });\n return\n }\n if(this.request.title.trim() == \"\"){\n Toast({\n message: \"工单标题不能为空!\"\n });\n return\n }\n if(this.request.content.trim() == \"\"){\n Toast({\n message: \"工单内容不能为空!\"\n });\n return\n }\n if(this.isSubmit) return\n this.isSubmit = true\n this.request.content += this.source\n axios\n .post(\"/public/workorder/create\", this.request)\n .then(response => {\n this.isSubmit = false\n Toast({\n message: \"工单创建成功~\"\n });\n setTimeout(()=>this.$router.replace(\"/workorder/detail/\"+response.data.data), 500)\n })\n .catch(error => {\n this.isSubmit = false\n Toast({\n message: error.response.data.message\n });\n console.log(error);\n });\n }\n }\n};\n</script>\n<style lang=\"stylus\" scoped>\n.content {\n padding 50px 10px\n .field-line{\n display flex\n justify-content space-between\n box-sizing border-box\n height 45px\n border-bottom 1px solid #ddd\n align-content center\n align-items center\n font-size 14px\n color #333\n span:first-child{\n width 35px\n }\n input{\n flex-grow 1\n padding-left 10px\n height 100%\n background none \n border 0\n color #333\n font-size 14px\n border-radius 0\n }\n &.algin-left{\n align-content left \n align-items left\n }\n &.arrow-right{\n background url(./../assets/arrow.png) right center no-repeat\n background-size 18px\n padding-right 25px\n }\n &.file{\n position relative\n overflow hidden\n margin-top 20px\n border-top 1px solid #ddd\n .ed{\n color #8bc34a\n }\n input{\n font-size 100px\n opacity 0\n position absolute\n top 0\n right 0\n }\n }\n &.textarea{\n align-items start\n align-content start\n border-bottom 0\n padding-top 10px\n height 100px\n textarea{\n flex-grow 1\n border 0\n height 100%\n resize none\n color #333\n font-size 14px\n padding 3px 10px\n background-color rgba(0, 0, 0, 0.03);\n border-radius 3px\n }\n }\n }\n .tip{\n font-size 11px\n color #ff9800\n }\n &.hide-header {\n padding-top: 0;\n }\n .sub-btn {\n display: block;\n width: 100%;\n height: 45px;\n color: #fff;\n margin-top 30px\n line-height: 45px;\n text-align: center;\n border-radius: 3px;\n border: none;\n font-size: 14px;\n background: linear-gradient(to right, #26a2ff, #736cde);\n flex-shrink: 0;\n\n &:active {\n opacity: 0.8;\n }\n }\n}\n.types-sheet{\n width 100vw;\n height 100vh\n position fixed\n top 0\n left 0\n right 0\n bottom 0\n margin auto\n background-color rgba(0,0,0,.5)\n // .mask{\n // width 100vw;\n // height 100vh\n // background-color rgba(0,0,0,.5)\n // }\n .picker-box{\n height 250px\n width 100vw\n position absolute\n bottom 0\n left 0\n right 0\n margin 0 auto\n background-color #fff\n }\n .title{\n height 35px\n border-bottom 1px solid #f3f3f3\n display flex\n justify-content space-between\n padding 0 10px\n box-sizing border-box\n align-content center\n align-items center\n span{\n font-size 14px\n color #333\n }\n .sub-btn {\n display: block;\n width: 55px;\n height: 30px;\n color: #26a2ff\n line-height: 30px;\n text-align: right;\n font-size: 14px;\n font-weight 900\n &:active {\n opacity: 0.8;\n }\n }\n }\n}\n.tips{\n font-size 12px\n color red\n padding 10px 0\n}\n</style>\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workorder_create.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./workorder_create.vue?vue&type=template&id=51923d50&scoped=true&\"\nimport script from \"./workorder_create.vue?vue&type=script&lang=js&\"\nexport * from \"./workorder_create.vue?vue&type=script&lang=js&\"\nimport style0 from \"./workorder_create.vue?vue&type=style&index=0&id=51923d50&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"51923d50\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a4e3cd3"],{"0577":function(e,t,s){"use strict";var i=s("3669"),r=s.n(i);r.a},3669:function(e,t,s){},ede1: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:"container"},[e.isShowHeader?s("mt-header",{attrs:{fixed:"",title:"创建工单"}},[s("div",{attrs:{slot:"left"},slot:"left"},[s("mt-button",{attrs:{icon:"back"},on:{click:function(t){return e.$router.go(-1)}}})],1)]):e._e(),s("div",{staticClass:"content",class:{"hide-header":!e.isShowHeader}},[s("div",{staticClass:"field-line arrow-right",on:{click:function(t){e.isShowTypesPicker=!0}}},[s("span",[e._v("类型:")]),s("span",[e._v(e._s(e.selectTyped||"选择工单分类"))])]),s("div",{staticClass:"field-line algin-left"},[s("span",[e._v("标题:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.request.title,expression:"request.title"}],attrs:{type:"text",placeholder:"请输入工单标题~"},domProps:{value:e.request.title},on:{input:function(t){t.target.composing||e.$set(e.request,"title",t.target.value)}}})]),s("div",{staticClass:"field-line algin-left"},[s("span",[e._v("手机:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.request.phone,expression:"request.phone"}],attrs:{type:"number",placeholder:"请输入您的手机~"},domProps:{value:e.request.phone},on:{input:function(t){t.target.composing||e.$set(e.request,"phone",t.target.value)}}})]),s("div",{staticClass:"tip"},[e._v("必填,预留手机号方便客服联系到您~")]),s("div",{staticClass:"field-line algin-left"},[s("span",[e._v("邮箱:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:e.request.email,expression:"request.email"}],attrs:{type:"email",placeholder:"请输入您的电子邮箱~"},domProps:{value:e.request.email},on:{input:function(t){t.target.composing||e.$set(e.request,"email",t.target.value)}}})]),s("div",{staticClass:"tip"},[e._v("非必填,预留邮箱后若工单回复后会通过邮箱通知您~")]),s("div",{staticClass:"field-line textarea"},[s("span",[e._v("内容:")]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:e.request.content,expression:"request.content"}],attrs:{placeholder:"请输入您的工单内容~"},domProps:{value:e.request.content},on:{input:function(t){t.target.composing||e.$set(e.request,"content",t.target.value)}}})]),s("div",{staticClass:"field-line arrow-right file"},[s("span",[e._v("附件:")]),s("span",{class:{ed:""!=e.source}},[e._v(e._s(e.source?"已上传附件,重新上传可替换~":"上传附件"))]),s("input",{attrs:{type:"file"},on:{change:e.uploadFile}})]),s("div",{staticClass:"tips"},[e._v("温馨提示:由于工作时间原因,工单回复较慢,请您耐心等待~")]),s("span",{staticClass:"sub-btn",on:{click:function(t){return e.submit()}}},[e._v("提交")])]),e.isShowTypesPicker?s("div",{staticClass:"types-sheet"},[s("div",{staticClass:"picker-box"},[s("div",{staticClass:"title"},[s("span",[e._v("选择工单类型")]),s("span",{staticClass:"sub-btn",on:{click:function(t){e.isShowTypesPicker=!1}}},[e._v("确定")])]),s("mt-picker",{attrs:{slots:e.types},on:{change:e.onValuesChange}})],1)]):e._e()],1)},r=[],a=(s("8e6e"),s("ac6a"),s("456d"),s("a481"),s("bd86")),o=s("2f62"),n=s("76a0"),c=s("bc3a"),l=s.n(c);function u(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function p(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?u(Object(s),!0).forEach((function(t){Object(a["a"])(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var d={name:"workorder_create",components:{},data:function(){return{isSubmit:!1,request:{tid:0,title:"",content:"",phone:"",email:""},selectTyped:"",source:"",isShowTypesPicker:!1}},computed:p({},Object(o["b"])(["isShowHeader","workorders","userInfo","workorderTypes","configs","workorderTypes"]),{types:function(){for(var e=[],t=[{flex:1,values:[],className:"workorder-create-picker",textAlign:"center"}],s=0;s<this.workorderTypes.length;s++)e.push(this.workorderTypes[s].title);return t[0].values=e,t}}),mounted:function(){},methods:{onValuesChange:function(e,t){this.selectTyped=t[0];for(var s=0;s<this.workorderTypes.length;s++)if(t[0]==this.workorderTypes[s].title){this.request.tid=this.workorderTypes[s].id;break}console.log(e)},uploadFile:function(e){var t=e.target,s=t.files[0];this.isShowUploadLoading=!0;var i=this;this.$uploadFile({file:s,mode:this.configs.upload_mode,percent:function(){},success:function(e){var t;i.isShowUploadLoading=!1;var s=i.configs.upload_host+"/"+e,r=e.substr(e.lastIndexOf(".")+1);-1!="jpg,jpeg,png,JPG,JPEG,PNG".indexOf(r)?t="<br><img style='max-width:45%;margin-top:5px;' preview='1' src='"+s+"' />":(t="<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />",t+="<a target='_blank' style='color: #2e9dfc;' href='"+s+"'>下载附件</a>"),i.source=t,Object(n["Toast"])({message:"上传成功~"})},fail:function(e){i.isShowUploadLoading=!1,e.response&&e.response.data&&Object(n["Toast"])({message:e.response.data.message})}})},submit:function(){var e=this;0!=this.request.tid?""!=this.request.title.trim()?""!=this.request.content.trim()?this.isSubmit||(this.isSubmit=!0,this.request.content+=this.source,l.a.post("/public/workorder/create",this.request).then((function(t){e.isSubmit=!1,Object(n["Toast"])({message:"工单创建成功~"}),setTimeout((function(){return e.$router.replace("/workorder/detail/"+t.data.data)}),500)})).catch((function(t){e.isSubmit=!1,Object(n["Toast"])({message:t.response.data.message}),console.log(t)}))):Object(n["Toast"])({message:"工单内容不能为空!"}):Object(n["Toast"])({message:"工单标题不能为空!"}):Object(n["Toast"])({message:"请选择工单类型!"})}}},m=d,h=(s("0577"),s("2877")),f=Object(h["a"])(m,i,r,!1,null,"7cace18b",null);t["default"]=f.exports}}]);
//# sourceMappingURL=chunk-1a4e3cd3.81b30056.js.map
\ No newline at end of file
......@@ -1067,6 +1067,51 @@
}
}
},
"@electron/get": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/@electron/get/-/get-1.9.0.tgz",
"integrity": "sha512-OBIKtF6ttIJotDXe4KJMUyTBO4xMii+mFjlA8R4CORuD4HvCUaCK3lPjhdTRCvuEv6gzWNbAvd9DNBv0v780lw==",
"dev": true,
"requires": {
"debug": "^4.1.1",
"env-paths": "^2.2.0",
"fs-extra": "^8.1.0",
"global-agent": "^2.0.2",
"global-tunnel-ng": "^2.7.1",
"got": "^9.6.0",
"progress": "^2.0.3",
"sanitize-filename": "^1.6.2",
"sumchecker": "^3.0.1"
},
"dependencies": {
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"dev": true,
"requires": {
"ms": "^2.1.1"
}
},
"fs-extra": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
"dev": true,
"requires": {
"graceful-fs": "^4.2.0",
"jsonfile": "^4.0.0",
"universalify": "^0.1.0"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"dev": true
}
}
},
"@hapi/address": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz",
......@@ -4608,6 +4653,13 @@
"integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=",
"dev": true
},
"boolean": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.1.tgz",
"integrity": "sha512-HRZPIjPcbwAVQvOTxR4YE3o8Xs98NqbbL1iEZDCz7CL8ql0Lt5iOyJFxfnAB0oFs8Oh02F/lLlg30Mexv46LjA==",
"dev": true,
"optional": true
},
"boxen": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/boxen/-/boxen-3.2.0.tgz",
......@@ -4836,6 +4888,12 @@
"isarray": "^1.0.0"
}
},
"buffer-crc32": {
"version": "0.2.13",
"resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
"integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",
"dev": true
},
"buffer-from": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
......@@ -5916,6 +5974,17 @@
}
}
},
"config-chain": {
"version": "1.1.12",
"resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz",
"integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==",
"dev": true,
"optional": true,
"requires": {
"ini": "^1.3.4",
"proto-list": "~1.2.1"
}
},
"configstore": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/configstore/-/configstore-4.0.0.tgz",
......@@ -7716,22 +7785,14 @@
"dev": true
},
"electron": {
"version": "6.1.6",
"resolved": "https://registry.npmjs.org/electron/-/electron-6.1.6.tgz",
"integrity": "sha512-4c4GiFTbWY2Mgv20HB4Bfhf1hDKb0MWgC35wkwNepNom1ioWfumocPHZrSs1xNAEe+tOmezY6lq74n3LbwTnVQ==",
"version": "8.2.0",
"resolved": "https://registry.npmjs.org/electron/-/electron-8.2.0.tgz",
"integrity": "sha512-mnV43gKCrCUMHLmGws/DU/l8LhaxrFD53A4ofwtthdCqOZWGIdk1+eMphiVumXR5a3lC64XVvmXQ2k28i7F/zw==",
"dev": true,
"requires": {
"@types/node": "^10.12.18",
"electron-download": "^4.1.0",
"@electron/get": "^1.0.1",
"@types/node": "^12.0.12",
"extract-zip": "^1.0.3"
},
"dependencies": {
"@types/node": {
"version": "10.17.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.9.tgz",
"integrity": "sha512-+6VygF9LbG7Gaqeog2G7u1+RUcmo0q1rI+2ZxdIg2fAUngk5Vz9fOCHXdloNUOHEPd1EuuOpL5O0CdgN9Fx5UQ==",
"dev": true
}
}
},
"electron-builder": {
......@@ -7973,42 +8034,6 @@
}
}
},
"electron-download": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/electron-download/-/electron-download-4.1.1.tgz",
"integrity": "sha512-FjEWG9Jb/ppK/2zToP+U5dds114fM1ZOJqMAR4aXXL5CvyPE9fiqBK/9YcwC9poIFQTEJk/EM/zyRwziziRZrg==",
"dev": true,
"requires": {
"debug": "^3.0.0",
"env-paths": "^1.0.0",
"fs-extra": "^4.0.1",
"minimist": "^1.2.0",
"nugget": "^2.0.1",
"path-exists": "^3.0.0",
"rc": "^1.2.1",
"semver": "^5.4.1",
"sumchecker": "^2.0.2"
},
"dependencies": {
"fs-extra": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz",
"integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==",
"dev": true,
"requires": {
"graceful-fs": "^4.1.2",
"jsonfile": "^4.0.0",
"universalify": "^0.1.0"
}
},
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
}
}
},
"electron-publish": {
"version": "21.2.0",
"resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-21.2.0.tgz",
......@@ -8152,9 +8177,9 @@
"dev": true
},
"env-paths": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-1.0.0.tgz",
"integrity": "sha1-QWgTO0K7BcOKNbGuQ5fIKYqzaeA=",
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.0.tgz",
"integrity": "sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA==",
"dev": true
},
"errno": {
......@@ -8220,6 +8245,13 @@
"next-tick": "~1.0.0"
}
},
"es6-error": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz",
"integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
"dev": true,
"optional": true
},
"es6-iterator": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
......@@ -9224,15 +9256,15 @@
}
},
"extract-zip": {
"version": "1.6.7",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz",
"integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=",
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz",
"integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==",
"dev": true,
"requires": {
"concat-stream": "1.6.2",
"debug": "2.6.9",
"mkdirp": "0.5.1",
"yauzl": "2.4.1"
"concat-stream": "^1.6.2",
"debug": "^2.6.9",
"mkdirp": "^0.5.4",
"yauzl": "^2.10.0"
},
"dependencies": {
"debug": {
......@@ -9243,6 +9275,21 @@
"requires": {
"ms": "2.0.0"
}
},
"minimist": {
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
"dev": true
},
"mkdirp": {
"version": "0.5.5",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
"integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
"dev": true,
"requires": {
"minimist": "^1.2.5"
}
}
}
},
......@@ -9296,9 +9343,9 @@
}
},
"fd-slicer": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz",
"integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=",
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
"integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
"dev": true,
"requires": {
"pend": "~1.2.0"
......@@ -10184,6 +10231,38 @@
"integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=",
"dev": true
},
"global-agent": {
"version": "2.1.8",
"resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.1.8.tgz",
"integrity": "sha512-VpBe/rhY6Rw2VDOTszAMNambg+4Qv8j0yiTNDYEXXXxkUNGWLHp8A3ztK4YDBbFNcWF4rgsec6/5gPyryya/+A==",
"dev": true,
"optional": true,
"requires": {
"boolean": "^3.0.0",
"core-js": "^3.6.4",
"es6-error": "^4.1.1",
"matcher": "^2.1.0",
"roarr": "^2.15.2",
"semver": "^7.1.2",
"serialize-error": "^5.0.0"
},
"dependencies": {
"core-js": {
"version": "3.6.4",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.4.tgz",
"integrity": "sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw==",
"dev": true,
"optional": true
},
"semver": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.1.3.tgz",
"integrity": "sha512-ekM0zfiA9SCBlsKa2X1hxyxiI4L3B6EbVJkkdgQXnSEEaHlGdvyodMruTiulSRWMMB4NeIuYNMC9rTKTz97GxA==",
"dev": true,
"optional": true
}
}
},
"global-dirs": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz",
......@@ -10234,11 +10313,34 @@
"which": "^1.2.14"
}
},
"global-tunnel-ng": {
"version": "2.7.1",
"resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz",
"integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==",
"dev": true,
"optional": true,
"requires": {
"encodeurl": "^1.0.2",
"lodash": "^4.17.10",
"npm-conf": "^1.1.3",
"tunnel": "^0.0.6"
}
},
"globals": {
"version": "9.18.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz",
"integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ=="
},
"globalthis": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.1.tgz",
"integrity": "sha512-mJPRTc/P39NH/iNG4mXa9aIhNymaQikTrnspeCa2ZuJ+mH2QN/rXwtX3XwKrHqWgUQFbNZKtHM105aHzJalElw==",
"dev": true,
"optional": true,
"requires": {
"define-properties": "^1.1.3"
}
},
"globby": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz",
......@@ -12031,6 +12133,25 @@
"object-visit": "^1.0.0"
}
},
"matcher": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/matcher/-/matcher-2.1.0.tgz",
"integrity": "sha512-o+nZr+vtJtgPNklyeUKkkH42OsK8WAfdgaJE2FNxcjLPg+5QbeEoT6vRj8Xq/iv18JlQ9cmKsEu0b94ixWf1YQ==",
"dev": true,
"optional": true,
"requires": {
"escape-string-regexp": "^2.0.0"
},
"dependencies": {
"escape-string-regexp": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
"integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
"dev": true,
"optional": true
}
}
},
"math-expression-evaluator": {
"version": "1.2.17",
"resolved": "https://registry.npmjs.org/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz",
......@@ -12661,6 +12782,17 @@
"resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
"integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
},
"npm-conf": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz",
"integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==",
"dev": true,
"optional": true,
"requires": {
"config-chain": "^1.1.11",
"pify": "^3.0.0"
}
},
"npm-run-path": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
......@@ -12678,38 +12810,6 @@
"boolbase": "~1.0.0"
}
},
"nugget": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/nugget/-/nugget-2.0.1.tgz",
"integrity": "sha1-IBCVpIfhrTYIGzQy+jytpPjQcbA=",
"dev": true,
"requires": {
"debug": "^2.1.3",
"minimist": "^1.1.0",
"pretty-bytes": "^1.0.2",
"progress-stream": "^1.1.0",
"request": "^2.45.0",
"single-line-log": "^1.1.2",
"throttleit": "0.0.2"
},
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"dev": true,
"requires": {
"ms": "2.0.0"
}
},
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
}
}
},
"num2fraction": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz",
......@@ -14668,16 +14768,6 @@
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz",
"integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew=="
},
"pretty-bytes": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-1.0.4.tgz",
"integrity": "sha1-CiLoIQYJrTVUL4yNXSFZr/B1HIQ=",
"dev": true,
"requires": {
"get-stdin": "^4.0.1",
"meow": "^3.1.0"
}
},
"pretty-error": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",
......@@ -14709,72 +14799,18 @@
"integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
"dev": true
},
"progress-stream": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/progress-stream/-/progress-stream-1.2.0.tgz",
"integrity": "sha1-LNPP6jO6OonJwSHsM0er6asSX3c=",
"dev": true,
"requires": {
"speedometer": "~0.1.2",
"through2": "~0.2.3"
},
"dependencies": {
"isarray": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
"dev": true
},
"object-keys": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz",
"integrity": "sha1-KKaq50KN0sOpLz2V8hM13SBOAzY=",
"dev": true
},
"readable-stream": {
"version": "1.1.14",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
"dev": true,
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.1",
"isarray": "0.0.1",
"string_decoder": "~0.10.x"
}
},
"string_decoder": {
"version": "0.10.31",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
"dev": true
},
"through2": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/through2/-/through2-0.2.3.tgz",
"integrity": "sha1-6zKE2k6jEbbMis42U3SKUqvyWj8=",
"dev": true,
"requires": {
"readable-stream": "~1.1.9",
"xtend": "~2.1.1"
}
},
"xtend": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz",
"integrity": "sha1-bv7MKk2tjmlixJAbM3znuoe10os=",
"dev": true,
"requires": {
"object-keys": "~0.4.0"
}
}
}
},
"promise-inflight": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
"integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM="
},
"proto-list": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
"integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=",
"dev": true,
"optional": true
},
"proxy-addr": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz",
......@@ -15574,6 +15610,30 @@
"inherits": "^2.0.1"
}
},
"roarr": {
"version": "2.15.3",
"resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.3.tgz",
"integrity": "sha512-AEjYvmAhlyxOeB9OqPUzQCo3kuAkNfuDk/HqWbZdFsqDFpapkTjiw+p4svNEoRLvuqNTxqfL+s+gtD4eDgZ+CA==",
"dev": true,
"optional": true,
"requires": {
"boolean": "^3.0.0",
"detect-node": "^2.0.4",
"globalthis": "^1.0.1",
"json-stringify-safe": "^5.0.1",
"semver-compare": "^1.0.0",
"sprintf-js": "^1.1.2"
},
"dependencies": {
"sprintf-js": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz",
"integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==",
"dev": true,
"optional": true
}
}
},
"run-async": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz",
......@@ -15675,6 +15735,13 @@
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
},
"semver-compare": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz",
"integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=",
"dev": true,
"optional": true
},
"semver-diff": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz",
......@@ -15726,6 +15793,25 @@
}
}
},
"serialize-error": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-5.0.0.tgz",
"integrity": "sha512-/VtpuyzYf82mHYTtI4QKtwHa79vAdU5OQpNPAmE/0UDdlGT0ZxHwC+J6gXkw29wwoVI8fMPsfcVHOwXtUQYYQA==",
"dev": true,
"optional": true,
"requires": {
"type-fest": "^0.8.0"
},
"dependencies": {
"type-fest": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",
"integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
"dev": true,
"optional": true
}
}
},
"serialize-javascript": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz",
......@@ -15873,28 +15959,6 @@
}
}
},
"single-line-log": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/single-line-log/-/single-line-log-1.1.2.tgz",
"integrity": "sha1-wvg/Jzo+GhbtsJlWYdoO1e8DM2Q=",
"dev": true,
"requires": {
"string-width": "^1.0.1"
},
"dependencies": {
"string-width": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"dev": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
"strip-ansi": "^3.0.0"
}
}
}
},
"slash": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz",
......@@ -16200,12 +16264,6 @@
}
}
},
"speedometer": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/speedometer/-/speedometer-0.1.4.tgz",
"integrity": "sha1-mHbb0qFp0xFUAtSObqYynIgWpQ0=",
"dev": true
},
"split-string": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz",
......@@ -16700,22 +16758,28 @@
}
},
"sumchecker": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-2.0.2.tgz",
"integrity": "sha1-D0LBDl0F2l1C7qPlbDOZo31sWz4=",
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz",
"integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==",
"dev": true,
"requires": {
"debug": "^2.2.0"
"debug": "^4.1.0"
},
"dependencies": {
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"dev": true,
"requires": {
"ms": "2.0.0"
"ms": "^2.1.1"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"dev": true
}
}
},
......@@ -17071,12 +17135,6 @@
"resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz",
"integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg=="
},
"throttleit": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz",
"integrity": "sha1-z+34jmDADdlpe2H90qg0OptoDq8=",
"dev": true
},
"through": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
......@@ -17233,6 +17291,13 @@
"resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz",
"integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY="
},
"tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
"dev": true,
"optional": true
},
"tunnel-agent": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
......@@ -19163,12 +19228,13 @@
}
},
"yauzl": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz",
"integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=",
"version": "2.10.0",
"resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
"integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
"dev": true,
"requires": {
"fd-slicer": "~1.0.1"
"buffer-crc32": "~0.2.3",
"fd-slicer": "~1.1.0"
}
},
"yorkie": {
......
......@@ -326,6 +326,7 @@ export default {
},
watch: {
prop() {
this.comments = []
this.getWorkOrder();
setTimeout(() => {
this.$previewRefresh();
......
......@@ -585,7 +585,7 @@ export default {
localMessage = self.$mimcInstance.createLocalMessage(
"photo",
self.account,
self.result
this.result
);
localMessage["percent"] = 0;
localMessage.isShowCancel = true;
......
......@@ -34,7 +34,7 @@
<span :class="{'ed': source != ''}">{{source ? '已上传附件,重新上传可替换~' : '上传附件'}}</span>
<input type="file" @change="uploadFile" />
</div>
<div class="tips">温馨提示:由于工作时间原因,工单回复较慢,请您耐心等待~</div>
<div class="tips">温馨提示:由于客服值班时间原因,工单回复较慢,请您耐心等待~</div>
<span class="sub-btn" @click="submit()">提交</span>
</div>
......
## [2.0.0] - 2020-04-06.
* Adapt v2 server
* Add work order function
## [1.0.1+4] - TODO: Add release date.
* TODO: Fix upload image no avatar
......
......@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:kefu_flutter/kefu_flutter.dart';
void main(){
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(statusBarColor: Color.fromRGBO(0, 0, 0, 0.0)));
......@@ -36,18 +36,16 @@ class MyHomePage extends StatefulWidget {
}
class _MyHomePageState extends State<MyHomePage> {
KeFuStore _keFu;
void _action() {
Navigator.push(context, CupertinoPageRoute(builder: (ctx){
Navigator.push(context, CupertinoPageRoute(builder: (ctx) {
return _keFu.view();
}));
}
@override
void initState() {
// 获得实例并监听数据动态 (1)
// 单列 获取对象
/// 配置信息
......@@ -59,37 +57,32 @@ class _MyHomePageState extends State<MyHomePage> {
/// [mImcTokenData] mimc TokenData 服务端生成
/// [userId] 业务平台ID(扩展使用)
/// [autoLogin] 是否自动登录
/// [delayTime] 延迟登录,默认1500毫秒,以免未实例化完成就调用登录
_keFu = KeFuStore.getInstance(
/// [delayTime] 延迟登录,默认300毫秒,以免未实例化完成就调用登录
_keFu = KeFuStore.init(
debug: true,
autoLogin: true,
host: "http://kf.aissz.com:666/api",
appID: "2882303761518282099",
appKey: "5521828290099",
appSecret: "516JCA60FdP9bHQUdpXK+Q=="
);
appSecret: "516JCA60FdP9bHQUdpXK+Q==");
// 获得实例并监听数据动态 (2)
_keFu.addListener(() async{
_keFu.addListener(() async {
await Future.delayed(Duration(milliseconds: 200));
debugPrint("_keFu对象变动");
_keFu = KeFuStore.instance;
if(mounted) setState(() {});
_keFu = KeFuStore.getInstance;
if (mounted) setState(() {});
});
super.initState();
}
@override
void dispose() {
_keFu?.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
ThemeData themeData = Theme.of(context);
......@@ -102,28 +95,27 @@ class _MyHomePageState extends State<MyHomePage> {
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
RichText(
text: TextSpan(
style: TextStyle(
color: Colors.black
),
children: [
text: TextSpan(style: TextStyle(color: Colors.black), children: [
TextSpan(text: "用户id: ${_keFu.imUser?.id ?? 0} "),
TextSpan(text: "${_keFu.messageReadCount}", style: TextStyle(
TextSpan(
text: "${_keFu.messageReadCount}",
style: TextStyle(
color: Colors.deepOrange,
fontSize: 30.0,
fontWeight: FontWeight.w600
)),
fontWeight: FontWeight.w600)),
TextSpan(text: "条未读消息"),
]
),
]),
),
Text(
'欢迎使用在线客服',
),
RaisedButton(
color: themeData.primaryColor,
child: Text("联系客服", style: TextStyle(color: Colors.white),), onPressed: () => _action()
)
child: Text(
"联系客服",
style: TextStyle(color: Colors.white),
),
onPressed: () => _action())
],
),
),
......
......@@ -57,6 +57,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
csslib:
dependency: transitive
description:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
cupertino_icons:
dependency: "direct main"
description:
......@@ -71,6 +78,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.9"
file_picker:
dependency: transitive
description:
name: file_picker
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.1"
flutter:
dependency: "direct main"
description: flutter
......@@ -83,6 +97,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
flutter_html:
dependency: transitive
description:
name: flutter_html
url: "https://pub.dartlang.org"
source: hosted
version: "0.11.1"
flutter_mimc:
dependency: transitive
description:
......@@ -114,6 +135,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
html:
dependency: transitive
description:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.14.0+3"
http:
dependency: transitive
description:
......@@ -148,7 +176,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.1+4"
version: "2.0.0"
matcher:
dependency: transitive
description:
......
......@@ -19,6 +19,7 @@ import 'models/im_user.dart';
import 'models/knowledge_model.dart';
import 'models/robot.dart';
import 'models/service_user.dart';
import 'models/work_order_type.dart';
import 'utils/im_utils.dart';
import 'widgets/cached_network_image.dart';
import 'widgets/emoji_panel.dart';
......@@ -26,6 +27,7 @@ import 'widgets/knowledge_message.dart';
import 'widgets/photo_message.dart';
import 'widgets/system_message.dart';
import 'widgets/text_message.dart';
import 'widgets/workorder_message.dart';
import 'workorder/index.dart';
/// 创建消息辅助对象
......@@ -46,7 +48,7 @@ class MessageHandle {
/// KeFuStore
class KeFuStore with ChangeNotifier {
/// KeFuStore实例
static KeFuStore instance;
static KeFuStore _instance;
/// http
Dio http;
......@@ -159,6 +161,9 @@ class KeFuStore with ChangeNotifier {
int get toAccount =>
isService && serviceUser != null ? serviceUser.id : robot.id;
// 工单类型集合
List<WorkOrderTypeModel> workOrderTypes = [];
// 单列 获取对象
/// 配置信息
/// mImcTokenData 不为空,即优先使用 mImcTokenData
......@@ -169,8 +174,8 @@ class KeFuStore with ChangeNotifier {
/// [mImcTokenData] mimc TokenData
/// [userId] 业务平台ID(扩展使用)
/// [autoLogin] 是否自动登录
/// [delayTime] 延迟登录,默认1500毫秒,以免未实例化完成就调用登录
static KeFuStore getInstance(
/// [delayTime] 延迟登录,默认300毫秒,以免未实例化完成就调用登录
static KeFuStore init(
{String host,
String appID,
String appKey,
......@@ -178,7 +183,7 @@ class KeFuStore with ChangeNotifier {
String mimcToken,
int userId = 0,
bool autoLogin = true,
int delayTime = 1500,
int delayTime = 300,
bool debug = false}) {
assert(host != null);
apiHost = host;
......@@ -190,10 +195,10 @@ class KeFuStore with ChangeNotifier {
platformUserId = userId;
isAutoLogin = autoLogin;
delayLoginTime = delayTime < 1000 ? 1000 : delayTime;
if (instance == null) {
instance = KeFuStore();
if (_instance == null) {
_instance = KeFuStore();
}
return instance;
return _instance;
}
/// 构造器
......@@ -203,6 +208,9 @@ class KeFuStore with ChangeNotifier {
_init();
}
// 获取实例
static get getInstance => _instance;
/// 初始化
Future<void> _init() async {
await _prefsInstance();
......@@ -218,6 +226,7 @@ class KeFuStore with ChangeNotifier {
_onServciceLastMessageTimeNotCallBack();
getMessageRecord();
_currentIsService();
getWorkOrderTypes();
if (isAutoLogin) loginIm();
}
......@@ -237,6 +246,16 @@ class KeFuStore with ChangeNotifier {
}
}
// GET workorder types
Future<void> getWorkOrderTypes() async {
Response res = await http.get('/public/workorder/types');
if (res.data['code'] == 200) {
workOrderTypes = (res.data['data'] as List)
.map((i) => WorkOrderTypeModel.fromJson(i))
.toList();
}
}
// 获取客服View页面
Widget view() => _KeFu();
......@@ -364,7 +383,7 @@ class KeFuStore with ChangeNotifier {
List<ImMessage> _msgs = (response.data['data']['list'] as List)
.map((i) => _handlerMessage(ImMessage.fromJson(i)))
.toList();
for(var i=0; i<_msgs.length; i++){
for (var i = 0; i < _msgs.length; i++) {
_msgs[i].payload = utf8.decode(base64Decode(_msgs[i].payload));
}
if (_msgs.length < pageSize) {
......@@ -669,15 +688,51 @@ class KeFuStore with ChangeNotifier {
/// 上传发送图片
void sendPhoto(File file) async {
debugPrint("${imConfigs.toJson()}");
MessageHandle msgHandle;
try {
if (file == null) return;
MessageHandle msgHandle;
msgHandle = createMessage(
toAccount: toAccount, msgType: "photo", content: file.path);
messagesRecord.add(_handlerMessage(msgHandle.localMessage));
notifyListeners();
void uploadSuccess(url) async {
msgHandle.localMessage.isShowCancel = true;
msgHandle.localMessage.payload = url;
notifyListeners();
ImMessage sendMsg = ImMessage.fromJson(json
.decode(utf8.decode(base64Decode(msgHandle.sendMessage.payload))));
sendMsg.payload = url;
msgHandle.sendMessage.payload =
base64Encode(utf8.encode(json.encode(sendMsg.toJson())));
sendMessage(msgHandle.clone()..localMessage.payload = url);
await Future.delayed(Duration(milliseconds: 10000));
msgHandle.localMessage.isShowCancel = false;
notifyListeners();
}
// uploadFile
uploadFile(file, success: uploadSuccess,
onSendProgress: (int sent, int total) {
msgHandle.localMessage.uploadProgress = (sent / total * 100).ceil();
notifyListeners();
}, fail: () {
deleteMessage(msgHandle.localMessage);
MessageHandle systemMsgHandle = createMessage(
toAccount: toAccount, msgType: "system", content: "图片上传失败!");
messagesRecord.add(_handlerMessage(systemMsgHandle.localMessage));
});
}
// uploadFile
Future<void> uploadFile(File file,
{Function(String) success,
String fileType = "image",
String fileName = "file",
VoidCallback fail,
Function(int, int) onSendProgress}) async {
if (file == null) return "";
try {
if (file == null) return "";
String filePath = file.path;
String fileName = "${DateTime.now().microsecondsSinceEpoch}_" +
(filePath.lastIndexOf('/') > -1
......@@ -685,30 +740,14 @@ class KeFuStore with ChangeNotifier {
: filePath);
FormData formData = new FormData.fromMap({
"fileType": "image",
"fileName": "file",
"fileType": fileType,
"fileName": fileName,
"file_name": fileName,
"key": fileName,
"token": imConfigs.uploadSecret ?? "",
"file": MultipartFile.fromFileSync(file.path, filename: fileName)
});
void uploadSuccess(url) async {
String img = imConfigs.uploadHost + "/" + url;
msgHandle.localMessage.isShowCancel = true;
msgHandle.localMessage.payload = img;
notifyListeners();
ImMessage sendMsg = ImMessage.fromJson(json
.decode(utf8.decode(base64Decode(msgHandle.sendMessage.payload))));
sendMsg.payload = img;
msgHandle.sendMessage.payload =
base64Encode(utf8.encode(json.encode(sendMsg.toJson())));
sendMessage(msgHandle.clone()..localMessage.payload = img);
await Future.delayed(Duration(milliseconds: 10000));
msgHandle.localMessage.isShowCancel = false;
notifyListeners();
}
String uploadUrl;
/// 系统自带
......@@ -723,33 +762,22 @@ class KeFuStore with ChangeNotifier {
/// 其他
} else {}
Response response = await http.post(uploadUrl, data: formData,
onSendProgress: (int sent, int total) {
msgHandle.localMessage.uploadProgress = (sent / total * 100).ceil();
notifyListeners();
});
debugPrint("${response.data}");
Response response = await http.post(uploadUrl,
data: formData, onSendProgress: onSendProgress);
if (response.statusCode == 200) {
switch (imConfigs.uploadMode) {
case 1:
uploadSuccess(response.data["data"]);
success(imConfigs.uploadHost + "/" + response.data["data"]);
break;
case 2:
uploadSuccess(response.data["key"]);
success(imConfigs.uploadHost + "/" + response.data["key"]);
break;
}
} else {
deleteMessage(msgHandle.localMessage);
MessageHandle systemMsgHandle = createMessage(
toAccount: toAccount, msgType: "system", content: "图片上传失败!");
messagesRecord.add(_handlerMessage(systemMsgHandle.localMessage));
if (fail != null) fail();
}
} catch (e) {
deleteMessage(msgHandle.localMessage);
MessageHandle systemMsgHandle = createMessage(
toAccount: toAccount, msgType: "system", content: "图片上传失败~");
messagesRecord.add(_handlerMessage(systemMsgHandle.localMessage));
debugPrint("图片上传失败! =======$e");
} catch (_) {
if (fail != null) fail();
}
}
......@@ -859,7 +887,7 @@ class _KeFu extends StatefulWidget {
/// im screen state
class _KeFuState extends State<_KeFu> {
/// 客服store
KeFuStore _keFuStore = KeFuStore.instance;
KeFuStore _keFuStore = KeFuStore.getInstance;
/// 是否显示表情面板
bool _isShowEmoJiPanel = false;
......@@ -952,8 +980,9 @@ class _KeFuState extends State<_KeFu> {
}
// _goToWprkOrder
void _goToWprkOrder(BuildContext context){
Navigator.push(context, MaterialPageRoute(builder: (context)=> WorkOrder()));
void _goToWprkOrder(BuildContext context) {
Navigator.push(
context, MaterialPageRoute(builder: (context) => WorkOrder()));
}
/// 点击发送按钮(发送消息)
......@@ -1185,17 +1214,22 @@ class _KeFuState extends State<_KeFu> {
child: GestureDetector(
child: Container(
padding: EdgeInsets.all(3.0),
child: Row(children: <Widget>[
child: Row(
children: <Widget>[
Icon(
Icons.library_books,
color: Colors.black26,
size: 25,
),
Text("工单", style: TextStyle(fontSize: 14.0, color: Colors.grey,))
],),
Text("工单",
style: TextStyle(
fontSize: 14.0,
color: Colors.grey,
))
],
),
onTap: () => _goToWprkOrder(context)
),
onTap: () => _goToWprkOrder(context)),
),
],
),
......@@ -1408,6 +1442,10 @@ class _KeFuState extends State<_KeFu> {
onOperation: () =>
_onMessageOperation(_msg),
);
case "workorder":
return WorkorderMessage(
message: _msg,
);
case "photo":
return PhotoMessage(
message: _msg,
......
class WorkOrderModel {
int id;
int uid;
int tid;
String title;
String content;
String phone;
String email;
int status;
int lastReply;
int cid;
int closeAt;
String remark;
int updateAt;
int delete;
int createAt;
WorkOrderModel(
{this.id,
this.uid,
this.tid,
this.title,
this.content,
this.phone,
this.email,
this.status,
this.lastReply,
this.cid,
this.closeAt,
this.remark,
this.updateAt,
this.delete,
this.createAt});
WorkOrderModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
uid = json['uid'];
tid = json['tid'];
title = json['title'];
content = json['content'];
phone = json['phone'];
email = json['email'];
status = json['status'];
lastReply = json['last_reply'];
cid = json['cid'];
closeAt = json['close_at'];
remark = json['remark'];
updateAt = json['update_at'];
delete = json['delete'];
createAt = json['create_at'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['uid'] = this.uid;
data['tid'] = this.tid;
data['title'] = this.title;
data['content'] = this.content;
data['phone'] = this.phone;
data['email'] = this.email;
data['status'] = this.status;
data['last_reply'] = this.lastReply;
data['cid'] = this.cid;
data['close_at'] = this.closeAt;
data['remark'] = this.remark;
data['update_at'] = this.updateAt;
data['delete'] = this.delete;
data['create_at'] = this.createAt;
return data;
}
}
class WorkOrderCommentModel {
int id;
int uid;
int aid;
int wid;
String content;
String uAvatar;
String uNickname;
String aAvatar;
String aNickname;
int createAt;
WorkOrderCommentModel(
{this.id,
this.uid,
this.aid,
this.wid,
this.content,
this.uAvatar,
this.uNickname,
this.aAvatar,
this.aNickname,
this.createAt});
WorkOrderCommentModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
uid = json['uid'];
aid = json['aid'];
wid = json['wid'];
content = json['content'];
uAvatar = json['u_avatar'];
uNickname = json['u_nickname'];
aAvatar = json['a_avatar'];
aNickname = json['a_nickname'];
createAt = json['create_at'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['uid'] = this.uid;
data['aid'] = this.aid;
data['wid'] = this.wid;
data['content'] = this.content;
data['u_avatar'] = this.uAvatar;
data['u_nickname'] = this.uNickname;
data['a_avatar'] = this.aAvatar;
data['a_nickname'] = this.aNickname;
data['create_at'] = this.createAt;
return data;
}
}
class WorkOrderTypeModel {
int id;
String title;
int createAt;
WorkOrderTypeModel({this.id, this.title, this.createAt});
WorkOrderTypeModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
title = json['title'];
createAt = json['create_at'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['title'] = this.title;
data['create_at'] = this.createAt;
return data;
}
}
......@@ -3,7 +3,8 @@ import 'package:flutter/material.dart';
class ImUtils {
/// 日期格式化
static String formatDate(int millisecondsSinceEpoch) {
static String formatDate(int millisecondsSinceEpoch,
{bool isformatFull = false}) {
if (millisecondsSinceEpoch.toString().length <= 10) {
millisecondsSinceEpoch =
int.parse(millisecondsSinceEpoch.toString() + '000');
......@@ -18,7 +19,7 @@ class ImUtils {
var dayC = diffValue / day ~/ 1;
String result;
DateTime date = DateTime.fromMillisecondsSinceEpoch(millisecondsSinceEpoch);
if (dayC >= 1) {
if (dayC >= 1 || isformatFull) {
result =
"${date.year}-${date.month < 10 ? "0" + date.month.toString() : date.month}-${date.day < 10 ? "0" + date.day.toString() : date.day} ${date.hour}:${date.minute < 10 ? "0" + date.minute.toString() : date.minute}";
} else {
......@@ -52,6 +53,7 @@ class ImUtils {
String cancelText = '取消',
String confirmText = '确定',
bool isConfirmPop = true,
bool isShowCancel = true,
VoidCallback onCancel,
VoidCallback onConfirm,
}) {
......@@ -60,26 +62,18 @@ class ImUtils {
barrierDismissible: false,
builder: (BuildContext context) {
ThemeData themeData = Theme.of(context);
return CupertinoAlertDialog(
title: title.isEmpty
? null
: Padding(
padding: EdgeInsets.only(bottom: 10.0),
child: Text(title,
style:
themeData.textTheme.title.copyWith(fontSize: 16.0)),
),
content: content is Widget ? content : Text('$content'),
actions: <Widget>[
CupertinoDialogAction(
List<Widget> actions = [];
if (isShowCancel) {
actions.add(CupertinoDialogAction(
child: Text(cancelText),
isDestructiveAction: true,
onPressed: () {
Navigator.pop(context);
if (onCancel != null) onCancel();
},
),
CupertinoDialogAction(
));
}
actions.add(CupertinoDialogAction(
child: Text(
confirmText,
style: TextStyle(color: themeData.primaryColor),
......@@ -89,8 +83,18 @@ class ImUtils {
if (isConfirmPop) Navigator.pop(context);
if (onConfirm != null) onConfirm();
},
));
return CupertinoAlertDialog(
title: title.isEmpty
? null
: Padding(
padding: EdgeInsets.only(bottom: 10.0),
child: Text(title,
style:
themeData.textTheme.title.copyWith(fontSize: 16.0)),
),
],
content: content is Widget ? content : Text('$content'),
actions: actions,
);
});
}
......
import 'package:flutter/material.dart';
import 'package:kefu_flutter/workorder/create.dart';
import '../models/im_message.dart';
import 'date_widget.dart';
import 'im_avatar.dart';
class WorkorderMessage extends StatelessWidget {
WorkorderMessage({this.message});
final ImMessage message;
@override
Widget build(BuildContext context) {
ThemeData themeData = Theme.of(context);
bool isDark = themeData.brightness == Brightness.dark;
Widget _avatar() {
return ImAvatar(
avatar: message.avatar,
);
}
// _goToCreateWprkOrder
void _goToCreateWprkOrder() {
Navigator.push(
context, MaterialPageRoute(builder: (context) => CreateWorkOrder()));
}
Widget msgWidget() {
return Container(
margin: EdgeInsets.only(bottom: 15.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
_avatar(),
Padding(
padding: EdgeInsets.only(left: 7.0, right: 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[
Container(
margin: EdgeInsets.only(top: 3.0),
constraints: BoxConstraints(maxWidth: 290.0),
padding: EdgeInsets.symmetric(
horizontal: 10.0, vertical: 5.0),
decoration: BoxDecoration(
color: isDark
? themeData.dividerColor
: Colors.white,
boxShadow: [
BoxShadow(
offset: Offset(0.0, 3.0),
color: Colors.black26.withAlpha(5),
blurRadius: 4.0,
),
BoxShadow(
offset: Offset(0.0, 3.0),
color: Colors.black26.withAlpha(5),
blurRadius: 4.0,
),
],
borderRadius:
BorderRadius.all(Radius.circular(3.0))),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text("${message.payload}",
style: themeData.textTheme.title.copyWith(
color: themeData.textTheme.title.color,
fontSize: 15.0)),
GestureDetector(
onTap: _goToCreateWprkOrder,
child: Text(
"创建工单",
style: TextStyle(
fontSize: 15.0,
color: themeData.primaryColor),
),
)
],
))
],
),
],
),
),
],
),
);
}
return Column(
children: <Widget>[
Offstage(
offstage: !message.isShowDate,
child: DateWidget(
date: message.timestamp,
),
),
msgWidget()
],
);
}
}
import 'dart:io';
import 'package:dio/dio.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:kefu_flutter/models/work_order.dart';
import 'package:kefu_flutter/models/work_order_type.dart';
import 'package:file_picker/file_picker.dart';
import 'package:kefu_flutter/utils/im_utils.dart';
import '../kefu_flutter.dart';
class CreateWorkOrder extends StatefulWidget {
@override
_CreateWorkOrderState createState() => _CreateWorkOrderState();
}
class _CreateWorkOrderState extends State<CreateWorkOrder> {
KeFuStore keFuStore;
WorkOrderModel request = WorkOrderModel();
int selectTypeIndex = 0;
List<WorkOrderTypeModel> get workOrderTypes {
try {
return keFuStore.workOrderTypes;
} catch (_) {
return [];
}
}
int uploadProgress = 0;
String html = "";
bool isUploadFail = false;
TextEditingController _titleCtr = TextEditingController();
TextEditingController _phoneCtr = TextEditingController();
TextEditingController _emailCtr = TextEditingController();
TextEditingController _contentCtr = TextEditingController();
@override
void initState() {
super.initState();
if (mounted) {
keFuStore = KeFuStore.getInstance;
if (keFuStore.workOrderTypes.length == 0) {
keFuStore.getWorkOrderTypes();
}
}
}
@override
void dispose() {
_titleCtr.dispose();
_phoneCtr.dispose();
_emailCtr.dispose();
_contentCtr.dispose();
super.dispose();
}
void _uploadFile() async {
setState(() {
isUploadFail = false;
});
int index = await showCupertinoModalPopup(
context: context,
builder: (BuildContext context) {
return CupertinoActionSheet(
actions: <Widget>[
CupertinoActionSheetAction(
child: Text(
'拍照',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, 1);
},
),
CupertinoActionSheetAction(
child: Text(
'从手机选择照片',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, 2);
},
),
CupertinoActionSheetAction(
child: Text(
'其它文件',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, 3);
},
),
],
cancelButton: SizedBox(
child: CupertinoActionSheetAction(
isDestructiveAction: true,
child: Text(
'取消',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, null);
},
),
));
});
File _file;
if (index == 1) {
_file = await ImagePicker.pickImage(
source: ImageSource.camera, maxWidth: 2000);
} else if (index == 2) {
_file = await ImagePicker.pickImage(
source: ImageSource.gallery, maxWidth: 2000);
} else if (index == 3) {
_file = await FilePicker.getFile();
}
if (_file == null) return;
keFuStore?.uploadFile(_file, onSendProgress: (int sent, int total) {
debugPrint("uploadProgress=${(sent / total * 100).ceil()}%");
setState(() {
uploadProgress = (sent / total * 100).ceil();
});
}, fail: () {
setState(() {
isUploadFail = true;
html = "";
uploadProgress = 0;
});
}, success: (String url) {
String suffix = url.substring(url.lastIndexOf(".") + 1);
if ("jpg,jpeg,png,JPG,JPEG,PNG".contains(suffix)) {
html =
"<br><img style='max-width:45%;margin-top:5px;' preview='1' src='" +
url +
"' />";
} else {
html =
"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />";
html += "<a target='_blank' style='color: #2e9dfc;' href='" +
url +
"'>下载附件</a>";
}
setState(() {
isUploadFail = false;
uploadProgress = 0;
});
});
}
void _save() async {
request.title = _titleCtr.value.text;
request.phone = _phoneCtr.value.text;
request.email = _emailCtr.value.text;
request.content = _contentCtr.value.text;
if (request.tid == null) {
ImUtils.alert(context,
cancelText: "关闭", isShowCancel: false, content: "请选择工单类型!");
return;
}
if (request.title.isEmpty) {
ImUtils.alert(context,
cancelText: "关闭", isShowCancel: false, content: "请输入工单标题!");
return;
}
if (request.phone.isEmpty) {
ImUtils.alert(context,
cancelText: "关闭", isShowCancel: false, content: "请输入手机号!");
return;
}
if (request.content.isEmpty) {
ImUtils.alert(context,
cancelText: "关闭", isShowCancel: false, content: "请输入工单内容!");
return;
}
request.content += html;
var requestJson = request.toJson();
requestJson.removeWhere((key, value) {
return value == null;
});
try {
Response res = await keFuStore.http
.post("/public/workorder/create", data: request.toJson());
print(res.data.toString());
if (res.data['code'] == 200) {
ImUtils.alert(context,
isShowCancel: false,
onConfirm: () => Navigator.pop(context),
content: "工单提交成功~");
}
} on DioError catch (e) {
ImUtils.alert(context,
cancelText: "关闭",
isShowCancel: false,
content: e.response.data["message"]);
}
}
void _onSelectType() {
ThemeData themeData = Theme.of(context);
final FixedExtentScrollController scrollController =
FixedExtentScrollController(initialItem: selectTypeIndex);
Navigator.of(context).push(PageRouteBuilder(
opaque: false,
barrierColor: Color.fromRGBO(0, 0, 0, 0.5),
barrierDismissible: false,
barrierLabel: 'route',
maintainState: false,
pageBuilder: (___, _, __) {
return Align(
alignment: Alignment.bottomCenter,
child: Material(
child: SizedBox(
height: 280.0,
child: Column(
children: <Widget>[
Container(
height: 45.0,
padding: EdgeInsets.symmetric(horizontal: 10.0),
color: Colors.white,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(
"选择工单类型",
style: TextStyle(
fontSize: 14.0, color: Colors.black54),
),
GestureDetector(
onTap: () {
Navigator.pop(context);
request.tid = workOrderTypes[selectTypeIndex].id;
setState(() {});
},
child: Text("确定",
style: TextStyle(
color: themeData.primaryColor,
fontSize: 15.0,
fontWeight: FontWeight.w600)),
),
],
),
),
Expanded(
child: CupertinoPicker(
scrollController: scrollController,
itemExtent: 40.0,
backgroundColor: Colors.white,
onSelectedItemChanged: (int index) {
selectTypeIndex = index;
request.tid = workOrderTypes[index].id;
setState(() {});
},
children: List<Widget>.generate(workOrderTypes.length,
(int index) {
return Center(
child: Text(
workOrderTypes[index].title,
style: TextStyle(
color: Colors.black54, fontSize: 14.0),
),
);
})),
)
],
),
),
),
);
},
transitionDuration: Duration(milliseconds: 300),
transitionsBuilder: (
BuildContext context,
Animation<double> animation,
Animation<double> secondaryAnimation,
Widget child,
) {
return SlideTransition(
position: Tween<Offset>(
begin: const Offset(0.0, 1.0),
end: Offset.zero,
).animate(animation),
child: child,
);
}));
}
@override
Widget build(BuildContext context) {
ThemeData themeData = Theme.of(context);
Widget _selectBox(
{String label,
String content,
VoidCallback onTap,
Color contentColor}) {
return GestureDetector(
onTap: onTap,
child: Container(
padding: EdgeInsets.symmetric(horizontal: 10.0),
height: 50.0,
child: DefaultTextStyle(
style: TextStyle(
color: Colors.black87.withAlpha(180), fontSize: 14.0),
child: Column(
children: <Widget>[
Expanded(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text("$label"),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(
"$content",
style: TextStyle(color: contentColor),
),
Icon(
Icons.keyboard_arrow_right,
color: Colors.black87.withAlpha(180),
)
],
)
],
),
),
Divider(
height: 0.5,
)
],
)),
),
);
}
Widget _inputFrom(
{double height = 50.0,
String label,
double labelTop = 0.0,
String placeholder,
int minLines,
int maxLines,
TextEditingController controller,
String tips,
TextInputType keyboardType,
bool isShowDivider = true,
CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center}) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 10.0),
height: height,
child: DefaultTextStyle(
style:
TextStyle(color: Colors.black87.withAlpha(180), fontSize: 15.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expanded(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: crossAxisAlignment,
children: <Widget>[
Padding(
padding: EdgeInsets.only(top: labelTop),
child: Text("$label"),
),
Expanded(
child: TextField(
cursorColor: themeData.primaryColor,
controller: controller,
keyboardType: keyboardType,
decoration: InputDecoration(
hintText: placeholder,
border: InputBorder.none,
hintStyle: TextStyle(
fontSize: 15.0,
color: Colors.grey.withAlpha(150),
),
counterStyle:
TextStyle(color: Colors.grey.withAlpha(200)),
contentPadding:
EdgeInsets.symmetric(vertical: 3.0),
counterText: ""),
style: TextStyle(
color: Colors.black87.withAlpha(180),
fontSize: 15.0,
),
minLines: minLines,
maxLines: maxLines,
),
)
],
),
),
Opacity(
opacity: isShowDivider ? 1.0 : 0.0,
child: Divider(
height: 0.5,
),
),
Offstage(
offstage: tips == null || tips.isEmpty,
child: Padding(
padding: EdgeInsets.only(bottom: 5.0),
child: Text(
"$tips",
style: TextStyle(fontSize: 11.0, color: Colors.amber),
),
),
)
],
)),
);
}
return Scaffold(
appBar: AppBar(centerTitle: true, title: Text("创建工单")),
body: ListView(
children: <Widget>[
_selectBox(
label: "类型:",
content: request.cid == null
? "选择工单类型"
: "${workOrderTypes[selectTypeIndex].title}",
onTap: _onSelectType),
_inputFrom(
label: "标题:", placeholder: "请输入工单标题~", controller: _titleCtr),
_inputFrom(
label: "手机:",
keyboardType: TextInputType.phone,
controller: _phoneCtr,
placeholder: "请输入您的手机~",
tips: "必填,预留手机号方便客服联系到您~",
height: 65.0),
_inputFrom(
label: "邮箱:",
keyboardType: TextInputType.emailAddress,
controller: _emailCtr,
placeholder: "请输入您的电子邮箱~",
tips: "非必填,预留邮箱后若工单回复后会通过邮箱通知您~",
height: 65.0),
_inputFrom(
label: "内容:",
placeholder: "请输入您的工单内容~",
minLines: 3,
maxLines: 5,
controller: _contentCtr,
height: 100,
labelTop: 3.0,
crossAxisAlignment: CrossAxisAlignment.start),
_selectBox(
label: "附件:",
content: isUploadFail
? "上传失败了~"
: uploadProgress > 0
? "文件上传中$uploadProgress%..."
: html.isEmpty ? "上传附件" : "已上传附件,重新上传可替换~",
onTap: _uploadFile,
contentColor: isUploadFail
? Colors.red
: html.isNotEmpty && uploadProgress == 0
? Color(0XFF8bc34a)
: null),
Padding(
padding: EdgeInsets.all(10.0),
child: Text("温馨提示:由于客服值班时间原因,工单回复较慢,请您耐心等待~",
style: TextStyle(fontSize: 11.0, color: Colors.red)),
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 10.0, vertical: 30.0),
child: SizedBox(
height: 45.0,
child: RaisedButton(
color: themeData.primaryColor,
onPressed: _save,
child: Text(
"提交",
style: TextStyle(color: Colors.white),
)),
))
],
));
}
}
import 'dart:io';
import 'package:dio/dio.dart';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_advanced_networkimage/zoomable.dart';
import 'package:flutter_html/image_properties.dart';
import 'package:image_picker/image_picker.dart';
import 'package:kefu_flutter/models/work_order.dart';
import 'package:kefu_flutter/models/work_order_comment.dart';
import 'package:kefu_flutter/models/work_order_type.dart';
import 'package:kefu_flutter/utils/im_utils.dart';
import 'package:kefu_flutter/widgets/cached_network_image.dart';
import 'package:kefu_flutter/widgets/im_avatar.dart';
import 'package:flutter_html/flutter_html.dart';
import '../kefu_flutter.dart';
class WorkOrderDetail extends StatefulWidget {
WorkOrderDetail(this.wid);
final int wid;
@override
_WorkOrderDetailState createState() => _WorkOrderDetailState();
}
class _WorkOrderDetailState extends State<WorkOrderDetail> {
KeFuStore keFuStore;
WorkOrderModel workOrder;
List<WorkOrderCommentModel> workOrderComments = [];
List<WorkOrderTypeModel> get workOrderTypes {
try {
return keFuStore.workOrderTypes;
} catch (_) {
return [];
}
}
ScrollController scrollController = ScrollController();
TextEditingController _replyInputCtr = TextEditingController();
int uploadProgress = 0;
bool isUploadFail = false;
String html = "";
@override
void initState() {
super.initState();
if (mounted) {
keFuStore = KeFuStore.getInstance;
if (keFuStore.workOrderTypes.length == 0) {
keFuStore.getWorkOrderTypes();
}
_initData();
}
}
@override
void dispose() {
_replyInputCtr.dispose();
super.dispose();
}
// init data
void _initData() async {
await _getWorkOrder();
await _getWorkOrderComments();
}
// GET workorder
Future<void> _getWorkOrder() async {
if (keFuStore == null) {
debugPrint("keFuStore is not instance");
return;
}
Response res =
await keFuStore.http.get('/public/workorder/' + widget.wid.toString());
if (res.data['code'] == 200) {
workOrder = WorkOrderModel.fromJson(res.data['data']);
setState(() {});
}
}
// close workorder
Future<void> _close() async {
if (keFuStore == null) {
debugPrint("keFuStore is not instance");
return;
}
ImUtils.alert(context, content: "您确定关闭该工单吗?", onConfirm: () async {
Response res = await keFuStore.http
.put('/public/workorder/close/' + widget.wid.toString());
if (res.data['code'] == 200) {
ImUtils.alert(context, isShowCancel: false, content: "工单已关闭~");
await _getWorkOrder();
await _getWorkOrderComments();
}
});
}
// reply
Future<void> _reply() async {
if (keFuStore == null) {
debugPrint("keFuStore is not instance");
return;
}
String content = _replyInputCtr.value.text + html;
if (content.isEmpty) {
ImUtils.alert(context, isShowCancel: false, content: "请输输入内容!");
return;
}
Response res = await keFuStore.http.post('/public/workorder/reply', data: {
"wid": workOrder.id,
"content": content,
});
if (res.data['code'] == 200) {
await _getWorkOrder();
await _getWorkOrderComments();
_replyInputCtr.clear();
FocusScope.of(context).requestFocus(FocusNode());
html = "";
setState(() {});
scrollController.animateTo(scrollController.position.maxScrollExtent,
duration: Duration(milliseconds: 300), curve: Curves.ease);
}
}
void _uploadFile() async {
setState(() {
isUploadFail = false;
});
int index = await showCupertinoModalPopup(
context: context,
builder: (BuildContext context) {
return CupertinoActionSheet(
actions: <Widget>[
CupertinoActionSheetAction(
child: Text(
'拍照',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, 1);
},
),
CupertinoActionSheetAction(
child: Text(
'从手机选择照片',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, 2);
},
),
CupertinoActionSheetAction(
child: Text(
'其它文件',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, 3);
},
),
],
cancelButton: SizedBox(
child: CupertinoActionSheetAction(
isDestructiveAction: true,
child: Text(
'取消',
style: TextStyle(fontSize: 15.0),
),
onPressed: () {
Navigator.pop(context, null);
},
),
));
});
File _file;
if (index == 1) {
_file = await ImagePicker.pickImage(
source: ImageSource.camera, maxWidth: 2000);
} else if (index == 2) {
_file = await ImagePicker.pickImage(
source: ImageSource.gallery, maxWidth: 2000);
} else if (index == 3) {
_file = await FilePicker.getFile();
}
if (_file == null) return;
keFuStore?.uploadFile(_file, onSendProgress: (int sent, int total) {
debugPrint("uploadProgress=${(sent / total * 100).ceil()}%");
setState(() {
uploadProgress = (sent / total * 100).ceil();
});
}, fail: () {
setState(() {
isUploadFail = true;
html = "";
uploadProgress = 0;
});
}, success: (String url) {
String suffix = url.substring(url.lastIndexOf(".") + 1);
if ("jpg,jpeg,png,JPG,JPEG,PNG".contains(suffix)) {
html =
"<br><img style='max-width:45%;margin-top:5px;' preview='1' src='" +
url +
"' />";
} else {
html =
"<br><img style='width:20px;height:20px;top:3px; right:3px;position: relative;' preview='1' src='http://qiniu.cmp520.com/fj.png' />";
html += "<a target='_blank' style='color: #2e9dfc;' href='" +
url +
"'>下载附件</a>";
}
setState(() {
isUploadFail = false;
uploadProgress = 0;
});
});
}
// GET workorderComments
Future<void> _getWorkOrderComments() async {
if (keFuStore == null) {
debugPrint("keFuStore is not instance");
return;
}
Response res = await keFuStore.http
.get('/public/workorder/comments/' + widget.wid.toString());
if (res.data['code'] == 200 && res.data['data'] is List) {
workOrderComments = (res.data['data'] as List)
.map((i) => WorkOrderCommentModel.fromJson(i))
.toList();
setState(() {});
}
}
String _getTypeTitle(int tid) {
return workOrderTypes.where((item) => item.id == tid).first.title;
}
@override
Widget build(BuildContext context) {
ThemeData themeData = Theme.of(context);
Widget _html(String data) {
bool isShowimage = data.contains(">下载附件</a>");
return Html(
data: "$data",
showImages: !isShowimage,
imageProperties: ImageProperties(height: 100.0),
onLinkTap: (String link) {
Clipboard.setData(ClipboardData(text: link));
ImUtils.alert(context, content: "附件下载链接已复制到粘贴板", isShowCancel: false);
},
onImageTap: (String img) {
if (img == null || img.isEmpty) return;
showDialog(
context: context,
builder: (context) {
return Center(
child: ZoomableWidget(
onTap: () => Navigator.pop(context),
maxScale: 2.0,
minScale: 0.5,
child: CachedImage(
width: MediaQuery.of(context).size.width / 1,
height: MediaQuery.of(context).size.height / 1,
src: img,
bgColor: Colors.transparent,
fit: BoxFit.fitWidth),
));
});
},
);
}
Widget _lineBox({String label, dynamic content, Color contentColor}) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 10.0, vertical: 5.0),
child: DefaultTextStyle(
style:
TextStyle(color: Colors.black87.withAlpha(180), fontSize: 15.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text("$label"),
Expanded(
child: content is String
? Text(
"$content",
style: TextStyle(color: contentColor),
)
: content is Widget ? content : Text("")),
],
)),
);
}
Widget _conment(WorkOrderCommentModel comment) {
return Container(
padding: EdgeInsets.only(bottom: 10.0),
child: Column(
children: <Widget>[
Padding(
padding: EdgeInsets.symmetric(horizontal: 10.0),
child: Divider(
height: 0.5,
),
),
SizedBox(
height: 10.0,
),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Padding(
padding:
EdgeInsets.symmetric(horizontal: 10.0, vertical: 5.0),
child: comment.aid == 0
? ImAvatar(
avatar: comment.uAvatar.isNotEmpty
? comment.uAvatar
: "http://qiniu.cmp520.com/avatar_degault_3.png",
)
: ImAvatar(
avatar: comment.aAvatar.isNotEmpty
? comment.aAvatar
: "http://qiniu.cmp520.com/avatar_degault_3.png",
)),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(comment.aid != 0 ? "${comment.aNickname}" : "我",
style: TextStyle(
fontSize: 13.0,
color: Colors.black87.withAlpha(180))),
Padding(
padding: EdgeInsets.only(bottom: 5.0),
child: _html(comment.content)),
Text(
"${ImUtils.formatDate(comment.createAt, isformatFull: true)}",
style: TextStyle(fontSize: 13.0, color: Colors.grey),
),
],
),
)
],
)
],
),
);
}
Widget _inputForm() {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
decoration: BoxDecoration(
color: Colors.white,
border: Border(
top: BorderSide(
color: themeData.dividerColor, width: 0.5))),
padding: EdgeInsets.symmetric(horizontal: 10.0),
child: isUploadFail
? Text("上传失败了~",
style: TextStyle(fontSize: 12.0, color: Colors.grey))
: uploadProgress > 0
? Text(
"文件上传中$uploadProgress%...",
style: TextStyle(fontSize: 12.0, color: Colors.grey),
)
: Offstage(
offstage: html.isEmpty,
child: Row(
children: <Widget>[
Icon(
Icons.attach_file,
size: 15.0,
color: Colors.grey,
),
Text(
"你已成功添加附件,重新上传可替换~",
style: TextStyle(
fontSize: 12.0, color: Color(0XFF8bc34a)),
)
],
),
)),
Container(
height: 80.0,
padding: EdgeInsets.symmetric(horizontal: 10.0),
decoration: BoxDecoration(
color: Colors.white,
border: Border(
top:
BorderSide(color: themeData.dividerColor, width: 0.5))),
child: Column(
children: <Widget>[
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expanded(
child: TextField(
cursorColor: themeData.primaryColor,
controller: _replyInputCtr,
decoration: InputDecoration(
hintText: "请输入内容~",
border: InputBorder.none,
hintStyle: TextStyle(
fontSize: 15.0,
color: Colors.grey.withAlpha(150),
),
counterStyle:
TextStyle(color: Colors.grey.withAlpha(200)),
contentPadding: EdgeInsets.symmetric(vertical: 3.0),
counterText: ""),
style: TextStyle(
color: Colors.black87.withAlpha(180),
fontSize: 15.0,
),
minLines: 1,
maxLines: 3,
),
),
SizedBox(
height: 79.0,
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
IconButton(
icon: Icon(
Icons.cloud_upload,
size: 35.0,
color: Colors.black87.withAlpha(50),
),
onPressed: _uploadFile,
),
SizedBox(
width: 15.0,
),
SizedBox(
width: 70.0,
height: 35.0,
child: RaisedButton(
color: themeData.primaryColor,
onPressed: _reply,
child: Text(
"提交",
style: TextStyle(color: Colors.white),
)),
)
],
),
)
],
)
],
),
)
],
);
}
Widget _loading() {
return SizedBox(
width: 30.0,
height: 30.0,
child: Platform.isAndroid
? CircularProgressIndicator(
strokeWidth: 2.0,
)
: CupertinoActivityIndicator(
radius: 15.0,
),
);
}
return Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text("工单详情"),
actions: <Widget>[
Offstage(
offstage: workOrder != null && workOrder.status == 3,
child: FlatButton(
child: Text(
"关闭工单",
style: TextStyle(color: Colors.white),
),
onPressed: _close,
),
)
],
),
body: workOrder == null
? Center(child: _loading())
: Column(
children: <Widget>[
Expanded(
child: GestureDetector(
onTap: () {
FocusScope.of(context).requestFocus(FocusNode());
},
child: CustomScrollView(
controller: scrollController,
slivers: <Widget>[
SliverToBoxAdapter(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 10.0,
),
_lineBox(
label: "标题:",
content: "${workOrder.title}"),
_lineBox(
label: "内容:",
content: _html(workOrder.content)),
_lineBox(
label: "电话:",
content: "${workOrder.phone}"),
_lineBox(
label: "邮箱:",
content: "${workOrder.email}"),
_lineBox(
label: "时间:",
content:
"${ImUtils.formatDate(workOrder.createAt, isformatFull: true)}"),
_lineBox(
label: "类型:",
content:
"${_getTypeTitle(workOrder.tid)}"),
_lineBox(
label: "状态:",
content: workOrder.status == 1
? "已回复"
: workOrder.status == 3
? "已结束"
: workOrder.status == 0
? "待处理"
: workOrder.status == 2
? "待回复"
: "未知状态",
contentColor: workOrder.status == 1
? Color(0XFF8bc34a)
: workOrder.status == 3
? Color(0XFFcccCCC)
: workOrder.status == 0
? Color(0XFFFF9800)
: workOrder.status == 2
? Color(0XFFFF9800)
: null),
],
),
),
workOrderComments.length == 0
? SliverToBoxAdapter(
child: Column(
children: <Widget>[
Divider(),
Text(
"暂无回复内容,请您耐心等待~",
style: TextStyle(
fontSize: 14.0,
color: Colors.grey),
),
SizedBox(height: 50.0)
],
),
)
: SliverList(
delegate: SliverChildBuilderDelegate(
(ctx, index) {
var comment = workOrderComments[index];
return _conment(comment);
}, childCount: workOrderComments.length))
],
))),
Offstage(
offstage: workOrder.status == 3,
child: _inputForm(),
)
],
));
}
}
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:kefu_flutter/models/work_order.dart';
import 'package:kefu_flutter/models/work_order_type.dart';
import 'package:kefu_flutter/utils/im_utils.dart';
import '../kefu_flutter.dart';
import 'create.dart';
import 'detail.dart';
class WorkOrder extends StatefulWidget {
@override
_WorkOrderState createState() => _WorkOrderState();
}
class _WorkOrderState extends State<WorkOrder> {
KeFuStore keFuStore;
List<WorkOrderModel> workOrders = [];
List<WorkOrderTypeModel> get workOrderTypes {
try {
return keFuStore.workOrderTypes;
} catch (_) {
return [];
}
}
@override
void initState() {
super.initState();
if (mounted) {
keFuStore = KeFuStore.getInstance;
if (keFuStore.workOrderTypes.length == 0) {
keFuStore.getWorkOrderTypes();
}
_initData();
}
}
// init data
void _initData() async {
await _getWorkOrders();
}
// GET workorders
Future<void> _getWorkOrders() async {
if (keFuStore == null) {
debugPrint("keFuStore is not instance");
return;
}
Response res = await keFuStore.http.get('/public/workorders');
if (res.data['code'] == 200) {
workOrders = (res.data['data'] as List)
.map((i) => WorkOrderModel.fromJson(i))
.toList();
setState(() {});
}
}
// _goToCreateWprkOrder
void _goToCreateWprkOrder(BuildContext context) {
Navigator.push(
context, MaterialPageRoute(builder: (context) => CreateWorkOrder()))
.then((_) {
_getWorkOrders();
});
}
// _goToWprkOrderDetail
void _goToWprkOrderDetail(BuildContext context, int wid) {
Navigator.push(context,
MaterialPageRoute(builder: (context) => WorkOrderDetail(wid)))
.then((_) {
_getWorkOrders();
});
}
String _getTypeTitle(int tid) {
return workOrderTypes.where((item) => item.id == tid).first.title;
}
class WorkOrder extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
......@@ -13,12 +90,121 @@ class WorkOrder extends StatelessWidget{
"创建工单",
style: TextStyle(color: Colors.white),
),
onPressed: (){},
onPressed: () => _goToCreateWprkOrder(context),
)
],
),
body: CustomScrollView(
slivers: <Widget>[
workOrders.length <= 0
? SliverToBoxAdapter(
child: Padding(
padding: EdgeInsets.symmetric(vertical: 30.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Icon(
Icons.library_books,
color: Colors.black26,
size: 50,
),
Padding(
padding: EdgeInsets.symmetric(vertical: 10.0),
child: Text(
"暂无相关数据~",
style:
TextStyle(color: Colors.grey, fontSize: 14.0),
),
),
],
),
),
)
: SliverList(
delegate: SliverChildBuilderDelegate((ctx, index) {
var workOrder = workOrders[index];
return Column(
children: <Widget>[
ListTile(
onTap: () =>
_goToWprkOrderDetail(context, workOrder.id),
title: DefaultTextStyle(
style: TextStyle(
fontSize: 14.0,
color: Colors.black87.withAlpha(180)),
child: Row(
children: <Widget>[
Icon(
Icons.library_books,
color: Colors.black26,
size: 25,
),
VerticalDivider(
width: 5.0, color: Colors.transparent),
Expanded(
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[
Text(
"${workOrder.title}",
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
DefaultTextStyle(
style: TextStyle(
color: Colors.black45,
fontSize: 12.0),
child: Row(
children: <Widget>[
Text(
"${_getTypeTitle(workOrder.tid)} "),
Text(
" ${ImUtils.formatDate(workOrder.createAt, isformatFull: true)}"),
],
))
],
),
),
VerticalDivider(
color: Colors.transparent,
width: 10.0,
),
Text(
workOrder.status == 1
? "已回复"
: workOrder.status == 3
? "已结束"
: workOrder.status == 0
? "待处理"
: workOrder.status == 2
? "待回复"
: "未知状态",
style: TextStyle(
color: workOrder.status == 1
? Color(0XFF8bc34a)
: workOrder.status == 3
? Color(0XFFcccCCC)
: workOrder.status == 0
? Color(0XFFFF9800)
: workOrder.status == 2
? Color(0XFFFF9800)
: Colors.amber,
fontSize: 12.0),
)
],
)),
),
Padding(
padding: EdgeInsets.symmetric(horizontal: 10.0),
child: Divider(
height: 0.5,
),
)
],
);
}, childCount: workOrders.length))
],
),
);
}
......
......@@ -57,6 +57,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
csslib:
dependency: transitive
description:
name: csslib
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
cupertino_icons:
dependency: "direct main"
description:
......@@ -71,6 +78,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.9"
file_picker:
dependency: "direct main"
description:
name: file_picker
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.1"
flutter:
dependency: "direct main"
description: flutter
......@@ -83,6 +97,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
flutter_html:
dependency: "direct main"
description:
name: flutter_html
url: "https://pub.dartlang.org"
source: hosted
version: "0.11.1"
flutter_mimc:
dependency: "direct main"
description:
......@@ -114,6 +135,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
html:
dependency: transitive
description:
name: html
url: "https://pub.dartlang.org"
source: hosted
version: "0.14.0+3"
http:
dependency: transitive
description:
......
name: kefu_flutter
version: 1.0.1+4
version: 2.0.0
description: This is a customer service system based on Xiaomi Message Cloud. The flutter version may be the best open source customer service solution for flutter.
homepage: https://github.com/chenxianqi/kefu_flutter
......@@ -13,9 +13,11 @@ dependencies:
flutter_mimc: ^1.0.1
dio: ^3.0.8
image_picker: ^0.6.2+3
flutter_html: ^0.11.1
shared_preferences: ^0.5.6
provider: ^4.0.1
flutter_advanced_networkimage: ^0.6.2
file_picker: ^1.5.1
dev_dependencies:
flutter_test:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment