|
|
@@ -13,6 +13,7 @@ export const clewMixins = {
|
|
|
let params = {
|
|
|
customerClueItemList: [],
|
|
|
};
|
|
|
+ // 复制第一级题目
|
|
|
params.customerClueItemList.push(...this.deepClone(this.taskGather, 0));
|
|
|
this.filterOption(this.taskGather, params);
|
|
|
console.log(JSON.stringify(params));
|
|
|
@@ -35,9 +36,6 @@ export const clewMixins = {
|
|
|
this.requiredMessage = '请选择' + optionList[val].customerClueName;
|
|
|
return;
|
|
|
} else if (optionList[val].isMust == '0') {
|
|
|
- // 本级题
|
|
|
- // 必填校验
|
|
|
- // this.isRequiredFlag(optionList[val]);
|
|
|
// 子级题校验
|
|
|
let customerClueOptionList = optionList[val].customerClueOptionList;
|
|
|
if (customerClueOptionList.length) {
|
|
|
@@ -72,6 +70,7 @@ export const clewMixins = {
|
|
|
const copy = Array.isArray(obj) ? [] : {};
|
|
|
// 遍历对象的每个属性
|
|
|
for (const key in obj) {
|
|
|
+ // 每个题只复制两层子级
|
|
|
if (obj.hasOwnProperty(key) && num < 2) {
|
|
|
// 递归调用深拷贝
|
|
|
if (key == 'customerClueOptionList' || key == 'customerClueItemList') {
|