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/system/js/chunk-2d0ce7f0.b50d8b48.js

1 lines
3.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ce7f0"],{6066:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加会员")])],1),t._v(" "),a("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":""}},[a("el-table-column",{attrs:{label:"ID",prop:"user_brokerage_id","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{label:"名称",prop:"brokerage_name","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"等级图标","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.brokerage_icon?t.row.brokerage_icon:"","preview-src-list":[t.row.brokerage_icon||""]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"人数",prop:"user_num","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"所需成长值",prop:"brokerage_rule.value","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.user_brokerage_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.user_brokerage_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("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)},n=[],l=a("c24f"),r={name:"Classify",data:function(){return{tableData:{data:[],total:0},tableFrom:{page:1,limit:20,keyword:""},listLoading:!0}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(l["B"])(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()},onAdd:function(){var t=this;this.$modalForm(Object(l["b"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(l["D"])(t)).then((function(){return e.getList()}))},handleDelete:function(t,e){var a=this;this.$modalSure("删除该会员").then((function(){Object(l["z"])(t).then((function(t){var i=t.message;a.$message.success(i),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}},s=r,o=a("2877"),c=Object(o["a"])(s,i,n,!1,null,"4deb6da2",null);e["default"]=c.exports}}]);