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

update

上级 46bcc87b
......@@ -39,6 +39,11 @@ import MarketAccessRestrictions from '@/views/marketAccessRestrictions/marketAcc
import MarketAccessLayout from '@/views/marketAccessRestrictions/marketAccessLayout/index.vue'
import MarketAccessOverview from '@/views/marketAccessRestrictions/marketAccessLayout/overview/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 = [
// 智库系统的主要路由
......@@ -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({
......
......@@ -104,7 +104,7 @@
<div class="box1-main-left-info2">
<div
class="time-line"
:style="{ height: 38 * 4 + 'px' }"
:style="{ height: 38 * 3 + 'px' }"
></div>
<div
class="info2-item"
......@@ -385,7 +385,7 @@ const curBill = ref({
});
const handleClickToDetail = () => {
window.sessionStorage.setItem('billId', curBill.value.billId)
window.sessionStorage.setItem("billId", curBill.value.billId);
router.push("/billLayout");
};
......@@ -636,7 +636,7 @@ const handleClickCate = (cate) => {
activeCate.value = cate.hylymc;
activeHylyId.value = cate.hylyid;
handleGetBillsByType()
handleGetBillsByType();
};
const navList = ref([
......@@ -966,7 +966,11 @@ onMounted(async () => {
margin-top: 17px;
display: flex;
.info-box {
padding: 1px 8px;
height: 30px;
width: 80px;
text-align: center;
overflow: hidden;
padding: 0 8px;
box-sizing: border-box;
border: 1px solid rgba(186, 224, 255, 1);
border-radius: 4px;
......@@ -975,7 +979,7 @@ onMounted(async () => {
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 20px;
line-height: 30px;
margin-right: 8px;
}
.info1 {
......@@ -1041,7 +1045,7 @@ onMounted(async () => {
position: absolute;
z-index: 0;
top: 15px;
left: 5px;
left: 4px;
width: 2px;
background: #e6e7e8;
}
......@@ -1092,8 +1096,7 @@ onMounted(async () => {
}
}
.box1-main-right {
flex: 1;
margin-left: 20px;
width: 350px;
border-radius: 4px;
overflow: hidden;
position: relative;
......@@ -1102,9 +1105,8 @@ onMounted(async () => {
height: 100%;
}
.inner-box {
width: 458px;
width: 330px;
height: 93px;
// backdrop-filter: blur(80px);
background: rgba(10, 18, 30, 0.75);
position: absolute;
left: 0;
......@@ -1115,24 +1117,33 @@ onMounted(async () => {
height: 30px;
display: flex;
.inner-box-title {
width: 360px;
width: 270px;
color: rgba(255, 255, 255, 1);
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 700;
line-height: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.inner-box-time {
width: 60px;
height: 30px;
color: rgba(255, 255, 255, 0.65);
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.inner-box-content {
width: 418px;
width: 330px;
height: 40px;
overflow: hidden;
color: rgba(255, 255, 255, 0.8);
font-family: Microsoft YaHei;
font-size: 14px;
......@@ -1175,7 +1186,7 @@ onMounted(async () => {
}
.num {
width: 24px;
height: 16px;
height: 20px;
text-align: center;
color: rgba(255, 255, 255, 1);
font-family: Microsoft YaHei;
......@@ -1256,7 +1267,7 @@ onMounted(async () => {
}
.box2-footer {
position: absolute;
left: 26px;
left: 40px;
bottom: 20px;
width: 430px;
height: 42px;
......@@ -1459,22 +1470,26 @@ onMounted(async () => {
width: 1300px;
display: flex;
justify-content: space-between;
overflow-x: auto;
.btn {
width: 150px;
margin: 0 5px;
overflow: hidden;
color: rgba(95, 101, 108, 1);
font-family: Microsoft YaHei;
font-size: 16px;
font-weight: 400;
line-height: 42px;
padding: 0 24px;
text-align: center;
border-radius: 21px;
background: rgba(20, 89, 187, 0);
padding: 0 5px;
cursor: pointer;
&:hover {
background: rgba(20, 89, 187, 0.1);
}
}
.btnActive {
padding: 0 24px;
border-radius: 21px;
background: rgba(20, 89, 187, 1);
color: #fff;
......@@ -1495,6 +1510,7 @@ onMounted(async () => {
// background: orange;
display: flex;
flex-wrap: wrap;
padding: 10px;
// justify-content: space-between;
// justify-content: center;
.main-item {
......
......@@ -769,7 +769,7 @@ const handleClickDetail = (isShow) => {
.main {
margin-left: 59px;
height: 680px;
padding: 15px 10px;
padding: 3px 10px;
.left {
height: 680px;
position: relative;
......@@ -860,7 +860,7 @@ const handleClickDetail = (isShow) => {
position: absolute;
z-index: 9999;
left: 10px;
bottom: -4px;
bottom: -7px;
width: 12px;
height: 12px;
img {
......@@ -1064,7 +1064,7 @@ const handleClickDetail = (isShow) => {
position: absolute;
z-index: 9999;
left: 10px;
top: 3px;
top: 7px;
width: 12px;
height: 12px;
img {
......@@ -1076,7 +1076,7 @@ const handleClickDetail = (isShow) => {
display: flex;
height: 30px;
border-left: 1px solid rgba(255, 172, 77, 1);
padding: 15px 10px;
padding: 5px 10px;
.item-title {
height: 30px;
line-height: 30px;
......@@ -1191,7 +1191,7 @@ const handleClickDetail = (isShow) => {
.right {
position: absolute;
left: 1295px;
top: calc(50% - 65px);
top: calc(50% - 50px);
display: flex;
align-items: center;
.right-line {
......
......@@ -10,16 +10,18 @@
</div>
<div class="left-top" id="chart1"></div>
<div class="left-center">
<div class="left-center-btn-box">
<div
class="btn"
class="left-center-btn"
:class="{ btnActive: box1BtnActive === index }"
v-for="(item, index) in industryList"
:key="index"
@click="handleClickBox1Btn(item,index)"
@click="handleClickBox1Btn(item, index)"
>
{{ item.hylymc }}
</div>
</div>
</div>
<div class="left-footer">
<div
class="item"
......@@ -169,7 +171,7 @@
<script setup>
import { ref, onMounted, nextTick } from "vue";
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 getLineChart from "./utils/lineChart";
import getBarChart1 from "./utils/barChart1";
......@@ -193,8 +195,8 @@ const box1BtnActive = ref(0);
const handleClickBox1Btn = (industry, index) => {
box1BtnActive.value = index;
curHylyId.value = industry.hylyid
handleGetCompanyListById()
curHylyId.value = industry.hylyid;
handleGetCompanyListById();
};
// 绘制echarts图表
......@@ -255,7 +257,7 @@ const handleClickCompany = (index) => {
}, 100);
};
const companyList= ref([])
const companyList = ref([]);
const industryList = ref([
// {
......@@ -309,63 +311,54 @@ const companyInfo = ref({
// 获取行业领域列表
const handleGetHylyList = async () => {
try {
const res = await getHylyList()
// console.log('行业领域字典列表', res);
industryList.value = res.data
curHylyId.value = res.data[0].hylyid
} catch (error) {
}
}
const res = await getHylyList();
console.log("行业领域字典列表", res);
industryList.value = res.data;
curHylyId.value = res.data[0].hylyid;
} catch (error) {}
};
const curHylyId = ref('')
const curHylyId = ref("");
// 根据行业领域id获取公司列表
const handleGetCompanyListById = async () => {
const params = {
id: curHylyId.value
}
id: curHylyId.value,
};
try {
const res = await getCompanyList(params)
const res = await getCompanyList(params);
// console.log('根据行业id获取公司里列表', res);
if(res.code === 200 && res.data.length) {
companyList.value = res.data
if (res.code === 200 && res.data.length) {
companyList.value = res.data;
} else {
companyList.value = []
companyList.value = [];
}
} catch (error) {
}
}
} catch (error) {}
};
// 根据法案ID 获取行业领域统计
const handleGetIndustryHyly = async () => {
const params = {
id : 1
}
id: 1,
};
try {
const res = await getIndustryHyly(params)
const res = await getIndustryHyly(params);
// console.log('行业领域统计', res);
chart1Data.value.name = res.data.map(item => {
return item.hylyName
})
chart1Data.value.value = res.data.map(item => {
return item.companyNum
})
} catch (error) {
}
}
chart1Data.value.name = res.data.map((item) => {
return item.hylyName;
});
chart1Data.value.value = res.data.map((item) => {
return item.companyNum;
});
} catch (error) {}
};
onMounted(async () => {
await handleGetHylyList()
handleGetCompanyListById()
await handleGetIndustryHyly()
await handleGetHylyList();
handleGetCompanyListById();
await handleGetIndustryHyly();
let chart1 = getBarChart(chart1Data.value.name, chart1Data.value.value);
setChart(chart1, "chart1");
});
</script>
......@@ -429,14 +422,22 @@ onMounted(async () => {
}
.left-center {
margin-top: 12px;
height: 56px;
margin-left: 17px;
overflow-x: hidden;
width: 445px;
.left-center-btn-box {
width: 1000px;
margin-top: 10px;
height: 28px;
display: flex;
justify-content: flex-start;
margin-left: 17px;
.btn {
margin-right: 8px;
flex-wrap: nowrap;
.left-center-btn {
margin-right: 4px;
height: 28px;
padding: 1px 8px 1px 8px;
width: 60px;
text-align: center;
padding: 0 5px;
box-sizing: border-box;
border: 1px solid rgba(230, 231, 232, 1);
border-radius: 4px;
......@@ -445,9 +446,14 @@ onMounted(async () => {
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 22px;
line-height: 28px;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.btnActive {
border: 1px solid rgba(20, 89, 187, 1);
background: rgba(246, 251, 255, 1);
......@@ -457,7 +463,7 @@ onMounted(async () => {
margin: 0 auto;
margin-top: 5px;
width: 446px;
height: 548px;
height: 520px;
overflow: auto;
.item {
width: 100%;
......@@ -493,6 +499,9 @@ onMounted(async () => {
font-weight: 600;
line-height: 22px;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.icon {
margin-left: 7px;
......
......@@ -90,6 +90,7 @@
class="case-item"
v-for="(val, idx) in curSurveyInfoList"
:key="idx"
@click=handleToSingleCase(item)
>
<div class="item-box1">
<div
......@@ -125,6 +126,7 @@
<script setup>
import { ref, onMounted, watch } from "vue";
import router from '@/router'
const releaseTime = ref("近一年发布");
......@@ -347,6 +349,10 @@ watch(
}
);
const handleToSingleCase = (item) => {
router.push('/marketSingleCaseLayout/overview')
}
onMounted(() => {
curSurveyInfoList.value = surveyInfoList.value;
});
......@@ -516,9 +522,16 @@ onMounted(() => {
.case-item {
display: flex;
padding: 16px 0;
cursor: pointer;
&:hover {
background: rgb(215, 215, 215, 0.5);
}
// height: 56px;
&:nth-child(2n) {
background: rgba(247, 248, 249, 1);
&:hover {
background: rgb(215, 215, 215, 0.5);
}
}
.item-box1 {
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论