(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0acc"],{4390:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-list-content"},[n("x-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"table-column-avator",fn:function(t){var o=t.scope;return[n("cl-avatar",{style:{margin:"auto"},attrs:{shape:"square",size:40,src:e._f("default_avatar")(o.row.avator)}})]}},{key:"table-column-super",fn:function(t){var o=t.scope;return[n("span",[e._v(e._s(1==o.row.status?"是":2==o.row.status?"不是":"-"))])]}},{key:"table-column-founder",fn:function(t){var o=t.scope;return[n("span",[e._v(e._s(1==o.row.founder?"是":2==o.row.status?"不是":"-"))])]}},{key:"slot-column-option",fn:function(t){var o=t.scope;return[[n("el-popover",{ref:"popover-"+o.row.id,attrs:{placement:"top",width:"160"}},[n("p",[e._v("开店申请记录和管理员信息将被删除，确定要删除吗?")]),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selfGetCancel(o.row.id)}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.noSendShipFn(o.row)}}},[e._v("确定")])],1),n("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[e._v("删除")])],1)]]}}])})],1)},r=[],a={data:function(){return{show:!1}},mounted:function(){},methods:{onLoad:function(e){var t=e.ctx,n=e.app;this.app=n,t.service(this.$service.shopAdmin).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"avator",label:"头像",align:"center"},{prop:"name",label:"名称",align:"center"},{prop:"mobile",label:"手机号",align:"center"},{prop:"merchanId",label:"商家ID",align:"center",emptyText:"无"},{prop:"shopId",label:"门店ID",align:"center",emptyText:"无"},{prop:"remid",label:"收款提醒",align:"center",emptyText:"无"},{prop:"super",label:"管理员",align:"center",emptyText:"无"},{prop:"founder",label:"创始人",align:"center",emptyText:"无"},{prop:"addTime",label:"添加时间",align:"center",emptyText:"无"}],op:{visible:!0,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:["slot-column-option"]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).done(),n.refresh()},selfGetCancel:function(e){this.$refs["popover-"+e].doClose()},noSendShipFn:function(e){var t=this;console.log("item.id",e.id);var n={id:e.id};this.$service.auth.shopAdminDelete(n).then((function(n){t.$message.success("操作成功！"),t.$refs["popover-"+e.id].doClose(),t.app.refresh()}))}}},l=a,s=n("5d22"),i=Object(s["a"])(l,o,r,!1,null,null,null);t["default"]=i.exports}}]);