工单
This commit is contained in:
@@ -96,7 +96,11 @@ export default {
|
|||||||
this.eventSourceText = '工单管理'
|
this.eventSourceText = '工单管理'
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.refresh = true
|
this.refresh = true
|
||||||
|
if (!this.tabIndex) {
|
||||||
|
uni.$emit('workTaskGetListInit')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
confirm(e) {
|
confirm(e) {
|
||||||
this.eventSource = e[0].value
|
this.eventSource = e[0].value
|
||||||
@@ -109,21 +113,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
// document.title = '工单管理'
|
|
||||||
uni.$on('hideTab', () => {
|
uni.$on('hideTab', () => {
|
||||||
this.isTab = false
|
this.isTab = false
|
||||||
})
|
})
|
||||||
uni.$on('showTab', () => {
|
uni.$on('showTab', () => {
|
||||||
this.isTab = true
|
this.isTab = true
|
||||||
})
|
})
|
||||||
if (!this.tabIndex) {
|
|
||||||
// this.$nextTick(() => this.$refs['List'].getListInit())
|
|
||||||
uni.$emit('workTaskGetListInit')
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (!this.tabIndex) {
|
if (!this.tabIndex) {
|
||||||
// this.$nextTick(() => this.$refs['List'].nextPage())
|
|
||||||
uni.$emit('workTaskGetNextPage')
|
uni.$emit('workTaskGetNextPage')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -94,6 +94,15 @@ export default {
|
|||||||
return this.$dict.getDict(this.currentTabs == 0 ? 'clapEventStatusAll' : 'clapEventStatusHistory')
|
return this.$dict.getDict(this.currentTabs == 0 ? 'clapEventStatusAll' : 'clapEventStatusHistory')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.searchGrid.girdId = this.user.girdId
|
||||||
|
this.searchGrid.girdName = this.user.girdName
|
||||||
|
this.current = 1
|
||||||
|
this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory', 'residentEventSource').then(() => {
|
||||||
|
this.getList()
|
||||||
|
this.getIsAdd()
|
||||||
|
})
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
uni.$on('workTaskGetListInit', () => {
|
uni.$on('workTaskGetListInit', () => {
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
@@ -106,15 +115,6 @@ export default {
|
|||||||
this.getListInit()
|
this.getListInit()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
this.searchGrid.girdId = this.user.girdId
|
|
||||||
this.searchGrid.girdName = this.user.girdName
|
|
||||||
this.current = 1
|
|
||||||
this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory', 'residentEventSource').then(() => {
|
|
||||||
this.getList()
|
|
||||||
this.getIsAdd()
|
|
||||||
})
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
getListInit() {
|
getListInit() {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
@@ -139,7 +139,7 @@ export default {
|
|||||||
eventSource: this.eventSource
|
eventSource: this.eventSource
|
||||||
},
|
},
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code == 0 && res.data?.records.length) {
|
if (res.code == 0) {
|
||||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
this.pages = res.data.pages
|
this.pages = res.data.pages
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
|||||||
Reference in New Issue
Block a user