mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 优化群里反馈 admin 配置小区支付时 微信场景下没法上传附件的bug 优化
This commit is contained in:
parent
b50cf64990
commit
cd705b0a27
@ -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,
|
||||
|
||||
@ -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
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user