From bf5c2aba8b2759703ff0218aa563e03d14d0bb88 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 14 Apr 2025 17:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=B5=8B=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/coordinatePhotos/upload-record/index.vue | 10 +++++----- src/pages/importantMatters/upload-record/index.vue | 10 +++++----- src/pages/safetyMeasure/upload-record/index.vue | 10 +++++----- src/pages/workbenches/index.vue | 2 +- vite.config.js | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/pages/coordinatePhotos/upload-record/index.vue b/src/pages/coordinatePhotos/upload-record/index.vue index f655d3d..07ec29f 100644 --- a/src/pages/coordinatePhotos/upload-record/index.vue +++ b/src/pages/coordinatePhotos/upload-record/index.vue @@ -148,8 +148,8 @@ const token = memberStore?.token // 查询条件 const queryParams = ref({ - pageNum: 1, - pageSize: 10, + page: 1, + limit: 10, keyWord: '', }) @@ -162,7 +162,7 @@ const getCoordinatePhotoListData = async (isTap = false) => { '', queryParams.value, ) - const { data: res } = await getCoordinatePhotoListApi(queryParams.value) + const res = await getCoordinatePhotoListApi(queryParams.value) console.log( '%c🔍 获取安全违章上传记录出参 %c', @@ -178,7 +178,7 @@ const getCoordinatePhotoListData = async (isTap = false) => { // 点击搜索时,直接替换数据 coordinatePhotosList.value = res?.data || [] // 重置页码 - queryParams.value.pageNum = 1 + queryParams.value.page = 1 } else { // 下拉加载时,追加数据 if (res?.data && res?.data.length > 0) { @@ -216,7 +216,7 @@ getCoordinatePhotoListData() const onScrollTolower = debounce(() => { // 判断是否还有更多数据 if (coordinatePhotosList.value.length < total.value) { - queryParams.value.pageNum++ + queryParams.value.page++ getCoordinatePhotoListData(false) } }, 500) diff --git a/src/pages/importantMatters/upload-record/index.vue b/src/pages/importantMatters/upload-record/index.vue index b46fedd..c743705 100644 --- a/src/pages/importantMatters/upload-record/index.vue +++ b/src/pages/importantMatters/upload-record/index.vue @@ -89,8 +89,8 @@ const token = memberStore?.token // 查询条件 const queryParams = ref({ - pageNum: 1, - pageSize: 10, + page: 1, + limit: 10, keyWord: '', }) @@ -103,7 +103,7 @@ const getImportantMattersListData = async (isTap = false) => { '', queryParams.value, ) - const { data: res } = await getImportantMattersListApi(queryParams.value) + const res = await getImportantMattersListApi(queryParams.value) console.log( '%c🔍 获取重要事项及宣传类上传记录出参 %c', @@ -119,7 +119,7 @@ const getImportantMattersListData = async (isTap = false) => { // 点击搜索时,直接替换数据 importantMattersList.value = res?.data || [] // 重置页码 - queryParams.value.pageNum = 1 + queryParams.value.page = 1 } else { // 下拉加载时,追加数据 if (res?.data && res?.data.length > 0) { @@ -145,7 +145,7 @@ getImportantMattersListData() const onScrollTolower = debounce(() => { // 判断是否还有更多数据 if (importantMattersList.value.length < total.value) { - queryParams.value.pageNum++ + queryParams.value.page++ getImportantMattersListData(false) } }, 500) diff --git a/src/pages/safetyMeasure/upload-record/index.vue b/src/pages/safetyMeasure/upload-record/index.vue index 28734d7..9dd702e 100644 --- a/src/pages/safetyMeasure/upload-record/index.vue +++ b/src/pages/safetyMeasure/upload-record/index.vue @@ -93,8 +93,8 @@ const token = memberStore?.token // 查询条件 const queryParams = ref({ - pageNum: 1, - pageSize: 10, + page: 1, + limit: 10, keyWord: '', }) @@ -107,7 +107,7 @@ const getSafetyMeasureListData = async (isTap = false) => { '', queryParams.value, ) - const { data: res } = await getSafetyMeasureListApi(queryParams.value) + const res = await getSafetyMeasureListApi(queryParams.value) console.log( '%c🔍 获取安全违章上传记录出参 %c', @@ -123,7 +123,7 @@ const getSafetyMeasureListData = async (isTap = false) => { // 点击搜索时,直接替换数据 safetyMeasureList.value = res?.data || [] // 重置页码 - queryParams.value.pageNum = 1 + queryParams.value.page = 1 } else { // 下拉加载时,追加数据 if (res?.data && res?.data.length > 0) { @@ -148,7 +148,7 @@ getSafetyMeasureListData() const onScrollTolower = debounce(() => { // 判断是否还有更多数据 if (safetyMeasureList.value.length < total.value) { - queryParams.value.pageNum++ + queryParams.value.page++ getSafetyMeasureListData(false) } }, 500) diff --git a/src/pages/workbenches/index.vue b/src/pages/workbenches/index.vue index 12ca3d6..120e7e0 100644 --- a/src/pages/workbenches/index.vue +++ b/src/pages/workbenches/index.vue @@ -33,7 +33,7 @@ const iconList_1 = ref([ }, { jumpPath: '/pages/safetyMeasure/index', - title: '安全措施落实', + title: '安全措施', iconUrl: icon_3, }, { diff --git a/vite.config.js b/vite.config.js index 8fa64af..164aff8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,8 +9,8 @@ export default defineConfig({ // 在此处编写代理规则 '/api': { // target: 'http://192.168.0.133:11997', // 梁超 - target: 'http://192.168.0.137:11997', // 方亮 - // target: 'http://192.168.0.60:11997', // 赵福海 + // target: 'http://192.168.0.137:11997', // 方亮 + target: 'http://192.168.0.60:11997', // 赵福海 // target: 'http://192.168.0.39:11997', // 陈长文 changeOrigin: true, rewrite: (path) => {