From ec97abaae5a0d93e9b4d5f3f82de7b97f2b586b0 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sat, 11 Jun 2022 20:22:15 +0800
Subject: [PATCH] fix some problem and add update referer and add member

---
 src/main/resources/templates/febs/views/modules/system/profitSetting.html |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/system/profitSetting.html b/src/main/resources/templates/febs/views/modules/system/profitSetting.html
index efae5f9..f6b28f1 100644
--- a/src/main/resources/templates/febs/views/modules/system/profitSetting.html
+++ b/src/main/resources/templates/febs/views/modules/system/profitSetting.html
@@ -99,6 +99,7 @@
                 ,{field: 'prop', title: '返利比例(%)', edit:'text'}
                 ,{field: 'achieve', title: '团队业绩(万元)', edit:'text'}
                 ,{field: 'direct', title: '直推(个)', edit:'text'}
+                ,{field: 'lastAgentCnt', title: '上一级代理(个)', edit:'text'}
                 ,{field: 'type', title: '比例', edit:'text', hide:'true'}
                 ,{field: 'code', title: '比例', edit:'text', hide:'true'}
             ]]
@@ -115,6 +116,7 @@
                     valueData.teamIncome = data.achieve;
                     valueData.profitProp = data.prop;
                     valueData.directCnt = data.direct;
+                    valueData.lastAgentCnt = data.lastAgentCnt;
                     agentBonusArr[i].value = JSON.stringify(valueData);
                 }
             }
@@ -189,6 +191,7 @@
                             data[i].prop = JSON.parse(data[i].value).profitProp;
                             data[i].achieve = JSON.parse(data[i].value).teamIncome;
                             data[i].direct = JSON.parse(data[i].value).directCnt;
+                            data[i].lastAgentCnt = JSON.parse(data[i].value).lastAgentCnt;
                         }
                         agentBonusArr = data;
                         table.reload('agentBonus', {

--
Gitblit v1.9.1