监测对象

This commit is contained in:
liuye
2022-03-26 16:33:51 +08:00
parent 7e063e5a9a
commit 78f966b276
9 changed files with 416 additions and 354 deletions

View File

@@ -75,7 +75,7 @@
<span>合规自然支出</span>
</div>
<div class="right">
<input placeholder="请输入" v-model="form.income9" type="number"
<input placeholder="请输入" v-model="form.income7" type="number"
placeholder-style="color: #999; font-size: 30rpx;"/>
</div>
</div>
@@ -96,18 +96,24 @@ export default {
income3: '',
income4: '',
income5: '',
income8: '',
income9: ''
income6: '',
income7: ''
},
id: ''
id: '',
girdId: '',
girdName: '',
}
},
onLoad(query) {
uni.showLoading()
this.id = query.id
this.girdId = query.girdId
this.girdName = query.girdName
this.getInfo(query.id)
document.title = query.id ? '编辑收支情况' : '添加收支情况'
},
onShow() {
document.title = '编辑收支情况'
},
methods: {
@@ -119,25 +125,23 @@ export default {
...res.data
}
}
uni.hideLoading()
})
},
submit() {
uni.showLoading()
this.$http.post('/app/apppreventionreturntopoverty/addOrUpdate', {
this.form.girdId = this.girdId
this.form.girdName = this.girdName
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
...this.form,
id: this.id
}).then(res => {
if (res.code === 0) {
this.$u.toast(this.isEdit ? '保存成功' : '提交成功')
this.$u.toast('保存成功')
uni.$emit('reload')
uni.navigateBack({
delta: 1
})
}
uni.hideLoading()
})
}
}