Jelajahi Sumber

历史、上级、通报信息 详情查杀方式

Luka 1 bulan lalu
induk
melakukan
434d203b4a

+ 2 - 2
.env.development

@@ -15,8 +15,8 @@ VITE_APP_AES_KY = cgRUqDDXqUiySqib
 VITE_APP_TOKEN =  6617e72a5a7e41eb6c30aa4fa3000022
 
 # 开发接口地址
-# VITE_APP_API_URL = "http://106.75.213.212:8080/"
-VITE_APP_API_URL = "http://172.33.7.60:8080/"
+VITE_APP_API_URL = "http://106.75.213.212:8080/"
+# VITE_APP_API_URL = "http://172.33.7.60:8080/"/
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip

+ 6 - 3
src/views/notificationInfoManage/noticeInfoInquiry/components/detail.vue

@@ -38,6 +38,8 @@ import ReceivingUnitDealOpinion from './receivingUnitDealOpinion.vue';
 import WaterSafetyInformation from '@/components/notificationDetailsParts/waterSafetyInformation.vue';
 import ReceivingUnitOpinion from './receivingUnitOpinion.vue';
 import OperationLog from '@/components/notificationDetailsParts/operationLog.vue';
+import { getPageDetail } from '@/api/main';
+import contentConfig from '../config/content.config';
 
 // --- 路由与Store ---
 const route = useRoute();
@@ -51,9 +53,10 @@ const shipFormRef = ref<any>();
 const formData = ref();
 
 onMounted(async () => {
-	const { type, info } = route.query;
-	if (typeof info === 'string') {
-		formData.value = JSON.parse(info);
+	const { type, releasedId } = route.query;
+	if (releasedId) {
+		const response = await getPageDetail(contentConfig.pageName, releasedId);
+		formData.value = response.data;
 	}
 	try {
 		switch (type as string) {

+ 2 - 4
src/views/notificationInfoManage/noticeInfoInquiry/index.vue

@@ -20,7 +20,6 @@ import searchConfig from './config/search.config';
 import pageSearch from '@/components/components/pageSearch.vue';
 import useSystemStore from '@/store/main';
 import { outTypeList } from '@/libs/commonMeth';
-import { getPageDetail } from '@/api/main';
 
 const allNotificationStatus = outTypeList('bj_notify_os'); // 通报整体状态
 const bj_notification_type = outTypeList('bj_notification_type'); //通报类型
@@ -44,11 +43,10 @@ import usePageModal from '@/components/components/hooks/usePageDetails';
 const { modalRef, handleNewDataClick, handleEditDataClick, handleCheckDataClick, handlePageDetail } =
 	usePageModal();
 
-const handleDetails = async (id: string) => {
-	const response = await getPageDetail(contentConfig.pageName, id);
+const handleDetails = async (releasedId: string) => {
 	router.push({
 		name: 'noticeInfoInquiryDetail',
-		query: { type: 'detail', info: JSON.stringify(response.data) },
+		query: { type: 'detail', releasedId: releasedId },
 	});
 };
 

+ 6 - 3
src/views/notificationInfoManage/superiorLeadersReview/components/detail.vue

@@ -38,6 +38,8 @@ import ReceivingUnitDealOpinion from './receivingUnitDealOpinion.vue';
 import WaterSafetyInformation from '@/components/notificationDetailsParts/waterSafetyInformation.vue';
 import ReceivingUnitOpinion from './receivingUnitOpinion.vue';
 import OperationLog from '@/components/notificationDetailsParts/operationLog.vue';
+import { getPageDetail } from '@/api/main';
+import contentConfig from '../config/content.config';
 
 // --- 路由与Store ---
 const route = useRoute();
@@ -51,9 +53,10 @@ const shipFormRef = ref<any>();
 const formData = ref();
 
 onMounted(async () => {
-	const { type, info } = route.query;
-	if (typeof info === 'string') {
-		formData.value = JSON.parse(info);
+	const { type, releasedId } = route.query;
+	if (releasedId) {
+		const response = await getPageDetail(contentConfig.pageName, releasedId);
+		formData.value = response.data;
 	}
 	try {
 		switch (type as string) {

+ 2 - 3
src/views/notificationInfoManage/superiorLeadersReview/index.vue

@@ -45,11 +45,10 @@ import usePageModal from '@/components/components/hooks/usePageDetails';
 const { modalRef, handleNewDataClick, handleEditDataClick, handleCheckDataClick, handlePageDetail } =
 	usePageModal();
 
-const handleDetails = async (id: string) => {
-	const response = await getPageDetail(contentConfig.pageName, id);
+const handleDetails = async (releasedId: string) => {
 	router.push({
 		name: 'superiorLeadersReviewDetail',
-		query: { type: 'detail', info: JSON.stringify(response.data) },
+		query: { type: 'detail', releasedId: releasedId },
 	});
 };
 

+ 7 - 3
src/views/notificationInfoManage/viewHistoricalData/components/detail.vue

@@ -39,6 +39,8 @@ import ReceivingUnitDealOpinion from './receivingUnitDealOpinion.vue';
 import WaterSafetyInformation from '@/components/notificationDetailsParts/waterSafetyInformation.vue';
 import ReceivingUnitOpinion from './receivingUnitOpinion.vue';
 import OperationLog from '@/components/notificationDetailsParts/operationLog.vue';
+import { getPageDetail } from '@/api/main';
+import contentConfig from '../config/content.config';
 
 // --- 路由与Store ---
 const route = useRoute();
@@ -52,10 +54,12 @@ const shipFormRef = ref<any>();
 const formData = ref();
 
 onMounted(async () => {
-	const { type, info } = route.query;
-	if (typeof info === 'string') {
-		formData.value = JSON.parse(info);
+	const { type, releasedId } = route.query;
+	if (releasedId) {
+		const response = await getPageDetail(contentConfig.pageName, releasedId);
+		formData.value = response.data;
 	}
+
 	try {
 		switch (type as string) {
 			case 'add':

+ 3 - 4
src/views/notificationInfoManage/viewHistoricalData/index.vue

@@ -20,7 +20,7 @@ import searchConfig from './config/search.config';
 import pageSearch from '@/components/components/pageSearch.vue';
 import useSystemStore from '@/store/main';
 import { outTypeList } from '@/libs/commonMeth';
-import { getPageDetail } from '@/api/main';
+
 // 通报整体状态
 const allNotificationStatus = outTypeList('bj_notify_os');
 const bj_notification_type = outTypeList('bj_notification_type'); //通报类型
@@ -49,11 +49,10 @@ import usePageModal from '@/components/components/hooks/usePageDetails';
 const { modalRef, handleNewDataClick, handleEditDataClick, handleCheckDataClick, handlePageDetail } =
 	usePageModal();
 
-const handleDetails = async (id: string) => {
-	const response = await getPageDetail(contentConfig.pageName, id);
+const handleDetails = async (releasedId: string) => {
 	router.push({
 		name: 'viewHistoricalDataDetail',
-		query: { type: 'detail', info: JSON.stringify(response.data) },
+		query: { type: 'detail', releasedId: releasedId },
 	});
 };