优化
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="nav_wrap">
|
<div class="nav_wrap">
|
||||||
<el-radio-group v-model="type">
|
<el-radio-group v-model="type">
|
||||||
<el-radio-button :label="item.type" v-for="item in navs" :key="item.type">{{ item.label }}</el-radio-button>
|
<el-radio-button :label="item.type" v-for="item in navs" :key="item.type">
|
||||||
|
{{ item.label }}
|
||||||
|
</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
<div class="container mt15">
|
<div class="container mt15">
|
||||||
@@ -60,7 +62,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { connectInfo } from '@/api/shop.js'
|
import { connectInfo, merchBaseInfo, merchantInfoDetail } from '@/api/shop.js'
|
||||||
|
|
||||||
import authentication from './components/authentication.vue'
|
import authentication from './components/authentication.vue'
|
||||||
import shopInfo from './components/shopInfo.vue'
|
import shopInfo from './components/shopInfo.vue'
|
||||||
@@ -84,19 +86,23 @@ const componentList = {
|
|||||||
const navs = ref([
|
const navs = ref([
|
||||||
{
|
{
|
||||||
type: 1,
|
type: 1,
|
||||||
label: '实名认证信息'
|
label: '实名认证信息',
|
||||||
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 2,
|
type: 2,
|
||||||
label: '商户基本信息'
|
label: '商户基本信息',
|
||||||
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 3,
|
type: 3,
|
||||||
label: '结算信息'
|
label: '结算信息',
|
||||||
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 4,
|
type: 4,
|
||||||
label: '通道进件信息'
|
label: '通道进件信息',
|
||||||
|
show: true
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -124,8 +130,32 @@ async function connectInfoAjax() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 实名认证信息
|
||||||
|
async function merchantInfoDetailAjax() {
|
||||||
|
try {
|
||||||
|
const res = await merchantInfoDetail(route.query.id)
|
||||||
|
navs.value[0].show = false
|
||||||
|
type.value = 2
|
||||||
|
} catch (error) {
|
||||||
|
navs.value[0].show = false
|
||||||
|
type.value = 2
|
||||||
|
console.error('实名认证信息===', error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 商户基本信息
|
||||||
|
async function merchBaseInfoAjax() {
|
||||||
|
try {
|
||||||
|
const res = await merchBaseInfo(route.query.id)
|
||||||
|
} catch (error) {
|
||||||
|
console.log('商户基本信息===', error)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
tableOptions.loading = false
|
tableOptions.loading = false
|
||||||
|
merchantInfoDetailAjax()
|
||||||
|
merchBaseInfoAjax()
|
||||||
connectInfoAjax()
|
connectInfoAjax()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -221,8 +221,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" fixed="right">
|
<el-table-column label="操作" fixed="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
<el-button type="primary" size="small" disabled icon="Search" v-permission="['MG']"
|
||||||
|
v-if="!scope.row.merchantBaseInfo.alias">
|
||||||
|
商户未认证
|
||||||
|
</el-button>
|
||||||
<RouterLink
|
<RouterLink
|
||||||
:to="{ name: 'shop_detail', query: { id: scope.row.id, name: scope.row.agencyName, account: scope.row.agencyCode, merchantcode: scope.row.merchantBaseInfo.merchantCode } }">
|
:to="{ name: 'shop_detail', query: { id: scope.row.id, name: scope.row.agencyName, account: scope.row.agencyCode, merchantcode: scope.row.merchantBaseInfo.merchantCode } }"
|
||||||
|
v-else>
|
||||||
<el-button type="primary" size="small" icon="Search" v-permission="['MG']">
|
<el-button type="primary" size="small" icon="Search" v-permission="['MG']">
|
||||||
详情
|
详情
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user