Pārlūkot izejas kodu

客资任务跟踪题目填写添加表格选项

zhujindu 11 mēneši atpakaļ
vecāks
revīzija
1f0435f177
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 2 3
      src/mixin/clew.js
  2. 1 0
      src/views/clew/clewent.vue

+ 2 - 3
src/mixin/clew.js

@@ -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') {

+ 1 - 0
src/views/clew/clewent.vue

@@ -900,6 +900,7 @@ export default {
     onLoad() {},
     onSubmit() {
       if (this.infoData.cid == '5') {
+        // Mixins
         this.purchaseSubmit((data) => {
           var form = {
             isClose: this.infoData.isClose,