Commit 643cba91 authored by 黄媛媛's avatar 黄媛媛
parents 82b1015f e95a4daf
<style>
.fxCommission .fxCommTable {
width: 100%;
border-collapse: collapse;
}
.fxCommission .fxCommTable tr th {
height: 48px;
font-size: 14px;
color: #909399;
border: 1px solid #EBEEF5;
font-weight: bold;
}
.fxCommission .fxCommTable tr {
background: #fff;
text-align: center;
height: 50px;
}
.fxCommission .fxCommTable tr td {
font-size: 14px;
border: 1px solid #EBEEF5;
}
.fxCommission .fx_inner:hover td {
background-color: #F5F7FA;
}
.fxCommission .fxCommTable td {
transition: background-color .25s ease;
}
.fxCommission .content {
background: #fff;
margin-top: 10px;
padding: 20px;
box-sizing: border-box;
}
</style>
<template>
<div class="fxCommission">
<div class="head-title">
粉象返佣
<el-button @click="saveData" style="float:right;margin-top: -5px;" size="small" type="primary">
保存
</el-button>
</div>
<div class="content">
<table class="fxCommTable" v-loading="loading">
<tr>
<th>级别标准</th>
<th v-for="(item,index) in titleList" :key="index">{{item.GradeName}}</th>
</tr>
<tr class="fx_inner" v-for="(item,index) in dataList" :key="index">
<td>{{item.GradeName}}</td>
<td v-for="(subItem,subIndex) in item.FXCommissionList" :key="subIndex">
<el-input style="width:120px;" @keyup.native="checkPrice(subItem,'CommissionPrice')" v-model="subItem.CommissionPrice"></el-input>
</td>
</tr>
</table>
</div>
</div>
</template>
<script>
export default {
data() {
return {
loading: false,
//横向data
dataList: [],
titleList: [],
};
},
created() {},
methods: {
getList() {
this.loading = true;
this.apipost("/api/User/GetFXFxCommissionList", {}, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data.resultList;
this.titleList = res.data.data.titleList;
}
})
},
//保存数据
saveData(){
this.apipost("/api/User/SetFXFxCommissionInfo", this.dataList, res => {
if (res.data.resultCode == 1) {
this.getList();
this.Success(res.data.message);
}else{
this.Error(res.data.message);
}
})
}
},
mounted() {
this.getList();
}
};
</script>
...@@ -226,6 +226,12 @@ export default new Router({ ...@@ -226,6 +226,12 @@ export default new Router({
name: 'fxDistribution', name: 'fxDistribution',
component: resolve => require(['@/components/UserMan/fxDistribution'], resolve), component: resolve => require(['@/components/UserMan/fxDistribution'], resolve),
}, },
//用户管理 分销商管理 粉象返佣
{
path: '/fxCommission',
name: 'fxCommission',
component: resolve => require(['@/components/UserMan/fxCommission'], resolve),
},
// 用户管理 分销商管理 分销商等级 // 用户管理 分销商管理 分销商等级
{ {
path: '/distributorLevel', path: '/distributorLevel',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment