提交 2aa68efe authored 作者: yanpeng's avatar yanpeng

finance api3

上级 861441f9
流水线 #334 已通过 于阶段
in 1 分 37 秒
...@@ -4,7 +4,7 @@ import { ElMessage } from "element-plus"; ...@@ -4,7 +4,7 @@ import { ElMessage } from "element-plus";
const request200 = requestP => { const request200 = requestP => {
return requestP.then(data => { return requestP.then(data => {
if (data.code === 200) { if (data.code === 200) {
console.log('返回的数据结构 =>', data.data) console.log("返回的数据结构 =>", data.data);
return data.data; return data.data;
} }
ElMessage({ ElMessage({
...@@ -393,13 +393,13 @@ export function getDomainDistribution(sanctionDate = "2025-11-11") { ...@@ -393,13 +393,13 @@ export function getDomainDistribution(sanctionDate = "2025-11-11") {
* startTime: string * startTime: string
* }[]>} * }[]>}
*/ */
export function getEntitiesList(sanTypeId=1, pageNum = 1, pageSize = 10, sanctionDate = "", isCn = false) { export function getEntitiesList(sanTypeIds = ["1"], pageNum = 1, pageSize = 10, sanctionDate = "", isCn = false) {
return request200( return request200(
request({ request({
method: "POST", method: "POST",
url: "/api/sanctionList/pageQuery", url: "/api/sanctionList/pageQuery",
data: { data: {
sanTypeId, sanTypeIds,
pageNum, pageNum,
pageSize, pageSize,
sanctionDate, sanctionDate,
......
...@@ -102,7 +102,7 @@ const exportControlRoutes = [ ...@@ -102,7 +102,7 @@ const exportControlRoutes = [
name: "singleSanction", name: "singleSanction",
component: () => import("@/views/exportControl/v2.0SingleSanction/index.vue"), component: () => import("@/views/exportControl/v2.0SingleSanction/index.vue"),
meta: { meta: {
title: "单制裁详情", title: "单制裁详情",
dynamicTitle: true dynamicTitle: true
} }
}, },
......
...@@ -267,6 +267,7 @@ const resetModal = () => { ...@@ -267,6 +267,7 @@ const resetModal = () => {
}; };
onMounted(() => { onMounted(() => {
console.log("出口管制-单次制裁");
getUrlParams(); getUrlParams();
getSingleSanctionOverviewData(); getSingleSanctionOverviewData();
}); });
......
...@@ -1377,7 +1377,7 @@ watch( ...@@ -1377,7 +1377,7 @@ watch(
const fetchEntitiesList = async (page = 1, size = 10) => { const fetchEntitiesList = async (page = 1, size = 10) => {
try { try {
console.log("activeResourceTabItem.value.id", activeResourceTabItem.value.id); console.log("activeResourceTabItem.value.id", activeResourceTabItem.value.id);
const res = await getEntitiesList(activeResourceTabItem.value.id.join(","), page, size); const res = await getEntitiesList(activeResourceTabItem.value.id, page, size);
if (res) { if (res) {
entitiesList.value = res.content.map(item => ({ entitiesList.value = res.content.map(item => ({
...item, ...item,
...@@ -1780,6 +1780,7 @@ onMounted(async () => { ...@@ -1780,6 +1780,7 @@ onMounted(async () => {
// 获取出口管制制裁措施 // 获取出口管制制裁措施
await fetchSanctionList(); await fetchSanctionList();
} catch (err) { } catch (err) {
console.log("此处报错?");
console.log(err); console.log(err);
} }
handleGetHylyList(); handleGetHylyList();
......
...@@ -565,7 +565,7 @@ onMounted(async () => { ...@@ -565,7 +565,7 @@ onMounted(async () => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16px; gap: 16px;
display: none;
.tab-item { .tab-item {
cursor: pointer; cursor: pointer;
padding: 4px 20px; padding: 4px 20px;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
</div> </div>
<industrial-impact v-if="activeIndex === 0"></industrial-impact> <industrial-impact v-if="activeIndex === 0"></industrial-impact>
<research-impact v-if="activeIndex === 1"></research-impact> <!-- <research-impact v-if="activeIndex === 1"></research-impact> -->
</div> </div>
</template> </template>
...@@ -23,7 +23,8 @@ import { ref } from "vue"; ...@@ -23,7 +23,8 @@ import { ref } from "vue";
import industrialImpact from "./components/industrialImpact/index.vue"; import industrialImpact from "./components/industrialImpact/index.vue";
import researchImpact from "./components/researchImpact/index.vue"; import researchImpact from "./components/researchImpact/index.vue";
const activeTab = ref(["对华产业影响", "对华科研影响"]); // const activeTab = ref(["对华产业影响", "对华科研影响"]);
const activeTab = ref(["对华产业影响"]);
const activeIndex = ref(0); const activeIndex = ref(0);
</script> </script>
...@@ -44,6 +45,7 @@ const activeIndex = ref(0); ...@@ -44,6 +45,7 @@ const activeIndex = ref(0);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16px; gap: 16px;
display: none;
.tab-item { .tab-item {
cursor: pointer; cursor: pointer;
padding: 4px 20px; padding: 4px 20px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论