CRMEB/crmeb/public/admin/system_static/js/chunk-55a83c65.8f0ffa38.js
2023-06-12 14:41:51 +08:00

1 line
28 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-55a83c65"],{"90e7":function(t,e,n){"use strict";n.d(e,"v",(function(){return a})),n.d(e,"k",(function(){return c})),n.d(e,"Kb",(function(){return i})),n.d(e,"Jb",(function(){return u})),n.d(e,"j",(function(){return s})),n.d(e,"gb",(function(){return l})),n.d(e,"Ob",(function(){return f})),n.d(e,"c",(function(){return d})),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 O})),n.d(e,"qb",(function(){return y})),n.d(e,"A",(function(){return j})),n.d(e,"B",(function(){return w})),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 I})),n.d(e,"ib",(function(){return E})),n.d(e,"mb",(function(){return S})),n.d(e,"ob",(function(){return T})),n.d(e,"W",(function(){return C})),n.d(e,"pb",(function(){return $})),n.d(e,"Bb",(function(){return G})),n.d(e,"I",(function(){return M})),n.d(e,"Ab",(function(){return P})),n.d(e,"r",(function(){return V})),n.d(e,"p",(function(){return F})),n.d(e,"q",(function(){return N})),n.d(e,"s",(function(){return q})),n.d(e,"t",(function(){return R})),n.d(e,"sb",(function(){return z})),n.d(e,"Wb",(function(){return D})),n.d(e,"tb",(function(){return U})),n.d(e,"Rb",(function(){return W})),n.d(e,"ub",(function(){return A})),n.d(e,"cb",(function(){return B})),n.d(e,"Tb",(function(){return J})),n.d(e,"db",(function(){return Y})),n.d(e,"ab",(function(){return H})),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 ct})),n.d(e,"z",(function(){return it})),n.d(e,"E",(function(){return ut})),n.d(e,"y",(function(){return st})),n.d(e,"w",(function(){return lt})),n.d(e,"S",(function(){return ft})),n.d(e,"h",(function(){return dt})),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 Ot})),n.d(e,"U",(function(){return yt})),n.d(e,"Eb",(function(){return jt})),n.d(e,"Db",(function(){return wt})),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 It})),n.d(e,"Qb",(function(){return Et})),n.d(e,"V",(function(){return St})),n.d(e,"g",(function(){return Tt})),n.d(e,"vb",(function(){return Ct})),n.d(e,"yb",(function(){return $t})),n.d(e,"a",(function(){return Gt})),n.d(e,"b",(function(){return Mt})),n.d(e,"wb",(function(){return Pt})),n.d(e,"zb",(function(){return Vt})),n.d(e,"xb",(function(){return Ft})),n.d(e,"l",(function(){return Nt})),n.d(e,"X",(function(){return qt})),n.d(e,"Y",(function(){return Rt})),n.d(e,"eb",(function(){return zt})),n.d(e,"Q",(function(){return Dt})),n.d(e,"P",(function(){return Ut})),n.d(e,"K",(function(){return Wt})),n.d(e,"J",(function(){return At})),n.d(e,"L",(function(){return Bt})),n.d(e,"O",(function(){return Jt})),n.d(e,"N",(function(){return Yt})),n.d(e,"R",(function(){return Ht})),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 c(t,e){return Object(r.a)({url:e,method:"get",params:t})}function i(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 l(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function f(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function d(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 O(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function y(){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get"})}function j(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function w(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 I(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function E(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function S(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function T(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function C(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function $(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function G(){return Object(r.a)({url:"merchant/store",method:"GET"})}function M(){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 V(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function F(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function N(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function q(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function R(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function z(){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 U(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function W(t){return Object(r.a)({url:"app/wechat_qrcode/cate/create/".concat(t),method:"get"})}function A(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function B(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 Y(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function H(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 ct(t,e){return Object(r.a)({url:"app/wechat_qrcode/save/".concat(t),method:"post",data:e})}function it(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 lt(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function ft(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function dt(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 Ot(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function yt(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function jt(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function wt(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 It(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function Et(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function St(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function Tt(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function Ct(){return Object(r.a)({url:"system/config/storage/config",method:"get"})}function $t(t){return Object(r.a)({url:"system/config/storage/config",method:"post",data:t})}function Gt(t){return Object(r.a)({url:"system/config/storage/form/".concat(t),method:"get"})}function Mt(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 Vt(t){return Object(r.a)({url:"system/config/storage/synch/".concat(t),method:"put"})}function Ft(t){return Object(r.a)({url:"system/config/storage/status/".concat(t),method:"put"})}function Nt(t){return Object(r.a)({url:"system/config/storage/domain/".concat(t),method:"get"})}function qt(){return Object(r.a)({url:"setting/config_list/31",method:"get"})}function Rt(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function zt(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 Ut(t){return Object(r.a)({url:"setting/lang_type/form/".concat(t),method:"get"})}function Wt(t){return Object(r.a)({url:"setting/lang_code/list",method:"get",params:t})}function At(t){return Object(r.a)({url:"setting/lang_code/info",method:"get",params:t})}function Bt(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 Yt(t){return Object(r.a)({url:"setting/lang_country/form/".concat(t),method:"get"})}function Ht(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})}},c308:function(t,e,n){"use strict";var r=n("e177b");n.n(r).a},e177b:function(t,e,n){},ffd0:function(t,e,n){"use strict";n.r(e),n("a4d3"),n("e01a"),n("d3b7"),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"),c=(n("a434"),n("d81d"),n("2f62")),i=n("90e7");function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=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:{},c=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var a,c,i,u;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),r=new _(r||[]);return o(e,"_invoke",{value:(a=t,c=n,i=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(i.method=t,i.arg=e;;){var n=i.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=d(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,i),n)){if(n===h)continue;return n}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===u)throw u="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);if(u="executing",n=d(a,c,i),"normal"===n.type){if(u=i.done?"completed":"suspendedYield",n.arg===h)continue;return{value:n.arg,done:i.done}}"throw"===n.type&&(u="completed",i.method="throw",i.arg=n.arg)}})}),e}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var h={};function m(){}function p(){}function g(){}a={};var b=(l(a,c,(function(){return this})),Object.getPrototypeOf),v=(b=b&&b(b(x([]))),b&&b!==e&&n.call(b,c)&&(a=b),g.prototype=m.prototype=Object.create(a));function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var a;o(this,"_invoke",{value:function(o,c){function i(){return new e((function(a,i){!function o(a,c,i,u){var s;a=d(t[a],t,c);if("throw"!==a.type)return(c=(s=a.arg).value)&&"object"==Object(r.a)(c)&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){o("next",t,i,u)}),(function(t){o("throw",t,i,u)})):e.resolve(c).then((function(t){s.value=t,i(s)}),(function(t){return o("throw",t,i,u)}));u(a.arg)}(o,c,a,i)}))}return a=a?a.then(i,i):i()}})}function j(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 w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function x(t){if(t){var e,r=t[c];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=l(g,s,"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,l(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},O(y.prototype),l(y.prototype,i,(function(){return this})),t.AsyncIterator=y,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var c=new y(f(e,n,r,o),a);return t.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},O(v),l(v,s,"Generator"),l(v,c,(function(){return this})),l(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(w),!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 c.type="throw",c.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],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var i=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(i&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(i){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 c=(a=a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc?null:a)?a.completion:{};return c.type=t,c.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(c)},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),w(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,w(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:"systemrRole",data:function(){return{spinShow:!1,modals:!1,total:0,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,formValidate:{status:"",role_name:"",page:1,limit:20},columns1:[{title:"ID",key:"id",width:80},{title:"身份昵称",key:"role_name",minWidth:120},{title:"权限",key:"rules",tooltip:!0,width:1e3},{title:"状态",slot:"is_shows",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:120}],tableList:[],formInline:{role_name:"",status:0,checked_menus:[],id:0},menusList:[],modelTit:"",ruleValidate:{role_name:[{required:!0,message:"请输入身份昵称",trigger:"blur"}],status:[{required:!0,type:"number",message:"请选择是否开启",trigger:"change"}]}}},computed:Object(a.a)(Object(a.a)({},Object(c.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"left"},labelPosition2:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{add:function(t){this.formInline.id=0,this.modelTit=t,this.modals=!0,this.getmenusList()},del:function(t,e,n){var r=this;e={title:e,num:n,url:"setting/role/".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)}))},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(i.db)(t).then(function(){var t=Object(o.a)(u().mark((function t(n){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(n.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,this.formValidate.status=this.formValidate.status||"",Object(i.cb)(this.formValidate).then(function(){var e=Object(o.a)(u().mark((function e(n){var r;return u().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.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},edit:function(t,e){this.modelTit=e,this.formInline.id=t.id,this.modals=!0,this.rows=t,this.getIofo(t)},getmenusList:function(){var t=this;this.spinShow=!0,Object(i.T)().then(function(){var e=Object(o.a)(u().mark((function e(n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.menusList=r.menus,t.menusList.map((function(t,e){"主页"===t.title&&t.children.length&&t.children.map((function(t){})),t.expand=!1})),t.spinShow=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))},getIofo:function(t){var e=this;this.spinShow=!0,Object(i.bb)(t.id).then(function(){var t=Object(o.a)(u().mark((function t(n){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=n.data,e.formInline=r.role||e.formInline,e.formInline.checked_menus=e.formInline.rules,e.tidyRes(r.menus),e.spinShow=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.spinShow=!1,e.$Message.error(t.msg)}))},tidyRes:function(t){var e=this,n=[];t.map((function(t){"主页"===t.title?(t.checked=!0,t.disableCheckbox=!0,t.children.length&&t.children.map((function(t){t.checked=!0,t.disableCheckbox=!0})),n.push(t)):n.push(e.initMenu(t))})),this.$set(this,"menusList",n)},initMenu:function(t){var e=this,n={},r=","+this.formInline.checked_menus+",";return n.title=t.title,n.id=t.id,t.children&&0<t.children.length?(n.children=[],t.children.map((function(t){n.children.push(e.initMenu(t))}))):(n.checked=-1!==r.indexOf(String(","+n.id+",")),n.expand=!n.checked),n},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(n){return!!n&&(e.formInline.checked_menus=[],e.$refs.tree.getCheckedAndIndeterminateNodes().map((function(t){e.formInline.checked_menus.push(t.id)})),0===e.formInline.checked_menus.length?e.$Message.warning("请至少选择一个权限"):void Object(i.ab)(e.formInline).then(function(){var n=Object(o.a)(u().mark((function n(r){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.$Message.success(r.msg),e.modals=!1,e.getList(),e.$refs[t].resetFields(),e.formInline.checked_menus=[];case 5:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)})))}))},onCancel:function(){this.$refs.formInline.resetFields(),this.formInline.checked_menus=[]}}},n("c308"),c=n("2877"),n=Object(c.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("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"状态:","label-for":"status"}},[n("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[n("Option",{attrs:{value:"1"}},[t._v("显示")]),n("Option",{attrs:{value:"0"}},[t._v("不显示")])],1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"身份昵称:","label-for":"role_name"}},[n("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入身份昵称"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.role_name,callback:function(e){t.$set(t.formValidate,"role_name",e)},expression:"formValidate.role_name"}})],1)],1)],1),n("Row",{attrs:{type:"flex"}},[n("Col",t._b({},"Col",t.grid,!1),[n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["setting-system_role-add"],expression:"['setting-system_role-add']"}],attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.add("添加")}}},[t._v("添加身份")])],1)],1)],1),n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"is_shows",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:"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("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),n("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:t.modelTit+"身份","mask-closable":!1,width:"600"},on:{"on-cancel":t.onCancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[n("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleValidate,"label-width":100,"label-position":t.labelPosition2},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{attrs:{label:"身份名称:","label-for":"role_name",prop:"role_name"}},[n("Input",{attrs:{placeholder:"请输入身份昵称"},model:{value:t.formInline.role_name,callback:function(e){t.$set(t.formInline,"role_name",e)},expression:"formInline.role_name"}})],1),n("FormItem",{attrs:{label:"是否开启:",prop:"status"}},[n("RadioGroup",{model:{value:t.formInline.status,callback:function(e){t.$set(t.formInline,"status",e)},expression:"formInline.status"}},[n("Radio",{attrs:{label:1}},[t._v("开启")]),n("Radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),n("FormItem",{attrs:{label:"权限:"}},[n("div",{staticClass:"trees-coadd"},[n("div",{staticClass:"scollhide"},[n("div",{staticClass:"iconlist"},[n("Tree",{ref:"tree",attrs:{data:t.menusList,"show-checkbox":""}})],1)])])]),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e(),n("Button",{attrs:{type:"primary",size:"large",long:""},on:{click:function(e){return t.handleSubmit("formInline")}}},[t._v("提交")])],1)],1)],1)}),[],!1,null,"4aa5ada4",null),e.default=n.exports}}]);