This commit is contained in:
shijingjing
2022-02-07 09:53:25 +08:00
parent 5a96d614f0
commit 190d595a22

View File

@@ -485,21 +485,25 @@ export default {
this.$http.post(urlList[this.form.userType], {...this.form}).then(res => { this.$http.post(urlList[this.form.userType], {...this.form}).then(res => {
if(res.code == 0) { if(res.code == 0) {
this.$u.toast('提交成功') this.$u.toast('信息保存成功')
uni.$emit('specialPeopleList') uni.$emit('specialPeopleList')
setTimeout(() => { setTimeout(() => {
uni.navigateBack() uni.navigateBack()
}, 600) }, 600)
} else if(res.code == 1) {
this.$u.toast('保存失败,信息未填写')
} else {
this.$confirm('是否放弃编辑当前信息').then(()=>{
uni.navigateBack()
})
} }
}) })
}, },
areaSelect(e){ areaSelect(e){
// console.log(e);
this.form.areaId = e this.form.areaId = e
}, },
selectClick(dictName, formName) { selectClick(dictName, formName) {
// console.log(dictName)
this.selectList = this.$dict.getDict(dictName) this.selectList = this.$dict.getDict(dictName)
this.selectName = formName this.selectName = formName
this.showSelect = true this.showSelect = true