|
@@ -167,12 +167,20 @@ export default {
|
|
|
this.getSpanArr(this.workContents);
|
|
this.getSpanArr(this.workContents);
|
|
|
if (response.data.workPlan != null && response.data.workPlan.length > 0) {
|
|
if (response.data.workPlan != null && response.data.workPlan.length > 0) {
|
|
|
this.workPlans = response.data.workPlan
|
|
this.workPlans = response.data.workPlan
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.workPlans=[{
|
|
|
|
|
+ planContent: '请填写工作计划信息',
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ meetingId: null,
|
|
|
|
|
+ completionTimes: null,
|
|
|
|
|
+ completionTime: null,
|
|
|
|
|
+ projectId: null
|
|
|
|
|
+ }]
|
|
|
}
|
|
}
|
|
|
this.weeks = response.data.weeks
|
|
this.weeks = response.data.weeks
|
|
|
const date = new Date();
|
|
const date = new Date();
|
|
|
// 获取当前第几周
|
|
// 获取当前第几周
|
|
|
let week = this.getYearWeek(date.getFullYear(), Number(date.getMonth()) + 1, date.getDate());
|
|
let week = this.getYearWeek(date.getFullYear(), Number(date.getMonth()) + 1, date.getDate());
|
|
|
-
|
|
|
|
|
let currentWeek = week ;
|
|
let currentWeek = week ;
|
|
|
this.currentWeek = currentWeek;
|
|
this.currentWeek = currentWeek;
|
|
|
if (weekss !== currentWeek) {
|
|
if (weekss !== currentWeek) {
|