This commit is contained in:
shijingjing
2022-05-06 17:07:56 +08:00
parent 5e3424365a
commit af698b8468
3 changed files with 11 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ export default {
},
onShow() {
document.title = this.parentName
if(this.parentName.length) {
if(this.parentName) {
this.getList()
}
},

View File

@@ -144,14 +144,15 @@ export default {
this.$http.post(url, params).then((res) => {
if (res.code == 0) {
this.$u.toast(successText)
uni.$emit('updateDeatil')
uni.$emit('getListInit')
uni.$emit('update')
// uni.$emit('getListInit')
setTimeout(() => {
if (this.status == 4) {
uni.navigateBack({delta: 2})
} else {
uni.navigateBack()
}
// if (this.status == 4) {
// uni.navigateBack({delta: 2})
// } else {
// uni.navigateBack()
// }
}, 600)
}
})

View File

@@ -144,7 +144,7 @@ export default {
},
})
.then((res) => {
if (res.code == 0) {
if (res?.data) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
this.$forceUpdate()
@@ -153,7 +153,7 @@ export default {
},
getStaticList() {
this.$http.post('/app/appclapeventinfo/clapEventStatisticByGirdMember').then((res) => {
if (res.code == 0) {
if (res?.data) {
Object.keys(res.data).forEach(() => {
this.staticName[0].value = res.data['待处理']
this.staticName[1].value = res.data['上报数']