|
@@ -1982,13 +1982,15 @@ export default {
|
|
|
) {
|
|
|
this.form.bdglDiaryLeaveList = this.qingJia;
|
|
|
}
|
|
|
- // 工作安排
|
|
|
- if (
|
|
|
- this.xunlian[0].dateline != null &&
|
|
|
- this.xunlian[0].contents != null &&
|
|
|
- this.xunlian[0].percentage != null
|
|
|
- ) {
|
|
|
- this.form.bdglDiaryWeekworkRegisterList = this.xunlian;
|
|
|
+ if (this.xunlian.length > 0) {
|
|
|
+ // 工作安排
|
|
|
+ if (
|
|
|
+ this.xunlian[0].dateline != null &&
|
|
|
+ this.xunlian[0].contents != null &&
|
|
|
+ this.xunlian[0].percentage != null
|
|
|
+ ) {
|
|
|
+ this.form.bdglDiaryWeekworkRegisterList = this.xunlian;
|
|
|
+ }
|
|
|
}
|
|
|
if (this.form.id != null) {
|
|
|
updateBdgldiary(this.form).then((response) => {
|
|
@@ -2023,11 +2025,13 @@ export default {
|
|
|
this.form.kinsfolk = this.relatives;
|
|
|
}
|
|
|
// 工作安排
|
|
|
- if (
|
|
|
- this.xunlian[0].dateline != null &&
|
|
|
- this.xunlian[0].contents != null
|
|
|
- ) {
|
|
|
- this.form.bdglDiaryWeekworkRegisterList = this.xunlian;
|
|
|
+ if (this.xunlian.length > 0) {
|
|
|
+ if (
|
|
|
+ this.xunlian[0].dateline != null &&
|
|
|
+ this.xunlian[0].contents != null
|
|
|
+ ) {
|
|
|
+ this.form.bdglDiaryWeekworkRegisterList = this.xunlian;
|
|
|
+ }
|
|
|
}
|
|
|
this.form.blogDate = new Date(this.form.blogDate);
|
|
|
// // 训练计划
|