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.
yanzong/public/store/js/user.c555cea2.js

1 line
25 KiB

9 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user"],{"10e3":function(e,a,r){},"2cd3":function(e,a,r){},"310f":function(e,a,r){"use strict";r("466b")},"466b":function(e,a,r){},"644d":function(e,a,r){"use strict";r("2cd3")},"7ad7":function(e,a,r){"use strict";r.r(a);for(var t=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("div",{staticClass:"table-operator"},[a("a-button",{directives:[{name:"action",rawName:"v-action:add",arg:"add"}],attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),a("s-table",{ref:"table",attrs:{rowKey:"grade_id",loading:e.isLoading,columns:e.columns,data:e.loadData,pageSize:15},scopedSlots:e._u([{key:"upgrade",fn:function(r){return a("span",{},[e._v("消费满"+e._s(r.expend_money)+"元")])}},{key:"equity",fn:function(r){return a("span",{},[e._v(e._s(r.discount)+"折")])}},{key:"status",fn:function(r){return a("span",{},[a("a-tag",{attrs:{color:r?"green":""}},[e._v(e._s(r?"启用":"禁用"))])],1)}},{key:"action",fn:function(r,t){return a("span",{},[a("a",{directives:[{name:"action",rawName:"v-action:edit",arg:"edit"}],staticStyle:{"margin-right":"8px"},on:{click:function(a){return e.handleEdit(t)}}},[e._v("编辑")]),a("a",{directives:[{name:"action",rawName:"v-action:delete",arg:"delete"}],on:{click:function(a){return e.handleDelete(t)}}},[e._v("删除")])])}}])}),a("AddForm",{ref:"AddForm",on:{handleSubmit:e.handleRefresh}}),a("EditForm",{ref:"EditForm",on:{handleSubmit:e.handleRefresh}})],1)},i=[],n=r("5530"),o=(r("d3b7"),r("2e1c")),s=r("2af9"),l=function(){var e=this,a=e._self._c;return a("a-modal",{attrs:{title:e.title,width:720,visible:e.visible,confirmLoading:e.confirmLoading,maskClosable:!1},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[a("a-spin",{attrs:{spinning:e.confirmLoading}},[a("a-form",{attrs:{form:e.form}},[a("a-form-item",{attrs:{label:"等级名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"例如:大众会员、黄金会员、铂金会员、钻石会员"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入等级名称"}]}],expression:"['name', { rules: [{ required: true, message: '请输入等级名称' }] }]"}]})],1),a("a-form-item",{attrs:{label:"等级权重",labelCol:e.labelCol,wrapperCol:e.wrapperCol,extra:"会员等级的权重,数字越大 等级越高"}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["weight",{rules:[{required:!0,message:"请选择等级权重"}]}],expression:"['weight', { rules: [{ required: true, message: '请选择等级权重' }] }]"}]},e._l(e.weights,(function(r,t){return a("a-select-option",{key:t,attrs:{value:r}},[e._v(e._s(r))])})),1)],1),a("a-form-item",{attrs:{label:"升级条件",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("InputNumberGroup",{directives:[{name:"decorator",rawName:"v-decorator",value:["upgrade.expend_money",{rules:[{required:!0,message:"升级条件不能为空"}]}],expression:"['upgrade.expend_money', { rules: [{ required: true, message: '升级条件不能为空' }] }]"}],attrs:{addonBefore:"实际消费金额满",addonAfter:"元",inputProps:{min:.01}}}),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("用户的实际消费金额满足后,自动升级")])])],1),a("a-form-item",{attrs:{label:"等级权益",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("InputNumberGroup",{directives:[{name:"decorator",rawName:"v-decorator",value:["equity.discount",{rules:[{required:!0,message:"等级权益不能为空"}]}],expression:"['equity.discount', { rules: [{ required: true, message: '等级权益不能为空' }] }]"}],attrs:{addonBefore:"折扣率",addonAfter:"折",inputProps:{min:0,max:9.9}}}),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("折扣率范围0.0-9.9,例如: 9.8代表98折,0代表不折扣")])])],1),a("a-form-item",{attrs:{label:"状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{dire