提交 08105c8b authored 作者: coderBryanFu's avatar coderBryanFu

update

上级 46bcc87b
...@@ -39,6 +39,11 @@ import MarketAccessRestrictions from '@/views/marketAccessRestrictions/marketAcc ...@@ -39,6 +39,11 @@ import MarketAccessRestrictions from '@/views/marketAccessRestrictions/marketAcc
import MarketAccessLayout from '@/views/marketAccessRestrictions/marketAccessLayout/index.vue' import MarketAccessLayout from '@/views/marketAccessRestrictions/marketAccessLayout/index.vue'
import MarketAccessOverview from '@/views/marketAccessRestrictions/marketAccessLayout/overview/index.vue' import MarketAccessOverview from '@/views/marketAccessRestrictions/marketAccessLayout/overview/index.vue'
import MarketAccessCase from '@/views/marketAccessRestrictions/marketAccessLayout/case/index.vue' import MarketAccessCase from '@/views/marketAccessRestrictions/marketAccessLayout/case/index.vue'
import MarketSingleCaseLayout from '@/views/marketAccessRestrictions/singleCaseLayout/index.vue'
import MarketSingleCaseOverview from '@/views/marketAccessRestrictions/singleCaseLayout/overview/index.vue'
import MarketSingleCaseDeepdig from '@/views/marketAccessRestrictions/singleCaseLayout/deepdig/index.vue'
const routes = [ const routes = [
// 智库系统的主要路由 // 智库系统的主要路由
...@@ -304,6 +309,37 @@ const routes = [ ...@@ -304,6 +309,37 @@ const routes = [
] ]
}, },
{
path: '/marketSingleCaseLayout',
name: 'MarketSingleCaseLayout',
component: MarketSingleCaseLayout,
redirect: '/marketSingleCaseLayout/overview',
meta: {
title: '单次调查案件布局'
},
children: [
{
path: 'overview',
name: 'MarketSingleCaseOverview',
component: MarketSingleCaseOverview,
meta: {
title: '调查简介'
},
},
{
path: 'deepdig',
name: 'MarketSingleCaseDeepdig',
component: MarketSingleCaseDeepdig,
meta: {
title: '深度挖掘'
},
},
]
},
] ]
const router = createRouter({ const router = createRouter({
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<div class="box1-main-left-info2"> <div class="box1-main-left-info2">
<div <div
class="time-line" class="time-line"
:style="{ height: 38 * 4 + 'px' }" :style="{ height: 38 * 3 + 'px' }"
></div> ></div>
<div <div
class="info2-item" class="info2-item"
...@@ -385,7 +385,7 @@ const curBill = ref({ ...@@ -385,7 +385,7 @@ const curBill = ref({
}); });
const handleClickToDetail = () => { const handleClickToDetail = () => {
window.sessionStorage.setItem('billId', curBill.value.billId) window.sessionStorage.setItem("billId", curBill.value.billId);
router.push("/billLayout"); router.push("/billLayout");
}; };
...@@ -633,10 +633,10 @@ const handleGetHylyList = async () => { ...@@ -633,10 +633,10 @@ const handleGetHylyList = async () => {
const handleClickCate = (cate) => { const handleClickCate = (cate) => {
console.log(cate); console.log(cate);
activeCate.value = cate.hylymc; activeCate.value = cate.hylymc;
activeHylyId.value = cate.hylyid; activeHylyId.value = cate.hylyid;
handleGetBillsByType() handleGetBillsByType();
}; };
const navList = ref([ const navList = ref([
...@@ -966,7 +966,11 @@ onMounted(async () => { ...@@ -966,7 +966,11 @@ onMounted(async () => {
margin-top: 17px; margin-top: 17px;
display: flex; display: flex;
.info-box { .info-box {
padding: 1px 8px; height: 30px;
width: 80px;
text-align: center;
overflow: hidden;
padding: 0 8px;
box-sizing: border-box; box-sizing: border-box;
border: 1px solid rgba(186, 224, 255, 1); border: 1px solid rgba(186, 224, 255, 1);
border-radius: 4px; border-radius: 4px;
...@@ -975,7 +979,7 @@ onMounted(async () => { ...@@ -975,7 +979,7 @@ onMounted(async () => {
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 20px; line-height: 30px;
margin-right: 8px; margin-right: 8px;
} }
.info1 { .info1 {
...@@ -1041,7 +1045,7 @@ onMounted(async () => { ...@@ -1041,7 +1045,7 @@ onMounted(async () => {
position: absolute; position: absolute;
z-index: 0; z-index: 0;
top: 15px; top: 15px;
left: 5px; left: 4px;
width: 2px; width: 2px;
background: #e6e7e8; background: #e6e7e8;
} }
...@@ -1092,8 +1096,7 @@ onMounted(async () => { ...@@ -1092,8 +1096,7 @@ onMounted(async () => {
} }
} }
.box1-main-right { .box1-main-right {
flex: 1; width: 350px;
margin-left: 20px;
border-radius: 4px; border-radius: 4px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
...@@ -1102,9 +1105,8 @@ onMounted(async () => { ...@@ -1102,9 +1105,8 @@ onMounted(async () => {
height: 100%; height: 100%;
} }
.inner-box { .inner-box {
width: 458px; width: 330px;
height: 93px; height: 93px;
// backdrop-filter: blur(80px);
background: rgba(10, 18, 30, 0.75); background: rgba(10, 18, 30, 0.75);
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -1115,24 +1117,33 @@ onMounted(async () => { ...@@ -1115,24 +1117,33 @@ onMounted(async () => {
height: 30px; height: 30px;
display: flex; display: flex;
.inner-box-title { .inner-box-title {
width: 360px; width: 270px;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-size: 16px; font-size: 16px;
font-weight: 700; font-weight: 700;
line-height: 30px; line-height: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.inner-box-time { .inner-box-time {
width: 60px;
height: 30px; height: 30px;
color: rgba(255, 255, 255, 0.65); color: rgba(255, 255, 255, 0.65);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
line-height: 30px; line-height: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
.inner-box-content { .inner-box-content {
width: 418px; width: 330px;
height: 40px;
overflow: hidden;
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.8);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-size: 14px; font-size: 14px;
...@@ -1175,7 +1186,7 @@ onMounted(async () => { ...@@ -1175,7 +1186,7 @@ onMounted(async () => {
} }
.num { .num {
width: 24px; width: 24px;
height: 16px; height: 20px;
text-align: center; text-align: center;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
...@@ -1256,7 +1267,7 @@ onMounted(async () => { ...@@ -1256,7 +1267,7 @@ onMounted(async () => {
} }
.box2-footer { .box2-footer {
position: absolute; position: absolute;
left: 26px; left: 40px;
bottom: 20px; bottom: 20px;
width: 430px; width: 430px;
height: 42px; height: 42px;
...@@ -1459,22 +1470,26 @@ onMounted(async () => { ...@@ -1459,22 +1470,26 @@ onMounted(async () => {
width: 1300px; width: 1300px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
overflow-x: auto;
.btn { .btn {
width: 150px;
margin: 0 5px;
overflow: hidden;
color: rgba(95, 101, 108, 1); color: rgba(95, 101, 108, 1);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
line-height: 42px; line-height: 42px;
padding: 0 24px; text-align: center;
border-radius: 21px; border-radius: 21px;
background: rgba(20, 89, 187, 0); background: rgba(20, 89, 187, 0);
padding: 0 5px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background: rgba(20, 89, 187, 0.1); background: rgba(20, 89, 187, 0.1);
} }
} }
.btnActive { .btnActive {
padding: 0 24px;
border-radius: 21px; border-radius: 21px;
background: rgba(20, 89, 187, 1); background: rgba(20, 89, 187, 1);
color: #fff; color: #fff;
...@@ -1495,6 +1510,7 @@ onMounted(async () => { ...@@ -1495,6 +1510,7 @@ onMounted(async () => {
// background: orange; // background: orange;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 10px;
// justify-content: space-between; // justify-content: space-between;
// justify-content: center; // justify-content: center;
.main-item { .main-item {
......
...@@ -769,7 +769,7 @@ const handleClickDetail = (isShow) => { ...@@ -769,7 +769,7 @@ const handleClickDetail = (isShow) => {
.main { .main {
margin-left: 59px; margin-left: 59px;
height: 680px; height: 680px;
padding: 15px 10px; padding: 3px 10px;
.left { .left {
height: 680px; height: 680px;
position: relative; position: relative;
...@@ -860,7 +860,7 @@ const handleClickDetail = (isShow) => { ...@@ -860,7 +860,7 @@ const handleClickDetail = (isShow) => {
position: absolute; position: absolute;
z-index: 9999; z-index: 9999;
left: 10px; left: 10px;
bottom: -4px; bottom: -7px;
width: 12px; width: 12px;
height: 12px; height: 12px;
img { img {
...@@ -1064,7 +1064,7 @@ const handleClickDetail = (isShow) => { ...@@ -1064,7 +1064,7 @@ const handleClickDetail = (isShow) => {
position: absolute; position: absolute;
z-index: 9999; z-index: 9999;
left: 10px; left: 10px;
top: 3px; top: 7px;
width: 12px; width: 12px;
height: 12px; height: 12px;
img { img {
...@@ -1076,7 +1076,7 @@ const handleClickDetail = (isShow) => { ...@@ -1076,7 +1076,7 @@ const handleClickDetail = (isShow) => {
display: flex; display: flex;
height: 30px; height: 30px;
border-left: 1px solid rgba(255, 172, 77, 1); border-left: 1px solid rgba(255, 172, 77, 1);
padding: 15px 10px; padding: 5px 10px;
.item-title { .item-title {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
...@@ -1191,7 +1191,7 @@ const handleClickDetail = (isShow) => { ...@@ -1191,7 +1191,7 @@ const handleClickDetail = (isShow) => {
.right { .right {
position: absolute; position: absolute;
left: 1295px; left: 1295px;
top: calc(50% - 65px); top: calc(50% - 50px);
display: flex; display: flex;
align-items: center; align-items: center;
.right-line { .right-line {
......
...@@ -10,14 +10,16 @@ ...@@ -10,14 +10,16 @@
</div> </div>
<div class="left-top" id="chart1"></div> <div class="left-top" id="chart1"></div>
<div class="left-center"> <div class="left-center">
<div <div class="left-center-btn-box">
class="btn" <div
:class="{ btnActive: box1BtnActive === index }" class="left-center-btn"
v-for="(item, index) in industryList" :class="{ btnActive: box1BtnActive === index }"
:key="index" v-for="(item, index) in industryList"
@click="handleClickBox1Btn(item,index)" :key="index"
> @click="handleClickBox1Btn(item, index)"
{{ item.hylymc }} >
{{ item.hylymc }}
</div>
</div> </div>
</div> </div>
<div class="left-footer"> <div class="left-footer">
...@@ -169,7 +171,7 @@ ...@@ -169,7 +171,7 @@
<script setup> <script setup>
import { ref, onMounted, nextTick } from "vue"; import { ref, onMounted, nextTick } from "vue";
import * as echarts from "echarts"; import * as echarts from "echarts";
import {getCompanyList, getIndustryHyly, getHylyList} from '@/api/influence' import { getCompanyList, getIndustryHyly, getHylyList } from "@/api/influence";
import getBarChart from "./utils/barChart"; import getBarChart from "./utils/barChart";
import getLineChart from "./utils/lineChart"; import getLineChart from "./utils/lineChart";
import getBarChart1 from "./utils/barChart1"; import getBarChart1 from "./utils/barChart1";
...@@ -193,8 +195,8 @@ const box1BtnActive = ref(0); ...@@ -193,8 +195,8 @@ const box1BtnActive = ref(0);
const handleClickBox1Btn = (industry, index) => { const handleClickBox1Btn = (industry, index) => {
box1BtnActive.value = index; box1BtnActive.value = index;
curHylyId.value = industry.hylyid curHylyId.value = industry.hylyid;
handleGetCompanyListById() handleGetCompanyListById();
}; };
// 绘制echarts图表 // 绘制echarts图表
...@@ -255,7 +257,7 @@ const handleClickCompany = (index) => { ...@@ -255,7 +257,7 @@ const handleClickCompany = (index) => {
}, 100); }, 100);
}; };
const companyList= ref([]) const companyList = ref([]);
const industryList = ref([ const industryList = ref([
// { // {
...@@ -309,63 +311,54 @@ const companyInfo = ref({ ...@@ -309,63 +311,54 @@ const companyInfo = ref({
// 获取行业领域列表 // 获取行业领域列表
const handleGetHylyList = async () => { const handleGetHylyList = async () => {
try { try {
const res = await getHylyList() const res = await getHylyList();
// console.log('行业领域字典列表', res); console.log("行业领域字典列表", res);
industryList.value = res.data industryList.value = res.data;
curHylyId.value = res.data[0].hylyid curHylyId.value = res.data[0].hylyid;
} catch (error) { } catch (error) {}
};
}
}
const curHylyId = ref('') const curHylyId = ref("");
// 根据行业领域id获取公司列表 // 根据行业领域id获取公司列表
const handleGetCompanyListById = async () => { const handleGetCompanyListById = async () => {
const params = { const params = {
id: curHylyId.value id: curHylyId.value,
} };
try { try {
const res = await getCompanyList(params) const res = await getCompanyList(params);
// console.log('根据行业id获取公司里列表', res); // console.log('根据行业id获取公司里列表', res);
if(res.code === 200 && res.data.length) { if (res.code === 200 && res.data.length) {
companyList.value = res.data companyList.value = res.data;
} else { } else {
companyList.value = [] companyList.value = [];
} }
} catch (error) {}
} catch (error) { };
}
}
// 根据法案ID 获取行业领域统计 // 根据法案ID 获取行业领域统计
const handleGetIndustryHyly = async () => { const handleGetIndustryHyly = async () => {
const params = { const params = {
id : 1 id: 1,
} };
try { try {
const res = await getIndustryHyly(params) const res = await getIndustryHyly(params);
// console.log('行业领域统计', res); // console.log('行业领域统计', res);
chart1Data.value.name = res.data.map(item => { chart1Data.value.name = res.data.map((item) => {
return item.hylyName return item.hylyName;
}) });
chart1Data.value.value = res.data.map(item => { chart1Data.value.value = res.data.map((item) => {
return item.companyNum return item.companyNum;
}) });
} catch (error) { } catch (error) {}
};
}
}
onMounted(async () => { onMounted(async () => {
await handleGetHylyList() await handleGetHylyList();
handleGetCompanyListById() handleGetCompanyListById();
await handleGetIndustryHyly() await handleGetIndustryHyly();
let chart1 = getBarChart(chart1Data.value.name, chart1Data.value.value); let chart1 = getBarChart(chart1Data.value.name, chart1Data.value.value);
setChart(chart1, "chart1"); setChart(chart1, "chart1");
}); });
</script> </script>
...@@ -429,25 +422,38 @@ onMounted(async () => { ...@@ -429,25 +422,38 @@ onMounted(async () => {
} }
.left-center { .left-center {
margin-top: 12px; margin-top: 12px;
height: 28px; height: 56px;
display: flex;
justify-content: flex-start;
margin-left: 17px; margin-left: 17px;
.btn { overflow-x: hidden;
margin-right: 8px; width: 445px;
.left-center-btn-box {
width: 1000px;
margin-top: 10px;
height: 28px; height: 28px;
padding: 1px 8px 1px 8px; display: flex;
box-sizing: border-box; flex-wrap: nowrap;
border: 1px solid rgba(230, 231, 232, 1); .left-center-btn {
border-radius: 4px; margin-right: 4px;
background: rgba(255, 255, 255, 1); height: 28px;
color: rgba(132, 136, 142, 1); width: 60px;
font-family: Microsoft YaHei; text-align: center;
font-size: 14px; padding: 0 5px;
font-weight: 400; box-sizing: border-box;
line-height: 22px; border: 1px solid rgba(230, 231, 232, 1);
cursor: pointer; border-radius: 4px;
background: rgba(255, 255, 255, 1);
color: rgba(132, 136, 142, 1);
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 28px;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
.btnActive { .btnActive {
border: 1px solid rgba(20, 89, 187, 1); border: 1px solid rgba(20, 89, 187, 1);
background: rgba(246, 251, 255, 1); background: rgba(246, 251, 255, 1);
...@@ -457,7 +463,7 @@ onMounted(async () => { ...@@ -457,7 +463,7 @@ onMounted(async () => {
margin: 0 auto; margin: 0 auto;
margin-top: 5px; margin-top: 5px;
width: 446px; width: 446px;
height: 548px; height: 520px;
overflow: auto; overflow: auto;
.item { .item {
width: 100%; width: 100%;
...@@ -493,6 +499,9 @@ onMounted(async () => { ...@@ -493,6 +499,9 @@ onMounted(async () => {
font-weight: 600; font-weight: 600;
line-height: 22px; line-height: 22px;
text-align: left; text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.icon { .icon {
margin-left: 7px; margin-left: 7px;
......
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
class="case-item" class="case-item"
v-for="(val, idx) in curSurveyInfoList" v-for="(val, idx) in curSurveyInfoList"
:key="idx" :key="idx"
@click=handleToSingleCase(item)
> >
<div class="item-box1"> <div class="item-box1">
<div <div
...@@ -125,6 +126,7 @@ ...@@ -125,6 +126,7 @@
<script setup> <script setup>
import { ref, onMounted, watch } from "vue"; import { ref, onMounted, watch } from "vue";
import router from '@/router'
const releaseTime = ref("近一年发布"); const releaseTime = ref("近一年发布");
...@@ -347,6 +349,10 @@ watch( ...@@ -347,6 +349,10 @@ watch(
} }
); );
const handleToSingleCase = (item) => {
router.push('/marketSingleCaseLayout/overview')
}
onMounted(() => { onMounted(() => {
curSurveyInfoList.value = surveyInfoList.value; curSurveyInfoList.value = surveyInfoList.value;
}); });
...@@ -516,9 +522,16 @@ onMounted(() => { ...@@ -516,9 +522,16 @@ onMounted(() => {
.case-item { .case-item {
display: flex; display: flex;
padding: 16px 0; padding: 16px 0;
cursor: pointer;
&:hover {
background: rgb(215, 215, 215, 0.5);
}
// height: 56px; // height: 56px;
&:nth-child(2n) { &:nth-child(2n) {
background: rgba(247, 248, 249, 1); background: rgba(247, 248, 249, 1);
&:hover {
background: rgb(215, 215, 215, 0.5);
}
} }
.item-box1 { .item-box1 {
width: 500px; width: 500px;
......
import * as echarts from "echarts";
const getBarChart = (nameList, valueList) => {
const option = {
tooltip: {},
grid: {
top: '3%',
right: '3%',
bottom: '1%',
left: '1%',
containLabel: true
},
yAxis: {
type: 'value',
splitLine: {
show: false
},
axisLine: {
show: false
},
show: true
},
xAxis: {
type: 'category',
data: nameList,
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: true
},
axisLabel: {
show: true
}
},
series: [{
type: 'bar',
data: valueList,
label: {
show: false,
position: 'top',
formatter: function (params) {
return params.value + ' 次'
}
},
barWidth: 12,
itemStyle: {
color: function (params) {
return new echarts.graphic.LinearGradient(0, 1, 0, 0,
[{
offset: 0,
color: 'rgba(22, 119, 255, 0)'
},
{
offset: 1,
color: 'rgba(22, 119, 255, 1)'
}
]);
},
barBorderRadius: 6,
}
}]
}
return option
}
export default getBarChart
\ No newline at end of file
import * as echarts from "echarts";
const getBarChart1 = (nameList, valueList) => {
const option = {
tooltip: {},
grid: {
top: '3%',
right: '3%',
bottom: '1%',
left: '1%',
containLabel: true
},
xAxis: {
type: 'value',
splitLine: {
show: false
},
show: false
},
yAxis: {
type: 'category',
data: nameList,
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
show: false
},
axisLabel: {
show: true
}
},
series: [{
type: 'bar',
data: valueList,
label: {
show: true,
position: [610, 0],
formatter: function (params) {
return params.value + ' 次'
}
},
barWidth: 8,
itemStyle: {
color: function (params) {
return new echarts.graphic.LinearGradient(0, 0, 1, 0,
[{
offset: 0,
color: 'rgba(22, 119, 255, 0)'
},
{
offset: 1,
color: 'rgba(22, 119, 255, 1)'
}
]);
},
barBorderRadius: 4,
}
}]
}
return option
}
export default getBarChart1
\ No newline at end of file
const getPieChart = (data,colorList) => {
let option = {
color: colorList,
series: [
{
type: 'pie',
radius: [80, 100],
height: '100%',
left: 'center',
width: '100%',
itemStyle: {
borderColor: '#fff',
borderWidth: 1
},
label: {
alignTo: 'edge',
formatter: '{name|{b}}\n{time|{c} 项 {d}%}',
minMargin: 5,
edgeDistance: 10,
lineHeight: 15,
rich: {
time: {
fontSize: 12,
color: '#999'
}
}
},
labelLine: {
length: 15,
length2: 0,
maxSurfaceAngle: 80
},
labelLayout: function (params) {
const isLeft = params.labelRect.x < 556 / 2;
const points = params.labelLinePoints;
points[2][0] = isLeft
? params.labelRect.x
: params.labelRect.x + params.labelRect.width;
return {
labelLinePoints: points
};
},
data: data
}]
}
return option
}
export default getPieChart;
\ No newline at end of file
<template>
<div class="wrapper">
<div class="header">
<div class="header-top">
<div class="header-top-left">{{ '337' }}</div>
<div class="header-top-right">
<div class="title">
{{ "337-TA-1443:外国制造的半导体器件及其下游产品和组件" }}
</div>
<div class="time">{{ "2025年7月18日" }}</div>
</div>
</div>
<div class="header-footer">
<div class="nav-box">
<div
class="nav-item"
:class="{ navItemActive: item.isActive }"
v-for="(item, index) in navList"
:key="index"
@click="handleClickNav(index)"
>
<div class="icon">
<img v-if="!item.isActive" :src="item.icon" alt="" />
<img v-else :src="item.activeIcon" alt="" />
</div>
<div class="text" :class="{ textActive: item.isActive }">
{{ item.name }}
</div>
</div>
</div>
<div class="btn-box">
<div class="btn">
<div class="icon">
<img src="./assets/images/btn-icon1.png" alt="" />
</div>
<div class="text">{{ "查看官网" }}</div>
</div>
<div class="btn1">
<div class="icon">
<img src="./assets/images/btn-icon2.png" alt="" />
</div>
<div class="text">{{ "分析报告" }}</div>
</div>
</div>
</div>
</div>
<div class="main">
<router-view />
</div>
</div>
</template>
<script setup>
import { ref, onMounted } from "vue";
import router from "@/router";
import NavIcon1 from "./assets/images/nav-icon1.png";
import NavIcon1Active from "./assets/images/nav-icon1-active.png";
import NavIcon2 from "./assets/images/nav-icon2.png";
import NavIcon2Active from "./assets/images/nav-icon2-active.png";
import NavIcon3 from "./assets/images/nav-icon2.png";
import NavIcon3Active from "./assets/images/nav-icon2-active.png";
const navList = ref([
{
name: "调查简介",
icon: NavIcon1,
activeIcon: NavIcon1Active,
isActive: true,
path: "/marketSingleCaseLayout/overview",
},
{
name: "深度挖掘",
icon: NavIcon2,
activeIcon: NavIcon2Active,
isActive: false,
path: "/marketSingleCaseLayout/deepdig",
},
{
name: "影响分析",
icon: NavIcon3,
activeIcon: NavIcon3Active,
isActive: false,
path: "/marketSingleCaseLayout/overview",
},
]);
const handleClickNav = (index) => {
navList.value.forEach((item) => {
item.isActive = false;
});
navList.value[index].isActive = true;
router.push(navList.value[index].path);
};
</script>
<style lang="scss" scoped>
.wrapper {
width: 100%;
height: 100%;
.header {
width: 1920px;
height: 148px;
box-sizing: border-box;
border-bottom: 1px solid rgba(230, 231, 232, 1);
background: rgba(255, 255, 255, 1);
padding: 24px 160px 0;
.header-top {
display: flex;
.header-top-left {
width: 48px;
height: 48px;
box-sizing: border-box;
border: 1px solid rgba(145, 202, 255, 1);
border-radius: 4px;
background: rgba(230, 244, 255, 1);
color: rgba(10, 87, 166, 1);
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 700;
text-align: center;
line-height: 48px;
}
.header-top-right {
margin-left: 20px;
.title {
height: 26px;
color: rgba(59, 65, 75, 1);
font-family: Microsoft YaHei;
font-size: 20px;
font-weight: 700;
line-height: 26px;
}
.time {
height: 24px;
color: rgba(132, 136, 142, 1);
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 400;
line-height: 24px;
}
}
}
.header-footer {
display: flex;
justify-content: space-between;
margin-top: 24px;
.nav-box {
height: 48px;
display: flex;
.navItemActive {
border-bottom: 3px solid rgba(10, 87, 166, 1);
}
.nav-item {
display: flex;
width: 95px;
margin-right: 20px;
cursor: pointer;
.icon {
width: 16px;
height: 16px;
margin-top: 16px;
img {
width: 100%;
height: 100%;
}
}
.text {
width: 72px;
height: 24px;
margin-top: 12px;
margin-left: 4px;
color: rgba(59, 65, 75, 1);
font-family: Microsoft YaHei;
font-size: 18px;
font-weight: 400;
line-height: 24px;
}
.textActive {
font-size: 18px;
font-weight: 700;
color: rgba(10, 87, 166, 1);
}
}
}
.btn-box {
height: 48px;
display: flex;
.btn {
margin-top: 2px;
width: 120px;
height: 36px;
box-sizing: border-box;
border: 1px solid rgba(230, 231, 232, 1);
border-radius: 6px;
background: rgba(255, 255, 255, 1);
display: flex;
.icon {
width: 16px;
height: 16px;
margin-left: 16px;
margin-top: 10px;
img {
width: 100%;
height: 100%;
}
}
.text {
margin-left: 8px;
margin-top: 7px;
height: 22px;
color: rgba(95, 101, 108, 1);
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 400;
line-height: 22px;
}
}
.btn1 {
margin-left: 12px;
margin-top: 2px;
width: 120px;
height: 36px;
border-radius: 6px;
background: rgba(22, 119, 255, 1);
display: flex;
.icon {
width: 16px;
height: 16px;
margin-left: 16px;
margin-top: 10px;
img {
width: 100%;
height: 100%;
}
}
.text {
margin-left: 8px;
margin-top: 7px;
height: 22px;
color: #fff;
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 400;
line-height: 22px;
}
}
}
}
}
.main {
height: 870px;
width: 1920px;
overflow-y: auto;
background: rgba(247, 248, 249, 1);
}
}
</style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论