统计列表

This commit is contained in:
liuye
2024-03-05 11:32:29 +08:00
parent a44d04a56b
commit 83dfe42f2c

View File

@@ -45,23 +45,8 @@ export default {
data() {
return {
datas: [],
tabList: [
{
name: '全部待办',
},
{
name: '办件历史',
},
],
currentTabs: 0,
current: 1,
pages: 0,
searchGrid: {girdName: '', girdCode: ''},
showType: false,
eventStatus: '',
eventStatusText: '',
isAdd: true,
eventStatusList: [],
title: '',
girdCode: '',
searchType: ''
@@ -77,28 +62,15 @@ export default {
},
onShow() {
document.title = this.title
// this.searchGrid.girdId = this.user.girdId
// this.searchGrid.girdName = this.user.girdName
this.current = 1
this.getList()
},
created() {
this.$dict.load('qujingEventStatus', 'qujingEventType', 'qujingRiskLevel').then(() => {
this.eventStatusList = this.$dict.getDict('qujingEventStatus')
this.eventStatusList.unshift({dictName: '全部', dictValue: ''})
this.getList()
// this.getIsAdd()
})
},
methods: {
getListInit() {
this.current = 1
this.getList()
},
nextPage() {
this.current++
this.getList()
},
getList() {
let {current} = this
this.$http.post(`/app/appclapeventinfoqujing/listByStatus`, null, {
@@ -118,54 +90,14 @@ export default {
})
},
confirm(e) {
if (this.showType) {
this.eventStatus = e[0].value
this.eventStatusText = e[0].label
}
this.current = 1
this.getList()
},
handleSelectGird(v) {
console.log(v)
this.searchGrid = v
this.current = 1
this.getList()
},
clearGrid() {
this.searchGrid = {girdName: ''}
this.current = 1
this.getList()
},
goDetail(item) {
uni.navigateTo({url: `./Detail?id=${item.id}&isShowBtn=1`})
},
change(index) {
this.current = 1
this.datas = []
this.eventStatus = ''
this.currentTabs = index
this.getList()
},
linkTo(url) {
uni.navigateTo({url})
},
add() {
uni.navigateTo({url: './Add'})
},
getIsAdd() {
this.$http.post(`/app/apppatrolreportinfov2/checkGirdMemberUser`).then((res) => {
if (res.code == 0) {
this.isAdd = res.data
}
})
uni.navigateTo({url: `./Detail?id=${item.id}`})
},
},
onReachBottom() {
this.current ++
this.getList()
}
}
</script>