|
|
@ -176,19 +176,14 @@ |
|
|
|
<div class="date"> |
|
|
|
<div class="date"> |
|
|
|
<div class="cycle"> |
|
|
|
<div class="cycle"> |
|
|
|
<label>任务周期:</label> |
|
|
|
<label>任务周期:</label> |
|
|
|
<span> {{ item.startTime }}</span> - |
|
|
|
<span> {{ item.startTime | timeFilter }}</span> - |
|
|
|
<span>{{ item.expectedEndTime }}</span> |
|
|
|
<span>{{ item.expectedEndTime | timeFilter }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="publish"> |
|
|
|
<div class="publish"> |
|
|
|
<label>发布提交:</label> |
|
|
|
<label>发布提交:</label> |
|
|
|
<span>{{ item.publishTime }}</span> - |
|
|
|
<span>{{ item.publishTime | timeFilter }}</span> |
|
|
|
<span>{{ |
|
|
|
- |
|
|
|
`${ |
|
|
|
<span>{{ item.submitTime | timeFilter }}</span> |
|
|
|
item.submitTime !== '1970-01-01' |
|
|
|
|
|
|
|
? item.submitTime |
|
|
|
|
|
|
|
: '待提交' |
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
}}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="expected_duration"> |
|
|
|
<div class="expected_duration"> |
|
|
|
<label>预计时长:</label |
|
|
|
<label>预计时长:</label |
|
|
@ -233,6 +228,7 @@ |
|
|
|
<Container |
|
|
|
<Container |
|
|
|
drag-class="card-ghost" |
|
|
|
drag-class="card-ghost" |
|
|
|
drop-class="card-ghost-drop" |
|
|
|
drop-class="card-ghost-drop" |
|
|
|
|
|
|
|
:drop-placeholder="dropPlaceholderOptions" |
|
|
|
group-name="col" |
|
|
|
group-name="col" |
|
|
|
@drop="(e) => onDevelopedCardDrop(e)" |
|
|
|
@drop="(e) => onDevelopedCardDrop(e)" |
|
|
|
:get-child-payload="getDevelopedCardPayload()" |
|
|
|
:get-child-payload="getDevelopedCardPayload()" |
|
|
@ -323,19 +319,13 @@ |
|
|
|
<div class="date"> |
|
|
|
<div class="date"> |
|
|
|
<div class="cycle"> |
|
|
|
<div class="cycle"> |
|
|
|
<label>任务周期:</label> |
|
|
|
<label>任务周期:</label> |
|
|
|
<span> {{ item.startTime }}</span> - |
|
|
|
<span> {{ item.startTime | timeFilter }}</span> - |
|
|
|
<span>{{ item.expectedEndTime }}</span> |
|
|
|
<span>{{ item.expectedEndTime | timeFilter }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="publish"> |
|
|
|
<div class="publish"> |
|
|
|
<label>发布提交:</label> |
|
|
|
<label>发布提交:</label> |
|
|
|
<span>{{ item.publishTime }}</span> - |
|
|
|
<span>{{ item.publishTime | timeFilter }}</span> - |
|
|
|
<span>{{ |
|
|
|
<span>{{ item.submitTime | timeFilter }}</span> |
|
|
|
`${ |
|
|
|
|
|
|
|
item.submitTime !== '1970-01-01' |
|
|
|
|
|
|
|
? item.submitTime |
|
|
|
|
|
|
|
: '待提交' |
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
}}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="expected_duration"> |
|
|
|
<div class="expected_duration"> |
|
|
|
<label>预计时长:</label |
|
|
|
<label>预计时长:</label |
|
|
@ -455,19 +445,13 @@ |
|
|
|
<div class="date"> |
|
|
|
<div class="date"> |
|
|
|
<div class="cycle"> |
|
|
|
<div class="cycle"> |
|
|
|
<label>任务周期:</label> |
|
|
|
<label>任务周期:</label> |
|
|
|
<span> {{ item.startTime }}</span> - |
|
|
|
<span> {{ item.startTime | timeFilter }}</span> - |
|
|
|
<span>{{ item.expectedEndTime }}</span> |
|
|
|
<span>{{ item.expectedEndTime | timeFilter }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="publish"> |
|
|
|
<div class="publish"> |
|
|
|
<label>发布提交:</label> |
|
|
|
<label>发布提交:</label> |
|
|
|
<span>{{ item.publishTime }}</span> - |
|
|
|
<span>{{ item.publishTime | timeFilter }}</span> - |
|
|
|
<span>{{ |
|
|
|
<span>{{ item.submitTime | timeFilter }}</span> |
|
|
|
`${ |
|
|
|
|
|
|
|
item.submitTime !== '1970-01-01' |
|
|
|
|
|
|
|
? item.submitTime |
|
|
|
|
|
|
|
: '待提交' |
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
}}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="expected_duration"> |
|
|
|
<div class="expected_duration"> |
|
|
|
<label>预计时长:</label |
|
|
|
<label>预计时长:</label |
|
|
@ -583,19 +567,14 @@ |
|
|
|
<div class="date"> |
|
|
|
<div class="date"> |
|
|
|
<div class="cycle"> |
|
|
|
<div class="cycle"> |
|
|
|
<label>任务周期:</label> |
|
|
|
<label>任务周期:</label> |
|
|
|
<span> {{ item.startTime }}</span> - |
|
|
|
<span> {{ item.startTime | timeFilter }}</span> - |
|
|
|
<span>{{ item.expectedEndTime }}</span> |
|
|
|
<span>{{ item.expectedEndTime | timeFilter }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="publish"> |
|
|
|
<div class="publish"> |
|
|
|
<label>发布提交:</label> |
|
|
|
<label>发布提交:</label> |
|
|
|
<span>{{ item.publishTime }}</span> - |
|
|
|
<span>{{ item.publishTime | timeFilter }}</span> |
|
|
|
<span>{{ |
|
|
|
- |
|
|
|
`${ |
|
|
|
<span>{{ item.submitTime | timeFilter }}</span> |
|
|
|
item.submitTime !== '1970-01-01' |
|
|
|
|
|
|
|
? item.submitTime |
|
|
|
|
|
|
|
: '待提交' |
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
}}</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="expected_duration"> |
|
|
|
<div class="expected_duration"> |
|
|
|
<label>预计时长:</label |
|
|
|
<label>预计时长:</label |
|
|
@ -683,23 +662,26 @@ import { Container, Draggable } from 'vue-smooth-dnd' |
|
|
|
import TaskModal from '@/views/task/modules/TaskModal' |
|
|
|
import TaskModal from '@/views/task/modules/TaskModal' |
|
|
|
import { mixinDevice } from '@/utils/mixin' |
|
|
|
import { mixinDevice } from '@/utils/mixin' |
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
|
|
|
|
|
|
import moment from 'moment' |
|
|
|
const changeTime = (time) => { |
|
|
|
const changeTime = (time) => { |
|
|
|
let date = new Date(time) |
|
|
|
// let date = new Date(time) |
|
|
|
let Y = date.getFullYear() |
|
|
|
// let Y = date.getFullYear() |
|
|
|
let M = String(date.getMonth() + 1).padStart(2, '0') |
|
|
|
// let M = String(date.getMonth() + 1).padStart(2, '0') |
|
|
|
let D = String(date.getDate()).padStart(2, '0') |
|
|
|
// let D = String(date.getDate()).padStart(2, '0') |
|
|
|
let newDate = [Y, M, D].join('-') |
|
|
|
// let newDate = [Y, M, D].join('-') |
|
|
|
return newDate |
|
|
|
// return newDate |
|
|
|
|
|
|
|
return moment(item.startTime * 1000).format('YYYY-MM-DD HH:mm:ss') |
|
|
|
} |
|
|
|
} |
|
|
|
const changeStyle = (arr) => { |
|
|
|
const changeStyle = (arr) => { |
|
|
|
let newArr = arr.map((item) => { |
|
|
|
let newArr = arr.map((item) => { |
|
|
|
item.headpic = getFileAccessHttpUrl(item.headpic) |
|
|
|
item.headpic = getFileAccessHttpUrl(item.headpic) |
|
|
|
item.taskPic = getFileAccessHttpUrl(item.taskPic) |
|
|
|
item.taskPic = getFileAccessHttpUrl(item.taskPic) |
|
|
|
item.taskFile = getFileAccessHttpUrl(item.taskFile) |
|
|
|
item.taskFile = getFileAccessHttpUrl(item.taskFile) |
|
|
|
item.expectedEndTime = changeTime(item.expectedEndTime) |
|
|
|
// item.expectedEndTime = moment(item.expectedEndTime).format('YYYY-MM-DD') |
|
|
|
item.startTime = changeTime(item.startTime) |
|
|
|
// item.expectedEndTime = changeTime(item.expectedEndTime) |
|
|
|
item.submitTime = changeTime(item.submitTime) |
|
|
|
// item.startTime = moment(item.startTime).format('YYYY-MM-DD') |
|
|
|
item.publishTime = changeTime(item.publishTime) |
|
|
|
// item.submitTime =moment(item.startTime).format('YYYY-MM-DD') |
|
|
|
|
|
|
|
// item.publishTime = changeTime(item.publishTime) |
|
|
|
}) |
|
|
|
}) |
|
|
|
return newArr |
|
|
|
return newArr |
|
|
|
} |
|
|
|
} |
|
|
@ -743,7 +725,7 @@ export default { |
|
|
|
drawerData: {}, |
|
|
|
drawerData: {}, |
|
|
|
dropPlaceholderOptions: { |
|
|
|
dropPlaceholderOptions: { |
|
|
|
className: 'drop-preview', |
|
|
|
className: 'drop-preview', |
|
|
|
animationDuration: '1000', |
|
|
|
animationDuration: '150', |
|
|
|
showOnTop: true |
|
|
|
showOnTop: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
time: [ |
|
|
|
time: [ |
|
|
@ -756,6 +738,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
modalFormOk() { |
|
|
|
|
|
|
|
this.allUpadate() |
|
|
|
|
|
|
|
}, |
|
|
|
timeSearch(time) { |
|
|
|
timeSearch(time) { |
|
|
|
this.timeSearchData = time.id |
|
|
|
this.timeSearchData = time.id |
|
|
|
console.log('this.timeSearchData', this.timeSearchData) |
|
|
|
console.log('this.timeSearchData', this.timeSearchData) |
|
|
@ -893,9 +878,9 @@ export default { |
|
|
|
window.open(this.dialogurl) |
|
|
|
window.open(this.dialogurl) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//滚动分页加载数据 |
|
|
|
//滚动分页加载数据 |
|
|
|
assignmnetScroll(e) { |
|
|
|
assignmnetScroll() { |
|
|
|
let isLoading = true //是否有数据可以加载 |
|
|
|
let isLoading = true //是否有数据可以加载 |
|
|
|
this.$refs.assignmnetcards.onscroll = async () => { |
|
|
|
this.$refs.assignmnetcards.onscroll = async (e) => { |
|
|
|
const { scrollTop, clientHeight, scrollHeight } = e.target |
|
|
|
const { scrollTop, clientHeight, scrollHeight } = e.target |
|
|
|
console.log(scrollTop, clientHeight, scrollHeight) |
|
|
|
console.log(scrollTop, clientHeight, scrollHeight) |
|
|
|
let bottomOfWindow = scrollTop + clientHeight === scrollHeight |
|
|
|
let bottomOfWindow = scrollTop + clientHeight === scrollHeight |
|
|
@ -933,12 +918,13 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async developedScroll(e) { |
|
|
|
developedScroll() { |
|
|
|
let isLoading = true //是否有数据可以加载 |
|
|
|
let isLoading = true //是否有数据可以加载 |
|
|
|
|
|
|
|
this.$refs.developedcards.onscroll = async (e) => { |
|
|
|
const { scrollTop, clientHeight, scrollHeight } = e.target |
|
|
|
const { scrollTop, clientHeight, scrollHeight } = e.target |
|
|
|
console.log(scrollTop, clientHeight, scrollHeight) |
|
|
|
|
|
|
|
let bottomOfWindow = scrollTop + clientHeight === scrollHeight |
|
|
|
let bottomOfWindow = scrollTop + clientHeight === scrollHeight |
|
|
|
if (bottomOfWindow && isLoading == true) { |
|
|
|
console.log(scrollTop, clientHeight, scrollHeight) |
|
|
|
|
|
|
|
if (bottomOfWindow && isLoading) { |
|
|
|
this.developedData.page = this.developedData.page + 1 //每次分页+1 |
|
|
|
this.developedData.page = this.developedData.page + 1 //每次分页+1 |
|
|
|
let workStatus = 2 |
|
|
|
let workStatus = 2 |
|
|
|
let pageNo = this.developedData.page |
|
|
|
let pageNo = this.developedData.page |
|
|
@ -946,7 +932,6 @@ export default { |
|
|
|
let typeId = this.queryParam.typeId |
|
|
|
let typeId = this.queryParam.typeId |
|
|
|
let projectId = this.queryParam.projectId |
|
|
|
let projectId = this.queryParam.projectId |
|
|
|
let time = this.timeSearchData |
|
|
|
let time = this.timeSearchData |
|
|
|
// console.log(pageNo, pageSize) |
|
|
|
|
|
|
|
await getMyTaskData({ |
|
|
|
await getMyTaskData({ |
|
|
|
workStatus, |
|
|
|
workStatus, |
|
|
|
pageNo, |
|
|
|
pageNo, |
|
|
@ -956,20 +941,22 @@ export default { |
|
|
|
time |
|
|
|
time |
|
|
|
}).then(({ result: res }) => { |
|
|
|
}).then(({ result: res }) => { |
|
|
|
//有数据的时候加载 |
|
|
|
//有数据的时候加载 |
|
|
|
if (res.records.length > 0) { |
|
|
|
console.log(res.records) |
|
|
|
changeStyle(res.records) |
|
|
|
if (res.records.length === 0) { |
|
|
|
this.developedData.cardList.push(...res.records) //追加数据 使用 ...语法 |
|
|
|
|
|
|
|
isLoading = true |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$notify({ |
|
|
|
this.$notify({ |
|
|
|
title: '温馨提示:', |
|
|
|
title: '温馨提示:', |
|
|
|
message: '暂无更多数据信息!', |
|
|
|
message: '暂无更多数据信息!', |
|
|
|
position: 'bottom-right' |
|
|
|
position: 'bottom-right' |
|
|
|
}) |
|
|
|
}) |
|
|
|
isLoading = false //无数据可以加载 |
|
|
|
isLoading = false //无数据可以加载 |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
changeStyle(res.records) |
|
|
|
|
|
|
|
this.developedData.cardList.push(...res.records) //追加数据 使用 ...语法 |
|
|
|
|
|
|
|
isLoading = true |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
completedScroll(e) { |
|
|
|
completedScroll(e) { |
|
|
|
let isLoading = true //是否有数据可以加载 |
|
|
|
let isLoading = true //是否有数据可以加载 |
|
|
@ -1184,6 +1171,11 @@ export default { |
|
|
|
this.completedScroll() |
|
|
|
this.completedScroll() |
|
|
|
this.auditedScroll() |
|
|
|
this.auditedScroll() |
|
|
|
this.updateWorkStatus() |
|
|
|
this.updateWorkStatus() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
filters: { |
|
|
|
|
|
|
|
timeFilter: function (value) { |
|
|
|
|
|
|
|
return moment(value).format('YYYY-MM-DD') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -1415,7 +1407,7 @@ header { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.cards { |
|
|
|
.cards { |
|
|
|
height: 100dvh; |
|
|
|
height: 700px; |
|
|
|
overflow-x: auto; |
|
|
|
overflow-x: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
.content { |
|
|
|
.content { |
|
|
|