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() { onShow() {
document.title = this.parentName document.title = this.parentName
if(this.parentName.length) { if(this.parentName) {
this.getList() this.getList()
} }
}, },

View File

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

View File

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