提交 a11306b6 authored 作者: 付康's avatar 付康

合并分支 'fk-dev' 到 'pre'

Fk dev 查看合并请求 !269
流水线 #178 已通过 于阶段
in 2 分 31 秒
...@@ -84,6 +84,7 @@ let isShowSearchBar = computed(() => { ...@@ -84,6 +84,7 @@ let isShowSearchBar = computed(() => {
return store.isShowSearchBar; return store.isShowSearchBar;
}); });
const router = useRouter(); const router = useRouter();
const route = useRoute()
const personTypeList = ref([]); const personTypeList = ref([]);
...@@ -231,14 +232,18 @@ const toolList = ref([ ...@@ -231,14 +232,18 @@ const toolList = ref([
]) ])
const handleToModule = (item, index) => { const handleToModule = (item, index) => {
homeActiveTitleIndex.value = index
if (index === 1) { if (index === 1) {
homeActiveTitleIndex.value = index
router.push({ router.push({
path: item.path path: item.path
}) })
} else { } else {
const curRoute = router.resolve({ const curRoute = router.resolve({
path: item.path path: item.path,
query: {
titleIndex: 2
}
}); });
window.open(curRoute.href, "_blank"); window.open(curRoute.href, "_blank");
} }
...@@ -269,7 +274,12 @@ const handleClickToolBox = () => { ...@@ -269,7 +274,12 @@ const handleClickToolBox = () => {
onMounted(() => { onMounted(() => {
handleGetPersonType(); handleGetPersonType();
if (route.query.titleIndex) {
homeActiveTitleIndex.value = Number(route.query.titleIndex)
} else {
homeActiveTitleIndex.value = Number(window.localStorage.getItem('homeActiveTitleIndex')) homeActiveTitleIndex.value = Number(window.localStorage.getItem('homeActiveTitleIndex'))
}
}); });
onUnmounted(() => { onUnmounted(() => {
...@@ -457,26 +467,31 @@ onUnmounted(() => { ...@@ -457,26 +467,31 @@ onUnmounted(() => {
margin-left: 72px; margin-left: 72px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
.menu-item { .menu-item {
margin-top: 36px; margin-top: 36px;
width: 280px; width: 280px;
height: 24px; height: 24px;
display: flex; display: flex;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
.title { .title {
color: var(--color-main-active); color: var(--color-main-active);
font-size: 20px; font-size: 20px;
} }
} }
.icon { .icon {
width: 24px; width: 24px;
height: 24px; height: 24px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.title { .title {
margin-left: 16px; margin-left: 16px;
height: 24px; height: 24px;
...@@ -506,17 +521,20 @@ onUnmounted(() => { ...@@ -506,17 +521,20 @@ onUnmounted(() => {
backdrop-filter: blur(30px); backdrop-filter: blur(30px);
box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1); box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1);
background: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.8);
.menu-content { .menu-content {
width: 562px; width: 562px;
height: 348px; height: 348px;
margin-top: 8px; margin-top: 8px;
margin-left: 72px; margin-left: 72px;
.menu-item { .menu-item {
margin-top: 36px; margin-top: 36px;
width: 280px; width: 280px;
height: 24px; height: 24px;
display: flex; display: flex;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
.title { .title {
color: var(--color-main-active); color: var(--color-main-active);
...@@ -533,6 +551,7 @@ onUnmounted(() => { ...@@ -533,6 +551,7 @@ onUnmounted(() => {
height: 100%; height: 100%;
} }
} }
.title { .title {
margin-left: 16px; margin-left: 16px;
height: 24px; height: 24px;
......
...@@ -148,19 +148,13 @@ const handleClickEvent = item => { ...@@ -148,19 +148,13 @@ const handleClickEvent = item => {
// 跳转人员详情 // 跳转人员详情
const handleClickUser = item => { const handleClickUser = item => {
window.sessionStorage.setItem('curTabName', item.name) window.sessionStorage.setItem('curTabName', item.name)
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// });
// window.open(routeData.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.id personId: item.id
} }
}) });
window.open(routeData.href, "_blank");
}; };
const box1BtnActive = ref(1); const box1BtnActive = ref(1);
......
...@@ -433,21 +433,21 @@ const handleClickAvatar = async member => { ...@@ -433,21 +433,21 @@ const handleClickAvatar = async member => {
return; return;
} }
window.sessionStorage.setItem("curTabName", member.name || ""); window.sessionStorage.setItem("curTabName", member.name || "");
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/characterPage",
// query: {
// type,
// personId: member.id
// }
// });
// window.open(routeData.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
type, type,
personId: member.id personId: member.id
} }
}) });
window.open(routeData.href, "_blank");
// router.push({
// path: "/characterPage",
// query: {
// type,
// personId: member.id
// }
// })
} else { } else {
personTypeName = ""; personTypeName = "";
ElMessage.warning("找不到当前人员的类型值!"); ElMessage.warning("找不到当前人员的类型值!");
......
...@@ -331,23 +331,23 @@ const handleClickToCharacter = async (id, name) => { ...@@ -331,23 +331,23 @@ const handleClickToCharacter = async (id, name) => {
return; return;
} }
window.sessionStorage.setItem("curTabName", name); window.sessionStorage.setItem("curTabName", name);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
// personId: id
// }
// });
// window.open(route.href, "_blank");
router.push(
{
path: "/characterPage", path: "/characterPage",
query: { query: {
type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员 type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
personId: id personId: id
} }
} });
) window.open(route.href, "_blank");
// router.push(
// {
// path: "/characterPage",
// query: {
// type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
// personId: id
// }
// }
// )
} else { } else {
personTypeName = ""; personTypeName = "";
ElMessage.warning("找不到当前人员的类型值!"); ElMessage.warning("找不到当前人员的类型值!");
...@@ -433,34 +433,29 @@ const curBill = ref({ ...@@ -433,34 +433,29 @@ const curBill = ref({
const handleClickToDetail = () => { const handleClickToDetail = () => {
window.sessionStorage.setItem("billId", curBill.value.billId); window.sessionStorage.setItem("billId", curBill.value.billId);
window.sessionStorage.setItem("curTabName", curBill.value.billName); window.sessionStorage.setItem("curTabName", curBill.value.billName);
// const route = router.resolve({ const route = router.resolve({
// path: "/billLayout",
// query: {
// billId: curBill.value.billId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/billLayout", path: "/billLayout",
query: { query: {
billId: curBill.value.billId billId: curBill.value.billId
} }
}) });
window.open(route.href, "_blank");
}; };
// 查看详情 传递参数 // 查看详情 传递参数
const handleClickToDetailO = item => { const handleClickToDetailO = item => {
window.sessionStorage.setItem("billId", item.billId); window.sessionStorage.setItem("billId", item.billId);
window.sessionStorage.setItem("curTabName", item.name || item.signalTitle); window.sessionStorage.setItem("curTabName", item.name || item.signalTitle);
// const route = router.resolve("/billLayout?billId=" + item.billId); const route = router.resolve("/billLayout?billId=" + item.billId);
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/billLayout?billId=" + item.billId) // router.push("/billLayout?billId=" + item.billId)
}; };
// 查看更多风险信号 // 查看更多风险信号
const handleToMoreRiskSignal = () => { const handleToMoreRiskSignal = () => {
// const route = router.resolve("/viewRiskSignal"); const route = router.resolve("/viewRiskSignal");
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/viewRiskSignal") // router.push("/viewRiskSignal")
}; };
// 风险信号 // 风险信号
const warningList = ref([]); const warningList = ref([]);
...@@ -959,19 +954,19 @@ watch(box7selectetedTime, () => { ...@@ -959,19 +954,19 @@ watch(box7selectetedTime, () => {
}); });
// 查看社交媒体详情 // 查看社交媒体详情
const handleToSocialDetail = item => { const handleToSocialDetail = item => {
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.id personId: item.id
} }
}) });
window.open(route.href, "_blank");
// router.push({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// })
}; };
// 关键条款 // 关键条款
const wordCloudData = ref([]); const wordCloudData = ref([]);
......
...@@ -194,21 +194,21 @@ const handleClickAvatar = async item => { ...@@ -194,21 +194,21 @@ const handleClickAvatar = async item => {
return; return;
} }
window.sessionStorage.setItem("curTabName", item.name || ""); window.sessionStorage.setItem("curTabName", item.name || "");
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/characterPage",
// query: {
// type,
// personId: item.id
// }
// });
// window.open(routeData.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
type, type,
personId: item.id personId: item.id
} }
}) });
window.open(routeData.href, "_blank");
// router.push({
// path: "/characterPage",
// query: {
// type,
// personId: item.id
// }
// })
} else { } else {
personTypeName = ""; personTypeName = "";
ElMessage.warning("找不到当前人员的类型值!"); ElMessage.warning("找不到当前人员的类型值!");
......
...@@ -110,19 +110,19 @@ const handleDateChange = (event) => { ...@@ -110,19 +110,19 @@ const handleDateChange = (event) => {
// 跳转行政机构主页 // 跳转行政机构主页
const handleToInstitution = item => { const handleToInstitution = item => {
window.sessionStorage.setItem("curTabName", item.orgName); window.sessionStorage.setItem("curTabName", item.orgName);
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/institution",
// query: {
// id: item.orgId
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { query: {
id: item.orgId id: item.orgId
} }
}) });
window.open(curRoute.href, "_blank");
// router.push({
// path: "/institution",
// query: {
// id: item.orgId
// }
// })
}; };
const refOrganization = ref() const refOrganization = ref()
......
...@@ -514,19 +514,19 @@ const handleGetDepartmentList = async () => { ...@@ -514,19 +514,19 @@ const handleGetDepartmentList = async () => {
// 跳转行政机构主页 // 跳转行政机构主页
const handleToInstitution = item => { const handleToInstitution = item => {
window.sessionStorage.setItem("curTabName", item.orgName); window.sessionStorage.setItem("curTabName", item.orgName);
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/institution",
// query: {
// id: item.orgId
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { query: {
id: item.orgId id: item.orgId
} }
}) });
window.open(curRoute.href, "_blank");
// router.push({
// path: "/institution",
// query: {
// id: item.orgId
// }
// })
}; };
// 跳转全部机构页面 // 跳转全部机构页面
const onNavigateTo = () => { const onNavigateTo = () => {
...@@ -535,16 +535,16 @@ const onNavigateTo = () => { ...@@ -535,16 +535,16 @@ const onNavigateTo = () => {
// 查看更多风险信号 // 查看更多风险信号
const handleToMoreRiskSignal = () => { const handleToMoreRiskSignal = () => {
// const route = router.resolve("/viewRiskSignal"); const route = router.resolve("/viewRiskSignal");
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/viewRiskSignal") // router.push("/viewRiskSignal")
}; };
// 查看更多新闻资讯 // 查看更多新闻资讯
const handleToMoreNews = () => { const handleToMoreNews = () => {
// const route = router.resolve("/newsBrief"); const route = router.resolve("/newsBrief");
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/newsBrief") // router.push("/newsBrief")
}; };
// 最新科技政令 // 最新科技政令
...@@ -588,55 +588,55 @@ const handleClickToDetail = () => { ...@@ -588,55 +588,55 @@ const handleClickToDetail = () => {
const id = box1DataList.value[activeIndex].id; const id = box1DataList.value[activeIndex].id;
window.sessionStorage.setItem("curTabName", box1DataList.value[activeIndex].name); window.sessionStorage.setItem("curTabName", box1DataList.value[activeIndex].name);
// const route = router.resolve({ const route = router.resolve({
// path: "/decreeLayout",
// query: {
// id: id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/decreeLayout", path: "/decreeLayout",
query: { query: {
id: id id: id
} }
}) });
window.open(route.href, "_blank");
// router.push({
// path: "/decreeLayout",
// query: {
// id: id
// }
// })
}; };
// 点击政令库政令 // 点击政令库政令
const handleClickDecree = decree => { const handleClickDecree = decree => {
window.sessionStorage.setItem("curTabName", decree.title); window.sessionStorage.setItem("curTabName", decree.title);
// const route = router.resolve({ const route = router.resolve({
// path: "/decreeLayout",
// query: {
// id: decree.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/decreeLayout", path: "/decreeLayout",
query: { query: {
id: decree.id id: decree.id
} }
}) });
window.open(route.href, "_blank");
// router.push({
// path: "/decreeLayout",
// query: {
// id: decree.id
// }
// })
}; };
const handleKeyDecree = item => { const handleKeyDecree = item => {
window.sessionStorage.setItem("curTabName", item.title); window.sessionStorage.setItem("curTabName", item.title);
// const route = router.resolve({ const route = router.resolve({
// path: "/decreeLayout",
// query: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/decreeLayout", path: "/decreeLayout",
query: { query: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
// router.push({
// path: "/decreeLayout",
// query: {
// id: item.id
// }
// })
}; };
// 风险信号 // 风险信号
...@@ -779,23 +779,23 @@ const handleClickPerson = async item => { ...@@ -779,23 +779,23 @@ const handleClickPerson = async item => {
return; return;
} }
window.sessionStorage.setItem("curTabName", item.name); window.sessionStorage.setItem("curTabName", item.name);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
// personId: item.personId
// }
// });
// window.open(route.href, "_blank");
router.push(
{
path: "/characterPage", path: "/characterPage",
query: { query: {
type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员 type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
personId: item.personId personId: item.personId
} }
} });
) window.open(route.href, "_blank");
// router.push(
// {
// path: "/characterPage",
// query: {
// type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
// personId: item.personId
// }
// }
// )
} else { } else {
personTypeName = ""; personTypeName = "";
ElMessage.warning("找不到当前人员的类型值!"); ElMessage.warning("找不到当前人员的类型值!");
...@@ -1059,21 +1059,13 @@ const handleGetDecreeTypeList = async () => { ...@@ -1059,21 +1059,13 @@ const handleGetDecreeTypeList = async () => {
}; };
// 查看社交媒体详情 // 查看社交媒体详情
const handleToSocialDetail = item => { const handleToSocialDetail = item => {
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// });
// window.open(route.href, "_blank");
router.push(
{
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.id personId: item.id
} }
} });
) window.open(route.href, "_blank");
}; };
const handleChangeCheckedDecreeType = () => { const handleChangeCheckedDecreeType = () => {
handleGetDecreeOrderList(); handleGetDecreeOrderList();
...@@ -1235,21 +1227,15 @@ const handleSwithCurDecree = name => { ...@@ -1235,21 +1227,15 @@ const handleSwithCurDecree = name => {
const searchDecreeText = ref(""); const searchDecreeText = ref("");
const handleSearch = () => { const handleSearch = () => {
window.sessionStorage.setItem("curTabName", `搜索-${searchDecreeText.value}`); window.sessionStorage.setItem("curTabName", `搜索-${searchDecreeText.value}`);
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/searchResults",
// query: {
// searchText: searchDecreeText.value,
// areaName: "政令"
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/searchResults", path: "/searchResults",
query: { query: {
searchText: searchDecreeText.value, searchText: searchDecreeText.value,
areaName: "政令" areaName: "政令"
} }
}) });
window.open(curRoute.href, "_blank");
}; };
// 关键机构 // 关键机构
......
...@@ -170,19 +170,19 @@ const onWordWrap = (word, num) => { ...@@ -170,19 +170,19 @@ const onWordWrap = (word, num) => {
} }
const handleClickDecree = decree => { const handleClickDecree = decree => {
// const route = router.resolve({ const route = router.resolve({
// path: "/decreeLayout",
// query: {
// id: decree.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/decreeLayout", path: "/decreeLayout",
query: { query: {
id: decree.id id: decree.id
} }
}) });
window.open(route.href, "_blank");
// router.push({
// path: "/decreeLayout",
// query: {
// id: decree.id
// }
// })
}; };
// 冲突关系 // 冲突关系
......
...@@ -243,19 +243,19 @@ const handleGetSummary = async () => { ...@@ -243,19 +243,19 @@ const handleGetSummary = async () => {
// }; // };
const handleShowReport = () => { const handleShowReport = () => {
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/decree/decreeOriginal",
// query: {
// id: route.query.id
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/decree/decreeOriginal", path: "/decree/decreeOriginal",
query: { query: {
id: route.query.id id: route.query.id
} }
}) });
window.open(curRoute.href, "_blank");
// router.push({
// path: "/decree/decreeOriginal",
// query: {
// id: route.query.id
// }
// })
}; };
const handleToInstitution = () => { const handleToInstitution = () => {
......
...@@ -174,35 +174,35 @@ const handleGetPrev = async () => { ...@@ -174,35 +174,35 @@ const handleGetPrev = async () => {
}; };
// 跳转行政机构主页 // 跳转行政机构主页
const handleToInstitution = item => { const handleToInstitution = item => {
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/institution",
// query: {
// id: item.orgId
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { query: {
id: item.orgId id: item.orgId
} }
}) });
window.open(curRoute.href, "_blank");
// router.push({
// path: "/institution",
// query: {
// id: item.orgId
// }
// })
}; };
// 跳转科技政令详情页 // 跳转科技政令详情页
const handleClickDecree = item => { const handleClickDecree = item => {
// const route = router.resolve({ const route = router.resolve({
// path: "/decreeLayout",
// query: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/decreeLayout", path: "/decreeLayout",
query: { query: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
// router.push({
// path: "/decreeLayout",
// query: {
// id: item.id
// }
// })
}; };
// 法律依据 // 法律依据
...@@ -227,21 +227,15 @@ const handleGetLaws = async () => { ...@@ -227,21 +227,15 @@ const handleGetLaws = async () => {
const handleClickBull = decree => { const handleClickBull = decree => {
window.sessionStorage.setItem("billId", decree.billId); window.sessionStorage.setItem("billId", decree.billId);
window.sessionStorage.setItem("curTabName", decree.title); window.sessionStorage.setItem("curTabName", decree.title);
// const route = router.resolve({ const route = router.resolve({
// path: "/billLayout",
// query: {
// billId: decree.billId
// }
// });
// console.log(route);
// window.open(route.href, "_blank");
router.push({
path: "/billLayout", path: "/billLayout",
query: { query: {
billId: decree.billId billId: decree.billId
} }
}) });
console.log(route);
window.open(route.href, "_blank");
}; };
onMounted(() => { onMounted(() => {
......
...@@ -318,32 +318,28 @@ const handleGetOrgnization = async () => { ...@@ -318,32 +318,28 @@ const handleGetOrgnization = async () => {
}; };
// 跳转行政机构主页 // 跳转行政机构主页
const handleToInstitution = item => { const handleToInstitution = item => {
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/institution",
// query: { id: item.id }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { id: item.id } query: { id: item.id }
}) });
window.open(curRoute.href, "_blank");
}; };
// 跳转人员详情 // 跳转人员详情
const handleClickUser = item => { const handleClickUser = item => {
window.sessionStorage.setItem('curTabName', item.name) window.sessionStorage.setItem('curTabName', item.name)
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// });
// window.open(routeData.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.id personId: item.id
} }
}) });
window.open(routeData.href, "_blank");
// router.push({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// })
}; };
onMounted(() => { onMounted(() => {
......
...@@ -403,36 +403,25 @@ const handleOrganization = (node) => { ...@@ -403,36 +403,25 @@ const handleOrganization = (node) => {
}; };
// 跳转机构主页 // 跳转机构主页
const handleToInstitution = () => { const handleToInstitution = () => {
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/institution",
// query: {
// id: organizationInfo.node.id
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { query: {
id: organizationInfo.node.id id: organizationInfo.node.id
} }
}) });
window.open(curRoute.href, "_blank");
}; };
// 跳转人员详情 // 跳转人员详情
const handleClickUser = item => { const handleClickUser = item => {
window.sessionStorage.setItem('curTabName', item.name) window.sessionStorage.setItem('curTabName', item.name)
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// });
// window.open(routeData.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.id personId: item.id
} }
}) });
window.open(routeData.href, "_blank");
}; };
onMounted(() => { onMounted(() => {
......
...@@ -822,20 +822,15 @@ const handleToPosi = id => { ...@@ -822,20 +822,15 @@ const handleToPosi = id => {
// 跳转到单项制裁页面 // 跳转到单项制裁页面
const handleToRiskSignalDetail = item => { const handleToRiskSignalDetail = item => {
window.sessionStorage.setItem("curTabName", item.title); window.sessionStorage.setItem("curTabName", item.title);
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/exportControl/singleSanction",
// query: {
// id: item.sanId
// }
// });
// // 打开新页面
// window.open(routeData.href, "_blank");
router.push({
path: "/exportControl/singleSanction", path: "/exportControl/singleSanction",
query: { query: {
id: item.sanId id: item.sanId
} }
}) });
// 打开新页面
window.open(routeData.href, "_blank");
}; };
const sanctionList = ref([]); const sanctionList = ref([]);
...@@ -891,21 +886,14 @@ const checkedTime = ref(["全部时间"]); ...@@ -891,21 +886,14 @@ const checkedTime = ref(["全部时间"]);
// 跳转到单条制裁页面,单独打开一个新页面 // 跳转到单条制裁页面,单独打开一个新页面
const handleTitleClick = item => { const handleTitleClick = item => {
window.sessionStorage.setItem("curTabName", `${item.year}-${item.dateStr}${item.title}》`); window.sessionStorage.setItem("curTabName", `${item.year}-${item.dateStr}${item.title}》`);
// const route = router.resolve({ const route = router.resolve({
// path: "/exportControl/singleSanction",
// query: {
// id: item.id,
// sanTypeId: item.sanTypeId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/exportControl/singleSanction", path: "/exportControl/singleSanction",
query: { query: {
id: item.id, id: item.id,
sanTypeId: item.sanTypeId sanTypeId: item.sanTypeId
} }
}) });
window.open(route.href, "_blank");
}; };
const handleCompClick = item => { const handleCompClick = item => {
...@@ -1047,19 +1035,14 @@ onMounted(async () => { ...@@ -1047,19 +1035,14 @@ onMounted(async () => {
}); });
// 查看社交媒体详情 // 查看社交媒体详情
const handleToSocialDetail = item => { const handleToSocialDetail = item => {
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.id personId: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
// 获取趋势图数据 // 获取趋势图数据
const fetchTrendData = async () => { const fetchTrendData = async () => {
...@@ -1175,55 +1158,38 @@ const handleToEntityList = item => { ...@@ -1175,55 +1158,38 @@ const handleToEntityList = item => {
"curTabName", "curTabName",
entitiesDataInfoList.value[currentCarouselIndex.value].postDate + " 《实体清单新增条目》" entitiesDataInfoList.value[currentCarouselIndex.value].postDate + " 《实体清单新增条目》"
); );
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/exportControl/singleSanction",
// query: {
// id: id
// }
// });
// // 打开一个新页面
// window.open(routeData.href, "_blank");
router.push({
path: "/exportControl/singleSanction", path: "/exportControl/singleSanction",
query: { query: {
id: id id: id
} }
}) });
// 打开一个新页面
window.open(routeData.href, "_blank");
}; };
// 跳转到V2.0实体清单无ID // 跳转到V2.0实体清单无ID
const handleToEntityListNoId = item => { const handleToEntityListNoId = item => {
console.log("这是什么数据 =>", item); console.log("这是什么数据 =>", item);
if (item.nameZh == "实体清单") { if (item.nameZh == "实体清单") {
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/exportControl/entityList",
// query: {
// sanTypeId: item.id
// }
// });
// // 打开一个新页面
// window.open(routeData.href, "_blank");
router.push({
path: "/exportControl/entityList", path: "/exportControl/entityList",
query: { query: {
sanTypeId: item.id sanTypeId: item.id
} }
}) });
// 打开一个新页面
window.open(routeData.href, "_blank");
} else if (item.nameZh == "商业管制清单") { } else if (item.nameZh == "商业管制清单") {
// const routeData = router.resolve({ const routeData = router.resolve({
// path: "/exportControl/commercialControlList",
// query: {
// sanTypeId: item.id
// }
// });
// // 打开一个新页面
// window.open(routeData.href, "_blank");
router.push({
path: "/exportControl/commercialControlList", path: "/exportControl/commercialControlList",
query: { query: {
sanTypeId: item.id sanTypeId: item.id
} }
}) });
// 打开一个新页面
window.open(routeData.href, "_blank");
} else { } else {
return; return;
} }
...@@ -1697,21 +1663,15 @@ const fetchNewsInfo = async () => { ...@@ -1697,21 +1663,15 @@ const fetchNewsInfo = async () => {
const handlePerClick = item => { const handlePerClick = item => {
// console.log("点击了社交媒体消息:", item); // console.log("点击了社交媒体消息:", item);
window.sessionStorage.setItem("curTabName", item.name); window.sessionStorage.setItem("curTabName", item.name);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// type: item.type || [1, 2, 3][Math.floor(Math.random() * 3)],
// personId: item.personId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
type: item.type || [1, 2, 3][Math.floor(Math.random() * 3)], type: item.type || [1, 2, 3][Math.floor(Math.random() * 3)],
personId: item.personId personId: item.personId
} }
}) });
window.open(route.href, "_blank");
}; };
// 处理点击社交媒体消息的方法 // 处理点击社交媒体消息的方法
// const handleInfoClick = item => { // const handleInfoClick = item => {
...@@ -1793,35 +1753,29 @@ const chart1Data = ref({ ...@@ -1793,35 +1753,29 @@ const chart1Data = ref({
const handleSanc = item => { const handleSanc = item => {
console.log(item); console.log(item);
window.sessionStorage.setItem("curTabName", `${item.postDate}${item.title}》`); window.sessionStorage.setItem("curTabName", `${item.postDate}${item.title}》`);
// const route = router.resolve({ const route = router.resolve({
// path: "/exportControl/singleSanction",
// query: {
// id: item.id,
// sanTypeId: activeResourceTabItem.value.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/exportControl/singleSanction", path: "/exportControl/singleSanction",
query: { query: {
id: item.id, id: item.id,
sanTypeId: activeResourceTabItem.value.id sanTypeId: activeResourceTabItem.value.id
} }
}) });
window.open(route.href, "_blank");
}; };
// 查看更多风险信号 // 查看更多风险信号
const handleToMoreRiskSignal = () => { const handleToMoreRiskSignal = () => {
// const route = router.resolve("/viewRiskSignal"); const route = router.resolve("/viewRiskSignal");
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/viewRiskSignal") // router.push("/viewRiskSignal")
}; };
// 查看更多新闻资讯 // 查看更多新闻资讯
const handleToMoreNews = () => { const handleToMoreNews = () => {
// const route = router.resolve("/newsBrief"); const route = router.resolve("/newsBrief");
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/newsBrief") // router.push("/newsBrief")
}; };
const handleNewsInfoClick = item => { const handleNewsInfoClick = item => {
...@@ -1848,21 +1802,14 @@ const handleSwithCurPolicy = name => { ...@@ -1848,21 +1802,14 @@ const handleSwithCurPolicy = name => {
const handleSearch = () => { const handleSearch = () => {
window.sessionStorage.setItem("curTabName", `搜索-${searchExportControlText.value}`); window.sessionStorage.setItem("curTabName", `搜索-${searchExportControlText.value}`);
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/searchResults",
// query: {
// searchText: searchExportControlText.value,
// areaName: "实体清单"
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/searchResults", path: "/searchResults",
query: { query: {
searchText: searchExportControlText.value, searchText: searchExportControlText.value,
areaName: "实体清单" areaName: "实体清单"
} }
}) });
window.open(curRoute.href, "_blank");
}; };
onMounted(async () => { onMounted(async () => {
......
...@@ -181,58 +181,40 @@ import { useRoute } from "vue-router"; ...@@ -181,58 +181,40 @@ import { useRoute } from "vue-router";
const route = useRoute(); const route = useRoute();
// 处理点击发布机构的方法 // 处理点击发布机构的方法
const handleClickOrg = item => { const handleClickOrg = item => {
// console.log("点击了发布机构:", item); console.log("点击了发布机构:", item);
// const route = router.resolve({ const route = router.resolve({
// path: "/institution",
// query: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { query: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
// 处理点击关键人物的方法 // 处理点击关键人物的方法
const handlePerClick = item => { const handlePerClick = item => {
console.log("点击了关键人物:", item); console.log("点击了关键人物:", item);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// type: item.type,
// personId: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
type: item.type, type: item.type,
personId: item.id personId: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
// 处理点击实体名称的方法 // 处理点击实体名称的方法
const handleClick = item => { const handleClick = item => {
// console.log("点击了实体名称:", item); console.log("点击了实体名称:", item);
// const route = router.resolve({ const route = router.resolve({
// path: "/exportControl/singleSanction",
// query: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/exportControl/singleSanction", path: "/exportControl/singleSanction",
query: { query: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
......
...@@ -211,59 +211,41 @@ import { useRoute } from "vue-router"; ...@@ -211,59 +211,41 @@ import { useRoute } from "vue-router";
const route = useRoute(); const route = useRoute();
// 处理点击发布机构的方法 // 处理点击发布机构的方法
const handleClickOrg = item => { const handleClickOrg = item => {
// console.log("点击了发布机构:", item); console.log("点击了发布机构:", item);
// const route = router.resolve({ const route = router.resolve({
// path: "/institution",
// query: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { query: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
// 处理点击关键人物的方法 // 处理点击关键人物的方法
const handlePerClick = item => { const handlePerClick = item => {
console.log("点击了关键人物:", item); console.log("点击了关键人物:", item);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// type: item.type,
// personId: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
type: item.type, type: item.type,
personId: item.id personId: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
// 处理点击实体名称的方法 // 处理点击实体名称的方法
const handleClick = item => { const handleClick = item => {
// console.log("点击了实体名称:", item); // console.log("点击了实体名称:", item);
window.sessionStorage.setItem("curTabName", `${item.year}-${item.date}《${item.name}》`); window.sessionStorage.setItem("curTabName", `${item.year}-${item.date}《${item.name}》`);
// const route = router.resolve({ const route = router.resolve({
// path: "/exportControl/singleSanction",
// query: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/exportControl/singleSanction", path: "/exportControl/singleSanction",
query: { query: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
const selectedDomain = ref(0); const selectedDomain = ref(0);
......
...@@ -216,19 +216,13 @@ const handleCompClick = item => { ...@@ -216,19 +216,13 @@ const handleCompClick = item => {
const handleClickDp = () => { const handleClickDp = () => {
// console.log("点击了发布机构:", props.data); // console.log("点击了发布机构:", props.data);
window.sessionStorage.setItem("curTabName", props.data.postOrgName); window.sessionStorage.setItem("curTabName", props.data.postOrgName);
// const route = router.resolve({ const route = router.resolve({
// path: "/institution",
// query: {
// id: props.data.postOrgId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/institution", path: "/institution",
query: { query: {
id: props.data.postOrgId id: props.data.postOrgId
} }
}) });
window.open(route.href, "_blank");
}; };
// 50%规则子企业弹框逻辑 // 50%规则子企业弹框逻辑
...@@ -390,22 +384,14 @@ const props = defineProps({ ...@@ -390,22 +384,14 @@ const props = defineProps({
// 跳转到人物页 // 跳转到人物页
const handleClick = () => { const handleClick = () => {
window.sessionStorage.setItem("curTabName", props.data.postPersonName); window.sessionStorage.setItem("curTabName", props.data.postPersonName);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// // type: props.data.type,
// personId: props.data.postPersonId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
// type: props.data.type, // type: props.data.type,
personId: props.data.postPersonId personId: props.data.postPersonId
} }
}) });
window.open(route.href, "_blank");
}; };
// 计算属性处理数据 // 计算属性处理数据
......
...@@ -916,19 +916,13 @@ const handleCurrentChange = page => { ...@@ -916,19 +916,13 @@ const handleCurrentChange = page => {
const handleToReportDetail = (item) => { const handleToReportDetail = (item) => {
if (!item?.id) return; if (!item?.id) return;
window.sessionStorage.setItem("curTabName", item.name); window.sessionStorage.setItem("curTabName", item.name);
// const route = router.resolve({ const route = router.resolve({
// name: "ReportDetail",
// params: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
name: "ReportDetail", name: "ReportDetail",
params: { params: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
//获取行业领域字典 //获取行业领域字典
// getHylyList // getHylyList
......
...@@ -125,20 +125,14 @@ const handleGetThinkTankReport = async () => { ...@@ -125,20 +125,14 @@ const handleGetThinkTankReport = async () => {
}; };
const toReport = () => { const toReport = () => {
console.log(reportUrl.value, "reportUrl.valuereportUrl.value"); console.log(reportUrl.value, "reportUrl.valuereportUrl.value");
// const route = router.resolve({ const route = router.resolve({
// name: "ReportOriginal",
// params: {
// id: router.currentRoute._value.params.id
// }
// });
// console.log("route.href", route.href);
// window.open(route.href, "_blank");
router.push({
name: "ReportOriginal", name: "ReportOriginal",
params: { params: {
id: router.currentRoute._value.params.id id: router.currentRoute._value.params.id
} }
}) });
console.log("route.href", route.href);
window.open(route.href, "_blank");
}; };
const tabActiveName = ref("报告分析"); const tabActiveName = ref("报告分析");
......
...@@ -201,19 +201,13 @@ const scrollToWrapTop = () => { ...@@ -201,19 +201,13 @@ const scrollToWrapTop = () => {
const toReport = () => { const toReport = () => {
// const route = router.resolve({ const route = router.resolve({
// name: "ReportOriginal",
// params: {
// id: router.currentRoute._value.params.id
// }
// });
// window.open(route.href, "_blank");
router.push({
name: "ReportOriginal", name: "ReportOriginal",
params: { params: {
id: router.currentRoute._value.params.id id: router.currentRoute._value.params.id
} }
}) });
window.open(route.href, "_blank");
}; };
// 当前页展示的数据 // 当前页展示的数据
const filteredOpinions = computed(() => box1Data.value); const filteredOpinions = computed(() => box1Data.value);
...@@ -230,15 +224,11 @@ const handleBillMoreClick = (bill) => { ...@@ -230,15 +224,11 @@ const handleBillMoreClick = (bill) => {
if (!billId) { if (!billId) {
return; return;
} }
// const route = router.resolve({ const route = router.resolve({
// path: "/billLayout/bill/introduction",
// query: { billId: String(billId) }
// });
// window.open(route.href, "_blank");
router.push({
path: "/billLayout/bill/introduction", path: "/billLayout/bill/introduction",
query: { billId: String(billId) } query: { billId: String(billId) }
}) });
window.open(route.href, "_blank");
}; };
/** 政策建议关联法案:新标签页打开政令介绍页*/ /** 政策建议关联法案:新标签页打开政令介绍页*/
const handleAdministrativeMoreClick = (ad) => { const handleAdministrativeMoreClick = (ad) => {
...@@ -246,15 +236,11 @@ const handleAdministrativeMoreClick = (ad) => { ...@@ -246,15 +236,11 @@ const handleAdministrativeMoreClick = (ad) => {
if (!id) { if (!id) {
return; return;
} }
// const route = router.resolve({ const route = router.resolve({
// path: "/decreeLayout/overview/introduction",
// query: { id: String(id) }
// });
// window.open(route.href, "_blank");
router.push({
path: "/decreeLayout/overview/introduction", path: "/decreeLayout/overview/introduction",
query: { id: String(id) } query: { id: String(id) }
}) });
window.open(route.href, "_blank");
}; };
const handleSearchOpinions = () => { const handleSearchOpinions = () => {
// 搜索时默认切回“全部”标签 // 搜索时默认切回“全部”标签
......
...@@ -239,15 +239,11 @@ import TipTab from "@/views/thinkTank/TipTab/index.vue"; ...@@ -239,15 +239,11 @@ import TipTab from "@/views/thinkTank/TipTab/index.vue";
const router = useRouter(); const router = useRouter();
const goToAllThinkTank = () => { const goToAllThinkTank = () => {
const thinkTankId = props?.thinkInfo?.thinkTankId || props?.thinkInfo?.id; const thinkTankId = props?.thinkInfo?.thinkTankId || props?.thinkInfo?.id;
// const route = router.resolve({ const route = router.resolve({
// name: "MultiThinkTankViewAnalysis",
// params: { id: thinkTankId }
// });
// window.open(route.href, "_blank");
router.push({
name: "MultiThinkTankViewAnalysis", name: "MultiThinkTankViewAnalysis",
params: { id: thinkTankId } params: { id: thinkTankId }
}) });
window.open(route.href, "_blank");
}; };
...@@ -367,19 +363,13 @@ const handleClickReportAuthor = async (author) => { ...@@ -367,19 +363,13 @@ const handleClickReportAuthor = async (author) => {
const res = await getPersonSummaryInfo(params); const res = await getPersonSummaryInfo(params);
if (res.code !== 200 || !res.data) return; if (res.code !== 200 || !res.data) return;
window.sessionStorage.setItem("curTabName", author?.name || ""); window.sessionStorage.setItem("curTabName", author?.name || "");
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// personId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId personId
} }
}) });
window.open(route.href, "_blank");
}; };
const riskSignal = computed(() => { const riskSignal = computed(() => {
const info = props.thinkInfo || {}; const info = props.thinkInfo || {};
...@@ -527,20 +517,7 @@ const majorOpinions = ref([ ...@@ -527,20 +517,7 @@ const majorOpinions = ref([
]); ]);
//处理点击详情页事件 //处理点击详情页事件
const handleOpenReportOriginal = item => { const handleOpenReportOriginal = item => {
// const route = router.resolve({ const route = router.resolve({
// name: "ReportOriginal",
// params: {
// id: router.currentRoute._value.params.id
// },
// query: {
// currentPage: currentPage.value,
// pageSize: pageSize.value,
// opinionId: item?.id ?? "",
// opinionContent: item?.content ?? ""
// }
// });
// window.open(route.href, "_blank");
router.push({
name: "ReportOriginal", name: "ReportOriginal",
params: { params: {
id: router.currentRoute._value.params.id id: router.currentRoute._value.params.id
...@@ -551,7 +528,8 @@ const handleOpenReportOriginal = item => { ...@@ -551,7 +528,8 @@ const handleOpenReportOriginal = item => {
opinionId: item?.id ?? "", opinionId: item?.id ?? "",
opinionContent: item?.content ?? "" opinionContent: item?.content ?? ""
} }
}) });
window.open(route.href, "_blank");
}; };
const tabActiveName = ref("报告分析"); const tabActiveName = ref("报告分析");
......
...@@ -504,15 +504,11 @@ const handleBillMoreClick = (bill) => { ...@@ -504,15 +504,11 @@ const handleBillMoreClick = (bill) => {
if (!billId) { if (!billId) {
return; return;
} }
// const route = router.resolve({ const route = router.resolve({
// path: "/billLayout/bill/introduction",
// query: { billId: String(billId) }
// });
// window.open(route.href, "_blank");
router.push({
path: "/billLayout/bill/introduction", path: "/billLayout/bill/introduction",
query: { billId: String(billId) } query: { billId: String(billId) }
}) });
window.open(route.href, "_blank");
}; };
/** 政策建议关联法案:新标签页打开政令介绍页*/ /** 政策建议关联法案:新标签页打开政令介绍页*/
const handleAdministrativeMoreClick = (ad) => { const handleAdministrativeMoreClick = (ad) => {
...@@ -520,15 +516,11 @@ const handleAdministrativeMoreClick = (ad) => { ...@@ -520,15 +516,11 @@ const handleAdministrativeMoreClick = (ad) => {
if (!id) { if (!id) {
return; return;
} }
// const route = router.resolve({ const route = router.resolve({
// path: "/decreeLayout/overview/introduction",
// query: { id: String(id) }
// });
// window.open(route.href, "_blank");
router.push({
path: "/decreeLayout/overview/introduction", path: "/decreeLayout/overview/introduction",
query: { id: String(id) } query: { id: String(id) }
}) });
window.open(route.href, "_blank");
}; };
// 政策建议涉及部门分布(饼图) // 政策建议涉及部门分布(饼图)
const box2Data = ref([]); const box2Data = ref([]);
...@@ -1228,19 +1220,14 @@ function mapPolicyRowToView(row) { ...@@ -1228,19 +1220,14 @@ function mapPolicyRowToView(row) {
const toDetail = item => { const toDetail = item => {
window.sessionStorage.setItem("curTabName", item.contentZh ?? item.content ?? ""); window.sessionStorage.setItem("curTabName", item.contentZh ?? item.content ?? "");
// const route = router.resolve({ const route = router.resolve({
// name: "ReportOriginal",
// params: {
// id: item.reportId
// }
// });
// window.open(route.href, "_blank");
router.push({
name: "ReportOriginal", name: "ReportOriginal",
params: { params: {
id: item.reportId id: item.reportId
} }
}) });
window.open(route.href, "_blank");
}; };
const total = ref(0); const total = ref(0);
......
...@@ -111,19 +111,14 @@ const searchReport = ref('') ...@@ -111,19 +111,14 @@ const searchReport = ref('')
const handleToReportDetail = (item) => { const handleToReportDetail = (item) => {
window.sessionStorage.setItem('curTabName', item.name) window.sessionStorage.setItem('curTabName', item.name)
// const route = router.resolve({ const route = router.resolve({
// name: 'ReportDetail',
// params: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
name: 'ReportDetail', name: 'ReportDetail',
params: { params: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
} }
const hearingData = ref([ const hearingData = ref([
// 军事类(10条) // 军事类(10条)
......
...@@ -726,20 +726,15 @@ const handleClickPerson = async item => { ...@@ -726,20 +726,15 @@ const handleClickPerson = async item => {
return !Number.isNaN(typeIdNum) && !Number.isNaN(personTypeNum) && typeIdNum === personTypeNum; return !Number.isNaN(typeIdNum) && !Number.isNaN(personTypeNum) && typeIdNum === personTypeNum;
}); });
console.log("arr", arr); console.log("arr", arr);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.personId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.personId personId: item.personId
} }
}) });
window.open(route.href, "_blank");
} else { } else {
ElMessage.warning("找不到当前人员的类型值!"); ElMessage.warning("找不到当前人员的类型值!");
......
...@@ -205,9 +205,8 @@ const handleClick = tank => { ...@@ -205,9 +205,8 @@ const handleClick = tank => {
ElMessage.warning("当前智库id为空,无法进入详情页"); ElMessage.warning("当前智库id为空,无法进入详情页");
return; return;
} }
// const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } }); const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } });
// window.open(curRoute.href, "_blank"); window.open(curRoute.href, "_blank");
router.push({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } })
}; };
onMounted(async () => { onMounted(async () => {
handleGetThinkTankList(); handleGetThinkTankList();
......
...@@ -695,19 +695,13 @@ const handleClickToDetail = () => { ...@@ -695,19 +695,13 @@ const handleClickToDetail = () => {
const toDetaile = () => { const toDetaile = () => {
window.sessionStorage.setItem("curTabName", box1Data.value[box1DataIndex.value].reportName); window.sessionStorage.setItem("curTabName", box1Data.value[box1DataIndex.value].reportName);
// const route = router.resolve({ const route = router.resolve({
// name: "ReportDetail",
// params: {
// id: box1Data.value[box1DataIndex.value].reportId
// }
// });
// window.open(route.href, "_blank");
router.push({
name: "ReportDetail", name: "ReportDetail",
params: { params: {
id: box1Data.value[box1DataIndex.value].reportId id: box1Data.value[box1DataIndex.value].reportId
} }
}) });
window.open(route.href, "_blank");
}; };
// 切换当前智库 // 切换当前智库
...@@ -1670,19 +1664,13 @@ const handleGetHylyList = async () => { ...@@ -1670,19 +1664,13 @@ const handleGetHylyList = async () => {
}; };
// 查看社交媒体详情 // 查看社交媒体详情
const handleToSocialDetail = item => { const handleToSocialDetail = item => {
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// personId: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
personId: item.id personId: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
const selectedAreaList = ref([RESOURCE_FILTER_ALL_AREA]); const selectedAreaList = ref([RESOURCE_FILTER_ALL_AREA]);
...@@ -1986,23 +1974,23 @@ const handleClick = tank => { ...@@ -1986,23 +1974,23 @@ const handleClick = tank => {
ElMessage.warning("当前智库id为空,无法进入详情页"); ElMessage.warning("当前智库id为空,无法进入详情页");
return; return;
} }
// const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } }); const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } });
// window.open(curRoute.href, "_blank"); window.open(curRoute.href, "_blank");
router.push({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } }) // router.push({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } })
}; };
// 查看更多风险信号 // 查看更多风险信号
const handleToMoreRiskSignal = () => { const handleToMoreRiskSignal = () => {
// const route = router.resolve("/viewRiskSignal"); const route = router.resolve("/viewRiskSignal");
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/viewRiskSignal") // router.push("/viewRiskSignal")
}; };
// 查看更多新闻资讯 // 查看更多新闻资讯
const handleToMoreNews = () => { const handleToMoreNews = () => {
// const route = router.resolve("/newsBrief"); const route = router.resolve("/newsBrief");
// window.open(route.href, "_blank"); window.open(route.href, "_blank");
router.push("/newsBrief") // router.push("/newsBrief")
}; };
// 点击人物头像,跳转到人物主页 // 点击人物头像,跳转到人物主页
...@@ -2042,21 +2030,14 @@ const handleClickPerson = async item => { ...@@ -2042,21 +2030,14 @@ const handleClickPerson = async item => {
return; return;
} }
window.sessionStorage.setItem("curTabName", item.personName); window.sessionStorage.setItem("curTabName", item.personName);
// const route = router.resolve({ const route = router.resolve({
// path: "/characterPage",
// query: {
// type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
// personId: item.personId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/characterPage", path: "/characterPage",
query: { query: {
type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员 type: type, // type=1为科技企业领袖,2为国会议员,3为智库研究人员
personId: item.personId personId: item.personId
} }
}) });
window.open(route.href, "_blank");
} else { } else {
personTypeName = ""; personTypeName = "";
ElMessage.warning("找不到当前人员的类型值!"); ElMessage.warning("找不到当前人员的类型值!");
...@@ -2071,55 +2052,36 @@ const handleClickPerson = async item => { ...@@ -2071,55 +2052,36 @@ const handleClickPerson = async item => {
// 点击新闻条目,跳转到新闻分析页 // 点击新闻条目,跳转到新闻分析页
const handleToNewsAnalysis = news => { const handleToNewsAnalysis = news => {
// const route = router.resolve({ const route = router.resolve({
// path: "/newsAnalysis",
// query: {
// newsId: news.newsId
// }
// });
// window.open(route.href, "_blank");
router.push({
path: "/newsAnalysis", path: "/newsAnalysis",
query: { query: {
newsId: news.newsId newsId: news.newsId
} }
}) });
window.open(route.href, "_blank");
}; };
const handleToReportDetail = item => { const handleToReportDetail = item => {
window.sessionStorage.setItem("curTabName", item.name); window.sessionStorage.setItem("curTabName", item.name);
// const route = router.resolve({ const route = router.resolve({
// name: "ReportDetail",
// params: {
// id: item.id
// }
// });
// window.open(route.href, "_blank");
router.push({
name: "ReportDetail", name: "ReportDetail",
params: { params: {
id: item.id id: item.id
} }
}) });
window.open(route.href, "_blank");
}; };
const handleSearch = () => { const handleSearch = () => {
window.sessionStorage.setItem("curTabName", `搜索-${searchThinktankText.value}`); window.sessionStorage.setItem("curTabName", `搜索-${searchThinktankText.value}`);
// const curRoute = router.resolve({ const curRoute = router.resolve({
// path: "/searchResults",
// query: {
// searchText: searchThinktankText.value,
// areaName: "智库"
// }
// });
// window.open(curRoute.href, "_blank");
router.push({
path: "/searchResults", path: "/searchResults",
query: { query: {
searchText: searchThinktankText.value, searchText: searchThinktankText.value,
areaName: "智库" areaName: "智库"
} }
}) });
window.open(curRoute.href, "_blank");
}; };
onMounted(async () => { onMounted(async () => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论