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.
 
 
 
 
 
crmeb_php/public/mer/js/chunk-961c0de4.6b2fa3fa.js

1 lines
6.6 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-961c0de4"],{5405:function(t,e,n){"use strict";n.r(e);var r=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("el-row",{attrs:{gutter:24}},[n("el-col",t._b({},"el-col",t.grid,!1),[n("div",{staticClass:"grid-content bg-purple"})])],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","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"merchant_admin_id",label:"ID","min-width":"60"}}),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.merchant_admin_id)}}},[t._v("修改管理员密码")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onEdit(e.row.merchant_admin_id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.merchant_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)},a=[],i=n("90e7"),o={name:"SystemRole",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},tableData:{data:[],total:0},listLoading:!0,tableFrom:{page:1,limit:20}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(i["c"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.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(i["f"])(t.merchant_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(i["a"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(i["g"])(t)).then((function(){return e.getList()}))},onPassword:function(t){this.$modalForm(Object(i["e"])(t))},handleDelete:function(t,e){var n=this;this.$modalSure().then((function(){Object(i["b"])(t).then((function(t){var r=t.message;n.$message.success(r),n.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;n.$message.error(e)}))}))}}},u=o,s=n("2877"),c=Object(s["a"])(u,r,a,!1,null,"324c4d02",null);e["default"]=c.exports},"90e7":function(t,e,n){"use strict";n.d(e,"m",(function(){return a})),n.d(e,"u",(function(){return i})),n.d(e,"x",(function(){return o})),n.d(e,"v",(function(){return u})),n.d(e,"w",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return g})),n.d(e,"d",(function(){return h})),n.d(e,"A",(function(){return p})),n.d(e,"B",(function(){return v})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return w})),n.d(e,"y",(function(){return y})),n.d(e,"z",(function(){return x})),n.d(e,"n",(function(){return k})),n.d(e,"o",(function(){return z})),n.d(e,"i",(function(){return L})),n.d(e,"h",(function(){return $})),n.d(e,"C",(function(){return C})),n.d(e,"p",(function(){return j})),n.d(e,"r",(function(){return D})),n.d(e,"s",(function(){return F})),n.d(e,"t",(function(){return S})),n.d(e,"q",(function(){return O}));var r=n("0c6d");function a(t){return r["a"].get("system/role/lst",t)}function i(){return r["a"].get("system/role/create/form")}function o(t){return r["a"].get("system/role/update/form/".concat(t))}function u(t){return r["a"].delete("system/role/delete/".concat(t))}function s(t,e){return r["a"].post("system/role/status/".concat(t),{status:e})}function c(t){return r["a"].get("system/admin/lst",t)}function l(){return r["a"].get("/system/admin/create/form")}function d(t){return r["a"].get("system/admin/update/form/".concat(t))}function f(t){return r["a"].delete("system/admin/delete/".concat(t))}function m(t,e){return r["a"].post("system/admin/status/".concat(t),{status:e})}function g(t){return r["a"].get("system/admin/password/form/".concat(t))}function h(t){return r["a"].get("system/admin/log",t)}function p(){return r["a"].get("take/info")}function v(t){return r["a"].post("take/update",t)}function b(){return r["a"].get("margin/code")}function _(t){return r["a"].get("margin/lst",t)}function w(){return r["a"].post("financial/refund/margin")}function y(){return r["a"].get("serve/info")}function x(t){return r["a"].get("serve/meal",t)}function k(t){return r["a"].get("serve/code",t)}function z(t){return r["a"].get("serve/paylst",t)}function L(t){return r["a"].get("expr/temps",t)}function $(){return r["a"].get("serve/config")}function C(t){return r["a"].post("serve/config",t)}function j(){return r["a"].get("store/printer/create/form")}function D(t){return r["a"].get("store/printer/lst",t)}function F(t,e){return r["a"].post("store/printer/status/".concat(t),e)}function S(t){return r["a"].get("store/printer/update/".concat(t,"/form"))}function O(t){return r["a"].delete("store/printer/delete/".concat(t))}}}]);