v1.9 优化群里反馈 admin 配置小区支付时 微信场景下没法上传附件的bug 优化

This commit is contained in:
wuxw 2025-11-26 10:45:06 +08:00
parent b50cf64990
commit cd705b0a27
4 changed files with 19 additions and 9 deletions

View File

@ -17,7 +17,7 @@
</el-form-item>
<el-form-item v-if="form.paymentType === 'WECHAT'" :label="$t('communityPayment.merchantCert')">
<file-upload ref="uploader" namespace="addCommunityPayment" @upload-success="handleUploadSuccess" />
<upload-file ref="uploader" @notify="handleUploadSuccess" />
</el-form-item>
<el-form-item :label="$t('communityPayment.paymentScope')" prop="payType">
@ -52,11 +52,11 @@
<script>
import { saveAdminPaymentPool, listPaymentKey, listPaymentAdapt, queryAdminFeeConfigs } from '@/api/fee/communityPaymentApi'
import FileUpload from '@/components/upload/FileUpload'
import uploadFile from '@/components/upload/uploadFile'
export default {
name: 'AddCommunityPayment',
components: { FileUpload },
components: { uploadFile },
data() {
return {
visible: false,

View File

@ -16,7 +16,7 @@
</el-form-item>
<el-form-item v-if="form.paymentType === 'WECHAT'" :label="$t('communityPayment.merchantCert')">
<file-upload ref="uploader" namespace="editCommunityPayment" @upload-success="handleUploadSuccess" />
<upload-file ref="uploader" @notify="handleUploadSuccess" />
</el-form-item>
<el-form-item :label="$t('communityPayment.paymentScope')">
@ -57,11 +57,11 @@
<script>
import { updateAdminPaymentPool, listPaymentKey, listPaymentAdapt, queryAdminFeeConfigs } from '@/api/fee/communityPaymentApi'
import FileUpload from '@/components/upload/FileUpload'
import uploadFile from '@/components/upload/uploadFile'
export default {
name: 'EditCommunityPayment',
components: { FileUpload },
components: { uploadFile },
data() {
return {
visible: false,
@ -102,7 +102,9 @@ export default {
this.loadPaymentKeys()
this.loadFeeConfigs()
if (row.certPath && this.$refs.uploader) {
this.$refs.uploader.setFileName(row.certPath)
this.$refs.uploader.fileName = row.certPath
this.$refs.uploader.realFileName = row.certPath
this.$refs.uploader.progress = 100
}
})
},

View File

@ -311,7 +311,11 @@ export default {
await this.$refs.form.validate()
// API
await saveFeeConfig(this.form)
const {code,msg} = await saveFeeConfig(this.form)
if(code != 0){
this.$message.error(msg)
return
}
this.$message.success(this.$t('common.operationSuccess'))
this.visible = false

View File

@ -287,7 +287,11 @@ export default {
this.form.communityId = this.getCommunityId()
// API
await updateFeeConfig(this.form)
const {code,msg} = await updateFeeConfig(this.form)
if(code != 0){
this.$message.error(msg)
return
}
this.$message.success(this.$t('common.operationSuccess'))
this.visible = false