提交 6cfe0bf9 authored 作者: coderBryanFu's avatar coderBryanFu

update

上级 3af0b73c
...@@ -1241,8 +1241,7 @@ const handleToPosi = id => { ...@@ -1241,8 +1241,7 @@ const handleToPosi = id => {
onMounted(async () => { onMounted(async () => {
handleGetHylyList(); handleGetHylyList();
await handleGetHotBills();
curBill.value = hotBillList.value[0];
// handleGetBillsByType(); // handleGetBillsByType();
let chart1 = getMultiLineChart(chart1Data.value.title, chart1Data.value.data[0].value, chart1Data.value.data[1].value); let chart1 = getMultiLineChart(chart1Data.value.title, chart1Data.value.data[0].value, chart1Data.value.data[1].value);
setChart(chart1, "chart1"); setChart(chart1, "chart1");
...@@ -1255,6 +1254,9 @@ onMounted(async () => { ...@@ -1255,6 +1254,9 @@ onMounted(async () => {
const box9Chart = getPieChart(box9ChartData.value, box9ChartColorList.value); const box9Chart = getPieChart(box9ChartData.value, box9ChartColorList.value);
setChart(box9Chart, "box9Chart"); setChart(box9Chart, "box9Chart");
await handleGetHotBills();
curBill.value = hotBillList.value[0];
}); });
onUnmounted(() => {}); onUnmounted(() => {});
......
...@@ -491,90 +491,6 @@ ...@@ -491,90 +491,6 @@
</custom-container> </custom-container>
</el-col> </el-col>
</el-row> </el-row>
<!-- <div class="home-main-center">
<div class="center-footer">
<div class="box3">
<div class="box3-header">
<div class="box3-header-left">
<div class="box3-header-icon">
<img src="./assets/images/box3-header-icon.png" alt="" />
</div>
<div class="box3-header-title">{{ "涉华法案数量" }}</div>
</div>
<div class="box3-header-right">
<div class="right-box">
<div class="icon1"></div>
<div class="text">{{ "提出法案" }}</div>
</div>
<div class="right-box">
<div class="icon2"></div>
<div class="text">{{ "通过法案" }}</div>
</div>
</div>
</div>
<div class="box3-main" id="chart1"></div>
</div>
<div class="box4">
<div class="box4-header">
<div class="header-icon">
<img src="./assets/images/box4-header-icon.png" alt="" />
</div>
<div class="header-title">{{ "法案趋势" }}</div>
</div>
<div class="box4-main">
<div class="box4-main-item" v-for="(item, index) in billTrendList" :key="index">
<div
class="left"
:class="{
leftStatus2: index === 1,
leftStatus3: index === 2
}"
>
{{ index < 3 ? index + 1 : "" }}
</div>
<div class="center">{{ item.title }}</div>
<div class="right">{{ item.no }}</div>
</div>
</div>
</div>
</div>
</div>
<div class="home-main-footer">
<div class="home-main-footer-header">
<div class="btn-box">
<div
class="btn"
:class="{ btnActive: activeCate === cate.hylymc }"
v-for="(cate, index) in categoryList"
:key="index"
@click="handleClickCate(cate)"
>
{{ cate.hylymc }}
</div>
</div>
<div class="select-box">
<el-select v-model="releaseTime" placeholder="选择发布时间" style="width: 120px">
<el-option
v-for="item in releaseTimeList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
</div>
<div class="home-main-footer-main">
<div class="main-item" v-for="(bill, index) in curBillList" :key="index">
<div class="main-item-box1">
<img :src="bill.img" alt="" />
</div>
<div class="main-item-box2">
{{ bill.billName }}
</div>
<div class="main-item-box3">{{ bill.introductionDate }}</div>
</div>
</div>
</div> -->
</div> </div>
</div> </div>
</template> </template>
...@@ -584,7 +500,6 @@ import { onMounted, ref, computed } from "vue"; ...@@ -584,7 +500,6 @@ import { onMounted, ref, computed } from "vue";
import scrollToTop from "@/utils/scrollToTop"; import scrollToTop from "@/utils/scrollToTop";
import * as echarts from "echarts"; import * as echarts from "echarts";
import { DArrowRight, Warning, Search } from "@element-plus/icons-vue"; import { DArrowRight, Warning, Search } from "@element-plus/icons-vue";
// import router from "@/router/index";
import EChart from "@/components/Chart/index.vue"; import EChart from "@/components/Chart/index.vue";
import { TAGTYPE } from "@/public/constant"; import { TAGTYPE } from "@/public/constant";
...@@ -679,34 +594,6 @@ const curBillListIndex = ref(0); ...@@ -679,34 +594,6 @@ const curBillListIndex = ref(0);
const searchKey = ref(""); const searchKey = ref("");
const infoList = ref([ const infoList = ref([
// {
// title: "实体清单",
// subTitle: "Entity List",
// des: "美国商务部工业与安全局依据《出口管理条例》建立的出口管制机制",
// num: 956,
// color: "rgba(206, 79, 81, 1)"
// },
// {
// title: "商业管制清单 ",
// subTitle: "CCL",
// des: "美国《出口管制条例》中列明受管制军民两用物项的清单",
// num: 253,
// color: "rgba(114, 46, 209, 1)"
// },
// {
// title: "关键与新兴技术清单",
// subTitle: "CETs",
// des: "美国为维护其技术领导地位与国家安全而制定的18项优先发展技术清单",
// num: 52,
// color: "rgba(250, 140, 22, 1)"
// },
// {
// title: "军事最终用户清单 ",
// subTitle: "MEU",
// des: "美国商务部制定的限制特定外国实体获取可能用于军事用途的美国技术的清单",
// num: 0,
// color: "rgba(132, 136, 142, 1)"
// }
{ {
title: "SDN清单", title: "SDN清单",
des: "由美国财政部海外资产控制办公室(OFAC)管理,通过切断目标实体或个人与美国金融体系的联系,以实现美国的外交政策和国家安全目标。", des: "由美国财政部海外资产控制办公室(OFAC)管理,通过切断目标实体或个人与美国金融体系的联系,以实现美国的外交政策和国家安全目标。",
...@@ -794,23 +681,6 @@ const customNewsData = ref([ ...@@ -794,23 +681,6 @@ const customNewsData = ref([
} }
]); ]);
const handleSwithCurBill = name => {
if (name === "left") {
if (curBillListIndex.value === 0) {
curBillListIndex.value = billList.value.length - 1;
} else {
curBillListIndex.value--;
}
} else {
if (curBillListIndex.value === billList.value.length - 1) {
curBillListIndex.value = 0;
} else {
curBillListIndex.value++;
}
}
curBill.value = billList.value[curBillListIndex.value];
};
// 发布频度 // 发布频度
const tableData1 = ref([ const tableData1 = ref([
{ {
...@@ -1226,54 +1096,6 @@ const curBill = ref({ ...@@ -1226,54 +1096,6 @@ const curBill = ref({
introductionDate: "" introductionDate: ""
}); });
const handleClickToDetail = () => {
window.sessionStorage.setItem("billId", curBill.value.billId);
router.push("/billLayout");
};
const billTrendList = ref([
{
title: "限制与中国合作",
no: "H.R.2670"
},
{
title: "限制中国获取技术",
no: "H.R.2471"
},
{
title: "禁止在中国建设半导体产能",
no: "H.R.5895"
},
{
title: "限制中国产燃油进口",
no: "S.870"
},
{
title: "禁止政府部门采购受控半导体或服务",
no: "H.R.6395"
},
{
title: "禁止向部分中国实体提供资金",
no: "H.R.3935"
},
{
title: "限制采购中国生产电池",
no: "H.R.7776"
},
{
title: "重视新兴中国技术公司威胁",
no: "H.R.3935"
},
{
title: "禁止卫星出口至中国",
no: "S.870"
},
{
title: "禁购华为设备",
no: "H.R.5895"
}
]);
const warningList = ref([ const warningList = ref([
{ {
title: "兰德智库发布2025中国年度科技报告", title: "兰德智库发布2025中国年度科技报告",
...@@ -1302,56 +1124,6 @@ const warningList = ref([ ...@@ -1302,56 +1124,6 @@ const warningList = ref([
} }
]); ]);
const timelineList = ref([
{
title: "成为公法 No: 119-21。",
time: "2025-07-04",
status: 1
},
{
title: "总统签署",
time: "2025-07-04",
status: 0
},
{
title: "提交总统",
time: "2025-07-03",
status: 0
},
{
title: "重新审议动议搁置案无异议通过。",
time: "2025-07-03 14:31",
status: 0
},
{
title: "关于‘众议院同意参议院修正案’...",
time: "2025-07-02 14:31",
status: 0
}
]);
const areaList = ref([
{
name: "跨境电商",
status: 2
},
{
name: "新能源产业",
status: 4
},
{
name: "半导体产业",
status: 1
},
{
name: "关税",
status: 3
},
{
name: "光伏产业",
status: 2
}
]);
const curBillList = ref([ const curBillList = ref([
{ {
......
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
</div> </div>
<div class="desc-box">{{ val.dsc }}</div> <div class="desc-box">{{ val.dsc }}</div>
<div class="tag-box" > <div class="tag-box" >
<el-tag v-for="tag in val.tag">{{ tag }}</el-tag> <el-tag v-for="tag,index in val.tag" :key="index">{{ tag }}</el-tag>
</div> </div>
</div> </div>
<div class="splitline"></div> <div class="splitline"></div>
...@@ -614,7 +614,7 @@ onMounted(async () => { ...@@ -614,7 +614,7 @@ onMounted(async () => {
} }
.home-main-footer { .home-main-footer {
// width: 100%; // width: 100%;
height: 1059px; // height: 1059px;
background: rgba(248, 249, 250, 1); background: rgba(248, 249, 250, 1);
.home-main-footer-header { .home-main-footer-header {
width: 1600px; width: 1600px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论