From 8db8328fc5b52fbdd01d1568917af4053ea41799 Mon Sep 17 00:00:00 2001
From: wuhui_zzw <1760308791@qq.com>
Date: Thu, 22 Feb 2024 09:29:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E5=90=8C=E4=B8=80?=
=?UTF-8?q?=E4=BA=BA=E6=94=AF=E6=8C=81=E6=8B=A5=E6=9C=89=E5=A4=9A=E4=B8=AA?=
=?UTF-8?q?=E5=90=8C=E4=B8=80=E7=BA=A7=E8=BA=AB=E4=BB=BD=20=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=EF=BC=9A=E4=BB=A3=E7=90=86=E5=9F=BA=E6=9C=AC=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=20=E8=BE=93=E5=85=A5=E6=A1=86=E5=86=85=E5=AE=B9?=
=?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=81=E6=98=AF=E5=90=A6=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E6=8E=A8=E8=8D=90=E5=A5=96=E5=8A=B1=E4=BD=A3=E9=87=91=E5=88=A4?=
=?UTF-8?q?=E6=96=AD=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../marketing/agent/agent/template/edit.vue | 18 ++--
src/views/marketing/agent/config/index.vue | 96 +++++++++----------
2 files changed, 56 insertions(+), 58 deletions(-)
diff --git a/src/views/marketing/agent/agent/template/edit.vue b/src/views/marketing/agent/agent/template/edit.vue
index 8d48e09..02bee3a 100644
--- a/src/views/marketing/agent/agent/template/edit.vue
+++ b/src/views/marketing/agent/agent/template/edit.vue
@@ -160,7 +160,7 @@
-
+
@@ -347,8 +347,8 @@
- 取消
- 添加
+
+ 添加
@@ -584,8 +584,8 @@ export default {
this.info.user = item;
this.closeStaff();
}else{
- let key = String(item.uid) + '_' + String(this.create_role_type);
- this.children_list[key] = {
+ let nowTime = Date.now();
+ this.children_list[String(nowTime)] = {
uid: item.uid,
pid: this.info.id || 0,
agent_type: this.create_role_type,
@@ -602,7 +602,6 @@ export default {
mer_id: '',
mer_id_list: [],
user: item,
- // is_headquarters: this.info.is_headquarters || 0,
};
this.children_list = Object.assign({}, this.children_list);
}
@@ -610,16 +609,15 @@ export default {
this.$forceUpdate();
},
// 用户选择器 - 删除用户
- closeStaffConfirm(uid, agent_type){
- let key = String(uid) + '_' + String(agent_type);
+ closeStaffConfirm(index){
// 判断:是否允许删除
- let childrenCount = this.children_list[key].children_count || 0;
+ let childrenCount = this.children_list[index].children_count || 0;
if(Number(childrenCount) > 0){
this.$message.error("存在下级信息,禁止删除!");
return false;
}
// 删除操作
- delete this.children_list[key];
+ delete this.children_list[index];
this.children_list = Object.assign({}, this.children_list);
this.$forceUpdate();
},
diff --git a/src/views/marketing/agent/config/index.vue b/src/views/marketing/agent/config/index.vue
index 1e1434b..26c4aac 100644
--- a/src/views/marketing/agent/config/index.vue
+++ b/src/views/marketing/agent/config/index.vue
@@ -31,13 +31,13 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
@@ -66,13 +66,13 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
@@ -101,19 +101,19 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
-
+
总部外勤奖励
元
@@ -126,7 +126,7 @@
成为省公司外勤费用:
-
+
元
@@ -138,29 +138,29 @@
-
+
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
-
+
总部外勤奖励
元
-
+
省发起人奖励
元
@@ -173,7 +173,7 @@
成为省公司内勤费用:
-
+
元
@@ -189,25 +189,25 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
-
+
总部外勤奖励
元
-
+
省发起人奖励
元
@@ -220,7 +220,7 @@
成为运营商费用:
-
+
元
@@ -236,31 +236,31 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
-
+
总部外勤奖励
元
-
+
省发起人奖励
元
-
+
省公司外勤奖励
元
@@ -273,7 +273,7 @@
成为合伙人费用:
-
+
元
@@ -289,37 +289,37 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
-
+
总部外勤奖励
元
-
+
省发起人奖励
元
-
+
省公司外勤奖励
元
-
+
运营商奖励
元
@@ -332,7 +332,7 @@
成为餐厅费用:
-
+
元
@@ -348,43 +348,43 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
-
+
总部外勤奖励
元
-
+
省发起人奖励
元
-
+
省公司外勤奖励
元
-
+
运营商奖励
元
-
+
合伙人奖励
元
@@ -397,7 +397,7 @@
成为配送商费用:
-
+
元
@@ -413,43 +413,43 @@
推荐奖励佣金:
-
+
平台奖励
元
-
+
总部发起人奖励
元
-
+
总部外勤奖励
元
-
+
省发起人奖励
元
-
+
省公司外勤奖励
元
-
+
运营商奖励
元
-
+
合伙人奖励
元
@@ -478,7 +478,7 @@
总部外勤:
最多可邀请
- 位【省公司发起人】
+ 位【省发起人】