|
@@ -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);
|
|
|
}
|