| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21e5d6"],{d4f6:function(e,t,a){"use strict";a.r(t);var l=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-addTime",fn:function({scope:a}){return[t("span",[e._v(e._s(e._f("formatTime")(a.row.addTime)))])]}},{key:"table-column-status",fn:function({scope:a}){return[t("span",[e._v(e._s(e._f("constantfilter")(a.row.status,"SASS_APPLY_STATUS")))])]}},{key:"slot-apply",fn:function({scope:a}){return[0==a.row.status||2==a.row.status?[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.showModalFn(a.row)}}},[e._v("审核")])]:e._e()]}}])}),t("el-dialog",{attrs:{title:"审核",visible:e.applyDialog,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(t){e.applyDialog=t}}},[t("div",{staticClass:"ad-modal-content"},[t("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:e.form,rules:e.rule,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"状态",prop:"status"}},[t("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[t("el-radio",{attrs:{label:"1"}},[e._v("通过")]),t("el-radio",{attrs:{label:"2"}},[e._v("拒绝")])],1)],1),t("el-form-item",{attrs:{label:"备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],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.applyFn}},[e._v("确认")])],1)])],1)},s=[],o={data(){return{app:null,applyDialog:!1,form:{id:"",status:"1",remark:""},rule:{}}},mounted(){},methods:{showModalFn(e){this.form.id=e.id,this.applyDialog=!0},applyFn(){this.$service.sassShop.applyCheck(this.form).then(e=>{this.app.refresh(),this.$message.success("审核成功!"),this.resetForm()})},resetForm(){this.$refs["form"].resetFields(),this.applyDialog=!1},onLoad({ctx:e,app:t}){this.app=t;let a=()=>this.$service.sassShop.applyList();e.service({page:a}).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"name",label:"花店名称",align:"center"},{prop:"userName",label:"店长昵称",align:"center"},{prop:"mobile",label:"手机号",align:"center"},{prop:"province",label:"省份",align:"center",emptyText:"无"},{prop:"city",label:"城市",align:"center",emptyText:"无"},{prop:"oldName",label:"介绍人",align:"center",emptyText:"无"},{prop:"addTime",label:"申请时间",align:"center",emptyText:"无"},{prop:"status",label:"状态",align:"center",emptyText:"无"}],op:{visible:!0,props:{width:100,align:"center",fixed:"right",label:"操作"},layout:["slot-apply"]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).done(),t.refresh()}}},r=o,i=a("1805"),n=Object(i["a"])(r,l,s,!1,null,null,null);t["default"]=n.exports}}]);
|