Commit a23cd756 authored by liminge's avatar liminge

定版优化

parent 801972f4
......@@ -156,6 +156,7 @@
@mouseleave.stop="change_now_hover(-1)"
@mouseenter.stop="change_now_hover(indexs)"
@click.stop="gotoChildPage(v, item.visit_url)"
v-if="v.menu_name != '在线组件工具'"
>
{{ v.menu_name }}
</div>
......@@ -284,6 +285,8 @@ export default {
} else if (parent == "/services_shop") {
this.$store.commit("serviceShopMenuAct", v.visit_url);
this.$router.push(v.visit_url);
} else if (v.visit_url.indexOf("orgId") > 0) {
this.$router.push(v.visit_url + this.userInfo.department_id);
} else if (v.visit_url.indexOf("#") > 0) {
window.open(v.visit_url);
} else {
......@@ -398,7 +401,7 @@ export default {
}
.menu_box {
float: right;
width: 185px;
width: 190px;
font-size: 16px;
height: 58px;
text-align: center;
......
......@@ -6,7 +6,7 @@
<img style="width:40px;" :src="picture_path?picture_path:require('../../assets/imgs/img_head.png')" alt />
<span>你好,{{ person }}{{login_time?'最近登录 ':''}}{{ login_time }}</span>
</div>
<div class="person_menu">
<!-- <div class="person_menu">
管理功能&nbsp;&nbsp;&nbsp;
<div class="person_manage_pic"></div>
......@@ -22,7 +22,7 @@
{{ item.text }}
</div>
</div>
</div>
</div> -->
</div>
<div class="menu">
<div
......@@ -969,45 +969,45 @@ export default {
]
],
online_tool_arr: [
{
text: "智能制图",
pic: require("@/assets/imgs/home_tool_ic_znht.png"),
bg: "#e5f4fe",
color: "#38aef9",
url: "/vmap/#/map",
target: 1
},
{
text: "流程设计",
pic: require("@/assets/imgs/home_tool_ic_lcsj.png"),
bg: "#e6ebfe",
color: "#515fe7",
url: "/apaas/ui/#/progress",
// url: "/lcyq/ui/#/process/model",
target: 1
},
{
text: "可视化图表",
pic: require("@/assets/imgs/home_tool_ic_kshbb.png"),
bg: "#fff2e2",
color: "#ea7d19",
url: "/iam/api/bi/token",
target: 1
},
{
text: "应用创新",
pic: require("@/assets/imgs/home_tool_ic_yycx.png"),
bg: "#e7fdfc",
color: "#25bdb1",
url: "/app_build",
},
{
text: "搜索引擎",
pic: require("@/assets/imgs/home_tool_ic_ssyq.png"),
bg: "#f1f1f3",
color: "#58617a",
url:'/search_engine',
},
// {
// text: "智能制图",
// pic: require("@/assets/imgs/home_tool_ic_znht.png"),
// bg: "#e5f4fe",
// color: "#38aef9",
// url: "/vmap/#/map",
// target: 1
// },
// {
// text: "流程设计",
// pic: require("@/assets/imgs/home_tool_ic_lcsj.png"),
// bg: "#e6ebfe",
// color: "#515fe7",
// url: "/apaas/ui/#/progress",
// // url: "/lcyq/ui/#/process/model",
// target: 1
// },
// {
// text: "可视化图表",
// pic: require("@/assets/imgs/home_tool_ic_kshbb.png"),
// bg: "#fff2e2",
// color: "#ea7d19",
// url: "/iam/api/bi/token",
// target: 1
// },
// {
// text: "应用创新",
// pic: require("@/assets/imgs/home_tool_ic_yycx.png"),
// bg: "#e7fdfc",
// color: "#25bdb1",
// url: "/app_build",
// },
// {
// text: "搜索引擎",
// pic: require("@/assets/imgs/home_tool_ic_ssyq.png"),
// bg: "#f1f1f3",
// color: "#58617a",
// url:'/search_engine',
// },
],
service_arr: [
["服务列表", "申请服务", "云资源"],
......@@ -1066,12 +1066,12 @@ export default {
})
},
mounted() {
console.log(this.level);
if (this.userInfo) {
this.now_user = this.level;
this.manage_arr[0].url =
"/authority/organization/detail/" + this.userInfo.department_id;
this.init_func();
this.getNowMenu()
} else {
this.getCurrentUser();
}
......@@ -1080,6 +1080,74 @@ export default {
}
},
methods: {
getNowMenu() {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then(response => {
if (response.data.success == 1) {
let arr =
(response.data.data[0] && response.data.data[0].Child) || [];
if(arr && arr.length > 0){
let workplace_index = arr.findIndex(
item => item.visit_url == "/workplace"
);
let zxzjgz_index = arr[workplace_index].Child.findIndex(
item => item.visit_url == "/zxzjgz"
);
var menuList = arr[workplace_index].Child[zxzjgz_index].Child
var new_online_tool_arr = [];
if(menuList && menuList.length > 0){
for(var i=0;i<menuList.length;i++){
console.log(menuList[i])
if(menuList[i].menu_name == '智能制图'){
new_online_tool_arr.push({
text:menuList[i].menu_name,
pic: require("@/assets/imgs/home_tool_ic_znht.png"),
bg: "#e5f4fe",
color: "#38aef9",
url: menuList[i].visit_url,
target: 1
})
}else if(menuList[i].menu_name == '流程设计'){
new_online_tool_arr.push({
text: menuList[i].menu_name,
pic: require("@/assets/imgs/home_tool_ic_lcsj.png"),
bg: "#e6ebfe",
color: "#515fe7",
url: menuList[i].visit_url,
target: 1
})
}else if(menuList[i].menu_name == '可视化图表'){
new_online_tool_arr.push({
text:menuList[i].menu_name,
pic: require("@/assets/imgs/home_tool_ic_kshbb.png"),
bg: "#fff2e2",
color: "#ea7d19",
url: menuList[i].visit_url,
target: 1
})
}else if(menuList[i].menu_name == '应用创新'){
new_online_tool_arr.push({
text:menuList[i].menu_name,
pic: require("@/assets/imgs/home_tool_ic_yycx.png"),
bg: "#e7fdfc",
color: "#25bdb1",
url:menuList[i].visit_url,
})
}else if(menuList[i].menu_name == '搜索引擎'){
new_online_tool_arr.push({
text: menuList[i].menu_name,
pic: require("@/assets/imgs/home_tool_ic_ssyq.png"),
bg: "#f1f1f3",
color: "#58617a",
url:menuList[i].visit_url,
})
}
}
}
this.online_tool_arr = new_online_tool_arr;
}
}
});
},
//鼠标所在在线工具位置
change_now_online(n,m){
if((n||n==0)&&(m||m==0)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment