Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
YunaiV 2023-09-27 23:30:48 +08:00
commit 2f82eff526
2 changed files with 10 additions and 10 deletions

View File

@ -4,13 +4,13 @@ export interface ConfigVO {
brokerageEnabled: boolean brokerageEnabled: boolean
brokerageEnabledCondition: number brokerageEnabledCondition: number
brokerageBindMode: number brokerageBindMode: number
brokeragePostUrls: string brokeragePosterUrls: string
brokerageFirstPercent: number brokerageFirstPercent: number
brokerageSecondPercent: number brokerageSecondPercent: number
brokerageWithdrawMinPrice: number brokerageWithdrawMinPrice: number
brokerageBankNames: string brokerageBankNames: string
brokerageFrozenDays: number brokerageFrozenDays: number
brokerageWithdrawType: string brokerageWithdrawTypes: string
} }
// 查询交易中心配置详情 // 查询交易中心配置详情

View File

@ -66,7 +66,7 @@
</el-text> </el-text>
</el-form-item> </el-form-item>
<el-form-item label="分销海报图"> <el-form-item label="分销海报图">
<UploadImgs v-model="formData.brokeragePostUrls" width="75px" height="125px" /> <UploadImgs v-model="formData.brokeragePosterUrls" width="75px" height="125px" />
<el-text class="w-full" size="small" type="info"> <el-text class="w-full" size="small" type="info">
个人中心分销海报图片建议尺寸600x1000 个人中心分销海报图片建议尺寸600x1000
</el-text> </el-text>
@ -121,8 +121,8 @@
提现手续费百分比范围0-1000为无提现手续费设置10即收取10%手续费提现100元到账90元10元手续费 提现手续费百分比范围0-1000为无提现手续费设置10即收取10%手续费提现100元到账90元10元手续费
</el-text> </el-text>
</el-form-item> </el-form-item>
<el-form-item label="提现方式" prop="brokerageWithdrawType"> <el-form-item label="提现方式" prop="brokerageWithdrawTypes">
<el-checkbox-group v-model="formData.brokerageWithdrawType"> <el-checkbox-group v-model="formData.brokerageWithdrawTypes">
<el-checkbox <el-checkbox
v-for="dict in getIntDictOptions(DICT_TYPE.BROKERAGE_WITHDRAW_TYPE)" v-for="dict in getIntDictOptions(DICT_TYPE.BROKERAGE_WITHDRAW_TYPE)"
:key="dict.value" :key="dict.value"
@ -172,14 +172,14 @@ const formData = ref({
brokerageEnabled: true, brokerageEnabled: true,
brokerageEnabledCondition: BrokerageEnabledConditionEnum.ALL.condition, brokerageEnabledCondition: BrokerageEnabledConditionEnum.ALL.condition,
brokerageBindMode: BrokerageBindModeEnum.ANYTIME.mode, brokerageBindMode: BrokerageBindModeEnum.ANYTIME.mode,
brokeragePostUrls: [], brokeragePosterUrls: [],
brokerageFirstPercent: 0, brokerageFirstPercent: 0,
brokerageSecondPercent: 0, brokerageSecondPercent: 0,
brokerageWithdrawMinPrice: 0, brokerageWithdrawMinPrice: 0,
brokerageWithdrawFeePercent: 0, brokerageWithdrawFeePercent: 0,
brokerageBankNames: [], brokerageBankNames: [],
brokerageFrozenDays: 0, brokerageFrozenDays: 0,
brokerageWithdrawType: [] brokerageWithdrawTypes: []
}) })
const formRules = reactive({ const formRules = reactive({
deliveryExpressFreePrice: [{ required: true, message: '满额包邮不能为空', trigger: 'blur' }], deliveryExpressFreePrice: [{ required: true, message: '满额包邮不能为空', trigger: 'blur' }],
@ -193,7 +193,7 @@ const formRules = reactive({
brokerageWithdrawFeePercent: [{ required: true, message: '提现手续费不能为空', trigger: 'blur' }], brokerageWithdrawFeePercent: [{ required: true, message: '提现手续费不能为空', trigger: 'blur' }],
brokerageBankNames: [{ required: true, message: '提现银行不能为空', trigger: 'blur' }], brokerageBankNames: [{ required: true, message: '提现银行不能为空', trigger: 'blur' }],
brokerageFrozenDays: [{ required: true, message: '佣金冻结时间不能为空', trigger: 'blur' }], brokerageFrozenDays: [{ required: true, message: '佣金冻结时间不能为空', trigger: 'blur' }],
brokerageWithdrawType: [ brokerageWithdrawTypes: [
{ {
required: true, required: true,
message: '提现方式不能为空', message: '提现方式不能为空',
@ -212,7 +212,7 @@ const submitForm = async () => {
formLoading.value = true formLoading.value = true
try { try {
const data = formData.value as unknown as ConfigApi.ConfigVO const data = formData.value as unknown as ConfigApi.ConfigVO
data.brokeragePostUrls = formData.value.brokeragePostUrls.map((item: any) => { data.brokeragePosterUrls = formData.value.brokeragePosterUrls.map((item: any) => {
return item?.url ? item.url : item return item?.url ? item.url : item
}) })
await ConfigApi.saveTradeConfig(data) await ConfigApi.saveTradeConfig(data)
@ -228,7 +228,7 @@ const getConfig = async () => {
try { try {
const data = await ConfigApi.getTradeConfig() const data = await ConfigApi.getTradeConfig()
if (data != null) { if (data != null) {
data.brokeragePostUrls = data.brokeragePostUrls.map((url) => ({ url })) data.brokeragePosterUrls = data.brokeragePosterUrls.map((url) => ({ url }))
formData.value = data formData.value = data
} }
} finally { } finally {