优化
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
<div class="card">
|
||||
<div class="nav_wrap">
|
||||
<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>
|
||||
</div>
|
||||
<div class="container mt15">
|
||||
@@ -60,7 +62,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { connectInfo } from '@/api/shop.js'
|
||||
import { connectInfo, merchBaseInfo, merchantInfoDetail } from '@/api/shop.js'
|
||||
|
||||
import authentication from './components/authentication.vue'
|
||||
import shopInfo from './components/shopInfo.vue'
|
||||
@@ -84,19 +86,23 @@ const componentList = {
|
||||
const navs = ref([
|
||||
{
|
||||
type: 1,
|
||||
label: '实名认证信息'
|
||||
label: '实名认证信息',
|
||||
show: true
|
||||
},
|
||||
{
|
||||
type: 2,
|
||||
label: '商户基本信息'
|
||||
label: '商户基本信息',
|
||||
show: true
|
||||
},
|
||||
{
|
||||
type: 3,
|
||||
label: '结算信息'
|
||||
label: '结算信息',
|
||||
show: true
|
||||
},
|
||||
{
|
||||
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(() => {
|
||||
tableOptions.loading = false
|
||||
merchantInfoDetailAjax()
|
||||
merchBaseInfoAjax()
|
||||
connectInfoAjax()
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -221,8 +221,13 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" size="small" disabled icon="Search" v-permission="['MG']"
|
||||
v-if="!scope.row.merchantBaseInfo.alias">
|
||||
商户未认证
|
||||
</el-button>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user