Commit 74c8300b by bingobo

修改菜单逻辑

1 parent 94b54838
......@@ -6,7 +6,7 @@ const SystemConfig = {
PUBLIC_PATH: '/api',
// VUE_APP_BASE_URL: "http://25.66.210.41/tools",
// VUE_APP_BASE_URL: "http://25.66.215.209/tools", // 南瑞新ip
VUE_APP_BASE_URL: "http://192.168.0.114:18088/tools",
VUE_APP_BASE_URL: "http://192.168.0.106:18088/tools",
// VUE_APP_ZJ_IFRAME: "http://25.66.210.41/arch"
// VUE_APP_ZJ_IFRAME: "http://25.66.215.209/arch" // 南瑞新ip
VUE_APP_ZJ_IFRAME: "http://localhost:30478/arch"
......
......@@ -124,6 +124,7 @@ export function get(url, params = {}) {
})
}
export function post(url, data = {}) {
console.log('url', url);
return new Promise((resolve, reject) => {
axios.post(url, data).then(response => {
if (response) {
......
......@@ -94,6 +94,7 @@
</template>
<script>
import axios from 'axios';
import { projectInfoSy, getIscInfo, evaluationMaterials } from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
export default {
......@@ -139,7 +140,10 @@ export default {
// module: 0,
// })
try {
let res = await getIscInfo();
let res = await axios.post(`http://25.66.215.209/gateway/getUser`, null, {
timeout: 5000,
});
// let res = await getIscInfo();
if (res.code === 200) {
sessionStorage.setItem("userid", res.content.id);
sessionStorage.setItem("username", res.content.name);
......@@ -154,11 +158,11 @@ export default {
id: "FA84A11538656BBCE0430100007F9766",
loginName: "lhb",
name: "实物ID运维",
password: "403B8BB4B09",
mobile: "1111111111",
email: "lhb@In.sgcc,com.cn",
password: "",
mobile: "",
email: "",
department: "数据运营中心",
departmentId: "8a20318c948334c201951824f892660e",
departmentId: "",
funcList: [],
},
};
......
......@@ -571,7 +571,7 @@ export default {
"projectCategory": null,
"fullName": null,
"projectName": "信息安全-2023年全场景网络安全态势感知平台优化-设计开发实施项目(态势感知能",
"projectCode": "7422XT230023",
"projectCode": "",
"constructionForm": "4",
"issueYear": "2024",
"projectType": "1",
......
<template>
<div class="mian">
<div class="head-container">
<div v-if="false" class="head-container">
<div class="logo" style="z-index: 10">
<div class="logo-inner">
<img src="../../assets/logo.png" alt="" />
......@@ -234,6 +234,8 @@
<script>
import MainLayout from "./mainLayout";
import axios from 'axios';
import { getIscInfo, evaluationMaterials } from "@/api/index";
import { getMessageListApi, updateMessageApi, readWholwMsg } from "@/api/indexzc";
// import tableMixin from '@/mixins/table.mixin.js'
......@@ -404,7 +406,10 @@ export default {
// module: 0,
// })
try {
let res = await getIscInfo();
let res = await axios.post(`http://25.66.215.209/gateway/getUser`, null, {
timeout: 5000,
});
// let res = await getIscInfo();
if (res.code === 200) {
sessionStorage.setItem("userid", res.content.id);
sessionStorage.setItem("username", res.content.name);
......@@ -419,11 +424,11 @@ export default {
id: "FA84A11538656BBCE0430100007F9766",
loginName: "lhb",
name: "实物ID运维",
password: "403B8BB4B09",
mobile: "1111111111",
email: "lhb@In.sgcc,com.cn",
password: "",
mobile: "",
email: "",
department: "数据运营中心",
departmentId: "8a20318c948334c201951824f892660e",
departmentId: "",
funcList: [],
},
};
......
......@@ -63,7 +63,6 @@
<script>
import { trendsRules } from "@/utils/leftBarRules";
import { getIscInfo } from "@/api/index";
export default {
data() {
return {
......@@ -179,9 +178,6 @@ export default {
}
},
},
async created(){
await this.getIscInfoAndRoutes()
},
mounted() {
// console.log(
......@@ -204,55 +200,6 @@ export default {
},
methods: {
async getIscInfoAndRoutes() {
// console.log('menuList1111', JSON.parse(JSON.stringify(this.menuList)));
const resMockData = {
"success": true,
"code":200,
"message":"OK",
"content": {
id:"FA84A11538656BBCE0430100007F9766",
loginName: "lhb",
name:"实物ID运维",
password:"403B8BB4B09",
mobile: "1111111111",
email: "lhb@In.sgcc,com.cn",
department: '数据运营中心',
departmentId: "8a20318c948334c201951824f892660e",
menuList: [
{
name: '立项统筹中心',
url: '/asdasdas',
type: '01',
level: '1',
ascription: 'lxtczx',
ps: null,
children: [
{
name: '首页',
url: '/asdasda',
type: '01',
level: '2',
ascription: 'lxsy',
ps: null,
children: [],
menu: true
}
],
menu: true
}
],
funcList:[],
}
}
// console.log(11111, resMockData);
// res = await getIscInfo();
const res = resMockData
if (res.code === 200) {
// console.log(123123, res.content);
}
},
handleOpen(e, a) {
// console.log("打开", e);
this.keyIndex = e.charAt(0);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!