diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/difficulthelp/apply/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/difficulthelp/apply/index.html index 24bb03b..15c9762 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/difficulthelp/apply/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/difficulthelp/apply/index.html @@ -310,6 +310,7 @@ layout("/layouts/platform_h5.html"){ showDialog: false, isEditing: false, editingIndex: null, + echoingFormDataFlag: false, // 替他人申请相关 userSheetShow: false, @@ -496,12 +497,24 @@ layout("/layouts/platform_h5.html"){ findOne(id) { this.$axios.post('/platform/difficultHelp/mine/findOne', { id }).then(res => { 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) { + if (this.echoingFormDataFlag) { + return + } const user = this.$store.state.user if (val === "1") { this.$set(this.formData, 'userId', user.id)