【开发】修改菜单结构

This commit is contained in:
fengachen
2022-07-19 15:03:50 +08:00
parent 8b2ae58008
commit ee09e03fb1
4 changed files with 123 additions and 51 deletions
+62 -48
View File
@@ -233,25 +233,39 @@ export const routerData = [
keepAlive: false,
internalOrExternal: false,
componentName: 'PaymentInfo',
title: '缴费信息'
title: '综合业务'
},
name: 'standardsAssociation-PaymentInfo',
path: '/standardsAssociation/PaymentInfo',
route: '1',
children: [
{
component: 'standardsAssociation/PaymentInfo/MemberInfo',
component: 'standardsAssociation/feehandle/FeeHandle',
id: 'standardsMemberInfo4-4-1',
meta: {
keepAlive: false,
internalOrExternal: false,
componentName: 'MemberInfo',
title: '会员缴费'
componentName: 'FeeHandle',
title: '费用办理'
},
name: 'standardsAssociation-PaymentInfo-MemberInfo',
path: '/standardsAssociation/PaymentInfo/MemberInfo',
name: 'standardsAssociation/feehandle/FeeHandle',
path: '/standardsAssociation/feehandle/FeeHandle',
route: '1'
}, {
},
{
component: 'standardsAssociation/CertificateManagement',
id: 'standardsMemberInfo4-4-1',
meta: {
keepAlive: false,
internalOrExternal: false,
componentName: 'CertificateManagement',
title: '证书服务'
},
name: 'standardsAssociation/CertificateManagement',
path: '/standardsAssociation/CertificateManagement',
route: '1'
},
{
component: 'standardsAssociation/PaymentInfo/InvoiceInfo',
id: 'standardsInvoiceInfo4-4-3',
meta: {
@@ -266,47 +280,47 @@ export const routerData = [
}
]
},
{
component: 'layouts/RouteView',
id: 'standardsCertificateManagement4-3',
meta: {
keepAlive: false,
internalOrExternal: false,
componentName: 'CertificateManagement',
title: '证书缴费'
},
name: 'standardsAssociation-CertificateManagement',
path: '/standardsAssociation/CertificateManagement',
route: '1',
children: [
{
component: 'standardsAssociation/CertificateManagement',
id: 'standardsCertificateManagement4-3-1',
meta: {
keepAlive: false,
internalOrExternal: false,
componentName: 'CertificateManagement',
title: '证书申请'
},
name: 'standardsAssociation-CertificateManagement',
path: '/standardsAssociation/CertificateManagement',
route: '1'
},
{
component: 'standardsAssociation/PaymentInfo/CertificateInfo',
id: 'standardsCertificateInfo4-3-2',
meta: {
keepAlive: false,
internalOrExternal: false,
componentName: 'CertificateInfo',
title: '项目查询'
},
name: 'standardsAssociation-PaymentInfo-CertificateInfo',
path: '/standardsAssociation/PaymentInfo/CertificateInfo',
route: '1'
}
]
},
// {
// component: 'layouts/RouteView',
// id: 'standardsCertificateManagement4-3',
// meta: {
// keepAlive: false,
// internalOrExternal: false,
// componentName: 'CertificateManagement',
// title: '证书缴费'
// },
// name: 'standardsAssociation-CertificateManagement',
// path: '/standardsAssociation/CertificateManagement',
// route: '1',
// children: [
// {
// component: 'standardsAssociation/CertificateManagement',
// id: 'standardsCertificateManagement4-3-1',
// meta: {
// keepAlive: false,
// internalOrExternal: false,
// componentName: 'CertificateManagement',
// title: '证书申请'
// },
// name: 'standardsAssociation-CertificateManagement',
// path: '/standardsAssociation/CertificateManagement',
// route: '1'
// },
// {
// component: 'standardsAssociation/PaymentInfo/CertificateInfo',
// id: 'standardsCertificateInfo4-3-2',
// meta: {
// keepAlive: false,
// internalOrExternal: false,
// componentName: 'CertificateInfo',
// title: '项目查询'
// },
// name: 'standardsAssociation-PaymentInfo-CertificateInfo',
// path: '/standardsAssociation/PaymentInfo/CertificateInfo',
// route: '1'
// }
// ]
// },
{
component: 'standardsAssociation/vinCertificate/Authorization',
@@ -52,7 +52,7 @@
<!-- 操作按钮区域 -->
<div class="table-operator">
<div class="notice-msg">
附加证书需求请转至证书管理工作区提交申请本页面仅提供数据查询
附加证书需求请转至证书服务工作区提交申请本页面仅提供数据查询
</div>
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
</div>
@@ -1118,12 +1118,10 @@ export default {
await this.loadMember()
this.visible = true
// 获取会员类型 vip会员不展示 升级专用
console.log(this.model.memberType,'this.model.memberTypethis.model.memberType')
if(this.model.memberType === 2){
this.$nextTick( () => {
ajaxGetDictItems('payment_time', null).then((res) => {
if (res.success) {
this.dictOptions = res.result
let dictOptions = res.result
let index = dictOptions.findIndex(item => item.value === '3' )
dictOptions.splice(index,1)
@@ -0,0 +1,60 @@
<template>
<a-card :bordered="false">
<a-radio-group v-model="menuValue" @change="changeMenu">
<a-radio :style="radioStyle" :value="1">
会员缴费
</a-radio>
<a-radio :style="radioStyle" :value="2">
证书缴费
</a-radio>
</a-radio-group>
<!-- 会员缴费 begin -->
<member-info v-if="menuValue === 1"></member-info>
<!-- 会员缴费 end -->
<!-- 证书缴费 begin -->
<certificate-info v-if="menuValue === 2"></certificate-info>
<!-- 证书缴费 end -->
</a-card>
</template>
<script>
// import PaymentInfoList from '@views/member/paymentInfo/PaymentInfoList'
import CertificateInfo from '@views/standardsAssociation/PaymentInfo/CertificateInfo'
import MemberInfo from '@views/standardsAssociation/PaymentInfo/MemberInfo'
export default {
name: 'FeeHandle',
components: {
MemberInfo,
CertificateInfo
},
data() {
return {
menuValue: 1,
radioStyle: {
display: 'block',
height: '30px',
lineHeight: '30px'
}
}
},
methods: {
/**
* 更换菜单
* */
changeMenu(e) {
console.log(e)
this.menuValue = e.target.value
}
},
beforeDestroy() {
this.menuValue = 1
}
}
</script>
<style scoped lang="less">
</style>