Tang 3 lat temu
rodzic
commit
bb46e47396

+ 1 - 1
src/components/questionBank.vue

@@ -442,7 +442,7 @@
             <el-radio :disabled="statusPop === 2" label="0">错误</el-radio>
           </el-radio-group>
         </div>
-        <div class="marg_play">
+        <div class="marg_play" v-if="dingForm.type !== 4">
           <span class="spans">答案解析:</span>
           <div>
             <editor

+ 8 - 6
src/views/Marketing/commodityManageMent/poppleSet.vue

@@ -91,20 +91,21 @@ export default {
         this.$message.warning("时长禁止为0,请重新设置");
       } else {
         var arrays = this.$refs.trees;
+        console.log(arrays,11)
         //修改指定项的 auditionMinute
         arrays.root.childNodes.forEach((item, index) => {
           item.childNodes.forEach((items, indexs) => {
-            if (items.data.TypeId === v.data.TypeId) {
+            if (items.data.TypeId === v.data.TypeId && items.data.courseId === v.data.courseId) {
               items.data.auditionMinute = v.data.auditionMinute;
             }
             if (items.childNodes.length) {
               items.childNodes.forEach((ik) => {
-                if (ik.data.TypeId === v.data.TypeId) {
+                if (ik.data.TypeId === v.data.TypeId && ik.data.courseId === v.data.courseId) {
                   ik.data.auditionMinute = v.data.auditionMinute;
                 }
                 if (ik.childNodes.length) {
                   ik.childNodes.forEach((iks) => {
-                    if (iks.data.TypeId === v.data.TypeId) {
+                    if (iks.data.TypeId === v.data.TypeId && iks.data.courseId === v.data.courseId) {
                       iks.data.auditionMinute = v.data.auditionMinute;
                     }
                   });
@@ -113,8 +114,9 @@ export default {
             }
           });
         });
+
         this.auditionListCope.forEach((items) => {
-          if (items.TypeId === v.data.TypeId) {
+          if (items.TypeId === v.data.TypeId && v.data.courseId === items.courseId) {
             items.auditionMinute = v.data.auditionMinute;
           }
         });
@@ -265,7 +267,7 @@ export default {
                 item.courseId = node.data.courseId;
                 if (self.auditionListCope) {
                   self.auditionListCope.map((items) => {
-                    if (items.TypeId === item.TypeId) {
+                    if (items.TypeId === item.TypeId && items.courseId === node.data.courseId) {
                       if (self.audition.indexOf(item.onlyId) === -1) {
                         self.audition.push(item.onlyId);
                       }
@@ -301,7 +303,7 @@ export default {
                   item.auditionMinute = item.durationTime;
                   if (self.auditionListCope) {
                     self.auditionListCope.map((items) => {
-                      if (items.TypeId === item.TypeId) {
+                      if (items.TypeId === item.TypeId && items.courseId ===node.data.courseId) {
                         if (self.audition.indexOf(item.onlyId) === -1) {
                           self.audition.push(item.onlyId);
                         }