chunk-2d0c0acc.feff43dc.js 4.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0acc"],{4390:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-list-content"},[t("x-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"table-column-avator",fn:function(o){var n=o.scope;return[t("cl-avatar",{style:{margin:"auto"},attrs:{shape:"square",size:40,src:e._f("default_avatar")(n.row.avator)}})]}},{key:"table-column-super",fn:function(o){var n=o.scope;return[t("span",[e._v(e._s(1==n.row.status?"是":2==n.row.status?"不是":"-"))])]}},{key:"table-column-founder",fn:function(o){var n=o.scope;return[t("span",[e._v(e._s(1==n.row.founder?"是":2==n.row.status?"不是":"-"))])]}},{key:"slot-column-option",fn:function(o){var n=o.scope;return[[t("el-popover",{ref:"popover-"+n.row.id,attrs:{placement:"top",width:"160"}},[t("p",[e._v("开店申请记录和管理员信息将被删除,确定要删除吗?")]),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.selfGetCancel(n.row.id)}}},[e._v("取消")]),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.noSendShipFn(n.row)}}},[e._v("确定")])],1),t("el-button",{attrs:{slot:"reference",type:"text",size:"small"},slot:"reference"},[e._v("删除")])],1)]]}},{key:"slot-add-pf-notice",fn:function(o){var n=o.scope;return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.adNotice(n.row,2)}}},[e._v("加批发通知")])]}},{key:"slot-add-hd-notice",fn:function(o){var n=o.scope;return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.adNotice(n.row,1)}}},[e._v("加零售通知")])]}}])}),t("el-dialog",{attrs:{visible:e.addNoticePop,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(t){e.addNoticePop=t}}},[t("el-form",{ref:"adForm",staticClass:"demo-form",attrs:{model:e.addStaffForm,rules:e.ruleForm,"label-width":"80px"}},[t("el-form-item",{staticStyle:{"text-align":"left"},attrs:{label:"openId",prop:"openId"}},[t("el-input",{attrs:{placeholder:"请输入openId",size:"small"},model:{value:e.openId,callback:function(t){e.openId=t},expression:"openId"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:e.resetForm}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.submitForm}},[e._v("确认")])],1)],1)],1)},a=[],r={data:function(){return{show:!1,openId:"",adminId:0,addNoticePop:!1,ruleForm:{},addStaffForm:{},ptStyle:0}},mounted:function(){},methods:{adNotice:function(e,t){this.adminId=e.adminId,this.ptStyle=t,this.addNoticePop=!0},submitForm:function(){var e=this;if(0==this.ptStyle||0==this.adminId||""==this.openId)return this.$message.error("缺少参数"),!1;e.$service.admin.updateOpenId({adminId:this.adminId,openId:this.openId,ptStyle:this.ptStyle}).then((function(t){e.$message.success("操作成功"),e.resetForm()}))},resetForm:function(){this.openId="",this.ptStyle=0,this.adminId=0,this.addNoticePop=!1},onLoad:function(e){var t=e.ctx,o=e.app;this.app=o,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:"adminId",label:"adminID",align:"center",emptyText:"无"},{prop:"remind",label:"收款提醒",align:"center",emptyText:"-"},{prop:"super",label:"管理员",align:"center",emptyText:"无"},{prop:"founder",label:"创始人",align:"center",emptyText:"无"},{prop:"delStatus",label:"删除",align:"center",emptyText:"-"},{prop:"addTime",label:"添加时间",align:"center",emptyText:"无"}],op:{visible:!0,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:["slot-add-pf-notice","slot-add-hd-notice"]}}).set("dict",{search:{keyWord:"mobile"}}).set("search",{key:{placeholder:"请填写手机号"}}).set("layout",[["slot-tabs"],["search-key"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).done(),o.refresh()},selfGetCancel:function(e){this.$refs["popover-"+e].doClose()},noSendShipFn:function(e){var t=this;console.log("item.id",e.id);var o={id:e.id};this.$service.auth.shopAdminDelete(o).then((function(o){t.$message.success("操作成功!"),t.$refs["popover-"+e.id].doClose(),t.app.refresh()}))}}},i=r,s=o("1805"),l=Object(s["a"])(i,n,a,!1,null,null,null);t["default"]=l.exports}}]);