|
|
@@ -33,7 +33,7 @@ |
|
|
@click="active=1" |
|
|
@click="active=1" |
|
|
/> |
|
|
/> |
|
|
</van-badge> |
|
|
</van-badge> |
|
|
<p>全部任务</p> |
|
|
|
|
|
|
|
|
<p id="basetext">全部任务</p> |
|
|
</van-col> |
|
|
</van-col> |
|
|
<van-col span="8"> |
|
|
<van-col span="8"> |
|
|
<van-badge :content="done"> |
|
|
<van-badge :content="done"> |
|
|
@@ -64,56 +64,64 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="active==1" style="height:calc( 100vh - 350px);overflow-y:auto;"> |
|
|
<div v-if="active==1" style="height:calc( 100vh - 350px);overflow-y:auto;"> |
|
|
<van-cell v-for="(item,index) in totalList" :key="index" :title="item.deptName" size="small" @click.native="setCookies(item)" :to="{name:'homesteadList'}"style="border-radius: 16px; |
|
|
|
|
|
|
|
|
<van-pull-refresh v-model="isLoadingtask" @refresh="onRefreshtask"> |
|
|
|
|
|
<van-cell v-for="(item,index) in totalList" :key="item.id" :title="item.deptName" size="small" @click.native="setCookies(item)" :to="{name:'homesteadList'}"style="border-radius: 16px; |
|
|
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> |
|
|
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> |
|
|
<template #default> |
|
|
<template #default> |
|
|
|
|
|
<CircleProccess :ids="index" :counts="item.reportZjdzdNumber!=0?(item.confirmZjdzdNumber/item.reportZjdzdNumber)*100:0"></CircleProccess> |
|
|
</template> |
|
|
</template> |
|
|
<template #label> |
|
|
<template #label> |
|
|
开始时间:{{item.planBeginTime}} 结束时间:{{item.planEndTime}} |
|
|
|
|
|
|
|
|
开始时间:{{item.planBeginTime}}<br/> 结束时间:{{item.planEndTime}} |
|
|
</template> |
|
|
</template> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> |
|
|
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> |
|
|
</template> |
|
|
</template> |
|
|
</van-cell> |
|
|
</van-cell> |
|
|
|
|
|
</van-pull-refresh> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="active==2" style="height:calc( 100vh - 350px);overflow-y:auto;"> |
|
|
<div v-if="active==2" style="height:calc( 100vh - 350px);overflow-y:auto;"> |
|
|
<van-cell v-for=" (item,index) in doneList" :key="index" :title="item.deptName" size="small" :to="{name:'homesteadList',params:{item:item}}" style="border-radius: 16px; |
|
|
|
|
|
|
|
|
<van-pull-refresh v-model="isLoadingtask" @refresh="onRefreshtask"> |
|
|
|
|
|
<van-cell v-for=" (item,index) in doneList" :key="item.id" :title="item.deptName" size="small" :to="{name:'homesteadList',params:{item:item}}" style="border-radius: 16px; |
|
|
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> |
|
|
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> |
|
|
<template #default> |
|
|
<template #default> |
|
|
|
|
|
<CircleProccess :ids="index" :counts="item.reportZjdzdNumber!=0?(item.confirmZjdzdNumber/item.reportZjdzdNumber)*100:0"></CircleProccess> |
|
|
</template> |
|
|
</template> |
|
|
<template #label> |
|
|
<template #label> |
|
|
开始时间:{{item.planBeginTime}} |
|
|
|
|
|
|
|
|
开始时间:{{item.planBeginTime}}<br/> 结束时间:{{item.planEndTime}} |
|
|
</template> |
|
|
</template> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> |
|
|
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> |
|
|
</template> |
|
|
</template> |
|
|
</van-cell> |
|
|
</van-cell> |
|
|
|
|
|
</van-pull-refresh> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="active==3" style="height:calc( 100vh - 350px);overflow-y:auto;"> |
|
|
<div v-if="active==3" style="height:calc( 100vh - 350px);overflow-y:auto;"> |
|
|
<van-cell v-for=" (item,index) in todoList" :key="index" :title="item.deptName" size="small" :to="{name:'homesteadList',params:{item:item}}" style="border-radius: 16px; |
|
|
|
|
|
|
|
|
<van-pull-refresh v-model="isLoadingtask" @refresh="onRefreshtask"> |
|
|
|
|
|
<van-cell v-for=" (item,index) in todoList" :key="item.id" :title="item.deptName" size="small" :to="{name:'homesteadList',params:{item:item}}" style="border-radius: 16px; |
|
|
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> |
|
|
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px"> |
|
|
<template #default> |
|
|
<template #default> |
|
|
</template> |
|
|
|
|
|
|
|
|
<CircleProccess :ids="index" :counts="item.reportZjdzdNumber!=0?(item.confirmZjdzdNumber/item.reportZjdzdNumber)*100:0"></CircleProccess> |
|
|
|
|
|
</template> |
|
|
<template #label> |
|
|
<template #label> |
|
|
开始时间:{{item.planBeginTime}} |
|
|
|
|
|
|
|
|
开始时间:{{item.planBeginTime}}<br/> 结束时间:{{item.planEndTime}} |
|
|
</template> |
|
|
</template> |
|
|
<template #icon> |
|
|
<template #icon> |
|
|
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> |
|
|
<van-icon name="clock" color="#22b7f2" style="margin-top:10px;margin-right:10px;"/> |
|
|
</template> |
|
|
</template> |
|
|
</van-cell> |
|
|
</van-cell> |
|
|
|
|
|
</van-pull-refresh> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import {addTask, complete, delTask, exportTask, getTask, listTask, publish, updateTask} from "@/api/homesteadSurvey/index"; |
|
|
import {addTask, complete, delTask, exportTask, getTask, listTask, publish, updateTask} from "@/api/homesteadSurvey/index"; |
|
|
import {getInfo} from "../../api/login"; |
|
|
import {getInfo} from "../../api/login"; |
|
|
// import circleProccess from "@/components/circleProccess.vue"; |
|
|
|
|
|
|
|
|
import CircleProccess from "@/components/circleProccess.vue"; |
|
|
export default { |
|
|
export default { |
|
|
name: "homesteadIndex", |
|
|
name: "homesteadIndex", |
|
|
components: { |
|
|
components: { |
|
|
// circleProccess |
|
|
|
|
|
|
|
|
CircleProccess |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
@@ -133,23 +141,15 @@ |
|
|
todoList:[], |
|
|
todoList:[], |
|
|
// 查询参数 |
|
|
// 查询参数 |
|
|
queryParams: { |
|
|
queryParams: { |
|
|
// 分页 |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
// 查询排序 |
|
|
|
|
|
orderByColumn: "id", |
|
|
|
|
|
isAsc: "desc", |
|
|
|
|
|
deptId: null, |
|
|
|
|
|
deptName: null, |
|
|
|
|
|
title: null, |
|
|
|
|
|
createUserId: null, |
|
|
|
|
|
updateUserId: null, |
|
|
|
|
|
taskStatus: null, |
|
|
taskStatus: null, |
|
|
taskPublishStatus:"PUBLISHED", |
|
|
taskPublishStatus:"PUBLISHED", |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
nickName:"", |
|
|
nickName:"", |
|
|
text:0, |
|
|
text:0, |
|
|
|
|
|
isLoadingtask:false, |
|
|
|
|
|
countqb:0, |
|
|
|
|
|
countyhc:0, |
|
|
|
|
|
countwhc:0, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted(){ |
|
|
mounted(){ |
|
|
@@ -170,6 +170,55 @@ |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
onRefreshtask(){ |
|
|
|
|
|
this.isLoadingtask = false; |
|
|
|
|
|
let _this = this |
|
|
|
|
|
if(this.active==1){ |
|
|
|
|
|
let params = { |
|
|
|
|
|
"taskStatus": "FINISHED", |
|
|
|
|
|
"taskPublishStatus":"PUBLISHED", |
|
|
|
|
|
"pageNum": this.countyhc+1, |
|
|
|
|
|
"pageSize":10, |
|
|
|
|
|
} |
|
|
|
|
|
listTask(params).then((response) => { |
|
|
|
|
|
if(response.rows.length>0&&this.doneList.length<response.total){ |
|
|
|
|
|
response.rows.map(res => { |
|
|
|
|
|
this.doneList.unshift(res) |
|
|
|
|
|
}) |
|
|
|
|
|
this.countyhc++ |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}else if(this.active==2){ |
|
|
|
|
|
let params = { |
|
|
|
|
|
"taskStatus": "UNFINISHED", |
|
|
|
|
|
"taskPublishStatus":"PUBLISHED", |
|
|
|
|
|
"pageNum": this.countwhc+1, |
|
|
|
|
|
"pageSize":10, |
|
|
|
|
|
} |
|
|
|
|
|
listTask(params).then((response) => { |
|
|
|
|
|
if(response.rows.lenght>0&&this.todoList.length<response.total){ |
|
|
|
|
|
response.rows.map(res => { |
|
|
|
|
|
this.todoList.unshift(res) |
|
|
|
|
|
}) |
|
|
|
|
|
this.countwhc++ |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}else{ |
|
|
|
|
|
let params = { |
|
|
|
|
|
"taskPublishStatus":"PUBLISHED", |
|
|
|
|
|
"pageNum": this.countqb+1, |
|
|
|
|
|
"pageSize":10, |
|
|
|
|
|
} |
|
|
|
|
|
listTask(params).then((response) => { |
|
|
|
|
|
if(response.rows.length>0&&this.totalList.length<response.total){ |
|
|
|
|
|
response.rows.map(res => { |
|
|
|
|
|
this.totalList.unshift(res) |
|
|
|
|
|
}) |
|
|
|
|
|
this.countqb++ |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
setCookies(item){ |
|
|
setCookies(item){ |
|
|
this.$cookies.set("item",JSON.stringify(item)); |
|
|
this.$cookies.set("item",JSON.stringify(item)); |
|
|
}, |
|
|
}, |
|
|
|