修改顶部菜单进入详情高亮展示

des
吕天方 10 months ago
parent 68a951184d
commit 2a085decb9

@ -5,8 +5,8 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development' ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境 # 金鸡湖现代服务业品牌管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.0.105:9040' # VUE_APP_BASE_API = 'http://192.168.0.105:9040'
# VUE_APP_BASE_API = 'http://39.101.188.84:9040' VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# VUE_APP_BASE_API = 'https://idp.sipac.gov.cn/api' # VUE_APP_BASE_API = 'https://idp.sipac.gov.cn/api'
# 路由懒加载 # 路由懒加载

@ -1,6 +1,6 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "1.0.202406261414", "version": "1.0.202406271524",
"description": "金鸡湖现代服务业品牌管理系统", "description": "金鸡湖现代服务业品牌管理系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",

@ -7,7 +7,7 @@
> >
<div <div
class="menu-item" class="menu-item"
v-if="!item.children || item.name == 'Project'" v-if="!item.children"
@click="handlerRouter(item.fullPath)" @click="handlerRouter(item.fullPath)"
> >
{{ item.meta.title }} {{ item.meta.title }}
@ -53,6 +53,7 @@ export default {
} }
} }
}); });
console.log(this.topMenus,"==============");
this.addParentId(this.topMenus, null); this.addParentId(this.topMenus, null);
this.$store.commit("SET_FIRST_ROUTER", this.topMenus[0].fullPath); this.$store.commit("SET_FIRST_ROUTER", this.topMenus[0].fullPath);
}, },
@ -75,6 +76,9 @@ export default {
// //
isCurrentRoute(key) { isCurrentRoute(key) {
console.log(this.$route.path,"this.$route.path");
console.log(key,"key");
console.log(this.$route.path.indexOf(key) > -1);
return this.$route.path.indexOf(key) > -1; return this.$route.path.indexOf(key) > -1;
}, },

@ -101,27 +101,27 @@ export const constantRoutes = [
meta: { title: '个人中心', icon: 'user' } meta: { title: '个人中心', icon: 'user' }
}, },
{ {
path: 'declareAddContent', path: 'onlineDeclareAdd',
component: () => import('@/views/onlineDeclaration/declareAddContent/index'), component: () => import('@/views/onlineDeclaration/declareAddContent/index'),
name: 'declareAddContent', name: 'onlineDeclareAdd',
meta: { title: '新增申报', icon: 'user' } meta: { title: '新增申报', icon: 'user' }
}, },
{ {
path: 'declareDetailContent', path: 'onlineDeclareInfo',
component: () => import('@/views/onlineDeclaration/declareDetailContent/index'), component: () => import('@/views/onlineDeclaration/declareDetailContent/index'),
name: 'declareDetailContent', name: 'onlineDeclareInfo',
meta: { title: '申报详情', icon: 'user' } meta: { title: '申报详情', icon: 'user' }
}, },
{ {
path: 'templateDetail', path: 'onlineDeclareDetail',
component: () => import('@/views/onlineDeclaration/templateDetail/index'), component: () => import('@/views/onlineDeclaration/templateDetail/index'),
name: 'templateDetail', name: 'onlineDeclareDetail',
meta: { title: '模版详情', icon: 'user' } meta: { title: '模版详情', icon: 'user' }
}, },
{ {
path: 'supplementaryNew', path: 'onlineDeclareTInfo',
component: () => import('@/views/onlineDeclaration/supplementary/index'), component: () => import('@/views/onlineDeclaration/supplementary/index'),
name: 'supplementaryNew', name: 'onlineDeclareTInfo',
meta: { title: '模版详情', icon: 'user' } meta: { title: '模版详情', icon: 'user' }
}, },
{ {
@ -131,9 +131,9 @@ export const constantRoutes = [
meta: { title: '项目详情', icon: 'user' } meta: { title: '项目详情', icon: 'user' }
}, },
{ {
path: 'enterInfo', path: 'enterpriselibraryInfo',
component: () => import('@/views/enterpriselibrary/enterInfo/index'), component: () => import('@/views/enterpriselibrary/enterInfo/index'),
name: 'enterInfo', name: 'enterpriselibraryInfo',
meta: { title: '企业详情', icon: 'user' } meta: { title: '企业详情', icon: 'user' }
}, },
] ]

@ -251,7 +251,7 @@ export default {
// //
goInfo(row){ goInfo(row){
this.$router.push({ this.$router.push({
name: 'enterInfo', name: 'enterpriselibraryInfo',
query: { userId: row.id, creditCode: row.creditCode } query: { userId: row.id, creditCode: row.creditCode }
}) })
}, },

@ -329,7 +329,7 @@ export default {
}, },
/** 查看表单模版 */ /** 查看表单模版 */
handleTemplate (row) { handleTemplate (row) {
this.$router.push({name: 'templateDetail',query: { this.$router.push({name: 'onlineDeclareDetail',query: {
templateId: row.id, templateId: row.id,
pageType: "template", pageType: "template",
}}) }})

@ -308,7 +308,7 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleView(row) { handleView(row) {
this.$router.push({name: 'declareDetailContent',query: { this.$router.push({name: 'onlineDeclareInfo',query: {
templateId: row.templateId, templateId: row.templateId,
templateRecordId: row.templateRecordId, templateRecordId: row.templateRecordId,
pageType: "detail", pageType: "detail",

@ -463,7 +463,7 @@ export default {
this.multipleSelection = val; this.multipleSelection = val;
}, },
routerGo() { routerGo() {
this.$router.push({ name: 'supplementaryNew' }).catch(()=>{}); this.$router.push({ name: 'onlineDeclareTInfo' }).catch(()=>{});
}, },
/** 查询菜单列表 */ /** 查询菜单列表 */
getList() { getList() {
@ -570,7 +570,7 @@ export default {
/** 开始填报按钮操作 */ /** 开始填报按钮操作 */
handleAdd(row){ handleAdd(row){
// console.log(row); // console.log(row);
this.$router.push({name: 'declareAddContent',query: { this.$router.push({name: 'onlineDeclareAdd',query: {
templateId: row.templateId, templateId: row.templateId,
templateRecordId: row.templateRecordId, templateRecordId: row.templateRecordId,
declarationId: row.id, declarationId: row.id,
@ -579,7 +579,7 @@ export default {
}, },
/** 查看审核详情操作 */ /** 查看审核详情操作 */
handleDetail(row){ handleDetail(row){
this.$router.push({name: 'declareDetailContent',query: { this.$router.push({name: 'onlineDeclareInfo',query: {
templateId: row.templateId, templateId: row.templateId,
// templateRecordId: row.templateRecordId, // templateRecordId: row.templateRecordId,
pageType: "detail", pageType: "detail",
@ -621,7 +621,7 @@ export default {
submitForm: function() { submitForm: function() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
this.$router.push({name: 'declareAddContent',query: { this.$router.push({name: 'onlineDeclareAdd',query: {
templateId: this.form.templateId, templateId: this.form.templateId,
templateRecordId: this.form.templateRecordId, templateRecordId: this.form.templateRecordId,
pageType: "add", pageType: "add",
@ -631,7 +631,7 @@ export default {
}, },
/** 编辑按钮 */ /** 编辑按钮 */
handleEdit(row) { handleEdit(row) {
this.$router.push({name: 'declareDetailContent',query: { this.$router.push({name: 'onlineDeclareInfo',query: {
templateId: row.templateId, templateId: row.templateId,
templateRecordId: row.templateRecordId, templateRecordId: row.templateRecordId,
pageType: "edit", pageType: "edit",

@ -205,7 +205,7 @@ export default {
}, },
/** 查看详情操作 */ /** 查看详情操作 */
handleDetail(row) { handleDetail(row) {
this.$router.push({name: 'templateDetail',query: { this.$router.push({name: 'onlineDeclareDetail',query: {
templateId: row.id, templateId: row.id,
pageType: "template", pageType: "template",
}}) }})

Loading…
Cancel
Save