钱包充值钱包类型可选
This commit is contained in:
1 parent
4f81f8bdc3
commit
7fa9d6adbd
1 file changed
+1
-9
@@ -16,10 +16,7 @@
|
|||||||
|
|
||||||
<el-col :span="24" class="mb20">
|
<el-col :span="24" class="mb20">
|
||||||
<el-form-item label="钱包" prop="walletTypeId">
|
<el-form-item label="钱包" prop="walletTypeId">
|
||||||
<!-- <select-wallet-type v-model="form.walletTypeId" placeholder="请选择钱包" :disabled="false" /> -->
|
<select-wallet-type v-model="form.walletTypeId" placeholder="请选择钱包" :disabled="false" />
|
||||||
<el-select v-model="form.walletTypeId" :disabled="true">
|
|
||||||
<el-option v-for="item in walletTypeOptions" :key="item.id" :label="item.name" :value="item.id" />
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
@@ -61,7 +58,6 @@ const form = reactive({
|
|||||||
importTime: "",
|
importTime: "",
|
||||||
remark: "",
|
remark: "",
|
||||||
})
|
})
|
||||||
const walletTypeOptions = ref()
|
|
||||||
|
|
||||||
// 定义校验规则
|
// 定义校验规则
|
||||||
const dataRules = ref({
|
const dataRules = ref({
|
||||||
@@ -83,10 +79,6 @@ const openDialog = async (id: string) => {
|
|||||||
form.id = id
|
form.id = id
|
||||||
getwalletRechargeApplyData(id)
|
getwalletRechargeApplyData(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await getWalletTypeSimple()
|
|
||||||
walletTypeOptions.value = res.data.records
|
|
||||||
form.walletTypeId = res.data.records.find((item: any) => item.uniqueCode == "1").id
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 提交
|
// 提交
|
||||||
|
|||||||
Reference in new issue
Block a user