修复综合看板
This commit is contained in:
@@ -209,7 +209,20 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 关闭细节窗口
|
||||
tryOpenDetail (trackId) {
|
||||
if (!trackId) return;
|
||||
const found = this.scheduleList.find(item => item.scheduleId === trackId || item.projectId === trackId);
|
||||
if (found) {
|
||||
this.getScheduleDetail(found);
|
||||
} else {
|
||||
this.$nextTick(() => {
|
||||
const found = this.scheduleList.find(item => item.scheduleId === trackId || item.projectId === trackId);
|
||||
if (found) {
|
||||
this.getScheduleDetail(found);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
closeDetailShow (done) {
|
||||
this.getList();
|
||||
done()
|
||||
@@ -245,14 +258,13 @@ export default {
|
||||
},
|
||||
getList () {
|
||||
this.loading = true
|
||||
|
||||
console.log(this.queryParams, this.searchTime)
|
||||
/* 日期搜索条件 */
|
||||
if (this.searchTime && this.searchTime.length) {
|
||||
this.queryParams.startTime = this.getDateStr(this.searchTime[0])
|
||||
this.queryParams.endTime = this.getDateStr(this.searchTime[1])
|
||||
}
|
||||
|
||||
this.queryParams.projectId = this.$route.query.projectId?this.$route.query.projectId:null
|
||||
this.queryParams.trackId = this.$route.query.trackId?this.$route.query.trackId:null
|
||||
listProjectSchedule(this.queryParams).then(res => {
|
||||
this.scheduleList = res.rows
|
||||
this.total = res.total
|
||||
|
||||
Reference in New Issue
Block a user