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