CRMEB/crmeb/public/admin/system_static/js/chunk-63fc945c.57280449.js
2023-06-12 14:41:51 +08:00

1 line
31 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-63fc945c"],{"46f7":function(t,e,n){"use strict";var r=n("6fbb");n.n(r).a},"6fbb":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"v",(function(){return a})),n.d(e,"k",(function(){return i})),n.d(e,"Kb",(function(){return c})),n.d(e,"Jb",(function(){return u})),n.d(e,"j",(function(){return s})),n.d(e,"gb",(function(){return d})),n.d(e,"Ob",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"Z",(function(){return m})),n.d(e,"fb",(function(){return p})),n.d(e,"lb",(function(){return g})),n.d(e,"D",(function(){return b})),n.d(e,"Xb",(function(){return v})),n.d(e,"rb",(function(){return y})),n.d(e,"qb",(function(){return w})),n.d(e,"A",(function(){return O})),n.d(e,"B",(function(){return j})),n.d(e,"m",(function(){return _})),n.d(e,"hb",(function(){return x})),n.d(e,"n",(function(){return k})),n.d(e,"kb",(function(){return L})),n.d(e,"jb",(function(){return E})),n.d(e,"ib",(function(){return C})),n.d(e,"mb",(function(){return T})),n.d(e,"ob",(function(){return F})),n.d(e,"W",(function(){return V})),n.d(e,"pb",(function(){return S})),n.d(e,"Bb",(function(){return M})),n.d(e,"I",(function(){return G})),n.d(e,"Ab",(function(){return P})),n.d(e,"r",(function(){return $})),n.d(e,"p",(function(){return N})),n.d(e,"q",(function(){return z})),n.d(e,"s",(function(){return W})),n.d(e,"t",(function(){return I})),n.d(e,"sb",(function(){return B})),n.d(e,"Wb",(function(){return D})),n.d(e,"tb",(function(){return R})),n.d(e,"Rb",(function(){return q})),n.d(e,"ub",(function(){return U})),n.d(e,"cb",(function(){return A})),n.d(e,"Tb",(function(){return J})),n.d(e,"db",(function(){return H})),n.d(e,"ab",(function(){return Y})),n.d(e,"bb",(function(){return K})),n.d(e,"T",(function(){return Q})),n.d(e,"C",(function(){return X})),n.d(e,"G",(function(){return Z})),n.d(e,"F",(function(){return tt})),n.d(e,"x",(function(){return et})),n.d(e,"H",(function(){return nt})),n.d(e,"Vb",(function(){return rt})),n.d(e,"u",(function(){return ot})),n.d(e,"Sb",(function(){return at})),n.d(e,"Ub",(function(){return it})),n.d(e,"z",(function(){return ct})),n.d(e,"E",(function(){return ut})),n.d(e,"y",(function(){return st})),n.d(e,"w",(function(){return dt})),n.d(e,"S",(function(){return lt})),n.d(e,"h",(function(){return ft})),n.d(e,"e",(function(){return ht})),n.d(e,"f",(function(){return mt})),n.d(e,"Lb",(function(){return pt})),n.d(e,"Mb",(function(){return gt})),n.d(e,"Nb",(function(){return bt})),n.d(e,"nb",(function(){return vt})),n.d(e,"Cb",(function(){return yt})),n.d(e,"U",(function(){return wt})),n.d(e,"Eb",(function(){return Ot})),n.d(e,"Db",(function(){return jt})),n.d(e,"Fb",(function(){return _t})),n.d(e,"Gb",(function(){return xt})),n.d(e,"Hb",(function(){return kt})),n.d(e,"Ib",(function(){return Lt})),n.d(e,"Pb",(function(){return Et})),n.d(e,"Qb",(function(){return Ct})),n.d(e,"V",(function(){return Tt})),n.d(e,"g",(function(){return Ft})),n.d(e,"vb",(function(){return Vt})),n.d(e,"yb",(function(){return St})),n.d(e,"a",(function(){return Mt})),n.d(e,"b",(function(){return Gt})),n.d(e,"wb",(function(){return Pt})),n.d(e,"zb",(function(){return $t})),n.d(e,"xb",(function(){return Nt})),n.d(e,"l",(function(){return zt})),n.d(e,"X",(function(){return Wt})),n.d(e,"Y",(function(){return It})),n.d(e,"eb",(function(){return Bt})),n.d(e,"Q",(function(){return Dt})),n.d(e,"P",(function(){return Rt})),n.d(e,"K",(function(){return qt})),n.d(e,"J",(function(){return Ut})),n.d(e,"L",(function(){return At})),n.d(e,"O",(function(){return Jt})),n.d(e,"N",(function(){return Ht})),n.d(e,"R",(function(){return Yt})),n.d(e,"M",(function(){return Kt})),n.d(e,"i",(function(){return Qt})),n.d(e,"o",(function(){return Xt})),n("99af");var r=n("6b6c"),o=n("c276");function a(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function i(t,e){return Object(r.a)({url:e,method:"get",params:t})}function c(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function u(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function s(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function d(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function l(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function f(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function h(t){return Object(r.a)({url:"serve/checkCode",method:"post",data:t})}function m(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function p(){return Object(r.a)({url:"serve/info",method:"get"})}function g(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function b(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function v(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function y(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function w(){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get"})}function O(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function j(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function _(){return Object(r.a)({url:"serve/export_all",method:"get"})}function x(){return Object(r.a)({url:"serve/open",method:"get"})}function k(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function L(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function E(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function C(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function T(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function F(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function V(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function S(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function M(){return Object(r.a)({url:"merchant/store",method:"GET"})}function G(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function P(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function $(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function N(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function z(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function W(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function I(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function B(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function D(){return Object(r.a)({url:"app/wechat_qrcode/cate/list",method:"get"})}function R(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function q(t){return Object(r.a)({url:"app/wechat_qrcode/cate/create/".concat(t),method:"get"})}function U(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function A(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function J(t){return Object(r.a)({url:"app/wechat_qrcode/list",method:"GET",params:t})}function H(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function Y(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function K(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function Q(){return Object(r.a)({url:"setting/role/create",method:"get"})}function X(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function Z(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function tt(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function et(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function nt(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function rt(t){return Object(r.a)({url:"app/wechat_qrcode/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function ot(t){return Object(r.a)({url:"app/wechat_qrcode/user_list/".concat(t.id),method:"get",params:t})}function at(t){return Object(r.a)({url:"app/wechat_qrcode/info/".concat(t),method:"get"})}function it(t,e){return Object(r.a)({url:"app/wechat_qrcode/save/".concat(t),method:"post",data:e})}function ct(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function ut(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function st(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function dt(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function lt(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function ft(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function ht(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function mt(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function pt(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function gt(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function bt(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function vt(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function yt(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function wt(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function Ot(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function jt(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function _t(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function xt(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function kt(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function Lt(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function Et(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function Ct(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function Tt(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function Ft(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function Vt(){return Object(r.a)({url:"system/config/storage/config",method:"get"})}function St(t){return Object(r.a)({url:"system/config/storage/config",method:"post",data:t})}function Mt(t){return Object(r.a)({url:"system/config/storage/form/".concat(t),method:"get"})}function Gt(t){return Object(r.a)({url:"system/config/storage/create/".concat(t),method:"get"})}function Pt(t){return Object(r.a)({url:"system/config/storage",method:"get",params:t})}function $t(t){return Object(r.a)({url:"system/config/storage/synch/".concat(t),method:"put"})}function Nt(t){return Object(r.a)({url:"system/config/storage/status/".concat(t),method:"put"})}function zt(t){return Object(r.a)({url:"system/config/storage/domain/".concat(t),method:"get"})}function Wt(){return Object(r.a)({url:"setting/config_list/31",method:"get"})}function It(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function Bt(t){return Object(r.a)({url:"system/config/storage/save_type/".concat(t),method:"get"})}function Dt(t){return Object(r.a)({url:"setting/lang_type/list",method:"get",params:t})}function Rt(t){return Object(r.a)({url:"setting/lang_type/form/".concat(t),method:"get"})}function qt(t){return Object(r.a)({url:"setting/lang_code/list",method:"get",params:t})}function Ut(t){return Object(r.a)({url:"setting/lang_code/info",method:"get",params:t})}function At(t){return Object(r.a)({url:"setting/lang_code/save",method:"post",data:t})}function Jt(t){return Object(r.a)({url:"setting/lang_country/list",method:"get",params:t})}function Ht(t){return Object(r.a)({url:"setting/lang_country/form/".concat(t),method:"get"})}function Yt(t,e){return Object(r.a)({url:"setting/lang_type/status/".concat(t,"/").concat(e),method:"put"})}function Kt(t){return Object(r.a)({url:"setting/lang_code/translate",method:"post",data:t})}function Qt(t){return Object(r.a)({url:"system/crud",method:"post",data:t})}function Xt(t){return Object(r.a)({url:"file/upload",method:"post",headers:{"Authori-zation":"Bearer "+Object(o.c)("token"),"content-type":"multipart/form-data;Bearer "+Object(o.c)("token")},data:t})}},b90a:function(t,e,n){"use strict";n.r(e),n("a4d3"),n("e01a"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("159b"),n("b0c0"),n("131a"),n("fb6a");var r=n("0122"),o=n("c964"),a=n("f3f3"),i=(n("d3b7"),n("d81d"),n("a15b"),n("a434"),n("2f62")),c=n("c276"),u=n("90e7");function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(e){d=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var a,i,c,u;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),r=new _(r||[]);return o(e,"_invoke",{value:(a=t,i=n,c=r,u="suspendedStart",function(t,e){if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return k()}for(c.method=t,c.arg=e;;){var n=c.delegate;if(n&&(n=function t(e,n){var r=n.method,o=e.iterator[r];return void 0===o?(n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h):(r=f(o,e.iterator,n.arg),"throw"===r.type?(n.method="throw",n.arg=r.arg,n.delegate=null,h):(o=r.arg,o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)))}(n,c),n)){if(n===h)continue;return n}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);if(u="executing",n=f(a,i,c),"normal"===n.type){if(u=c.done?"completed":"suspendedYield",n.arg===h)continue;return{value:n.arg,done:c.done}}"throw"===n.type&&(u="completed",c.method="throw",c.arg=n.arg)}})}),e}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function m(){}function p(){}function g(){}a={};var b=(d(a,i,(function(){return this})),Object.getPrototypeOf),v=(b=b&&b(b(x([]))),b&&b!==e&&n.call(b,i)&&(a=b),g.prototype=m.prototype=Object.create(a));function y(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var a;o(this,"_invoke",{value:function(o,i){function c(){return new e((function(a,c){!function o(a,i,c,u){var s;a=f(t[a],t,i);if("throw"!==a.type)return(i=(s=a.arg).value)&&"object"==Object(r.a)(i)&&n.call(i,"__await")?e.resolve(i.__await).then((function(t){o("next",t,c,u)}),(function(t){o("throw",t,c,u)})):e.resolve(i).then((function(t){s.value=t,c(s)}),(function(t){return o("throw",t,c,u)}));u(a.arg)}(o,i,a,c)}))}return a=a?a.then(c,c):c()}})}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function x(t){if(t){var e,r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(r=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r}).next=r}return{next:k}}function k(){return{value:void 0,done:!0}}return o(v,"constructor",{value:p.prototype=g,configurable:!0}),o(g,"constructor",{value:p,configurable:!0}),p.displayName=d(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,d(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(w.prototype),d(w.prototype,c,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new w(l(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(v),d(v,u,"Generator"),d(v,i,(function(){return this})),d(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,n=Object(t),r=[];for(e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=x,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}var i=(a=a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc?null:a)?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(n=o.completion).type&&(r=n.arg,j(o)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}a={name:"index",filters:{typeFilter:function(t){return{wechat:"微信用户",routine:"小程序用户"}[t]}},computed:Object(a.a)(Object(a.a)(Object(a.a)({},Object(i.d)("media",["isMobile"])),Object(i.d)("userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),data:function(){return{isChat:!0,formValidate3:{page:1,limit:15},total3:0,loading3:!1,modals3:!1,tableList3:[],columns3:[{title:"用户名称",key:"nickname",width:200},{title:"客服头像",slot:"headimgurl"},{title:"操作",slot:"action"}],formValidate5:{page:1,limit:15,uid:0,to_uid:0,id:0},total5:0,loading5:!1,tableList5:[],columns5:[{title:"用户名称",key:"nickname",width:200},{title:"用户头像",slot:"avatar"},{title:"发送消息",key:"msn",width:250},{title:"发送时间",key:"add_time"}],FromData:null,formValidate:{page:1,limit:15,data:"",type:"",nickname:""},tableList2:[],modals:!1,total:0,tableFrom:{page:1,limit:15},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},loading:!1,tableList:[],columns1:[{title:"ID",key:"id",width:80},{title:"微信用户名称",key:"nickname",minWidth:120},{title:"客服头像",slot:"avatar",minWidth:60},{title:"客服名称",key:"wx_name",minWidth:120},{title:"客服状态",slot:"status",minWidth:120},{title:"添加时间",key:"add_time",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:150}],columns4:[{type:"selection",width:60,align:"center"},{title:"ID",key:"uid",width:80},{title:"微信用户名称",key:"nickname",minWidth:160},{title:"客服头像",slot:"headimgurl",minWidth:60},{title:"用户类型",slot:"user_type",width:100},{title:"性别",slot:"sex",minWidth:60},{title:"地区",slot:"country",minWidth:120},{title:"是否关注公众号",slot:"subscribe",minWidth:120}],loading2:!1,total2:0,addFrom:{uids:[]},selections:[],rows:{},rowRecord:{}}},created:function(){this.getList()},methods:{goChat:function(t){var e=this;Object(u.D)(t.id).then((function(t){var n,r="";t.data.token&&(n=e.getExpiresTime(t.data.exp_time),Object(c.o)("kefu_token",t.data.token,n),Object(c.o)("kefu_uuid",t.data.kefuInfo.uid,n),Object(c.o)("kefu_expires_time",t.data.exp_time,n),Object(c.o)("kefuInfo",t.data.kefuInfo,n),r=e.$store.state.media.isMobile?window.location.protocol+"//"+window.location.host+"/kefu/mobile_list":window.location.protocol+"//"+window.location.host+"/kefu/pc_list",window.open(r,"_blank"))})).catch((function(t){e.$Message.error(t.msg)}))},getExpiresTime:function(t){var e=Math.round(new Date/1e3);return parseFloat(parseFloat(parseFloat((t-e)/60)/60)/24)},cancel:function(){this.formValidate={page:1,limit:10,data:"",type:"",nickname:""}},handleReachBottom:function(){var t=this;return new Promise((function(e){t.formValidate.page=t.formValidate.page+1,setTimeout((function(){Object(u.G)(t.formValidate).then(function(){var e=Object(o.a)(s().mark((function e(n){var r,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0<(r=n.data).list.length)for(o=0;o<r.list.length;o++)t.tableList2.push(r.list[o]);t.total2=r.count,t.loading2=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading2=!1,t.$Message.error(e.msg)})),e()}),2e3)}))},look:function(t){this.isChat=!1,this.rowRecord=t,this.getChatlist()},getChatlist:function(){var t=this;this.loading5=!0,this.formValidate5.uid=this.rows.uid,this.formValidate5.to_uid=this.rowRecord.uid,this.formValidate5.id=this.rows.id,Object(u.y)(this.formValidate5).then(function(){var e=Object(o.a)(s().mark((function e(n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList5=r.list,t.total5=r.count,t.loading5=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading5=!1,t.$Message.error(e.msg)}))},pageChange5:function(t){this.formValidate5.page=t,this.getChatlist()},submitFail:function(){this.getList()},record:function(t){this.rows=t,this.modals3=!0,this.isChat=!0,this.getListRecord()},getListRecord:function(){var t=this;this.loading3=!0,Object(u.E)(this.formValidate3,this.rows.id).then(function(){var e=Object(o.a)(s().mark((function e(n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList3=r.list||[],t.total3=r.count,t.loading3=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading3=!1,t.$Message.error(e.msg)}))},pageChange3:function(t){this.formValidate3.page=t,this.getListRecord()},edit:function(t){var e=this;this.$modalForm(Object(u.z)(t.id)).then((function(){return e.getList()}))},add:function(){var t=this;this.$modalForm(Object(u.F)()).then((function(){return t.getList()}))},onSelectTab:function(t){this.selections=t;var e=[];this.selections.map((function(t){e.push(t.uid)})),this.addFrom.uids=e},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal.join("-"),this.formValidate.page=1,this.getListService()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.formValidate.page=1,this.getListService()},getListService:function(){var t=this;this.loading2=(!0)(this.formValidate).then(function(){var e=Object(o.a)(s().mark((function e(n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList2=r.list,t.total2=r.count,t.tableList2.map((function(t){t._isChecked=!1})),t.loading2=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){tkefucreateApihis.loading2=!1,t.$Message.error(e.msg)}))},pageChange2:function(t){this.formValidate.page=t,this.getListService(),this.addFrom.uids=[]},userSearchs:function(){this.formValidate.page=1,this.getListService()},del:function(t,e,n){var r=this;e={title:e,num:n,url:"app/wechat/kefu/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){r.$Message.success(t.msg),r.tableList.splice(n,1)})).catch((function(t){r.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(u.C)(this.tableFrom).then(function(){var e=Object(o.a)(s().mark((function e(n){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tableList=r.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(u.H)(t).then(function(){var t=Object(o.a)(s().mark((function t(n){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(n.msg),e.getList();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},putRemark:function(){var t=this;if(0===this.addFrom.uids.length)return this.$Message.warning("请选择要添加的客服");Object(u.x)(this.addFrom).then(function(){var e=Object(o.a)(s().mark((function e(n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success(n.msg),t.modals=!1,t.getList();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))}}},n("46f7"),i=n("2877"),n=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Row",{staticClass:"mb20",attrs:{type:"flex"}},[n("Col",{attrs:{span:"24"}},[n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-store_service-add"],expression:"['setting-store_service-add']"}],staticClass:"mr10",attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加客服")])],1)],1),n("Table",{attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"avatar",fn:function(t){var e=t.row;return t.index,[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"row.avatar"}]})])]}},{key:"status",fn:function(e){var r=e.row;return e.index,[n("i-switch",{attrs:{value:r.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(r)}},model:{value:r.status,callback:function(e){t.$set(r,"status",e)},expression:"row.status"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"stop_time",fn:function(e){var r=e.row;return e.index,[n("span",[t._v(" "+t._s(t._f("formatDate")(r.stop_time)))])]}},{key:"action",fn:function(e){var r=e.row,o=e.index;return[n("a",{on:{click:function(e){return t.edit(r)}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(r,"删除客服",o)}}},[t._v("删除")]),r.status?n("Divider",{attrs:{type:"vertical"}}):t._e(),r.status?n("a",{on:{click:function(e){return t.goChat(r)}}},[t._v("进入工作台")]):t._e()]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1),n("Modal",{attrs:{"footer-hide":"",scrollable:"",closable:"",title:"聊天记录",width:"700"},model:{value:t.modals3,callback:function(e){t.modals3=e},expression:"modals3"}},[t.isChat?n("div",{staticClass:"modelBox"},[n("Table",{attrs:{loading:t.loading3,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果",columns:t.columns3,data:t.tableList3},scopedSlots:t._u([{key:"headimgurl",fn:function(t){var e=t.row;return t.index,[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.headimgurl,expression:"row.headimgurl"}]})])]}},{key:"action",fn:function(e){var r=e.row;return e.index,[n("a",{on:{click:function(e){return t.look(r)}}},[t._v("查看对话")])]}}],null,!1,3903412383)}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total3,"show-elevator":"","show-total":"","page-size":t.formValidate3.limit},on:{"on-change":t.pageChange3}})],1)],1):t._e(),t.isChat?t._e():n("div",[n("Button",{attrs:{type:"primary"},on:{click:function(e){t.isChat=!0}}},[t._v("返回聊天记录")]),n("Table",{staticClass:"mt20",attrs:{loading:t.loading5,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果",columns:t.columns5,data:t.tableList5},scopedSlots:t._u([{key:"avatar",fn:function(t){var e=t.row;return t.index,[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"row.avatar"}]})])]}},{key:"action",fn:function(e){var r=e.row;return e.index,[n("a",{on:{click:function(e){return t.look(r)}}},[t._v("查看对话")])]}}],null,!1,3441659566)}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total5,"show-elevator":"","show-total":"","page-size":t.formValidate5.limit},on:{"on-change":t.pageChange5}})],1)],1)])],1)}),[],!1,null,"08b73eca",null),e.default=n.exports}}]);