diff --git a/src/project/qujing/AppPatrolReport/StatisticsList.vue b/src/project/qujing/AppPatrolReport/StatisticsList.vue index 8ababdb6..b6bfdb2a 100644 --- a/src/project/qujing/AppPatrolReport/StatisticsList.vue +++ b/src/project/qujing/AppPatrolReport/StatisticsList.vue @@ -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() + } }