工单
This commit is contained in:
@@ -96,7 +96,11 @@ export default {
|
||||
this.eventSourceText = '工单管理'
|
||||
this.$nextTick(() => {
|
||||
this.refresh = true
|
||||
if (!this.tabIndex) {
|
||||
uni.$emit('workTaskGetListInit')
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
confirm(e) {
|
||||
this.eventSource = e[0].value
|
||||
@@ -109,21 +113,15 @@ export default {
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
// document.title = '工单管理'
|
||||
uni.$on('hideTab', () => {
|
||||
this.isTab = false
|
||||
})
|
||||
uni.$on('showTab', () => {
|
||||
this.isTab = true
|
||||
})
|
||||
if (!this.tabIndex) {
|
||||
// this.$nextTick(() => this.$refs['List'].getListInit())
|
||||
uni.$emit('workTaskGetListInit')
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
if (!this.tabIndex) {
|
||||
// this.$nextTick(() => this.$refs['List'].nextPage())
|
||||
uni.$emit('workTaskGetNextPage')
|
||||
}
|
||||
},
|
||||
|
||||
@@ -94,6 +94,15 @@ export default {
|
||||
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() {
|
||||
uni.$on('workTaskGetListInit', () => {
|
||||
this.getListInit()
|
||||
@@ -106,15 +115,6 @@ export default {
|
||||
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: {
|
||||
getListInit() {
|
||||
this.current = 1
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
eventSource: this.eventSource
|
||||
},
|
||||
}).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.pages = res.data.pages
|
||||
this.$forceUpdate()
|
||||
|
||||
Reference in New Issue
Block a user