(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-84a22048"],{5405:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"100px",inline:!0}},[n("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"选择时间:"}},[n("el-radio-group",{attrs:{size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,a){return n("el-radio-button",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),n("el-date-picker",{attrs:{type:"daterange",placeholder:"选择日期",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"显示状态:"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("el-option",{attrs:{label:"显示",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"隐藏",value:"0"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"关键字:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入账号/呢称/关键字"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加管理员")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[n("el-table-column",{attrs:{prop:"admin_id",label:"ID","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{prop:"real_name",label:"管理员姓名","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"rule_name",label:"身份","min-width":"250"}}),t._v(" "),n("el-table-column",{attrs:{prop:"account",label:"账号","min-width":"250"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(n){t.$set(e.row,"status",n)},expression:"scope.row.status"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onPassword(e.row.admin_id)}}},[t._v("修改管理员密码")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onEdit(e.row.admin_id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.admin_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},r=[],o=n("90e7"),i=n("e572"),u={name:"SystemRole",data:function(){return{fromList:i["a"],grid:{xl:7,lg:7,md:12,sm:24,xs:24},tableData:{data:[],total:0},listLoading:!0,tableFrom:{page:1,limit:20,keyword:"",status:"",date:""},timeVal:[]}},mounted:function(){this.getList()},methods:{selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.tableFrom.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(o["e"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.tableData.data=[],e.tableData.total=0,e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onchangeIsShow:function(t){var e=this;Object(o["h"])(t.admin_id,t.status).then((function(t){var n=t.message;e.$message.success(n)})).catch((function(t){var n=t.message;e.$message.error(n)}))},onAdd:function(){var t=this;this.$modalForm(Object(o["c"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(o["i"])(t)).then((function(){return e.getList()}))},onPassword:function(t){this.$modalForm(Object(o["g"])(t))},handleDelete:function(t,e){var n=this;this.$modalSure("删除该管理员").then((function(){Object(o["d"])(t).then((function(t){var a=t.message;n.$message.success(a),n.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;n.$message.error(e)}))}))}}},s=u,c=n("2877"),l=Object(c["a"])(s,a,r,!1,null,"92493486",null);e["default"]=l.exports},"90e7":function(t,e,n){"use strict";n.d(e,"x",(function(){return r})),n.d(e,"H",(function(){return o})),n.d(e,"K",(function(){return i})),n.d(e,"I",(function(){return u})),n.d(e,"J",(function(){return s})),n.d(e,"e",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"h",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"f",(function(){return p})),n.d(e,"u",(function(){return h})),n.d(e,"L",(function(){return v})),n.d(e,"S",(function(){return b})),n.d(e,"w",(function(){return y})),n.d(e,"n",(function(){return x})),n.d(e,"D",(function(){return _})),n.d(e,"T",(function(){return w})),n.d(e,"P",(function(){return k})),n.d(e,"O",(function(){return F})),n.d(e,"N",(function(){return L})),n.d(e,"p",(function(){return C})),n.d(e,"q",(function(){return $})),n.d(e,"l",(function(){return z})),n.d(e,"Q",(function(){return D})),n.d(e,"m",(function(){return S})),n.d(e,"M",(function(){return j})),n.d(e,"s",(function(){return O})),n.d(e,"Z",(function(){return V})),n.d(e,"b",(function(){return T})),n.d(e,"j",(function(){return E})),n.d(e,"k",(function(){return M})),n.d(e,"Y",(function(){return I})),n.d(e,"o",(function(){return A})),n.d(e,"G",(function(){return J})),n.d(e,"F",(function(){return P})),n.d(e,"y",(function(){return B})),n.d(e,"A",(function(){return N})),n.d(e,"a",(function(){return R})),n.d(e,"B",(function(){return W})),n.d(e,"z",(function(){return q})),n.d(e,"C",(function(){return G})),n.d(e,"U",(function(){return H})),n.d(e,"V",(function(){return K})),n.d(e,"t",(function(){return Q})),n.d(e,"R",(function(){return U})),n.d(e,"v",(function(){return Y})),n.d(e,"r",(function(){return Z})),n.d(e,"E",(function(){return X}));var a=n("0c6d");function r(t){return a["a"].get("system/role/lst",t)}function o(){return a["a"].get("system/role/create/form")}function i(t){return a["a"].get("system/role/update/form/".concat(t))}function u(t){return a["a"].delete("system/role/delete/".concat(t))}function s(t,e){return a["a"].post("system/role/status/".concat(t),{status:e})}function c(t){return a["a"].get("system/admin/lst",t)}function l(){return a["a"].get("/system/admin/create/form")}function d(t){return a["a"].get("system/admin/update/form/".concat(t))}function f(t){return a["a"].delete("system/admin/delete/".concat(t))}function m(t,e){return a["a"].post("system/admin/status/".concat(t),{status:e})}function g(t){return a["a"].get("system/admin/password/form/".concat(t))}function p(t){return a["a"].get("system/admin/log",t)}function h(){return a["a"].get("serve/user/is_login")}function v(){return a["a"].get("serve/user/info")}function b(t){return a["a"].get("serve/mealList/".concat(t))}function y(){return a["a"].get("sms/logout")}function x(t){return a["a"].post("serve/login",t)}function _(t){return a["a"].get("serve/paymeal",t)}function w(t){return a["a"].get("sms/record",t)}function k(t){return a["a"].get("serve/record",t)}function F(t){return a["a"].get("serve/us_lst",t)}function L(t){return a["a"].post("serve/open",t)}function C(){return a["a"].get("serve/expr/lst")}function $(t){return a["a"].get("serve/expr/temps",t)}function z(t){return a["a"].get("serve/captcha/".concat(t))}function D(t){return a["a"].post("serve/change_sign",t)}function S(t){return a["a"].post("serve/captcha",t)}function j(t){return a["a"].post("serve/change_password",t)}function O(){return a["a"].get("serve/config")}function V(t){return a["a"].post("serve/config",t)}function T(){return a["a"].get("serve/meal/create/form")}function E(t){return a["a"].get("serve/meal/lst",t)}function M(t,e){return a["a"].post("serve/meal/status/".concat(t),e)}function I(t){return a["a"].get("serve/meal/update/".concat(t,"/form"))}function A(t){return a["a"].delete("serve/meal/detele/".concat(t))}function J(t){return a["a"].get("serve/paylst",t)}function P(t){return a["a"].get("serve/mer/paylst",t)}function B(t){return a["a"].get("serve/mer/lst",t)}function N(t){return a["a"].get("notice/config/lst",t)}function R(){return a["a"].get("notice/config/create/form")}function W(t){return a["a"].get("notice/config/update/".concat(t,"/form"))}function q(t){return a["a"].get("notice/config/change/".concat(t,"/form"))}function G(t,e){return a["a"].post("notice/config/status/".concat(t),e)}function H(){return a["a"].get("wechat/template/min/sync")}function K(){return a["a"].get("wechat/template/sync")}function Q(){return a["a"].get("change/color")}function U(t){return a["a"].post("change/color",t)}function Y(){return a["a"].get("agreement/keylst")}function Z(t){return a["a"].get("agreement/".concat(t))}function X(t,e){return a["a"].post("agreement/".concat(t),e)}},e572:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var a=[{label:"开启",value:1},{label:"关闭",value:0}],r={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"}]},o={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}}}]);