|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21fbd0d0"],{"35d1":function(e,a,t){"use strict";t("c5cc")},b856:function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"divBox"},[t("div",{staticClass:"selCard"},[t("el-form",{ref:"searchForm",attrs:{size:"small",model:e.tableFrom,"label-width":"85px",inline:""},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"等级名称:",prop:"brokerage_name"}},[t("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入等级名称",size:"small",clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.brokerage_name,callback:function(a){e.$set(e.tableFrom,"brokerage_name",a)},expression:"tableFrom.brokerage_name"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.getList(1)}}},[e._v("搜索")]),e._v(" "),t("el-button",{attrs:{size:"small"},on:{click:function(a){return e.searchReset()}}},[e._v("重置")])],1)],1)],1),e._v(" "),t("el-card",{staticClass:"mt14"},[t("el-button",{staticClass:"mb20",attrs:{type:"primary",size:"small"},on:{click:e.groupAdd}},[e._v("添加分销员等级")]),e._v(" "),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:e.tableData.data,size:"small","highlight-current-row":""}},[t("el-table-column",{attrs:{prop:"user_brokerage_id",label:"ID",width:"60"}}),e._v(" "),t("el-table-column",{attrs:{label:"图标","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[t("div",{staticClass:"demo-image__preview"},[t("el-image",{attrs:{src:e.row.brokerage_icon||"","preview-src-list":[e.row.brokerage_icon||""]}})],1)]}}])}),e._v(" "),t("el-table-column",{attrs:{prop:"brokerage_name",label:"名称","min-width":"120"}}),e._v(" "),t("el-table-column",{attrs:{label:"等级","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("span",[e._v("Lv "+e._s(a.row.brokerage_level))])]}}])}),e._v(" "),t("el-table-column",{attrs:{label:"任务描述","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(a){return e._l(a.row.brokerage_rule,(function(a,n){return t("div",{key:n},[a.num>0?t("div",["spread_user"==n?t("div",[e._v("推广人数"+e._s(a.num)+"人")]):e._e(),e._v(" "),"pay_num"==n?t("div",[e._v("自身下单"+e._s(a.num)+"个")]):e._e(),e._v(" "),"spread_money"==n?t("div",[e._v("推广订单金额"+e._s(a.num)+"元")]):e._e(),e._v(" "),"pay_money"==n?t("div",[e._v("自身消费金额"+e._s(a.num)+"元")]):e._e(),e._v(" "),"spread_pay_num"==n?t("div",[e._v("推广订单"+e._s(a.num)+"个")]):e._e()]):e._e()])}))}}])}),e._v(" "),t("el-table-column",{attrs:{label:"分销员人数","min-width":"100",prop:"user_num"}}),e._v(" "),t("el-table-column",{attrs:{prop:"extension_one",label:"一级返佣上浮比例(%)","min-width":"120"}}),e._v(" "),t("el-table-column",{attrs:{prop:"extension_two",label:"二级返佣上浮比例(%)","min-width":"120"}}),e._v(" "),t("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.onDetail(a.row.user_brokerage_id)}}},[e._v("详情")]),e._v(" "),t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.onEdit(a.row.user_brokerage_id)}}},[e._v("编辑")]),e._v(" "),t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.onDelete(a.row.user_brokerage_id,a.$index)}}},[e._v("删除")])]}}])})],1),e._v(" "),t("div",{staticClass:"block"},[t("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),t("el-dialog",{attrs:{title:e.isEdit?"编<EFBFBD><EFBFBD>
|