|
@@ -40,7 +40,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getParentId(list, name) {
|
|
getParentId(list, name) {
|
|
|
- debugger;
|
|
|
|
|
for (let i in list) {
|
|
for (let i in list) {
|
|
|
if (list[i].customerClueOptionId == name) {
|
|
if (list[i].customerClueOptionId == name) {
|
|
|
return [list[i]];
|
|
return [list[i]];
|
|
@@ -70,7 +69,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
// 获取选中数据
|
|
// 获取选中数据
|
|
|
let activaRadio = this.clueOptionList[0].customerClueOptionList.find(
|
|
let activaRadio = this.clueOptionList[0].customerClueOptionList.find(
|
|
|
- (val) => val.customerClueOptionId == name
|
|
|
|
|
|
|
+ (val) => val.customerClueOptionId == name,
|
|
|
);
|
|
);
|
|
|
console.log(this.parentOptionList);
|
|
console.log(this.parentOptionList);
|
|
|
// 修改选中状态
|
|
// 修改选中状态
|
|
@@ -79,7 +78,7 @@ export default {
|
|
|
|
|
|
|
|
// 过滤未选中的数据
|
|
// 过滤未选中的数据
|
|
|
let exceptItself = this.clueOptionList[0].customerClueOptionList.filter(
|
|
let exceptItself = this.clueOptionList[0].customerClueOptionList.filter(
|
|
|
- (val) => val.customerClueOptionId !== name
|
|
|
|
|
|
|
+ (val) => val.customerClueOptionId !== name,
|
|
|
);
|
|
);
|
|
|
// 删除未选中数据状态兄弟级和子级
|
|
// 删除未选中数据状态兄弟级和子级
|
|
|
// console.log(exceptItself);
|
|
// console.log(exceptItself);
|