You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
18 KiB
1 lines
18 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-be281dc6"],{"1f0d":function(t,e,n){},"55a7":function(t,e,n){"use strict";n.r(e);var r=n("2f62"),a=n("90e7");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(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){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={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:u(u({},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.O)(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.L)(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.M)(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.N)(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()}}},d=(n("c783"),n("2877")),l=Object(d.a)(s,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"formValidate",attrs:{model:t.formValidate,inline:"","label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"状态:"}},[e("Select",{staticClass:"input-add",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"}},[e("Option",{attrs:{value:"1"}},[t._v("开启")]),e("Option",{attrs:{value:"2"}},[t._v("禁用")])],1)],1),e("FormItem",{attrs:{label:"搜索:"}},[e("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入账号或者描述"},model:{value:t.formValidate.name,callback:function(e){t.$set(t.formValidate,"name",e)},expression:"formValidate.name"}}),e("Button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加账号")]),e("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(n){var r=n.row;return[e("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"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("禁用")])])]}},{key:"action",fn:function(n){var r=n.row,a=n.index;return[e("a",{on:{click:function(e){return t.edit(r)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(r,"删除该账户",a)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("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),e("Modal",{attrs:{scrollable:"",title:0==t.type?"添加账号":"编辑账号","mask-closable":!1,closable:!1},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("Form",{ref:"modalsdate",attrs:{model:t.modalsdate,rules:t.ruleValidate,"label-width":50,"label-position":"right"}},[e("FormItem",{attrs:{label:"账号",prop:"appid"}},[e("div",{staticStyle:{display:"flex"}},[e("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)]),e("FormItem",{attrs:{label:"密码",prop:"appsecret"}},[e("div",{staticStyle:{display:"flex"}},[e("Input",{staticClass:"input",attrs:{type:"text"},model:{value:t.modalsdate.appsecret,callback:function(e){t.$set(t.modalsdate,"appsecret",e)},expression:"modalsdate.appsecret"}}),e("Button",{staticClass:"reset",attrs:{type:"primary"},on:{click:t.reset}},[t._v("重置")])],1)]),e("FormItem",{attrs:{label:"描述"}},[e("div",{staticStyle:{display:"flex"}},[e("Input",{attrs:{type:"textarea"},model:{value:t.modalsdate.title,callback:function(e){t.$set(t.modalsdate,"title",e)},expression:"modalsdate.title"}})],1)])],1),e("div",{attrs:{slot:"footer"},slot:"footer"},[""==t.modalsid?e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.ok("modalsdate")}}},[t._v("确定")]):e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.oks("modalsdate")}}},[t._v("确定")]),e("Button",{on:{click:t.cancel}},[t._v("取消")])],1)],1)],1)}),[],!1,null,"0ed24bef",null);e.default=l.exports},"90e7":function(t,e,n){"use strict";n.d(e,"u",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"wb",(function(){return c})),n.d(e,"vb",(function(){return u})),n.d(e,"X",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"ab",(function(){return d})),n.d(e,"P",(function(){return l})),n.d(e,"kb",(function(){return f})),n.d(e,"H",(function(){return m})),n.d(e,"jb",(function(){return p})),n.d(e,"p",(function(){return h})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return b})),n.d(e,"q",(function(){return O})),n.d(e,"r",(function(){return j})),n.d(e,"S",(function(){return v})),n.d(e,"T",(function(){return y})),n.d(e,"Q",(function(){return _})),n.d(e,"R",(function(){return w})),n.d(e,"I",(function(){return k})),n.d(e,"B",(function(){return x})),n.d(e,"F",(function(){return S})),n.d(e,"E",(function(){return P})),n.d(e,"w",(function(){return M})),n.d(e,"G",(function(){return V})),n.d(e,"y",(function(){return $})),n.d(e,"D",(function(){return T})),n.d(e,"x",(function(){return C})),n.d(e,"v",(function(){return E})),n.d(e,"h",(function(){return L})),n.d(e,"d",(function(){return I})),n.d(e,"e",(function(){return F})),n.d(e,"xb",(function(){return W})),n.d(e,"yb",(function(){return D})),n.d(e,"zb",(function(){return B})),n.d(e,"Z",(function(){return G})),n.d(e,"lb",(function(){return z})),n.d(e,"J",(function(){return U})),n.d(e,"nb",(function(){return q})),n.d(e,"mb",(function(){return A})),n.d(e,"ob",(function(){return J})),n.d(e,"pb",(function(){return N})),n.d(e,"qb",(function(){return H})),n.d(e,"rb",(function(){return K})),n.d(e,"Ab",(function(){return Q})),n.d(e,"Bb",(function(){return R})),n.d(e,"K",(function(){return X})),n.d(e,"f",(function(){return Y})),n.d(e,"Cb",(function(){return Z})),n.d(e,"bb",(function(){return tt})),n.d(e,"cb",(function(){return et})),n.d(e,"C",(function(){return nt})),n.d(e,"z",(function(){return rt})),n.d(e,"Y",(function(){return at})),n.d(e,"db",(function(){return ot})),n.d(e,"eb",(function(){return ct})),n.d(e,"fb",(function(){return ut})),n.d(e,"A",(function(){return it})),n.d(e,"L",(function(){return st})),n.d(e,"O",(function(){return dt})),n.d(e,"M",(function(){return lt})),n.d(e,"N",(function(){return ft})),n.d(e,"g",(function(){return mt})),n.d(e,"t",(function(){return pt})),n.d(e,"s",(function(){return ht})),n.d(e,"U",(function(){return gt})),n.d(e,"gb",(function(){return bt})),n.d(e,"ib",(function(){return Ot})),n.d(e,"b",(function(){return jt})),n.d(e,"hb",(function(){return vt})),n.d(e,"l",(function(){return yt})),n.d(e,"a",(function(){return _t})),n.d(e,"k",(function(){return wt})),n.d(e,"j",(function(){return kt})),n.d(e,"sb",(function(){return xt})),n.d(e,"tb",(function(){return St})),n.d(e,"ub",(function(){return Pt})),n.d(e,"m",(function(){return Mt})),n.d(e,"V",(function(){return Vt})),n.d(e,"W",(function(){return $t}));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 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 i(){return Object(r.a)({url:"serve/info",method:"get"})}function s(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function d(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function l(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function f(){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 h(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function g(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function b(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function O(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function j(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function v(t){return Object(r.a)({url:"setting/role",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 _(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function w(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function k(){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 S(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function P(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function M(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function V(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.account_status),method:"PUT"})}function $(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function T(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function C(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function E(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function L(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function I(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function F(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function W(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function D(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function B(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function G(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function z(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function U(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function q(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function A(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function J(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function N(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function H(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function K(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function Q(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function R(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function X(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function Y(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function Z(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function tt(t){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get",params:t})}function et(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function nt(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function rt(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function at(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 ct(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function ut(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function it(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function st(t){return Object(r.a)({url:"setting/system_out/index",method:"get",params:t})}function dt(t,e){return Object(r.a)({url:"setting/system_out/set_status/".concat(t,"/").concat(e),method:"put"})}function lt(t){return Object(r.a)({url:"setting/system_out/save",method:"post",params:t})}function ft(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 pt(t){return Object(r.a)({url:"setting/config/edit_new_build/"+t,method:"get"})}function ht(){return Object(r.a)({url:"/setting/config/image",method:"get"})}function gt(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function bt(t){return Object(r.a)({url:"/setting/config/storage",method:"get",params:t})}function Ot(t){return Object(r.a)({url:"/setting/config/storage/synch/".concat(t),method:"put"})}function jt(t){return Object(r.a)({url:"/setting/config/storage/create/".concat(t),method:"get"})}function vt(t){return Object(r.a)({url:"/setting/config/storage/status/".concat(t),method:"put"})}function yt(t){return Object(r.a)({url:"/setting/config/storage/domain/".concat(t),method:"get"})}function _t(t){return Object(r.a)({url:"/setting/config/storage/form/".concat(t),method:"get"})}function wt(t){return Object(r.a)({url:"/order/delivery_order/list",method:"get",params:t})}function kt(t){return Object(r.a)({url:"/order/delivery_order/cancelForm/".concat(t),method:"get"})}function xt(t,e){return Object(r.a)({url:"/system/form/save/".concat(t),method:"post",data:e})}function St(t,e){return Object(r.a)({url:"/system/form/info/".concat(t),method:"get",params:e})}function Pt(t){return Object(r.a)({url:"/system/form/index",method:"get",params:t})}function Mt(t,e){return Object(r.a)({url:"system/form/update_name/"+t,method:"post",data:e})}function Vt(t){return Object(r.a)({url:"setting/config/storage/save_type/".concat(t),method:"get"})}function $t(t){return Object(r.a)({url:"/file/scan/upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},c783:function(t,e,n){"use strict";n("1f0d")}}]); |