侧边导航样式修改

pull/9/head
lukeyan 2 years ago
parent cd54a841be
commit 4a3deecf5d

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

@ -34,17 +34,29 @@ const routes = [
name: 'systemManagement', name: 'systemManagement',
component: () => import('@/views/systemManagement'), component: () => import('@/views/systemManagement'),
children: [ children: [
// 关联设备 // 平安指数
{ {
path: 'correlationEquipment', path: 'safeIndex',
name: 'correlationEquipment', name: 'safeIndex',
component: () => import('@/views/systemManagement/correlationEquipment'), component: () => import('@/views/systemManagement/safeIndex'),
}, },
// 企业名单 // 企业赋分
{ {
path: 'companyScore',
name: 'companyScore',
component: () => import('@/views/systemManagement/companyScore'),
},
// 企业名单
{
path: 'companyList', path: 'companyList',
name: 'companyList', name: 'companyList',
component: () => import('@/views/systemManagement/companyList'), component: () => import('@/views/systemManagement/companyList'),
},
// 关联设备
{
path: 'correlationEquipment',
name: 'correlationEquipment',
component: () => import('@/views/systemManagement/correlationEquipment'),
} }
] ]
} }

@ -18,38 +18,38 @@
class="commerceMessage_form" class="commerceMessage_form"
> >
<el-form-item label="企业名称"> <el-form-item label="企业名称">
<el-input v-model="commerceMessage_form.name"></el-input> <el-input v-model="commerceMessage_form.companyName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="统一社会信用代码"> <el-form-item label="统一社会信用代码">
<el-input v-model="commerceMessage_form.credit"></el-input> <el-input v-model="commerceMessage_form.socialCreditCode"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="企业性质"> <el-form-item label="企业性质">
<el-input v-model="commerceMessage_form.property"></el-input> <el-input v-model="commerceMessage_form.companyNature"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="营业期限"> <el-form-item label="营业期限">
<el-input v-model="commerceMessage_form.time_limit"></el-input> <el-input v-model="commerceMessage_form.businessTermDate"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="发照日期"> <el-form-item label="发照日期">
<el-input v-model="commerceMessage_form.publish_time"></el-input> <el-input v-model="commerceMessage_form.businessLicenseDate"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="成立日期"> <el-form-item label="成立日期">
<el-input <el-input
v-model="commerceMessage_form.establish_time" v-model="commerceMessage_form.establishDate"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="注册资本"> <el-form-item label="注册资本">
<el-input <el-input
v-model="commerceMessage_form.register_capital" v-model="commerceMessage_form.registerCapital"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="登记机关"> <el-form-item label="登记机关">
<el-input <el-input
v-model="commerceMessage_form.registration_authority" v-model="commerceMessage_form.registerAuthority"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="企业经营状态"> <el-form-item label="企业经营状态">
<el-input <el-input
v-model="commerceMessage_form.operating_status" v-model="commerceMessage_form.businessStatus"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -72,26 +72,26 @@
> >
<el-form-item label="企业登记注册地"> <el-form-item label="企业登记注册地">
<el-input <el-input
v-model="commerceMessage_form_two.register_poisition" v-model="commerceMessage_form_two.registerAddress"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="企业类型"> <el-form-item label="企业类型">
<el-checkbox-group v-model="commerceMessage_form_two.company_type"> <el-checkbox-group v-model="commerceMessage_form_two.companyType">
<el-checkbox label="剧毒" name="company_type"></el-checkbox> <el-checkbox label="剧毒" name="companyType"></el-checkbox>
<el-checkbox label="易剧毒" name="company_type"></el-checkbox> <el-checkbox label="易剧毒" name="companyType"></el-checkbox>
<el-checkbox label="易致爆" name="company_type"></el-checkbox> <el-checkbox label="易致爆" name="companyType"></el-checkbox>
<el-checkbox label="放射源" name="company_type"></el-checkbox> <el-checkbox label="放射源" name="companyType"></el-checkbox>
<el-checkbox label="消防重点" name="company_type"></el-checkbox> <el-checkbox label="消防重点" name="companyType"></el-checkbox>
<el-checkbox label="所管消防" name="company_type"></el-checkbox> <el-checkbox label="所管消防" name="companyType"></el-checkbox>
<el-checkbox label="治安重点" name="company_type"></el-checkbox> <el-checkbox label="治安重点" name="companyType"></el-checkbox>
<el-checkbox label="创安单位" name="company_type"></el-checkbox> <el-checkbox label="创安单位" name="companyType"></el-checkbox>
<el-checkbox label="外资合资" name="company_type"></el-checkbox> <el-checkbox label="外资合资" name="companyType"></el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item label="企业主营范围"> <el-form-item label="企业主营范围">
<el-input <el-input
type="textarea" type="textarea"
v-model="commerceMessage_form_two.business_scope" v-model="commerceMessage_form_two.businessStatus"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -106,10 +106,10 @@
class="company_person_message_form" class="company_person_message_form"
> >
<el-form-item label="安全责任人"> <el-form-item label="安全责任人">
<el-input v-model="company_person_message_form.person"></el-input> <el-input v-model="company_person_message_form.emergencyContact"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="责任人电话"> <el-form-item label="责任人电话">
<el-input v-model="company_person_message_form.phone"></el-input> <el-input v-model="company_person_message_form.emergencyContactPhone"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -124,14 +124,14 @@
> >
<el-form-item label="省份名称"> <el-form-item label="省份名称">
<el-select <el-select
v-model="company_position_form.province" v-model="company_position_form.provinceName"
placeholder="请选择省份名称" placeholder="请选择省份名称"
> >
<el-option <el-option
v-for="item in company_position_form.province_name" v-for="item in company_position_form.province"
:key="item.province_code" :key="item.provinceCode"
:label="item.province_name" :label="item.provinceName"
:value="item.province_code" :value="item.provinceCode"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -250,26 +250,26 @@ export default {
visible: false, visible: false,
// //
commerceMessage_form: { commerceMessage_form: {
name: "", companyName: "",
credit: "", socialCreditCode: "",
property: "", companyNature: "",
time_limit: "", businessTermDate: "",
publish_time: "", businessLicenseDate: "",
establish_time: "", establishDate: "",
register_capital: "", registerCapital: "",
registration_authority: "", registerAuthority: "",
operating_status: "", businessStatus: "",
}, },
// //
commerceMessage_form_two: { commerceMessage_form_two: {
register_poisition: "", registerAddress: "",
company_type: [], companyType: [],
business_scope: "", businessStatus: "",
}, },
// //
company_person_message_form: { company_person_message_form: {
person: "", emergencyContact: "",
phone: "", emergencyContactPhone: "",
}, },
// //
company_position_form: { company_position_form: {

@ -4,6 +4,8 @@
<div class="main"> <div class="main">
<!-- 卡片标题 --> <!-- 卡片标题 -->
<el-card class="box-card"> <el-card class="box-card">
<div class="topZS"></div>
<div class="bottomZS"></div>
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>企业名单</span> <span>企业名单</span>
</div> </div>
@ -35,7 +37,7 @@
<div class="company_label"> <div class="company_label">
<div <div
class="company_label_data" class="company_label_data"
v-for="(val,index) in item.companyTypes" v-for="(val, index) in item.companyTypes"
:key="index" :key="index"
> >
{{ val }} {{ val }}
@ -88,16 +90,16 @@ export default {
return { return {
searchCompany: "", searchCompany: "",
company_data: [ company_data: [
// { {
// value: "1", value: "1",
// name: "", name: "宁波镇海兴达化工有限公司",
// unit: "", unit: "宁波镇海兴达化工有限公司工业园",
// }, },
// { value: "2" }, { value: "2" },
// { value: "3" }, { value: "3" },
// { value: "4" }, { value: "4" },
// { value: "5" }, { value: "5" },
// { value: "6" }, { value: "6" },
], ],
pageSize: 6, pageSize: 6,
pageNum: 1, pageNum: 1,
@ -126,7 +128,7 @@ export default {
}; };
getCompanyList(params).then((res) => { getCompanyList(params).then((res) => {
console.log("res.data", res.data); console.log("res.data", res.data);
this.company_data = res.data; // this.company_data = res.data;
}); });
}, },
}, },
@ -136,6 +138,7 @@ export default {
/* card统一样式 */ /* card统一样式 */
.el-card.box-card.is-always-shadow { .el-card.box-card.is-always-shadow {
height: calc(100vh - 116px); /* 控制card布局高度,用于适配 */ height: calc(100vh - 116px); /* 控制card布局高度,用于适配 */
position: relative;
/* card统一样式 */ /* card统一样式 */
/deep/.el-card__header { /deep/.el-card__header {
border-bottom: 1px solid #a1a1a1 !important; border-bottom: 1px solid #a1a1a1 !important;
@ -144,6 +147,7 @@ export default {
font-size: 17px; font-size: 17px;
font-weight: 400; font-weight: 400;
color: #fff; color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
} }
} }
@ -206,6 +210,7 @@ export default {
.top_add_btn { .top_add_btn {
width: 10%; width: 10%;
.el-button { .el-button {
width: 82%;
border: 1px solid #4a6072; border: 1px solid #4a6072;
color: #fff; color: #fff;
border-radius: 0px !important; border-radius: 0px !important;
@ -222,7 +227,7 @@ export default {
/* 公司图片展示区域 */ /* 公司图片展示区域 */
.center { .center {
width: 100%; width: 100%;
height: 640px; height: 775px;
margin-top: 22px; margin-top: 22px;
ul { ul {
display: flex; display: flex;
@ -234,12 +239,14 @@ export default {
position: relative; position: relative;
list-style: none; list-style: none;
width: 30%; width: 30%;
height: 45%; height: 47%;
background: #1b3736; background: #1b3736;
border: 1px solid #fff; border: 1px solid #fff;
img { img {
width: 100%; margin-left: 1%;
height: 100%; margin-top: 1.2%;
width: 98%;
height: 97%;
} }
/* 公司图片相关信息区域 */ /* 公司图片相关信息区域 */
.company_name { .company_name {
@ -286,11 +293,11 @@ export default {
/* 图片鼠标经过按钮 */ /* 图片鼠标经过按钮 */
.btn { .btn {
margin-left: 25%; margin-left: 25%;
margin-top: 28%; margin-top: 30%;
button { button {
height: 35px; height: 40px;
margin-right: 15px; margin-right: 25px;
font-size: 20px; font-size: 24px;
color: #fff; color: #fff;
border: 1px; border: 1px;
border-radius: 0px; border-radius: 0px;
@ -329,7 +336,7 @@ export default {
/* 底部分页展示区域 */ /* 底部分页展示区域 */
.footer { .footer {
.el-pagination { .el-pagination {
margin-left: 75%; margin-left: 82%;
/deep/.el-input__inner { /deep/.el-input__inner {
border-radius: 0px; border-radius: 0px;
background: #3c4b4a; background: #3c4b4a;

@ -1,7 +1,7 @@
<template> <template>
<!-- 系统管理左侧导航菜单 --> <!-- 系统管理左侧导航菜单 -->
<el-menu <el-menu
default-active="this.$route.path" :default-active="activeIndex"
class="el-menu-vertical-demo" class="el-menu-vertical-demo"
@open="handleOpen" @open="handleOpen"
@close="handleClose" @close="handleClose"
@ -16,7 +16,9 @@
:key="item.name" :key="item.name"
:index="item.name" :index="item.name"
> >
<i :class="`el-icon-${item.icon}`"></i> <i>
<img :src="item.src" alt="" />
</i>
<span slot="title">{{ item.label }}</span> <span slot="title">{{ item.label }}</span>
</el-menu-item> </el-menu-item>
</el-menu> </el-menu>
@ -27,41 +29,50 @@ export default {
data() { data() {
return { return {
isCollapse: false, isCollapse: false,
activeIndex: "/",
menu: [ menu: [
// //
{ {
path: "/safeIndex", path: "/safeIndex",
name: "safeIndex", name: "safeIndex",
label: "平安指数", label: "平安指数",
icon: "folder-checked", src: require("@/assets/companyFile/menu01.png"),
}, },
{ {
path: "/companyScore", path: "/companyScore",
name: "companyScore", name: "companyScore",
label: "企业赋分", label: "企业赋分",
icon: "folder-checked", src: require("@/assets/companyFile/menu02.png"),
}, },
{ {
path: "/companyList", path: "/companyList",
name: "companyList", name: "companyList",
label: "企业名单", label: "企业名单",
icon: "folder-checked", src: require("@/assets/companyFile/menu03.png"),
}, },
{ {
path: "/correlationEquipment", path: "/correlationEquipment",
name: "correlationEquipment", name: "correlationEquipment",
label: "关联设备", label: "关联设备",
icon: "folder-checked", src: require("@/assets/companyFile/menu04.png"),
}, },
], ],
}; };
}, },
watch: {
$route() {
this.setCurrentRoute();
},
},
computed: { computed: {
menuList() { menuList() {
// //
return this.menu.filter((item) => !item.children); return this.menu.filter((item) => !item.children);
}, },
}, },
created() {
this.setCurrentRoute();
},
methods: { methods: {
// //
clickMenu(val) { clickMenu(val) {
@ -69,6 +80,9 @@ export default {
name: val.name, name: val.name,
}); });
}, },
setCurrentRoute() {
this.activeIndex = this.$route.path; //
},
handleOpen(key, keyPath) { handleOpen(key, keyPath) {
console.log(key, keyPath); console.log(key, keyPath);
}, },
@ -88,14 +102,29 @@ export default {
} }
.el-menu-vertical-demo.el-menu { .el-menu-vertical-demo.el-menu {
.el-menu-item { .el-menu-item {
width: 240px;
margin-top: 20px;
margin-left: 17px;
color: #fff; color: #fff;
font-size: 18px; font-size: 18px;
background: url("~@/assets/companyFile/921.png") no-repeat;
background-size: 100% 100%;
i {
margin-right: 10px;
width: 20px;
height: 20px;
img {
margin-bottom: 4px;
width: 20px;
height: 20px;
}
}
} }
.el-menu-item:focus, .el-menu-item:focus,
.el-menu-item:hover { .el-menu-item:hover {
/* 导航选项点击触碰效果 */ /* 导航选项点击触碰效果 */
background: #daf4f6; filter: brightness(150%);
color: #5a5e66; text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
} }
</style> </style>

@ -4,6 +4,8 @@
<div class="main"> <div class="main">
<!-- 卡片标题 --> <!-- 卡片标题 -->
<el-card class="box-card"> <el-card class="box-card">
<div class="topZS"></div>
<div class="bottomZS"></div>
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>关联设备</span> <span>关联设备</span>
</div> </div>
@ -119,6 +121,7 @@ export default {
/* card统一样式 */ /* card统一样式 */
.el-card.box-card.is-always-shadow { .el-card.box-card.is-always-shadow {
height: calc(100vh - 116px); /* 控制card布局高度,用于适配 */ height: calc(100vh - 116px); /* 控制card布局高度,用于适配 */
position: relative;
} }
/* card统一样式 */ /* card统一样式 */
/deep/.el-card__header { /deep/.el-card__header {
@ -128,6 +131,7 @@ export default {
font-size: 17px; font-size: 17px;
font-weight: 400; font-weight: 400;
color: #fff; color: #fff;
text-shadow: 0 0 9px rgba(21, 255, 198, 0.64);
} }
} }
} }

Loading…
Cancel
Save