|
|
@@ -60,9 +60,7 @@
|
|
|
</van-popup>
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
- <van-row>
|
|
|
-
|
|
|
- </van-row>
|
|
|
+ <van-row> </van-row>
|
|
|
<van-row>
|
|
|
<van-col span="24">
|
|
|
<van-tabs v-model="activeAl" @click="tbsAlHandler">
|
|
|
@@ -165,14 +163,12 @@ export default {
|
|
|
created() {
|
|
|
this.presentDate = new Date(newDateMonth())
|
|
|
this.presentEndDate = new Date(newDateMonth())
|
|
|
-
|
|
|
},
|
|
|
mounted() {
|
|
|
this.init()
|
|
|
this.cascaderValue = JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + ''
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
//机构搜索
|
|
|
getDataList(val) {
|
|
|
this.cascaderValue = val.id
|
|
|
@@ -199,20 +195,21 @@ export default {
|
|
|
if (!type) {
|
|
|
obj.pageNum = 1
|
|
|
this.pageNum = 1
|
|
|
+ this.taskList = []
|
|
|
}
|
|
|
// if (this.statusValue) {
|
|
|
// obj.status = this.statusValue
|
|
|
// }
|
|
|
|
|
|
obj.orgId = this.cascaderValue || JSON.parse(window.sessionStorage.getItem('SET_USER_ORGID')) + '' || ''
|
|
|
- if(!this.currentDate||!this.endDate){
|
|
|
- return Toast('请选择一个月份范围')
|
|
|
- }
|
|
|
+ if (!this.currentDate || !this.endDate) {
|
|
|
+ return Toast('请选择一个月份范围')
|
|
|
+ }
|
|
|
if (this.currentDate) {
|
|
|
- obj.startTime = this.currentDate+'-'+'01'
|
|
|
+ obj.startTime = this.currentDate + '-' + '01'
|
|
|
}
|
|
|
if (this.endDate) {
|
|
|
- obj.endTime = this.endDate+'-'+'01'
|
|
|
+ obj.endTime = this.endDate + '-' + '01'
|
|
|
}
|
|
|
if (this.activeAl) {
|
|
|
obj.recStatus = this.activeAl
|
|
|
@@ -220,21 +217,27 @@ export default {
|
|
|
|
|
|
//获取任务列表
|
|
|
getRecTaskList(obj).then(res => {
|
|
|
- let { code, rows, msg } = res
|
|
|
+ let { code, rows, total } = res
|
|
|
if (code == 200) {
|
|
|
if (type) {
|
|
|
this.taskList.push(...rows)
|
|
|
- if (rows.length == 0 || rows.length < 10) {
|
|
|
+
|
|
|
+ if (this.taskList.length >= total) {
|
|
|
//已加载完全部数据
|
|
|
this.finished = true
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
}
|
|
|
- callback()
|
|
|
} else {
|
|
|
+ this.taskList.push(...rows)
|
|
|
this.finished = false
|
|
|
- this.taskList = rows || []
|
|
|
- if (rows.length == 0) {
|
|
|
- this.taskList = []
|
|
|
+ this.loading = false
|
|
|
+ if (this.taskList.length >= total) {
|
|
|
+ //已加载完全部数据
|
|
|
+ this.finished = true
|
|
|
}
|
|
|
+
|
|
|
+ // this.taskList = rows || []
|
|
|
}
|
|
|
} else {
|
|
|
this.finished = true
|
|
|
@@ -248,7 +251,7 @@ export default {
|
|
|
},
|
|
|
//年份选中触发
|
|
|
onDateConfirm(val) {
|
|
|
- if(this.newDate(val + '')>this.endDate){
|
|
|
+ if (this.newDate(val + '') > this.endDate) {
|
|
|
return Toast('开始月份不能大于结束月份')
|
|
|
}
|
|
|
this.currentDate = this.newDate(val + '')
|
|
|
@@ -257,12 +260,12 @@ export default {
|
|
|
},
|
|
|
//年份选中触发
|
|
|
onEndDateConfirm(val) {
|
|
|
- if(this.newDate(val + '')<this.currentDate){
|
|
|
+ if (this.newDate(val + '') < this.currentDate) {
|
|
|
return Toast('结束月份不能小于开始月份')
|
|
|
}
|
|
|
this.endDate = this.newDate(val + '')
|
|
|
-
|
|
|
- console.log(this.endDate);
|
|
|
+
|
|
|
+ console.log(this.endDate)
|
|
|
this.endShowDate = false
|
|
|
this.selectListAppHandler()
|
|
|
},
|
|
|
@@ -289,7 +292,6 @@ export default {
|
|
|
this.selectListAppHandler(1, () => {
|
|
|
this.pageNum++
|
|
|
this.loading = false
|
|
|
-
|
|
|
})
|
|
|
},
|
|
|
|