This commit is contained in:
shijingjing
2022-10-27 14:16:37 +08:00
parent 650a6ced04
commit e05ce4d719
2 changed files with 3 additions and 16 deletions

View File

@@ -207,11 +207,7 @@ export default {
}); });
} }
}).catch(err => { }).catch(err => {
uni.showToast({ console.log(err);
title: err,
icon: "none",
duration: 1000
})
}) })
} }
}, },

View File

@@ -138,24 +138,15 @@ export default {
this.baseInfo.reportType = this.$dict.getValue('partyReportSignupReportType', this.reportName); this.baseInfo.reportType = this.$dict.getValue('partyReportSignupReportType', this.reportName);
this.$instance.post(`/app/apppartyreport/signup`, this.baseInfo, null).then(res => { this.$instance.post(`/app/apppartyreport/signup`, this.baseInfo, null).then(res => {
if (res.code == 0) { if (res.code == 0) {
uni.showToast({ this.$u.toast('提交成功')
title: '提交成功',
icon: 'success',
duration: 2000
})
setTimeout(() => { setTimeout(() => {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}); });
}, 2000) }, 2000)
} }
}).catch(err => { }).catch(err => {
uni.showToast({ this.$u.toast('提交失败')
title: err,
icon: "none",
duration: 1000
})
}) })
} }
} }