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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save