11
This commit is contained in:
1 parent
3688e0b396
commit
29eb383e2c
2 files changed
+29
-13
No files matched your search
@@ -1,14 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog title="商户配置" width="40%" v-model="visible" :close-on-click-modal="false" draggable>
|
<el-dialog width="60%" v-model="visible" :close-on-click-modal="false" draggable>
|
||||||
<el-form ref="dataFormRef" :model="form" :rules="dataRules" label-width="120px" v-loading="loading">
|
<div>
|
||||||
<el-row :gutter="24">
|
<el-tabs v-model="form.activeTab" class="demo-tabs">
|
||||||
<el-col :span="18" class="mb20">
|
<div v-for="v in data.tabList" :key="v.id">
|
||||||
<el-form-item label="默认钱包类型" prop="defaultWalletTypeId">
|
<el-tab-pane :label="v.label" :name="v.id" />
|
||||||
<select-wallet-type v-model="form.defaultWalletTypeId" placeholder="请选择默认钱包类型" />
|
</div>
|
||||||
</el-form-item>
|
</el-tabs>
|
||||||
</el-col>
|
<el-form ref="dataFormRef" v-if="form.activeTab == 10" :model="form" :rules="dataRules" label-width="120px" v-loading="loading">
|
||||||
</el-row>
|
<el-row :gutter="24">
|
||||||
</el-form>
|
<el-col :span="18" class="mb20">
|
||||||
|
<el-form-item label="默认钱包类型" prop="defaultWalletTypeId">
|
||||||
|
<select-wallet-type v-model="form.defaultWalletTypeId" placeholder="请选择默认钱包类型" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
<mch-rule-config-dialog v-if="form.activeTab == 20" />
|
||||||
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="visible = false">取消</el-button>
|
<el-button @click="visible = false">取消</el-button>
|
||||||
<el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button>
|
<el-button type="primary" @click="onSubmit" :disabled="loading">确认</el-button>
|
||||||
@@ -20,14 +28,24 @@
|
|||||||
import { useMessage } from "/@/hooks/message"
|
import { useMessage } from "/@/hooks/message"
|
||||||
import { getObj, putObj } from "/@/api/wallet/mch-manage"
|
import { getObj, putObj } from "/@/api/wallet/mch-manage"
|
||||||
|
|
||||||
|
const MchRuleConfigDialog = defineAsyncComponent(() => import("./mch-rule-config.vue"))
|
||||||
|
|
||||||
const emit = defineEmits(["refresh"])
|
const emit = defineEmits(["refresh"])
|
||||||
|
|
||||||
const dataFormRef = ref()
|
const dataFormRef = ref()
|
||||||
const visible = ref(false)
|
const visible = ref(false)
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
|
|
||||||
|
const data = {
|
||||||
|
tabList: [
|
||||||
|
{ id: 10, label: "钱包配置" },
|
||||||
|
{ id: 20, label: "钱包规则" },
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
// 提交表单数据
|
// 提交表单数据
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
|
activeTab: data.tabList[0].id,
|
||||||
id: "",
|
id: "",
|
||||||
merchantType: "",
|
merchantType: "",
|
||||||
defaultWalletTypeId: "",
|
defaultWalletTypeId: "",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="layout-padding">
|
<div class="layout-padding">
|
||||||
<div class="layout-padding-auto layout-padding-view">
|
<div class="layout-padding-auto layout-padding-view">
|
||||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
<el-tabs v-model="activeName" class="demo-tabs">
|
||||||
<div v-for="v in data.tabList" :key="v.id">
|
<div v-for="v in data.tabList" :key="v.id">
|
||||||
<el-tab-pane :label="v.label" :name="v.id">
|
<el-tab-pane :label="v.label" :name="v.id">
|
||||||
<div></div>
|
<div></div>
|
||||||
@@ -40,6 +40,4 @@ const data = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const activeName = ref(data.tabList[0].id)
|
const activeName = ref(data.tabList[0].id)
|
||||||
|
|
||||||
const handleClick = (e: any) => {}
|
|
||||||
</script>
|
</script>
|
||||||
Reference in new issue
Block a user