|
@@ -93,8 +93,8 @@
|
|
|
width: 60px;
|
|
|
}
|
|
|
}
|
|
|
- .list_right1{
|
|
|
- width: calc(100% );
|
|
|
+ .list_right1 {
|
|
|
+ width: calc(100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -294,7 +294,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-else style="width:100%">
|
|
|
+ <div v-else style="width: 100%">
|
|
|
<div
|
|
|
class="list_right list_right1"
|
|
|
v-for="child in item.list"
|
|
@@ -620,16 +620,17 @@ export default {
|
|
|
this.form.planDetailSub.push(item);
|
|
|
} else {
|
|
|
// 第一层数据存在,验证第二层
|
|
|
- item.planDetails.forEach((child) => {
|
|
|
- const childIndex = this.form.planDetailSub[
|
|
|
- oneIndex
|
|
|
- ].planDetails.findIndex((it) => it.name === child.name);
|
|
|
- // 第二层数据不存在,直接添加进去
|
|
|
- if (childIndex === -1) {
|
|
|
- child.status = 0;
|
|
|
- this.form.planDetailSub[oneIndex].planDetails.push(child);
|
|
|
- }
|
|
|
- });
|
|
|
+ item.planDetails &&
|
|
|
+ item.planDetails.forEach((child) => {
|
|
|
+ const childIndex = this.form.planDetailSub[
|
|
|
+ oneIndex
|
|
|
+ ].planDetails.findIndex((it) => it.name === child.name);
|
|
|
+ // 第二层数据不存在,直接添加进去
|
|
|
+ if (childIndex === -1) {
|
|
|
+ child.status = 0;
|
|
|
+ this.form.planDetailSub[oneIndex].planDetails.push(child);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
// 排序
|