钱包充值钱包类型可选
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-form-item label="钱包" prop="walletTypeId">
|
||||
<!-- <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>
|
||||
<select-wallet-type v-model="form.walletTypeId" placeholder="请选择钱包" :disabled="false" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
@@ -61,7 +58,6 @@ const form = reactive({
|
||||
importTime: "",
|
||||
remark: "",
|
||||
})
|
||||
const walletTypeOptions = ref()
|
||||
|
||||
// 定义校验规则
|
||||
const dataRules = ref({
|
||||
@@ -83,10 +79,6 @@ const openDialog = async (id: string) => {
|
||||
form.id = 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