Commit c17fe362 by zhaopanyu

zpy

parent ee5d1eef
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 胜利智联油气智能化品牌
# 开发环境配置
ENV = 'development'
# 若依管理系统/开发环境
# 胜利智联油气智能化品牌/开发环境
VUE_APP_BASE_API = '/dev-api'
# 路由懒加载
......
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 胜利智联油气智能化品牌
# 生产环境配置
ENV = 'production'
# 若依管理系统/生产环境
# 胜利智联油气智能化品牌/生产环境
VUE_APP_BASE_API = '/prod-api'
# 页面标题
VUE_APP_TITLE = 若依管理系统
VUE_APP_TITLE = 胜利智联油气智能化品牌
NODE_ENV = production
# 测试环境配置
ENV = 'staging'
# 若依管理系统/测试环境
# 胜利智联油气智能化品牌/测试环境
VUE_APP_BASE_API = '/stage-api'
{
"name": "ruoyi",
"version": "3.8.8",
"description": "若依管理系统",
"description": "胜利智联油气智能化品牌",
"author": "若依",
"license": "MIT",
"scripts": {
......
......@@ -5,30 +5,20 @@
<blockquote class="text-warning" style="font-size: 14px">
领取阿里云通用云产品1888优惠券
<br />
<el-link
href="https://www.aliyun.com/minisite/goods?userCode=brki8iof"
type="primary"
target="_blank"
>https://www.aliyun.com/minisite/goods?userCode=brki8iof</el-link
>
<el-link href="https://www.aliyun.com/minisite/goods?userCode=brki8iof" type="primary"
target="_blank">https://www.aliyun.com/minisite/goods?userCode=brki8iof</el-link>
<br />
领取腾讯云通用云产品2860优惠券
<br />
<el-link
href="https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console"
type="primary"
target="_blank"
>https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console</el-link
>
target="_blank">https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console</el-link>
<br />
阿里云服务器折扣区
<el-link href="http://aly.ruoyi.vip" type="primary" target="_blank"
>>☛☛点我进入☚☚</el-link
>
<el-link href="http://aly.ruoyi.vip" type="primary" target="_blank">>☛☛点我进入☚☚</el-link>
&nbsp;&nbsp;&nbsp; 腾讯云服务器秒杀区
<el-link href="http://txy.ruoyi.vip" type="primary" target="_blank"
>>☛☛点我进入☚☚</el-link
><br />
<el-link href="http://txy.ruoyi.vip" type="primary" target="_blank">>☛☛点我进入☚☚</el-link><br />
<h4 class="text-danger">
云产品通用红包,可叠加官网常规优惠使用。(仅限新用户)
</h4>
......@@ -41,7 +31,7 @@
<el-col :sm="24" :lg="12" style="padding-left: 20px">
<h2>若依后台管理框架</h2>
<p>
一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。
一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了胜利智联油气智能化品牌,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。
</p>
<p>
<b>当前版本:</b> <span>v{{ version }}</span>
......@@ -50,21 +40,9 @@
<el-tag type="danger">&yen;免费开源</el-tag>
</p>
<p>
<el-button
type="primary"
size="mini"
icon="el-icon-cloudy"
plain
@click="goTarget('https://gitee.com/y_project/RuoYi-Vue')"
>访问码云</el-button
>
<el-button
size="mini"
icon="el-icon-s-home"
plain
@click="goTarget('http://ruoyi.vip')"
>访问主页</el-button
>
<el-button type="primary" size="mini" icon="el-icon-cloudy" plain
@click="goTarget('https://gitee.com/y_project/RuoYi-Vue')">访问码云</el-button>
<el-button size="mini" icon="el-icon-s-home" plain @click="goTarget('http://ruoyi.vip')">访问主页</el-button>
</p>
</el-col>
......@@ -111,11 +89,8 @@
</div>
<div class="body">
<p>
<i class="el-icon-s-promotion"></i> 官网:<el-link
href="http://www.ruoyi.vip"
target="_blank"
>http://www.ruoyi.vip</el-link
>
<i class="el-icon-s-promotion"></i> 官网:<el-link href="http://www.ruoyi.vip"
target="_blank">http://www.ruoyi.vip</el-link>
</p>
<p>
<i class="el-icon-user-solid"></i> QQ群:<s> 满937441 </s> <s> 满887144332 </s>
......@@ -123,20 +98,15 @@
<s> 满101456076 </s> <s> 满101539465 </s> <s> 满264312783 </s> <s> 满167385320 </s>
<s> 满104748341 </s> <s> 满160110482 </s> <s> 满170801498 </s> <s> 满108482800 </s>
<s> 满101046199 </s> <s> 满136919097 </s> <s> 满143961921 </s> <s> 满174951577 </s>
<s> 满161281055 </s> <s> 满138988063 </s> <a href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=SUc-msaypcqB2UTFif4eqGlBHkKcvMNP&authKey=JdQBouY2PG%2BS%2BCzAfIgbCGNgxyahpfh24IW%2F03rPxGilhqVbisLma%2FFFnt79DHNh&noverify=0&group_code=151450850" target="_blank">151450850</a>
<s> 满161281055 </s> <s> 满138988063 </s> <a
href="http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=SUc-msaypcqB2UTFif4eqGlBHkKcvMNP&authKey=JdQBouY2PG%2BS%2BCzAfIgbCGNgxyahpfh24IW%2F03rPxGilhqVbisLma%2FFFnt79DHNh&noverify=0&group_code=151450850"
target="_blank">151450850</a>
</p>
<p>
<i class="el-icon-chat-dot-round"></i> 微信:<a
href="javascript:;"
>/ *若依</a
>
<i class="el-icon-chat-dot-round"></i> 微信:<a href="javascript:;">/ *若依</a>
</p>
<p>
<i class="el-icon-money"></i> 支付宝:<a
href="javascript:;"
class="支付宝信息"
>/ *若依</a
>
<i class="el-icon-money"></i> 支付宝:<a href="javascript:;" class="支付宝信息">/ *若依</a>
</p>
</div>
</el-card>
......@@ -999,14 +969,8 @@
<span>捐赠支持</span>
</div>
<div class="body">
<img
src="@/assets/images/pay.png"
alt="donate"
width="100%"
/>
<span style="display: inline-block; height: 30px; line-height: 30px"
>你可以请作者喝杯咖啡表示鼓励</span
>
<img src="@/assets/images/pay.png" alt="donate" width="100%" />
<span style="display: inline-block; height: 30px; line-height: 30px">你可以请作者喝杯咖啡表示鼓励</span>
</div>
</el-card>
</el-col>
......@@ -1039,12 +1003,14 @@ export default {
font-size: 17.5px;
border-left: 5px solid #eee;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eee;
}
.col-item {
margin-bottom: 20px;
}
......@@ -1054,7 +1020,11 @@ export default {
margin: 0;
}
font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: "open sans",
"Helvetica Neue",
Helvetica,
Arial,
sans-serif;
font-size: 13px;
color: #676a6c;
overflow-x: hidden;
......@@ -1094,4 +1064,3 @@ export default {
}
}
</style>
<template>
<div class="container">
<div style="width: 400px">
<el-menu
default-active="2"
class="el-menu-vertical-demo"
@open="handleOpen"
@close="handleClose"
background-color="#545c64"
text-color="#fff"
active-text-color="#ffd04b">
<div style="width: 400px">
<el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose"
background-color="#545c64" text-color="#fff" active-text-color="#ffd04b">
<div v-for="outerItem in collapseDataOuter">
<div v-if="outerItem.cplx === '产品'" >
<div v-if="outerItem.cplx === '产品'">
<el-submenu :index="outerItem.mc">
<template slot="title">{{outerItem.mc}}</template>
<template slot="title">{{ outerItem.mc }}</template>
<div v-for="outerItem2 in outerItem.cpChildren">
<el-submenu :index="outerItem2.id">
<template slot="title">{{outerItem2.mc}}</template>
<template slot="title">{{ outerItem2.mc }}</template>
<div v-for="outerItem3 in outerItem2.children2">
<el-menu-item :index="outerItem3.mc">{{outerItem3.mc}}</el-menu-item>
<el-menu-item :index="outerItem3.mc">{{ outerItem3.mc }}</el-menu-item>
</div>
</el-submenu>
</div>
</el-submenu>
</div>
<div v-if="outerItem.cplx === '服务类'" >
<div v-if="outerItem.cplx === '服务类'">
<el-submenu :index="outerItem.mc">
<template slot="title">{{outerItem.mc}}</template>
<template slot="title">{{ outerItem.mc }}</template>
<div v-for="outerItem2 in outerItem.fwlChildren">
<el-menu-item :index="outerItem2.mc">{{outerItem2.mc}}</el-menu-item>
<el-menu-item :index="outerItem2.mc">{{ outerItem2.mc }}</el-menu-item>
</div>
</el-submenu>
......@@ -39,7 +33,7 @@
</el-menu>
</div>
</div>
</div>
</template>
<script>
......
<template>
<div class="container">
<el-row style="margin: 150px auto 100px ;">
<img src="../../assets/images/background.png" alt="" style="
height: 111px;
width: 877px;
/* background-size: cover;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
object-fit: cover; */
" />
</el-row>
<el-row class="content" style="background-color: #f5f8fe;">
<el-col :span="7"
style="padding: 20px; border-radius: 10px; min-height: 712px; overflow-x: auto; background-color: #f5f8fe;">
<el-menu v-if="activeNameOuter === '产品'" :default-active="activeNameInner" class="product-menu"
:background-color="'transparent'" :text-color="'#333'" :active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds">
<!-- 外层菜单 -->
<el-submenu v-for="outerItem in collapseDataOuter" :key="outerItem.px" :index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)">
<template #title>
<img src="../../assets/images/tag.png" alt="">
<span
style="font-family: 'PingFang SC'; font-weight: 800; font-size: 23px; color: #222222; line-height: 40px;">
{{ outerItem.mc }}
</span>
</template>
<!-- 第二级菜单 -->
<el-submenu v-for="innerItem in outerItem.cpChildren" :key="innerItem.id" :index="innerItem.px"
:class="{ 'inner-submenu-active': isInnerActive(innerItem.name) }"
@click.native="setActiveInner(innerItem.name)">
<template #title>
<span
style="font-family: 'PingFang SC'; font-weight: 800; font-size: 17px; color: #222222; line-height: 26px;">
{{ innerItem.mc }}
</span>
</template>
<!-- 第三级菜单 -->
<el-menu-item v-for="content in innerItem.children2" :key="content.id"
:index="innerItem.name + '-' + content.mc"
@click.native="handleInnerClick(innerItem.name, content.mc, content.id, content.remark)"
:class="{ 'menu-item-active': activeNameInner === innerItem.name + '-' + content.mc }">
<img v-if="content.zx === '1'" src="../../assets/images/new.png" alt="new"
style="width: 28px; height: 28px; margin-left: -30px; vertical-align: middle;" />
<span
:style="{ width: '6px', height: '6px', background: '#165BFF', borderRadius: '50%', display: 'inline-block', marginRight: '10px' }"></span>
<span :style="{
fontFamily: 'PingFang SC',
fontWeight: '500',
fontSize: '15px',
color: activeNameInner === innerItem.name + '-' + content.mc ? '#165BFF' : '#222222',
textDecoration: activeNameInner === innerItem.name + '-' + content.mc ? 'underline' : 'none',
textDecorationColor: activeNameInner === innerItem.name + '-' + content.mc ? '#165BFF' : 'transparent',
textUnderlineOffset: activeNameInner === innerItem.name + '-' + content.mc ? '8px' : '0'
}">
{{ content.mc }}<span v-if="content.remark"> ({{ content.remark }})</span>
</span>
</el-menu-item>
<div>
<el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose"
background-color="#545c64" text-color="#fff" active-text-color="#ffd04b">
<el-menu-item-group>
<el-submenu index="产品">
<template slot="title">产品</template>
<el-submenu index="产品1">
<template slot="title">产品1</template>
<el-menu-item index="产品1选项1">选项1</el-menu-item>
<el-menu-item index="产品1选项2">选项2</el-menu-item>
</el-submenu>
<el-menu-item index="产品2">产品2</el-menu-item>
</el-submenu>
</el-menu>
<el-menu v-if="activeNameOuter === '服务类'" :default-active="activeNameInner" class="product-menu"
:background-color="'transparent'" :text-color="'#333'" :active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds">
<!-- 外层菜单 -->
<el-submenu v-for="outerItem in collapseDataOuter" :key="outerItem.px" :index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)">
<template #title>
<img src="../../assets/images/tag.png" alt="">
<span
style="font-family: 'PingFang SC'; font-weight: 800; font-size: 23px; color: #222222; line-height: 40px;">
{{ outerItem.mc }}
</span>
</template>
<!-- 服务类的第二级菜单 -->
<el-menu-item v-for="service in outerItem.fwlChildren" :key="service.id" :index="service.mc"
@click.native="handleServiceClick(outerItem.mc, service.mc, service.id, service.remark)"
:class="{ 'menu-item-active': activeNameInner === outerItem.mc + '-' + service.mc, 'service-menu-item-active': activeNameInner === outerItem.mc + '-' + service.mc }">
<img v-if="service.zx === '1'" src="../../assets/images/new.png" alt="new"
style="width: 28px; height: 28px; margin-left: -30px; vertical-align: middle;" />
<span
:style="{ width: '6px', height: '6px', background: '#165BFF', borderRadius: '50%', display: 'inline-block', marginRight: '10px' }"></span>
<span :style="{
fontFamily: 'PingFang SC',
fontWeight: '500',
fontSize: '15px',
color: activeNameInner === outerItem.mc + '-' + service.mc ? '#165BFF' : '#222222',
textDecoration: activeNameInner === outerItem.mc + '-' + service.mc ? 'underline' : 'none',
textDecorationColor: activeNameInner === outerItem.mc + '-' + service.mc ? '#165BFF' : 'transparent',
textUnderlineOffset: activeNameInner === outerItem.mc + '-' + service.mc ? '8px' : '0'
}">
{{ service.mc }}<span v-if="service.remark"> ({{ service.remark }})</span>
</span>
</el-menu-item>
<el-submenu index="服务类">
<template slot="title">服务类</template>
<el-menu-item index="服务类1">选项1</el-menu-item>
<el-menu-item index="服务类2">选项2</el-menu-item>
<el-menu-item index="服务类3">选项3</el-menu-item>
</el-submenu>
</el-menu-item-group>
</el-menu>
</el-col>
<!-- 显示选项卡的内容 -->
<el-col v-if="activeNameOuter === '产品'" :span="17"
style="border-radius: 10px; min-height: 730px; background-color: #f5f8fe;">
<div class="tabs">
<el-tabs v-model="activeName" @tab-click="handleClick" type="card" class="custom-tabs">
<el-tab-pane label="产品简介" name="first" :class="{ 'custom-active1': activeName === 'first' }">
<el-card style="width: 100%; height: 712px; overflow-y: auto;">
<div v-html="`<style>
.table-container table { border: 1px solid #888; border-collapse: collapse; }
.table-container table tbody tr td { border: 1px solid #999; padding: 8px; text-align: left; }
</style>${cpjj}`"></div>
</el-card>
</el-tab-pane>
<el-tab-pane label="功能特点" name="second" :class="{ 'custom-active2': activeName === 'second' }">
<el-card style="width: 100%; height: 712px; overflow-y: auto;">
<div v-html="`<style>
.table-container table { border: 1px solid #888; border-collapse: collapse; }
.table-container table tbody tr td { border: 1px solid #999; padding: 8px; text-align: left; }
</style>${gntd}`"></div>
</el-card>
</el-tab-pane>
<el-tab-pane label="应用成效" name="third" :class="{ 'custom-active3': activeName === 'third' }">
<el-card style="width: 100%; height: 712px; overflow-y: auto;">
<div v-html="`<style>
.table-container table { border: 1px solid #888; border-collapse: collapse; }
.table-container table tbody tr td { border: 1px solid #999; padding: 8px; text-align: left; }
</style>${yycx}`"></div>
</el-card>
</el-tab-pane>
<el-tab-pane label="用法介绍" name="fourth" :class="{ 'custom-active4': activeName === 'fourth' }">
<el-card style="width: 100%; height: 712px; overflow-y: auto;">
<div v-html="`<style>
.table-container table { border: 1px solid #888; border-collapse: collapse; }
.table-container table tbody tr td { border: 1px solid #999; padding: 8px; text-align: left; }
</style>${yfjs}`"></div>
</el-card>
</el-tab-pane>
</el-tabs>
<!-- <div class="remark">
<div>{{ this.remark }}</div>
</div> -->
</div>
</el-col>
<!-- 外层折叠项 2 选中的内容 -->
<el-col v-else-if="activeNameOuter === '服务类'" :span="17"
style="border-radius: 10px; min-height: 700px; background-color: #f5f8fe;">
<div class="tabs">
<el-tabs v-model="activeName" @tab-click="handleClick" type="card" class="custom-tabs">
<el-tab-pane label="团队介绍" name="first">
<el-card style="width: 100%; height: 712px; overflow-y: auto;">
<div v-html="`<style>
.table-container table { border: 1px solid #888; border-collapse: collapse; }
.table-container table tbody tr td { border: 1px solid #999; padding: 8px; text-align: left; }
</style>${tdjs}`"></div>
</el-card>
</el-tab-pane>
<el-tab-pane label="服务特色" name="second">
<el-card style="width: 100%; height: 712px; overflow-y: auto;">
<div v-html="`<style>
.table-container table { border: 1px solid #888; border-collapse: collapse; }
.table-container table tbody tr td { border: 1px solid #999; padding: 8px; text-align: left; }
</style>${fwts}`"></div>
</el-card>
</el-tab-pane>
<el-tab-pane label="服务案例" name="third">
<el-card style="width: 100%; height: 712px; overflow-y: auto;">
<div v-html="`<style>
.table-container table { border: 1px solid #888; border-collapse: collapse; }
.table-container table tbody tr td { border: 1px solid #999; padding: 8px; text-align: left; }
</style>${fwal}`"></div>
</el-card>
</el-tab-pane>
</el-tabs>
<!-- <div class="remark">
<div>{{ this.remark }}</div>
</div> -->
</div>
</el-col>
</el-row>
</div>
</template>
<script>
import { getListcx, getListdt, } from "@/api/sy.js";
<script>
export default {
name: "gasDigitization",
// components: { footerNav },
data() {
return {
remark: '', // 新增的remark属性
defaultOpeneds: [],// 根据需要初始化 defaultOpeneds
selectedId: null, // 用于存储选中项的ID
cpjj: '',
gntd: '',
yycx: '',
yfjs: '',
tdjs: '',
fwts: '',
fwal: '',
activeNameOuter: "", // 默认选中的第一级选项
activeNameInner: "", // 默认选中的第二级选项
collapseDataOuter: [],
activeName: "first",
name: null,
ipdz: null,
yl1: null,
showDialog: false, // 控制对话框显示的变量
form: {
},
};
},
watch: {
// activeNameOuter(newValue) {
// console.log(newValue, 'newValue');
// if (newValue === '服务类') {
// const selectedItem = this.collapseDataOuter.find(item => item.mc === '智能化服务类');
// if (selectedItem && selectedItem.fwlChildren.length > 0) {
// const firstService = selectedItem.fwlChildren[0];
// this.activeNameInner = `智能化服务类-${firstService.mc}`;
// console.log(this.activeNameInner, ' this.activeNameInner');
// this.activeServiceId = firstService.id; // 设置 activeServiceId 为第一项的 ID
// console.log(this.activeServiceId, 'Selected Service ID');
// this.getListdt(this.activeServiceId);
// }
// } else if (newValue === '产品') {
// const selectedItem = this.collapseDataOuter.find(item => item.mc === '软硬件产品');
// if (selectedItem && selectedItem.cpChildren && selectedItem.cpChildren.length > 0) {
// const firstProduct = selectedItem.cpChildren[0]; // 从 cpChildren 中获取第一个产品
// if (firstProduct.children2 && firstProduct.children2.length > 0) {
// const firstProductChild = firstProduct.children2[0]; // 从 children2 中获取第一个子产品
// this.activeNameInner = `软硬件产品-${firstProductChild.mc}`;
// console.log(this.activeNameInner, 'this.activeNameInner');
// this.activeServiceId = firstProductChild.id; // 设置 activeServiceId 为第一项的 ID
// console.log(this.activeServiceId, 'Selected Product ID');
// this.getListdt(this.activeServiceId);
// }
// }
// }
// }
},
mounted() {
this.getList();
},
methods: {
// 获取列表数据
getList() {
getListcx().then(res => {
console.log('res', res);
this.collapseDataOuter = res.data; // 保存外层菜单数据
// 如果有数据,设置默认的外层和内层菜单
if (this.collapseDataOuter.length > 0) {
const firstOuterItem = this.collapseDataOuter[0];
this.activeNameOuter = firstOuterItem.cplx; // 设置默认外层菜单
// 如果外层菜单有子菜单,设置第一个内层菜单和内容
if (firstOuterItem.cpChildren && firstOuterItem.cpChildren.length > 0) {
const firstInnerItem = firstOuterItem.cpChildren[0];
const firstContent = firstInnerItem.children2[0];
if (firstContent) {
this.setActiveInner(firstInnerItem.name, firstContent.mc, firstContent.id); // 设置默认内层菜单内容
}
this.defaultOpeneds = [firstOuterItem.px, firstInnerItem.px]; // 设置展开的菜单
}
}
});
},
// 设置当前选中的外层菜单
setActiveOuter(cplx) {
this.activeNameOuter = cplx; // 更新外层菜单
console.log('Outer menu set to:', this.activeNameOuter);
// 根据选中的外层菜单类型设置默认的内层菜单
const firstInnerItem = this.collapseDataOuter.find(item => item.cplx === cplx);
console.log(firstInnerItem, 'firstInnerItem');
debugger;
if (firstInnerItem) {
console.log(firstInnerItem, 'firstInnerItem');
// 如果是产品,选择第三级菜单的第一项
if (cplx === '产品' && firstInnerItem.cpChildren.length > 0) {
const firstInner = firstInnerItem.cpChildren[0];
this.activeNameInner = `${firstInner.name}-${firstInner.children2[0]?.mc || ''}`; // 设置第三级菜单的第一项
this.setActiveInner(firstInner.name, firstInner.children2[0]?.mc, firstInner.children2[0]?.id); // 设置内容
}
// 如果是服务类,选择第二级菜单的第一项
else if (cplx === '服务类' && firstInnerItem.fwlChildren.length > 0) {
const firstService = firstInnerItem.fwlChildren[0];
this.activeNameInner = `${firstInnerItem.mc}-${firstService.mc}`; // 设置第二级菜单的第一项
this.handleServiceClick(firstInnerItem.mc, firstService.mc, firstService.id); // 设置内容
}
}
},
// 处理内层菜单点击
handleInnerClick(innerName, contentName, contentId) {
this.activeNameInner = `${innerName}-${contentName}`; // 更新内层菜单
// 获取内容相关的数据
this.getListdt(contentId);
},
// 处理服务类菜单点击
handleServiceClick(outerName, serviceName, serviceId) {
this.activeNameInner = `${outerName}-${serviceName}`; // 更新内层菜单
// 获取服务相关的数据
this.getListdt(serviceId);
},
// 设置当前选中的内层菜单
setActiveInner(innerName, content = '', id = null) {
if (content) {
this.activeNameInner = `${innerName}-${content}`; // 更新内层菜单
console.log(this.activeNameInner, 'this.activeNameInner');
this.selectedId = id; // 更新选中项的ID
console.log('activeNameInner updated to:', this.activeNameInner);
this.getListdt(this.selectedId); // 获取内容数据
}
},
// 获取详细内容数据
getListdt(id) {
getListdt(id).then(res => {
console.log('12222:', res.data.remark);
// 更新相关数据
this.cpjj = res.data.cpjj;
this.gntd = res.data.gntd;
this.yycx = res.data.yycx;
this.yfjs = res.data.yfjs;
this.tdjs = res.data.tdjs;
this.fwts = res.data.fwts;
this.fwal = res.data.fwal;
this.remark = res.data.remark;
}).catch(error => {
console.error('Error fetching data:', error); // 错误处理
});
},
// 判断内层菜单是否处于活动状态
isInnerActive(innerName) {
return this.activeNameInner.startsWith(innerName); // 判断是否为活动状态
},
// 处理菜单变化
handleChange(val) {
console.log(val);
},
// 处理点击事件
handleClick(tab, event) {
this.activeName = tab.name; // 更新活动名称
console.log(this.activeName, ' this.activeName');
},
},
};
</script>
<style scoped lang="scss">
::v-deep.tabs {
display: flex;
align-items: flex-start;
}
::v-deep.custom-tabs {
flex-grow: 1;
// padding-right: 10px
}
::v-deep.remark {
position: absolute;
top: 20px;
/* 向上移动 */
right: 30px;
/* 向左移动 */
white-space: nowrap;
font-size: 18px;
// font-weight: bold;
font-family: PingFang SC;
// font-weight: 800;
// color: #222222;
line-height: 40px
}
::v-deep.menu-item-active {
background-color: #ffffff;
/* 选中项背景白色 */
}
::v-deep.related-menu-item-active {
background-color: #ffffff;
/* 兄弟项背景白色 */
}
::v-deep .service-menu-item-active {
background-color: #ffffff !important; // 服务类选中项背景色为白色
}
::v-deep img {
max-width: 90% !important;
height: auto !important;
}
::v-deep video {
max-width: 90% !important;
height: auto !important;
}
::v-deep .rounded-corner-start {
border-radius: 10px 0 0 0 !important;
}
::v-deep.rounded-corner-end {
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
/* 其他可能需要的样式 */
}
::v-deep.el-submenu .el-menu-item {
height: 39px;
line-height: 50px;
padding: 0 45px;
min-width: 200px;
}
::v-deep.el-submenu .el-submenu__title {
border-bottom-color: #1890ff;
height: 46px;
}
::v-deep.custom-tabs .el-tabs__nav .el-tabs__item {
padding: 0 20px;
height: 43px;
box-sizing: border-box;
line-height: 40px;
display: inline-block;
list-style: none;
font-size: 15px;
font-weight: 500;
color: #303133;
position: relative;
width: 120px;
text-align: center;
}
// ::v-deep.el-tabs .el-tabs__header.el-tabs__nav .el-tabs__item {
// color: #ff0000;
// /* 设置字体颜色 */
// }
::v-deep.el-tabs--card>.el-tabs__header .el-tabs__nav {
border: 1px none;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(1):hover {
background-color: #165bff;
color: white;
border-radius: 10px 0 0 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(2):hover {
background-color: #165bff;
color: white;
border-radius: 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(3):hover {
background-color: #165bff;
color: white;
border-radius: 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(4):hover {
background-color: #165bff;
color: white;
border-radius: 0 10px 0 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(1).is-active {
background-color: #165bff;
color: white;
border-radius: 10px 0 0 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(2).is-active {
background-color: #165bff;
color: white;
border-radius: 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(3).is-active {
background-color: #165bff;
color: white;
border-radius: 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(4).is-active {
background-color: #165bff;
color: white;
border-radius: 0 10px 0 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(1) {
background-color: #d8e1eb;
color: black;
border-radius: 10px 0 0 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(2) {
background-color: #d8e1eb;
color: black;
;
border-radius: 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(3) {
background-color: #d8e1eb;
color: black;
border-radius: 0;
}
::v-deep .el-tabs__nav .el-tabs__item:nth-child(4) {
background-color: #d8e1eb;
color: black;
border-radius: 0 10px 0 0;
}
::v-deep.el-tabs .el-tabs__header {
padding: 0;
position: relative;
margin: 0 0 0px !important;
}
::v-deep.product-menu {
// 内层菜单展开时的背景色
.inner-submenu-active {
background-color: #ffffff; // 内层菜单背景色为白色
// 设置箭头图标颜色为蓝色
.el-submenu__icon-arrow {
color: #165BFF; // 改变箭头颜色
}
}
// 默认状态的箭头颜色
.el-submenu {
.el-submenu__icon-arrow {
color: #000; // 默认箭头颜色
}
}
}
::v-deep.product-menu .menu-item-active {
color: #165BFF !important;
/* 选中菜单项的字体颜色 */
}
::v-deep.product-menu .el-menu-item {
background-color: #ffffff;
/* 第三级菜单的背景色 */
}
// .text-align {
// display: flex;
// justify-content: flex-end;
// margin: 0px 10px;
// }
// .text {
// margin-left: auto;
// margin: 3px 15px;
// }
// .row {
// display: flex;
// flex-direction: row;
// align-items: inherit;
// justify-content: center;
// margin: 20px 0 20px -30px;
// }
// .box {
// position: relative;
// top: -20px;
// left: 0;
// margin-bottom: -20px;
// width: 100%;
// min-height: 102vh;
// background-image: url(../../assets/images/background1.png) !important;
// background-size: cover;
// background-repeat: no-repeat;
// background-position: left top;
// background-color: #f55202;
// }
.container {
overflow-y: auto;
height: 1080px;
background-image: url(../../assets/images/background1.png) !important;
// background-size: cover;
background-size: 100% 60%;
background-repeat: no-repeat;
}
h1 {
text-align: center;
color: #333;
}
.content {
margin: 20px auto;
max-width: 70%;
min-height: calc(100vh - 420px);
padding: 20px;
background: #F5F8FE;
border-radius: 10px 10px 0px 0px;
/* 设置背景色 */
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.bt {
text-indent: 3.6em;
margin: 20px auto;
/* max-width: 70%; */
width: 1200px;
padding: 20px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow-y: auto;
}
h2 {
font-size: 24px;
color: #333;
margin-bottom: 15px;
font-family: "方正小标宋", "Fangzheng Xiaobiao Song", serif;
}
p {
font-size: 16px;
color: #555;
line-height: 1.6;
font-family: "FangSong_GB2312";
}
.title {
font-family: Microsoft YaHei;
font-weight: bold;
font-size: 14px;
color: #c80000;
line-height: 30px;
}
.flex {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.bttext {
font-family: PingFang SC;
font-weight: bold;
font-size: 14px;
color: #222222;
line-height: 26px;
margin-left: 10px;
text-decoration: none;
}
.bttext:hover {
color: #165bff;
text-decoration: underline;
}
</script>
.custom-title {
font-family: PingFang SC;
font-weight: 800;
font-size: 16px;
color: #165bff;
line-height: 26px;
}
</style>
<style lang="scss" scoped></style>
\ No newline at end of file
......@@ -13,79 +13,75 @@
" />
</el-row>
<el-row class="content" style="background-color: #f5f8fe;">
<el-col :span="7"
style="padding: 20px; border-radius: 10px; min-height: 712px; overflow-x: auto; background-color: #f5f8fe;">
<el-menu v-if="activeNameOuter === '产品'" :default-active="activeNameInner" class="product-menu"
:background-color="'transparent'" :text-color="'#333'" :active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds">
<!-- 外层菜单 -->
<el-submenu v-for="outerItem in collapseDataOuter" :key="outerItem.px" :index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)">
<template #title>
<el-col :span="7" style="padding: 20px; border-radius: 10px; height: 712px; overflow-y: auto; ">
<el-menu :default-active="activeNameInner" class="el-menu-vertical-demo" :background-color="'transparent'"
text-color="#333" active-text-color="#409EFF">
<div v-for="outerItem in collapseDataOuter" :key="outerItem.px">
<div v-if="outerItem.cplx === '产品'">
<el-submenu :index="outerItem.mc">
<template slot="title">
<img src="../../assets/images/tag.png" alt="">
<span
style="font-family: 'PingFang SC'; font-weight: 800; font-size: 23px; color: #222222; line-height: 40px;">
{{ outerItem.mc }}
</span>
</template>
<!-- 第二级菜单 -->
<el-submenu v-for="innerItem in outerItem.cpChildren" :key="innerItem.id" :index="innerItem.px"
:class="{ 'inner-submenu-active': isInnerActive(innerItem.name) }"
@click.native="setActiveInner(innerItem.name)">
<template #title>
<div v-for="outerItem2 in outerItem.cpChildren" :key="outerItem2.mc">
<el-submenu :index="outerItem2.mc">
<template slot="title">
<span
style="font-family: 'PingFang SC'; font-weight: 800; font-size: 17px; color: #222222; line-height: 26px;">
{{ innerItem.mc }}
{{ outerItem2.mc }}
</span>
</template>
<!-- 第三级菜单 -->
<el-menu-item v-for="content in innerItem.children2" :key="content.id"
:index="innerItem.name + '-' + content.mc"
@click.native="handleInnerClick(innerItem.name, content.mc, content.id, content.remark)"
:class="{ 'menu-item-active': activeNameInner === innerItem.name + '-' + content.mc }">
<img v-if="content.zx === '1'" src="../../assets/images/new.png" alt="new"
<div v-for="outerItem3 in outerItem2.children2" :key="outerItem3.mc">
<el-menu-item :index="outerItem3.name + '-' + outerItem3.mc"
@click.native="handleInnerClick(outerItem2.name, outerItem3.mc, outerItem3.id, outerItem3.remark, outerItem.cplx)"
:class="{ 'menu-item-active': activeNameInner === outerItem3.name + '-' + outerItem3.mc }">
<img v-if="outerItem3.zx === '1'" src="../../assets/images/new.png" alt="new"
style="width: 20px; height: 20px; margin-left: -20px; vertical-align: middle;" />
<span
:style="{ width: '6px', height: '6px', background: '#165BFF', borderRadius: '50%', display: 'inline-block', marginRight: '10px' }"></span>
:style="{ width: '6px', height: '6px', background: '#165BFF', borderRadius: '50%', display: 'inline-block', marginLeft: '6px' }"></span>
<span :style="{
fontFamily: 'PingFang SC',
fontWeight: '500',
fontSize: '15px',
color: activeNameInner === innerItem.name + '-' + content.mc ? '#165BFF' : '#222222',
textDecoration: activeNameInner === innerItem.name + '-' + content.mc ? 'underline' : 'none',
textDecorationColor: activeNameInner === innerItem.name + '-' + content.mc ? '#165BFF' : 'transparent',
textUnderlineOffset: activeNameInner === innerItem.name + '-' + content.mc ? '8px' : '0'
color: activeNameInner === outerItem3.name + '-' + outerItem3.mc ? '#165BFF' : '#222222',
textDecoration: activeNameInner === outerItem3.name + '-' + outerItem3.mc ? 'underline' : 'none',
textDecorationColor: activeNameInner === outerItem3.name + '-' + outerItem3.mc ? '#165BFF' : 'transparent',
textUnderlineOffset: activeNameInner === outerItem3.name + '-' + outerItem3.mc ? '8px' : '0',
}">
{{ content.mc }}<span v-if="content.remark"> ({{ content.remark }})</span>
{{ outerItem3.mc }}<span v-if="outerItem3.remark"> ({{ outerItem3.remark }})</span>
</span>
</el-menu-item>
</div>
</el-submenu>
</div>
</el-submenu>
</el-menu>
</div>
<el-menu v-if="activeNameOuter === '服务类'" :default-active="activeNameInner" class="product-menu"
:background-color="'transparent'" :text-color="'#333'" :active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds">
<!-- 外层菜单 -->
<el-submenu v-for="outerItem in collapseDataOuter" :key="outerItem.px" :index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)">
<template #title>
<div v-if="outerItem.cplx === '服务类'">
<el-submenu :index="outerItem.mc">
<template slot="title">
<img src="../../assets/images/tag.png" alt="">
<span
style="font-family: 'PingFang SC'; font-weight: 800; font-size: 23px; color: #222222; line-height: 40px;">
{{ outerItem.mc }}
</span>
</template>
<!-- 服务类的第二级菜单 -->
<el-menu-item v-for="service in outerItem.fwlChildren" :key="service.id" :index="service.mc"
<div v-for="service in outerItem.fwlChildren" :key="service.mc">
<el-menu-item :index="outerItem.mc + '-' + service.mc"
@click.native="handleServiceClick(outerItem.mc, service.mc, service.id, service.remark)"
:class="{ 'menu-item-active': activeNameInner === outerItem.mc + '-' + service.mc, 'service-menu-item-active': activeNameInner === outerItem.mc + '-' + service.mc }">
:class="{ 'menu-item-active': activeNameInner === outerItem.mc + '-' + service.mc }">
<img v-if="service.zx === '1'" src="../../assets/images/new.png" alt="new"
style="width: 20px; height: 20px; margin-left: -20px; vertical-align: middle;" />
<span
:style="{ width: '6px', height: '6px', background: '#165BFF', borderRadius: '50%', display: 'inline-block', marginRight: '10px' }"></span>
:style="{ width: '6px', height: '6px', background: '#165BFF', borderRadius: '50%', display: 'inline-block', marginLeft: '6px' }"></span>
<span :style="{
fontFamily: 'PingFang SC',
fontWeight: '500',
......@@ -98,11 +94,15 @@
{{ service.mc }}<span v-if="service.remark"> ({{ service.remark }})</span>
</span>
</el-menu-item>
</div>
</el-submenu>
</div>
</div>
</el-menu>
</el-col>
<!-- 显示选项卡的内容 -->
<el-col v-if="activeNameOuter === '产品'" :span="17"
<el-col v-if="selectedCplx === '产品'" :span="17"
style="border-radius: 10px; min-height: 730px; background-color: #f5f8fe;">
<div class="tabs">
<el-tabs v-model="activeName" @tab-click="handleClick" type="card" class="custom-tabs">
......@@ -145,7 +145,7 @@
</div>
</el-col>
<!-- 外层折叠项 2 选中的内容 -->
<el-col v-else-if="activeNameOuter === '服务类'" :span="17"
<el-col v-else-if="selectedCplx === '服务类'" :span="17"
style="border-radius: 10px; min-height: 700px; background-color: #f5f8fe;">
<div class="tabs">
<el-tabs v-model="activeName" @tab-click="handleClick" type="card" class="custom-tabs">
......@@ -192,6 +192,7 @@ export default {
data() {
return {
selectedCplx: '', // 添加这个属性来存储当前选中的类别
isOuterMenuClicked: false,
remark: '', // 新增的remark属性
defaultOpeneds: [],// 根据需要初始化 defaultOpeneds
......@@ -203,7 +204,7 @@ export default {
tdjs: '',
fwts: '',
fwal: '',
activeNameOuter: "", // 默认选中的第一级选项
activeNameOuter: '', // 当前外层菜单
activeNameInner: "", // 默认选中的第二级选项
collapseDataOuter: [],
activeName: "first",
......@@ -232,6 +233,7 @@ export default {
if (this.collapseDataOuter.length > 0) {
const firstOuterItem = this.collapseDataOuter[0];
this.activeNameOuter = firstOuterItem.cplx; // 设置默认外层菜单
this.selectedCplx = firstOuterItem.cplx; // 更新选中的类别
// 如果外层菜单有子菜单,设置第一个内层菜单和内容
if (firstOuterItem.cpChildren && firstOuterItem.cpChildren.length > 0) {
......@@ -248,6 +250,7 @@ export default {
});
},
// 设置当前选中的外层菜单
setActiveOuter(cplx) {
this.activeNameOuter = cplx; // 更新外层菜单
......@@ -257,41 +260,30 @@ export default {
const firstInnerItem = this.collapseDataOuter.find(item => item.cplx === cplx);
console.log(firstInnerItem, 'firstInnerItem');
// if (firstInnerItem) {
// // 仅在第一次点击外层菜单时设置默认值
// if (!this.isOuterMenuClicked) {
// this.isOuterMenuClicked = true; // 设置状态为已点击外层菜单
// // 如果是产品,选择第三级菜单的第一项
// if (cplx === '产品' && firstInnerItem.cpChildren.length > 0) {
// const firstInner = firstInnerItem.cpChildren[0];
// this.activeNameInner = `${firstInner.name}-${firstInner.children2[0]?.mc || ''}`; // 设置第三级菜单的第一项
// this.setActiveInner(firstInner.name, firstInner.children2[0]?.mc, firstInner.children2[0]?.id); // 设置内容
// }
// // 如果是服务类,选择第二级菜单的第一项
// else if (cplx === '服务类' && firstInnerItem.fwlChildren.length > 0) {
// const firstService = firstInnerItem.fwlChildren[0];
// this.activeNameInner = `${firstInnerItem.mc}-${firstService.mc}`; // 设置第二级菜单的第一项
// this.handleServiceClick(firstInnerItem.mc, firstService.mc, firstService.id); // 设置内容
// }
// }
// }
},
},
handleInnerClick(innerName, contentName, contentId) {
this.isOuterMenuClicked = false; // 取消外层菜单点击状态
handleInnerClick(innerName, contentName, contentId, remark, cplx) {
this.activeNameInner = `${innerName}-${contentName}`; // 更新内层菜单
this.selectedCplx = cplx; // 更新选中的类别
// 打印选中的信息
console.log(`选中的内容: 内层名称: ${innerName}, 内容名称: ${contentName}, 内容ID: ${contentId}, 类别: ${cplx}`);
// 获取内容相关的数据
this.getListdt(contentId);
},
handleServiceClick(outerName, serviceName, serviceId) {
this.isOuterMenuClicked = false; // 取消外层菜单点击状态
this.activeNameInner = `${outerName}-${serviceName}`; // 更新内层菜单
// 获取服务相关的数据
handleServiceClick(outerItemName, serviceName, serviceId, remark) {
this.activeNameInner = `${outerItemName}-${serviceName}`; // 更新内层菜单
this.selectedCplx = '服务类'; // 设置 cplx 为 '服务类'
// 打印选中的信息
console.log(`选中的内容: 外层名称: ${outerItemName}, 服务名称: ${serviceName}, 服务ID: ${serviceId}, 类别: ${this.selectedCplx}`);
// 获取内容相关的数据
this.getListdt(serviceId);
},
// 设置当前选中的内层菜单
setActiveInner(innerName, content = '', id = null) {
if (content) {
......@@ -313,8 +305,11 @@ export default {
this.yycx = res.data.yycx;
this.yfjs = res.data.yfjs;
this.tdjs = res.data.tdjs;
this.fwts = res.data.fwts;
this.fwal = res.data.fwal;
this.remark = res.data.remark;
}).catch(error => {
console.error('Error fetching data:', error); // 错误处理
......@@ -341,6 +336,10 @@ export default {
</script>
<style scoped lang="scss">
::v-deep.el-menu {
border-right: 1px none !important;
}
::v-deep.tabs {
display: flex;
align-items: flex-start;
......@@ -366,19 +365,24 @@ export default {
line-height: 40px
}
::v-deep.menu-item-active {
background-color: #ffffff;
/* 选中项背景白色 */
}
// ::v-deep.menu-item-active {
// background-color: #ffffff;
// /* 选中项背景白色 */
// }
::v-deep.related-menu-item-active {
background-color: #ffffff;
/* 兄弟项背景白色 */
}
// ::v-deep.related-menu-item-active {
// background-color: #ffffff;
// /* 兄弟项背景白色 */
// }
// ::v-deep .service-menu-item-active {
// background-color: #ee0606 !important; // 服务类选中项背景色为白色
// }
// ::v-deep .el-menu .el-menu--inline {
// background-color: #ee0606 !important; // 服务类选中项背景色为白色
// }
::v-deep .service-menu-item-active {
background-color: #ffffff !important; // 服务类选中项背景色为白色
}
::v-deep img {
max-width: 90% !important;
......@@ -519,35 +523,35 @@ export default {
}
::v-deep.product-menu {
// ::v-deep.product-menu {
// 内层菜单展开时的背景色
.inner-submenu-active {
background-color: #ffffff; // 内层菜单背景色为白色
// // 内层菜单展开时的背景色
// .inner-submenu-active {
// background-color: #ffffff; // 内层菜单背景色为白色
// 设置箭头图标颜色为蓝色
.el-submenu__icon-arrow {
color: #165BFF; // 改变箭头颜色
}
}
// // 设置箭头图标颜色为蓝色
// .el-submenu__icon-arrow {
// color: #165BFF; // 改变箭头颜色
// }
// }
// 默认状态的箭头颜色
.el-submenu {
.el-submenu__icon-arrow {
color: #000; // 默认箭头颜色
}
}
}
// // 默认状态的箭头颜色
// .el-submenu {
// .el-submenu__icon-arrow {
// color: #000; // 默认箭头颜色
// }
// }
// }
::v-deep.product-menu .menu-item-active {
color: #165BFF !important;
/* 选中菜单项的字体颜色 */
}
// ::v-deep.product-menu .menu-item-active {
// color: #165BFF !important;
// /* 选中菜单项的字体颜色 */
// }
::v-deep.product-menu .el-menu-item {
background-color: #ffffff;
/* 第三级菜单的背景色 */
}
// ::v-deep.product-menu .el-menu-item {
// background-color: #ffffff;
// /* 第三级菜单的背景色 */
// }
// .text-align {
// display: flex;
......
......@@ -2,10 +2,7 @@
<div class="container">
<el-row style="margin: 0px auto 150px">
<div class="bjt">
<img
src="../../assets/images/background.png"
alt=""
style="
<img src="../../assets/images/background.png" alt="" style="
height: 111px;
width: 877px;
/* background-size: cover;
......@@ -14,107 +11,73 @@
left: 50%;
transform: translate(-50%, -50%);
object-fit: cover; */
"
/>
" />
</div>
</el-row>
<el-row class="content" style="background-color: #f5f8fe; height: 100vh">
<el-col
:xs="24"
:sm="24"
:md="24"
:lg="24"
:xl="24"
style="
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="
padding: 20px;
border-radius: 10px;
height: auto;
background-color: #f5f8fe;
"
>
<el-menu
v-if="activeNameOuter === '产品'"
:default-active="activeNameInner"
class="product-menu"
:background-color="'transparent'"
:text-color="'#333'"
:active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds"
>
">
<el-menu v-if="activeNameOuter === '产品'" :default-active="activeNameInner" class="product-menu"
:background-color="'transparent'" :text-color="'#333'" :active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds">
<!-- 外层菜单 -->
<el-submenu
v-for="outerItem in collapseDataOuter"
:key="outerItem.px"
:index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)"
>
<el-submenu v-for="outerItem in collapseDataOuter" :key="outerItem.px" :index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)">
<template #title>
<img src="../../assets/images/tag.png" alt="" />
<span
style="
<span style="
font-family: 'PingFang SC';
font-weight: 800;
font-size: 23px;
color: #222222;
line-height: 40px;
"
>
">
{{ outerItem.mc }}
</span>
</template>
<!-- 第二级菜单 -->
<el-submenu
v-for="innerItem in outerItem.cpChildren"
:key="innerItem.id"
:index="innerItem.px"
<el-submenu v-for="innerItem in outerItem.cpChildren" :key="innerItem.id" :index="innerItem.px"
:class="{ 'inner-submenu-active': isInnerActive(innerItem.name) }"
@click.native="setActiveInner(innerItem.mc)"
>
@click.native="setActiveInner(innerItem.mc)">
<template #title>
<span
style="
<span style="
font-family: 'PingFang SC';
font-weight: 800;
font-size: 17px;
color: #222222;
line-height: 26px;
"
>
">
{{ innerItem.mc }}
</span>
</template>
<!-- 第三级菜单 -->
<el-menu-item
v-for="content in innerItem.children2"
:key="content.id"
:index="innerItem.name + '-' + content.mc"
@click.native="
<el-menu-item v-for="content in innerItem.children2" :key="content.id"
:index="innerItem.name + '-' + content.mc" @click.native="
handleInnerClick(
innerItem.name,
content.mc,
content.id,
content.remark
)
"
:class="{
" :class="{
'menu-item-active':
activeNameInner === innerItem.name + '-' + content.mc,
}"
>
<span
:style="{
}">
<span :style="{
width: '6px',
height: '6px',
background: '#165BFF',
borderRadius: '50%',
display: 'inline-block',
marginRight: '10px',
}"
></span>
<span
:style="{
}"></span>
<span :style="{
fontFamily: 'PingFang SC',
fontWeight: '500',
fontSize: '15px',
......@@ -134,87 +97,60 @@
activeNameInner === innerItem.name + '-' + content.mc
? '8px'
: '0',
}"
>
}">
{{ content.mc }}
</span>
<img
v-if="content.zx === '1'"
src="../../assets/images/new.png"
alt="new"
style="
<img v-if="content.zx === '1'" src="../../assets/images/new.png" alt="new" style="
width: 40px;
height: 40px;
margin-left: 5px;
vertical-align: middle;
"
/>
" />
</el-menu-item>
</el-submenu>
</el-submenu>
</el-menu>
<el-menu
v-if="activeNameOuter === '服务类'"
:default-active="activeNameInner"
class="product-menu"
:background-color="'transparent'"
:text-color="'#333'"
:active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds"
>
<el-menu v-if="activeNameOuter === '服务类'" :default-active="activeNameInner" class="product-menu"
:background-color="'transparent'" :text-color="'#333'" :active-text-color="'#409EFF'"
:default-openeds="defaultOpeneds">
<!-- 外层菜单 -->
<el-submenu
v-for="outerItem in collapseDataOuter"
:key="outerItem.px"
:index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)"
>
<el-submenu v-for="outerItem in collapseDataOuter" :key="outerItem.px" :index="outerItem.px"
@click.native="setActiveOuter(outerItem.cplx)">
<template #title>
<img src="../../assets/images/tag.png" alt="" />
<span
style="
<span style="
font-family: 'PingFang SC';
font-weight: 800;
font-size: 23px;
color: #222222;
line-height: 40px;
"
>
">
{{ outerItem.mc }}
</span>
</template>
<!-- 服务类的第二级菜单 -->
<el-menu-item
v-for="service in outerItem.fwlChildren"
:key="service.id"
:index="service.mc"
@click.native="
<el-menu-item v-for="service in outerItem.fwlChildren" :key="service.id" :index="service.mc" @click.native="
handleServiceClick(
outerItem.mc,
service.mc,
service.id,
service.remark
)
"
:class="{
" :class="{
'menu-item-active':
activeNameInner === outerItem.mc + '-' + service.mc,
'service-menu-item-active':
activeNameInner === outerItem.mc + '-' + service.mc,
}"
>
<span
:style="{
}">
<span :style="{
width: '6px',
height: '6px',
background: '#165BFF',
borderRadius: '50%',
display: 'inline-block',
marginRight: '10px',
}"
></span>
<span
:style="{
}"></span>
<span :style="{
fontFamily: 'PingFang SC',
fontWeight: '500',
fontSize: '15px',
......@@ -234,21 +170,15 @@
activeNameInner === outerItem.mc + '-' + service.mc
? '8px'
: '0',
}"
>
}">
{{ service.mc }}
<!-- 判断 zx 是否为 1,如果是则显示图片 -->
<img
v-if="service.zx === '1'"
src="../../assets/images/new.png"
alt="new"
style="
<img v-if="service.zx === '1'" src="../../assets/images/new.png" alt="new" style="
width: 40px;
height: 40px;
margin-left: 5px;
vertical-align: middle;
"
/>
" />
</span>
</el-menu-item>
</el-submenu>
......@@ -598,7 +528,7 @@ export default {
// /* 设置字体颜色 */
// }
::v-deep.el-tabs--card > .el-tabs__header .el-tabs__nav {
::v-deep.el-tabs--card>.el-tabs__header .el-tabs__nav {
border: 1px none;
}
......@@ -681,6 +611,7 @@ export default {
}
::v-deep.product-menu {
// 内层菜单展开时的背景色
.inner-submenu-active {
background-color: #ffffff; // 内层菜单背景色为白色
......@@ -830,6 +761,7 @@ p {
color: #165bff;
line-height: 26px;
}
.el-menu {
border-right: 1px none !important;
}
......
......@@ -7,7 +7,7 @@ function resolve(dir) {
const CompressionPlugin = require("compression-webpack-plugin");
const name = process.env.VUE_APP_TITLE || "若依管理系统"; // 网页标题
const name = process.env.VUE_APP_TITLE || "胜利智联油气智能化品牌"; // 网页标题
const port = process.env.port || process.env.npm_config_port || 80; // 端口
......@@ -35,10 +35,10 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8081`,
// target: `http://localhost:8081`,
// target: `http://192.168.31.190:8899`,
// target: `http://192.168.31.95:8081`,
// target: `http://192.168.31.95:8081`,
target: `http://192.168.31.95:8081`,
changeOrigin: true,
pathRewrite: {
......
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