提交 764cf528 authored 作者: 张伊明's avatar 张伊明

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

feat:加密解密导致智库错误修复 查看合并请求 !384
流水线 #604 已通过 于阶段
in 4 分 10 秒
...@@ -37,6 +37,8 @@ const setChart = (option, chartId, allowClick, selectParam) => { ...@@ -37,6 +37,8 @@ const setChart = (option, chartId, allowClick, selectParam) => {
}); });
}); });
if (allowClick) { if (allowClick) {
chart.on('click', function (params) { chart.on('click', function (params) {
// 图例分页箭头只负责翻页,不走任何跳转 // 图例分页箭头只负责翻页,不走任何跳转
......
...@@ -293,8 +293,10 @@ import defaultNewsIcon from "@/assets/icons/default-icon-news.png"; ...@@ -293,8 +293,10 @@ import defaultNewsIcon from "@/assets/icons/default-icon-news.png";
import AreaTag from "@/components/base/AreaTag/index.vue"; import AreaTag from "@/components/base/AreaTag/index.vue";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { getDecodedParams } from "@/utils/goToPage";
const router = useRouter(); const router = useRouter();
const thinkTankId = computed(() => getDecodedParams());
const loading = ref(false); const loading = ref(false);
const pageScrollRef = ref(null); const pageScrollRef = ref(null);
...@@ -475,8 +477,10 @@ const selectableDepartment = ref([]); ...@@ -475,8 +477,10 @@ const selectableDepartment = ref([]);
const handleGetThinkPolicyIndustry = async () => { const handleGetThinkPolicyIndustry = async () => {
aiContentPolicyPt1.value = ""; aiContentPolicyPt1.value = "";
try { try {
const id = thinkTankId.value;
if (!id) return;
const parmas = { const parmas = {
id: router.currentRoute._value.params.id, id,
year: box1SelectYear.value year: box1SelectYear.value
}; };
const res = await getThinkPolicyIndustry(parmas); const res = await getThinkPolicyIndustry(parmas);
...@@ -570,8 +574,10 @@ const box2TotalData = ref([]); ...@@ -570,8 +574,10 @@ const box2TotalData = ref([]);
const handleGetPolicyAdviceDeptDistribution = async () => { const handleGetPolicyAdviceDeptDistribution = async () => {
aiContentPolicyPt2.value = ""; aiContentPolicyPt2.value = "";
try { try {
const id = thinkTankId.value;
if (!id) return;
const parmas = { const parmas = {
id: router.currentRoute._value.params.id, id,
year: box2SelectYear.value year: box2SelectYear.value
}; };
const res = await getPolicyAdviceDeptDistribution(parmas); const res = await getPolicyAdviceDeptDistribution(parmas);
...@@ -631,8 +637,10 @@ const box2YearList = ref([ ...@@ -631,8 +637,10 @@ const box2YearList = ref([
const handleGetThinkPolicyIndustryTotal = async () => { const handleGetThinkPolicyIndustryTotal = async () => {
try { try {
const id = thinkTankId.value;
if (!id) return;
const parmas = { const parmas = {
id: router.currentRoute._value.params.id, id,
year: box2SelectYear.value year: box2SelectYear.value
}; };
const res = await getThinkPolicyIndustryTotal(parmas); const res = await getThinkPolicyIndustryTotal(parmas);
...@@ -712,8 +720,10 @@ const box3MonthsList = ref([ ...@@ -712,8 +720,10 @@ const box3MonthsList = ref([
const handleGetThinkPolicyIndustryChange = async () => { const handleGetThinkPolicyIndustryChange = async () => {
aiContentPolicyPt3.value = ""; aiContentPolicyPt3.value = "";
try { try {
const id = thinkTankId.value;
if (!id) return;
const parmas = { const parmas = {
id: router.currentRoute._value.params.id, id,
year: box3SelectMonths.value year: box3SelectMonths.value
}; };
const res = await getThinkPolicyIndustryChange(parmas); const res = await getThinkPolicyIndustryChange(parmas);
...@@ -1343,7 +1353,8 @@ const handleCurrentChange = page => { ...@@ -1343,7 +1353,8 @@ const handleCurrentChange = page => {
const handleGetThinkPolicy = async () => { const handleGetThinkPolicy = async () => {
try { try {
loading.value = true; loading.value = true;
const thinkTankId = router.currentRoute._value.params.id; const curThinkTankId = thinkTankId.value;
if (!curThinkTankId) return;
const domainIds = selectedAreaList.value const domainIds = selectedAreaList.value
.filter((id) => id != null && id !== "" && id !== POLICY_FILTER_ALL_AREA) .filter((id) => id != null && id !== "" && id !== POLICY_FILTER_ALL_AREA)
.map((id) => String(id)) .map((id) => String(id))
...@@ -1357,7 +1368,7 @@ const handleGetThinkPolicy = async () => { ...@@ -1357,7 +1368,7 @@ const handleGetThinkPolicy = async () => {
selectedYear.value selectedYear.value
); );
const parmas = { const parmas = {
thinkTankId, thinkTankId: curThinkTankId,
startDate, startDate,
endDate, endDate,
pageNum: currentPage.value, pageNum: currentPage.value,
......
...@@ -78,9 +78,11 @@ import { ...@@ -78,9 +78,11 @@ import {
getResourceLibraryReportDateRangeFromTimeSelection getResourceLibraryReportDateRangeFromTimeSelection
} from "../../utils/resourceLibraryFilters"; } from "../../utils/resourceLibraryFilters";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { getDecodedParams } from "@/utils/goToPage";
import ThinkTankReport from "./ThinkTankReport/index.vue"; import ThinkTankReport from "./ThinkTankReport/index.vue";
import CongressHearing from "./CongressHearing/index.vue"; import CongressHearing from "./CongressHearing/index.vue";
const router = useRouter(); const router = useRouter();
const thinkTankId = getDecodedParams();
const isThinkTankReport = ref(true); const isThinkTankReport = ref(true);
const isSurveyForm = ref(false); const isSurveyForm = ref(false);
const isCongressHearing = ref(false); const isCongressHearing = ref(false);
...@@ -420,7 +422,6 @@ const handleGetThinkDynamicsReport = async (payload) => { ...@@ -420,7 +422,6 @@ const handleGetThinkDynamicsReport = async (payload) => {
? "" ? ""
: arrayToString(areas); : arrayToString(areas);
const keyword = (searchReport.value || "").trim(); const keyword = (searchReport.value || "").trim();
const thinkTankId = router.currentRoute._value.params?.id;
if (isCongressHearing.value) { if (isCongressHearing.value) {
curFooterList.value = []; curFooterList.value = [];
curFooterProjectList.value = []; curFooterProjectList.value = [];
......
...@@ -259,6 +259,7 @@ import { ref, onMounted, nextTick, computed } from "vue"; ...@@ -259,6 +259,7 @@ import { ref, onMounted, nextTick, computed } from "vue";
import setChart from "@/utils/setChart"; import setChart from "@/utils/setChart";
import getPieChart from "./utils/piechart"; import getPieChart from "./utils/piechart";
import getTreeMapChart from "./utils/treeMapChart"; import getTreeMapChart from "./utils/treeMapChart";
import { getDecodedParams } from "@/utils/goToPage";
import { import {
getThinkTankInfoBasic, getThinkTankInfoBasic,
getThinkTankInfoBranch, getThinkTankInfoBranch,
...@@ -274,6 +275,7 @@ import DefaultIcon1 from '@/assets/icons/default-icon1.png' ...@@ -274,6 +275,7 @@ import DefaultIcon1 from '@/assets/icons/default-icon1.png'
import { getPersonSummaryInfo } from "@/api/common/index"; import { getPersonSummaryInfo } from "@/api/common/index";
const totalPersonNumber = ref(0) const totalPersonNumber = ref(0)
const router = useRouter(); const router = useRouter();
const thinkTankId = getDecodedParams();
import InfoImg from "./images/img.png"; import InfoImg from "./images/img.png";
import Icon1 from "./images/icon1.png"; import Icon1 from "./images/icon1.png";
import Icon2 from "./images/icon2.png"; import Icon2 from "./images/icon2.png";
...@@ -297,7 +299,7 @@ const basicInfo = ref({ ...@@ -297,7 +299,7 @@ const basicInfo = ref({
const handleGetThinkTankInfoBasic = async () => { const handleGetThinkTankInfoBasic = async () => {
try { try {
const res = await getThinkTankInfoBasic(router.currentRoute._value.params.id); const res = await getThinkTankInfoBasic(thinkTankId);
console.log("基本信息", res); console.log("基本信息", res);
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
basicInfo.value = res.data basicInfo.value = res.data
...@@ -319,7 +321,7 @@ const worldInfo = ref({ ...@@ -319,7 +321,7 @@ const worldInfo = ref({
const handleGetThinkTankInfoBranch = async () => { const handleGetThinkTankInfoBranch = async () => {
try { try {
const res = await getThinkTankInfoBranch(router.currentRoute._value.params.id); const res = await getThinkTankInfoBranch(thinkTankId);
console.log("全球分支机构", res); console.log("全球分支机构", res);
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
...@@ -397,7 +399,7 @@ const box1ChartData = ref([ ...@@ -397,7 +399,7 @@ const box1ChartData = ref([
const handleGetThinkTankFundsTotal = async () => { const handleGetThinkTankFundsTotal = async () => {
try { try {
const res = await getThinkTankFundsSource(router.currentRoute._value.params.id); const res = await getThinkTankFundsSource(thinkTankId);
console.log("获取经费来源统计", res); console.log("获取经费来源统计", res);
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
// 后端字段已更新:totalAmount/usGovernmentAmount/pentagonContractorAmount // 后端字段已更新:totalAmount/usGovernmentAmount/pentagonContractorAmount
...@@ -419,7 +421,7 @@ const handleGetThinkTankFundsTotal = async () => { ...@@ -419,7 +421,7 @@ const handleGetThinkTankFundsTotal = async () => {
const handleGetThinkTankFundsSource = async () => { const handleGetThinkTankFundsSource = async () => {
try { try {
const res = await getThinkTankFundsSource(router.currentRoute._value.params.id); const res = await getThinkTankFundsSource(thinkTankId);
console.log("获取经费来源", res); console.log("获取经费来源", res);
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
...@@ -561,7 +563,7 @@ const timeLineList = ref([ ...@@ -561,7 +563,7 @@ const timeLineList = ref([
const handleGetThinkTankResearchAreae = async () => { const handleGetThinkTankResearchAreae = async () => {
try { try {
const res = await getThinkTankResearchAreae(router.currentRoute._value.params.id); const res = await getThinkTankResearchAreae(thinkTankId);
console.log("研究领域演变", res); console.log("研究领域演变", res);
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
timeLineList.value = res.data timeLineList.value = res.data
...@@ -675,7 +677,7 @@ const handleGetThinkPerson = async (page = personCurrentPage.value) => { ...@@ -675,7 +677,7 @@ const handleGetThinkPerson = async (page = personCurrentPage.value) => {
const params = { const params = {
currentPage: safePage, currentPage: safePage,
pageSize: PERSON_PAGE_SIZE, pageSize: PERSON_PAGE_SIZE,
thinkTankId: router.currentRoute._value.params.id thinkTankId
} }
const res = await getThinkTankPerson(params); const res = await getThinkTankPerson(params);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论