手机端-困难帮扶-帮扶申请记录:修复修改页因为‘申请模式’回显触发它的change事件而清空其他输入框的值;
This commit is contained in:
+14
-1
@@ -310,6 +310,7 @@ layout("/layouts/platform_h5.html"){
|
|||||||
showDialog: false,
|
showDialog: false,
|
||||||
isEditing: false,
|
isEditing: false,
|
||||||
editingIndex: null,
|
editingIndex: null,
|
||||||
|
echoingFormDataFlag: false,
|
||||||
|
|
||||||
// 替他人申请相关
|
// 替他人申请相关
|
||||||
userSheetShow: false,
|
userSheetShow: false,
|
||||||
@@ -496,12 +497,24 @@ layout("/layouts/platform_h5.html"){
|
|||||||
findOne(id) {
|
findOne(id) {
|
||||||
this.$axios.post('/platform/difficultHelp/mine/findOne', { id }).then(res => {
|
this.$axios.post('/platform/difficultHelp/mine/findOne', { id }).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.formData = res.data
|
this.echoingFormDataFlag = true
|
||||||
|
this.formData = Object.assign({
|
||||||
|
familyList: [],
|
||||||
|
files: []
|
||||||
|
}, res.data || {})
|
||||||
|
this.$nextTick(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.echoingFormDataFlag = false
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 申请模式
|
// 申请模式
|
||||||
modeChange(val) {
|
modeChange(val) {
|
||||||
|
if (this.echoingFormDataFlag) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const user = this.$store.state.user
|
const user = this.$store.state.user
|
||||||
if (val === "1") {
|
if (val === "1") {
|
||||||
this.$set(this.formData, 'userId', user.id)
|
this.$set(this.formData, 'userId', user.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user