1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3153a340"],{"55a7":function(t,e,n){"use strict";n.r(e);var r=n("2f62"),a=n("90e7");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={name:"user_level",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},modalsid:"",loading:!1,columns1:[{title:"ID",key:"id",width:50},{title:"账号",key:"appid",minWidth:100},{title:"描述",key:"title",minWidth:120},{title:"添加时间",key:"add_time",minWidth:100},{title:"最后登录时间",key:"last_time",minWidth:100},{title:"登录",key:"ip",minWidth:100},{title:"状态",slot:"status",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:80}],formValidate:{name:"",status:"",page:1,limit:15},modalsdate:{appid:"",appsecret:"",title:""},ruleValidate:{appid:[{required:!0,message:"请输入正确的账号 (不少于8位数)",trigger:"blur",min:8}],appsecret:[{required:!0,message:"请输入正确的密码 (不少于32位数)",trigger:"blur",min:32}]},levelLists:[],total:0,modals:!1,type:0}},created:function(){this.getList()},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(n,!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{del:function(t,e,n){var r=this,a={title:e,num:n,url:"setting/system_out/delete/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(a).then((function(t){r.$Message.success(t.msg),r.levelLists.splice(n,1),r.levelLists.length||(r.formValidate.page=1==r.formValidate.page?1:r.formValidate.page-1),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(a.S)(t.id,t.status).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,Object(a.P)(this.formValidate).then((function(e){var n=e.data;t.levelLists=n.list,t.total=n.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},add:function(){this.modals=!0,this.type=0},edit:function(t){this.modals=!0,this.modalsdate.appid=t.appid,this.modalsdate.title=t.title,this.modalsid=t.id,this.type=1},ok:function(t){var e=this;this.$refs[t].validate((function(t){t?Object(a.Q)(e.modalsdate).then((function(t){e.modalsdate={appid:"",appsecret:"",title:""},e.modals=!1,e.$Message.success(t.msg),e.modalsid="",e.getList()})).catch((function(t){e.$Message.error(t.msg)})):e.$Message.warning("请完善数据")}))},oks:function(t){var e=this;this.$refs[t].validate((function(t){t?Object(a.R)(e.modalsid,e.modalsdate).then((function(t){e.modalsdate={appid:"",appsecret:"",title:""},e.modals=!1,e.$Message.success(t.msg),e.modalsid="",e.getList()})).catch((function(t){e.$Message.error(t.msg)})):e.$Message.warning("请完善数据")}))},cancel:function(){this.modalsid="",this.modalsdate={appid:"",appsecret:"",title:""},this.modals=!1},reset:function(){for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",e=t.length,n="",r=0;r<32;r++)n+=t.charAt(Math.floor(Math.random()*e));this.modalsdate.appsecret=n},userSearchs:function(){this.formValidate.page=1,this.getList()}}},i=(n("c762"),n("2877")),s=Object(i.a)(c,(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":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,inline:"","label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{attrs:{label:"状态:"}},[n("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:""},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:"2"}},[t._v("禁用")])],1)],1),n("FormItem",{attrs:{label:"搜索:"}},[n("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入账号或者描述"},model:{value:t.formValidate.name,callback:function(e){t.$set(t.formValidate,"name",e)},expression:"formValidate.name"}}),n("Button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加账号")]),n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.levelLists,loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var r=e.row;return[n("i-switch",{attrs:{value:r.status,"true-value":1,"false-value":2,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,a=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,"删除该账户",a)}}},[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:"",title:0==t.type?"添加账号":"编辑账号","mask-closable":!1,closable:!1},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[n("Form",{ref:"modalsdate",attrs:{model:t.modalsdate,rules:t.ruleValidate,"label-width":50,"label-position":"right"}},[n("FormItem",{attrs:{label:"账号",prop:"appid"}},[n("div",{staticStyle:{display:"flex"}},[n("Input",{attrs:{type:"text",disabled:0!=t.type},model:{value:t.modalsdate.appid,callback:function(e){t.$set(t.modalsdate,"appid",e)},expression:"modalsdate.appid"}})],1)]),n("FormItem",{attrs:{label:"密码",prop:"appsecret"}},[n("div",{staticStyle:{display:"flex"}},[n("Input",{staticClass:"input",attrs:{type:"text"},model:{value:t.modalsdate.appsecret,callback:function(e){t.$set(t.modalsdate,"appsecret",e)},expression:"modalsdate.appsecret"}}),n("Button",{staticClass:"reset",attrs:{type:"primary"},on:{click:t.reset}},[t._v("重置")])],1)]),n("FormItem",{attrs:{label:"描述"}},[n("div",{staticStyle:{display:"flex"}},[n("Input",{attrs:{type:"textarea"},model:{value:t.modalsdate.title,callback:function(e){t.$set(t.modalsdate,"title",e)},expression:"modalsdate.title"}})],1)])],1),n("div",{attrs:{slot:"footer"},slot:"footer"},[""==t.modalsid?n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.ok("modalsdate")}}},[t._v("确定")]):n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.oks("modalsdate")}}},[t._v("确定")]),n("Button",{on:{click:t.cancel}},[t._v("取消")])],1)],1)],1)}),[],!1,null,"8ae33200",null);e.default=s.exports},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return a})),n.d(e,"k",(function(){return o})),n.d(e,"Jb",(function(){return u})),n.d(e,"Ib",(function(){return c})),n.d(e,"j",(function(){return i})),n.d(e,"db",(function(){return s})),n.d(e,"kb",(function(){return d})),n.d(e,"gb",(function(){return l})),n.d(e,"hb",(function(){return f})),n.d(e,"d",(function(){return m})),n.d(e,"eb",(function(){return p})),n.d(e,"Nb",(function(){return h})),n.d(e,"ib",(function(){return b})),n.d(e,"p",(function(){return g})),n.d(e,"o",(function(){return O})),n.d(e,"c",(function(){return j})),n.d(e,"U",(function(){return v})),n.d(e,"mb",(function(){return y})),n.d(e,"T",(function(){return _})),n.d(e,"nb",(function(){return w})),n.d(e,"xb",(function(){return k})),n.d(e,"K",(function(){return x})),n.d(e,"wb",(function(){return P})),n.d(e,"s",(function(){return $})),n.d(e,"q",(function(){return M})),n.d(e,"r",(function(){return V})),n.d(e,"t",(function(){return C})),n.d(e,"u",(function(){return E})),n.d(e,"X",(function(){return T})),n.d(e,"Y",(function(){return S})),n.d(e,"V",(function(){return L})),n.d(e,"W",(function(){return I})),n.d(e,"M",(function(){return F})),n.d(e,"E",(function(){return D})),n.d(e,"I",(function(){return G})),n.d(e,"H",(function(){return W})),n.d(e,"z",(function(){return B})),n.d(e,"J",(function(){return z})),n.d(e,"B",(function(){return J})),n.d(e,"G",(function(){return U})),n.d(e,"A",(function(){return q})),n.d(e,"y",(function(){return A})),n.d(e,"L",(function(){return Q})),n.d(e,"i",(function(){return H})),n.d(e,"e",(function(){return K})),n.d(e,"f",(function(){return N})),n.d(e,"Kb",(function(){return R})),n.d(e,"Lb",(function(){return X})),n.d(e,"Mb",(function(){return Y})),n.d(e,"lb",(function(){return Z})),n.d(e,"yb",(function(){return tt})),n.d(e,"N",(function(){return et})),n.d(e,"Ab",(function(){return nt})),n.d(e,"zb",(function(){return rt})),n.d(e,"Bb",(function(){return at})),n.d(e,"Cb",(function(){return ot})),n.d(e,"Db",(function(){return ut})),n.d(e,"Eb",(function(){return ct})),n.d(e,"Ob",(function(){return it})),n.d(e,"Pb",(function(){return st})),n.d(e,"O",(function(){return dt})),n.d(e,"g",(function(){return lt})),n.d(e,"Qb",(function(){return ft})),n.d(e,"ob",(function(){return mt})),n.d(e,"pb",(function(){return pt})),n.d(e,"F",(function(){return ht})),n.d(e,"C",(function(){return bt})),n.d(e,"jb",(function(){return gt})),n.d(e,"qb",(function(){return Ot})),n.d(e,"rb",(function(){return jt})),n.d(e,"sb",(function(){return vt})),n.d(e,"D",(function(){return yt})),n.d(e,"fb",(function(){return _t})),n.d(e,"cb",(function(){return wt})),n.d(e,"P",(function(){return kt})),n.d(e,"S",(function(){return xt})),n.d(e,"Q",(function(){return Pt})),n.d(e,"R",(function(){return $t})),n.d(e,"h",(function(){return Mt})),n.d(e,"w",(function(){return Vt})),n.d(e,"v",(function(){return Ct})),n.d(e,"Z",(function(){return Et})),n.d(e,"tb",(function(){return Tt})),n.d(e,"vb",(function(){return St})),n.d(e,"b",(function(){return Lt})),n.d(e,"ub",(function(){return It})),n.d(e,"n",(function(){return Ft})),n.d(e,"a",(function(){return Dt})),n.d(e,"m",(function(){return Gt})),n.d(e,"l",(function(){return Wt})),n.d(e,"Fb",(function(){return Bt})),n.d(e,"Gb",(function(){return zt})),n.d(e,"Hb",(function(){return Jt})),n.d(e,"ab",(function(){return Ut})),n.d(e,"bb",(function(){return qt}));var r=n("b6bd");function a(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function o(t,e){return Object(r.a)({url:e,method:"get",params:t})}function u(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function c(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function i(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function s(){return Object(r.a)({url:"serve/info",method:"get"})}function d(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function l(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function f(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function m(t){return Object(r.a)({url:"serve/checkCode",method:"post",data:t})}function p(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function h(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function b(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function g(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function O(){return Object(r.a)({url:"serve/export_all",method:"get"})}function j(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function v(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function y(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function _(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function w(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function k(){return Object(r.a)({url:"merchant/store",method:"GET"})}function x(){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 M(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function V(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function C(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function E(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function T(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function S(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function L(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function I(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function F(){return Object(r.a)({url:"setting/role/create",method:"get"})}function D(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function G(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function W(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function B(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function z(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function J(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function U(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function q(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function A(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function Q(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function H(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function K(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function N(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function R(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function X(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function Y(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function Z(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function tt(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function et(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function nt(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function rt(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function at(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function ot(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function ut(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function ct(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 st(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function dt(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function lt(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function ft(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function mt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function pt(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function ht(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function bt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function gt(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function Ot(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function jt(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function vt(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function yt(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function _t(){return Object(r.a)({url:"serve/open",method:"get"})}function wt(){return Object(r.a)({url:"serve/dump_open",method:"get"})}function kt(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function xt(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function Pt(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function $t(t,e){return Object(r.a)({url:"setting/system_out/update/".concat(t),method:"post",params:e})}function Mt(t){return Object(r.a)({url:"city",method:"get",params:t})}function Vt(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function Ct(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function Et(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function Tt(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function St(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function Lt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function It(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function Ft(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function Dt(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function Gt(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function Wt(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function Bt(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function zt(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Jt(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function Ut(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function qt(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},c762:function(t,e,n){"use strict";var r=n("f487");n.n(r).a},f487:function(t,e,n){}}]);
|