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 @@ 总部外勤: - +