flx:优化
This commit is contained in:
parent
f7cf425848
commit
cb9e2ec63c
@ -60,7 +60,7 @@
|
||||
class="width_100"
|
||||
@click="goto5()"
|
||||
v-if="
|
||||
$route.path.indexOf('/firm/projectManage') == -1 &&
|
||||
$route.path.indexOf('/firm/') == -1 &&
|
||||
![5, 6, 10].includes($store.state.userInfo.accountType)
|
||||
"
|
||||
:title="enterpriseFront"
|
||||
|
||||
@ -4,24 +4,47 @@
|
||||
<div class="title_l flex">
|
||||
<!-- <img v-if="LOGO_white" :src="'./img/logo/'+LOGO_white+'.png'" class="icon" />
|
||||
<span>{{$t('message.companyDiagram.pageTitle')}}</span> -->
|
||||
<img v-if="systemInfo.platformLogo" :src="systemInfo.platformLogo" class="logo" height="25" />
|
||||
<img v-else-if="LOGO_white" :src="'./img/logo/'+LOGO_white+'.png'" class="logo" height="25" />
|
||||
<span v-if="company != 'nanchang'" style="cursor: pointer" @click="back">{{systemInfo.platformName}} </span>
|
||||
<img
|
||||
v-if="systemInfo.platformLogo"
|
||||
:src="systemInfo.platformLogo"
|
||||
class="logo"
|
||||
height="25"
|
||||
/>
|
||||
<img
|
||||
v-else-if="LOGO_white"
|
||||
:src="'./img/logo/' + LOGO_white + '.png'"
|
||||
class="logo"
|
||||
height="25"
|
||||
/>
|
||||
<span v-if="company != 'nanchang'" style="cursor: pointer" @click="back"
|
||||
>{{ systemInfo.platformName }}
|
||||
</span>
|
||||
<span v-if="company != 'nanchang'"> - </span>
|
||||
<span v-if="company != 'nanchang'">{{$t('message.companyDiagram.pageTitle')}}</span>
|
||||
<span v-if="company != 'nanchang'">{{
|
||||
$t("message.companyDiagram.pageTitle")
|
||||
}}</span>
|
||||
<!-- 南昌地铁头部样式 -->
|
||||
<span v-if="company == 'nanchang'" style="cursor: pointer" @click="back">{{$t('message.companyDiagram.pageTitle')}}</span>
|
||||
<span
|
||||
v-if="company == 'nanchang'"
|
||||
style="cursor: pointer"
|
||||
@click="back"
|
||||
>{{ $t("message.companyDiagram.pageTitle") }}</span
|
||||
>
|
||||
</div>
|
||||
<!-- <div class="title_near flex" v-if="![1,2].includes($store.state.userInfo.accountType)">
|
||||
<userChange></userChange>
|
||||
</div> -->
|
||||
<div class="title_near-tow flex" v-if="![11,1,2].includes($store.state.userInfo.accountType) && workSpaceShow">
|
||||
<div
|
||||
class="title_near-tow flex"
|
||||
v-if="
|
||||
![11, 1, 2].includes($store.state.userInfo.accountType) &&
|
||||
workSpaceShow
|
||||
"
|
||||
>
|
||||
<div class="divider-line"></div>
|
||||
<centerChange></centerChange>
|
||||
</div>
|
||||
<div
|
||||
class="title_r flex"
|
||||
>
|
||||
<div class="title_r flex">
|
||||
<account></account>
|
||||
</div>
|
||||
</div>
|
||||
@ -39,19 +62,15 @@
|
||||
:key="index"
|
||||
class="menuInnerBox"
|
||||
>
|
||||
<el-menu-item class="firstLevelMenu"
|
||||
<el-menu-item
|
||||
class="firstLevelMenu"
|
||||
v-if="!hasSubMenu(item.menuList)"
|
||||
:index="item.modulePath"
|
||||
>
|
||||
{{ item.moduleName }}
|
||||
</el-menu-item>
|
||||
<el-submenu
|
||||
:index="item.modulePath"
|
||||
v-else
|
||||
>
|
||||
<template slot="title">{{
|
||||
item.moduleName
|
||||
}}</template>
|
||||
<el-submenu :index="item.modulePath" v-else>
|
||||
<template slot="title">{{ item.moduleName }}</template>
|
||||
<el-menu-item
|
||||
:index="data.path"
|
||||
v-for="(data, i) in item.menuList"
|
||||
@ -67,8 +86,9 @@
|
||||
type="primary"
|
||||
plain
|
||||
@click="backTo()"
|
||||
v-if="$route.path.indexOf('/userCenter/') == -1"
|
||||
size="mini"
|
||||
style="margin-right: 30px;"
|
||||
style="margin-right: 30px"
|
||||
>返回</el-button
|
||||
>
|
||||
</div>
|
||||
@ -83,45 +103,43 @@
|
||||
import account from "@/components/account.vue";
|
||||
import userChange from "@/components/userChange.vue";
|
||||
import centerChange from "@/components/centerChange.vue";
|
||||
import {
|
||||
getNewUserAllModulePageApi,
|
||||
} from "@/assets/js/api/jxjadmin.js";
|
||||
import { getNewUserAllModulePageApi } from "@/assets/js/api/jxjadmin.js";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
LOGO_white: LOGO_white,
|
||||
currentUrl:'',
|
||||
currentUrl: "",
|
||||
menuList: [
|
||||
{ moduleName: '用户中心', modulePath: "/userCenter/userConfig" }
|
||||
{ moduleName: "用户中心", modulePath: "/userCenter/userConfig" },
|
||||
],
|
||||
systemInfo: {
|
||||
"loginBackgroundImage": "",
|
||||
"loginLogo": "",
|
||||
"platformLogo": "",
|
||||
"platformName": "智慧工地云平台"
|
||||
loginBackgroundImage: "",
|
||||
loginLogo: "",
|
||||
platformLogo: "",
|
||||
platformName: "智慧工地云平台",
|
||||
},
|
||||
workSpaceShow: false
|
||||
workSpaceShow: false,
|
||||
};
|
||||
},
|
||||
components: {
|
||||
account,
|
||||
userChange,
|
||||
centerChange
|
||||
centerChange,
|
||||
},
|
||||
created() {
|
||||
this.company = COMPANY;
|
||||
console.log(COMPANY)
|
||||
console.log(COMPANY);
|
||||
if (this.$store.state.projectSn) {
|
||||
this.getModuleList();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// this.getAllModule()
|
||||
if(localStorage.getItem('systemInfo')){
|
||||
this.systemInfo=JSON.parse(localStorage.getItem('systemInfo'))
|
||||
if (localStorage.getItem("systemInfo")) {
|
||||
this.systemInfo = JSON.parse(localStorage.getItem("systemInfo"));
|
||||
}
|
||||
// document.title='企业后台'
|
||||
console.log('mounted',this.$route.path)
|
||||
console.log("mounted", this.$route.path);
|
||||
},
|
||||
methods: {
|
||||
// 查询全部模块(拿到工作流的模块菜单)
|
||||
@ -160,10 +178,10 @@ export default {
|
||||
return onoff;
|
||||
},
|
||||
getAllModule() {
|
||||
var half = this.$store.state.userInfo.menuAuthority.moduleList
|
||||
half.forEach(element => {
|
||||
var half = this.$store.state.userInfo.menuAuthority.moduleList;
|
||||
half.forEach((element) => {
|
||||
if (element.moduleType == 3) {
|
||||
this.menuList.push(element)
|
||||
this.menuList.push(element);
|
||||
}
|
||||
});
|
||||
// getAllModuleApi({moduleType:4}).then(res => {
|
||||
@ -187,8 +205,8 @@ export default {
|
||||
// this.$store.dispatch('currentUrl',url)
|
||||
},
|
||||
back() {
|
||||
this.$router.push("/firm/projectManage")
|
||||
}
|
||||
this.$router.push("/firm/projectManage");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@ -223,7 +241,8 @@ export default {
|
||||
right: 0px;
|
||||
}
|
||||
}
|
||||
.el-menu--horizontal .firstLevelMenu.is-active,/deep/.is-active .el-submenu__title {
|
||||
.el-menu--horizontal .firstLevelMenu.is-active,
|
||||
/deep/.is-active .el-submenu__title {
|
||||
border-bottom: 3px solid #409eff;
|
||||
}
|
||||
.menuInnerBox {
|
||||
@ -273,7 +292,7 @@ export default {
|
||||
height: 61px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.title_l {
|
||||
font-family: PingFangSC-Semibold;
|
||||
@ -292,7 +311,7 @@ export default {
|
||||
.divider-line {
|
||||
width: 1px;
|
||||
height: 16px;
|
||||
background: #FFFFFF;
|
||||
background: #ffffff;
|
||||
margin-right: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -175,7 +175,7 @@ export default {
|
||||
},
|
||||
exportFn() {
|
||||
let requestData = {
|
||||
sn: this.$store.state.projectSn,
|
||||
sn: this.$store.state.projectSn || this.$store.state.userInfo.sn,
|
||||
// sn: this.$store.state.userInfo.sn || this.$store.state.userInfo.headquartersSn,
|
||||
pageNo: this.pageInfo.pageNo,
|
||||
pageSize: this.pageInfo.pageSize,
|
||||
@ -230,7 +230,7 @@ export default {
|
||||
//查询列表
|
||||
getList() {
|
||||
let requestData = {
|
||||
sn: this.$store.state.projectSn,
|
||||
sn: this.$store.state.projectSn || this.$store.state.userInfo.sn || this.$store.state.userInfo.headquartersSn,
|
||||
// sn: this.$store.state.userInfo.sn || this.$store.state.userInfo.headquartersSn,
|
||||
pageNo: this.pageInfo.pageNo,
|
||||
pageSize: this.pageInfo.pageSize,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user