Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -56,26 +56,28 @@ export default {
|
||||
submit() {
|
||||
var url = ''
|
||||
var params = {
|
||||
pass: this.pass || '',
|
||||
opinion: this.opinion,
|
||||
files: this.filesList,
|
||||
id: this.id,
|
||||
riskType: this.riskType,
|
||||
riskEliminationMethod: this.riskEliminationMethod,
|
||||
}
|
||||
pass: this.pass || '',
|
||||
opinion: this.opinion,
|
||||
files: this.filesList,
|
||||
id: this.id,
|
||||
riskType: this.riskType,
|
||||
riskEliminationMethod: this.riskEliminationMethod,
|
||||
}
|
||||
// 0:待纳入、1:监测中、2:待解除、3:已解除、4:已驳回
|
||||
if(this.pass == 1) { // 网格长
|
||||
if(!this.riskEliminationMethod) {
|
||||
if(this.status == 1) {
|
||||
if(!this.riskEliminationMethod) {
|
||||
return this.$u.toast('请选择风险消除方式')
|
||||
}
|
||||
if(this.status == 1) {
|
||||
url = '/app/apppreventionreturntopoverty/relieve' // 解除
|
||||
} else if (this.status == 4 || this.status == 3) {
|
||||
} else if (this.status == 3 || this.status == 4) {
|
||||
if(!this.riskType) {
|
||||
return this.$u.toast('请选择风险因素')
|
||||
}
|
||||
url = `/app/apppreventionreturntopoverty/examine` // 纳入监测
|
||||
}
|
||||
} else { // 网格员
|
||||
}
|
||||
if (this.pass == '') { // 网格员
|
||||
if(this.status == '0' || this.status == '3' || this.status == '4') {
|
||||
if(!this.riskType) {
|
||||
return this.$u.toast('请选择风险因素')
|
||||
@@ -103,19 +105,19 @@ export default {
|
||||
|
||||
var formData = new FormData()
|
||||
for (let key in params) {
|
||||
formData.append(key, params[key])
|
||||
formData.append(key, params[key])
|
||||
}
|
||||
this.$http.post(url , formData).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('reload')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: 2
|
||||
})
|
||||
},600)
|
||||
}
|
||||
})
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('reload')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: 2
|
||||
})
|
||||
},600)
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user