统计列表
This commit is contained in:
@@ -45,23 +45,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
datas: [],
|
datas: [],
|
||||||
tabList: [
|
|
||||||
{
|
|
||||||
name: '全部待办',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '办件历史',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
currentTabs: 0,
|
|
||||||
current: 1,
|
current: 1,
|
||||||
pages: 0,
|
pages: 0,
|
||||||
searchGrid: {girdName: '', girdCode: ''},
|
|
||||||
showType: false,
|
|
||||||
eventStatus: '',
|
|
||||||
eventStatusText: '',
|
|
||||||
isAdd: true,
|
|
||||||
eventStatusList: [],
|
|
||||||
title: '',
|
title: '',
|
||||||
girdCode: '',
|
girdCode: '',
|
||||||
searchType: ''
|
searchType: ''
|
||||||
@@ -77,28 +62,15 @@ export default {
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = this.title
|
document.title = this.title
|
||||||
// this.searchGrid.girdId = this.user.girdId
|
|
||||||
// this.searchGrid.girdName = this.user.girdName
|
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$dict.load('qujingEventStatus', 'qujingEventType', 'qujingRiskLevel').then(() => {
|
this.$dict.load('qujingEventStatus', 'qujingEventType', 'qujingRiskLevel').then(() => {
|
||||||
this.eventStatusList = this.$dict.getDict('qujingEventStatus')
|
|
||||||
this.eventStatusList.unshift({dictName: '全部', dictValue: ''})
|
|
||||||
this.getList()
|
this.getList()
|
||||||
// this.getIsAdd()
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getListInit() {
|
|
||||||
this.current = 1
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
nextPage() {
|
|
||||||
this.current++
|
|
||||||
this.getList()
|
|
||||||
},
|
|
||||||
getList() {
|
getList() {
|
||||||
let {current} = this
|
let {current} = this
|
||||||
this.$http.post(`/app/appclapeventinfoqujing/listByStatus`, null, {
|
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) {
|
goDetail(item) {
|
||||||
uni.navigateTo({url: `./Detail?id=${item.id}&isShowBtn=1`})
|
uni.navigateTo({url: `./Detail?id=${item.id}`})
|
||||||
},
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current ++
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user