自测问题修复

This commit is contained in:
BianLzhaoMin 2025-04-14 17:46:25 +08:00
parent 7c255da26a
commit bf5c2aba8b
5 changed files with 18 additions and 18 deletions

View File

@ -148,8 +148,8 @@ const token = memberStore?.token
// //
const queryParams = ref({ const queryParams = ref({
pageNum: 1, page: 1,
pageSize: 10, limit: 10,
keyWord: '', keyWord: '',
}) })
@ -162,7 +162,7 @@ const getCoordinatePhotoListData = async (isTap = false) => {
'', '',
queryParams.value, queryParams.value,
) )
const { data: res } = await getCoordinatePhotoListApi(queryParams.value) const res = await getCoordinatePhotoListApi(queryParams.value)
console.log( console.log(
'%c🔍 获取安全违章上传记录出参 %c', '%c🔍 获取安全违章上传记录出参 %c',
@ -178,7 +178,7 @@ const getCoordinatePhotoListData = async (isTap = false) => {
// //
coordinatePhotosList.value = res?.data || [] coordinatePhotosList.value = res?.data || []
// //
queryParams.value.pageNum = 1 queryParams.value.page = 1
} else { } else {
// //
if (res?.data && res?.data.length > 0) { if (res?.data && res?.data.length > 0) {
@ -216,7 +216,7 @@ getCoordinatePhotoListData()
const onScrollTolower = debounce(() => { const onScrollTolower = debounce(() => {
// //
if (coordinatePhotosList.value.length < total.value) { if (coordinatePhotosList.value.length < total.value) {
queryParams.value.pageNum++ queryParams.value.page++
getCoordinatePhotoListData(false) getCoordinatePhotoListData(false)
} }
}, 500) }, 500)

View File

@ -89,8 +89,8 @@ const token = memberStore?.token
// //
const queryParams = ref({ const queryParams = ref({
pageNum: 1, page: 1,
pageSize: 10, limit: 10,
keyWord: '', keyWord: '',
}) })
@ -103,7 +103,7 @@ const getImportantMattersListData = async (isTap = false) => {
'', '',
queryParams.value, queryParams.value,
) )
const { data: res } = await getImportantMattersListApi(queryParams.value) const res = await getImportantMattersListApi(queryParams.value)
console.log( console.log(
'%c🔍 获取重要事项及宣传类上传记录出参 %c', '%c🔍 获取重要事项及宣传类上传记录出参 %c',
@ -119,7 +119,7 @@ const getImportantMattersListData = async (isTap = false) => {
// //
importantMattersList.value = res?.data || [] importantMattersList.value = res?.data || []
// //
queryParams.value.pageNum = 1 queryParams.value.page = 1
} else { } else {
// //
if (res?.data && res?.data.length > 0) { if (res?.data && res?.data.length > 0) {
@ -145,7 +145,7 @@ getImportantMattersListData()
const onScrollTolower = debounce(() => { const onScrollTolower = debounce(() => {
// //
if (importantMattersList.value.length < total.value) { if (importantMattersList.value.length < total.value) {
queryParams.value.pageNum++ queryParams.value.page++
getImportantMattersListData(false) getImportantMattersListData(false)
} }
}, 500) }, 500)

View File

@ -93,8 +93,8 @@ const token = memberStore?.token
// //
const queryParams = ref({ const queryParams = ref({
pageNum: 1, page: 1,
pageSize: 10, limit: 10,
keyWord: '', keyWord: '',
}) })
@ -107,7 +107,7 @@ const getSafetyMeasureListData = async (isTap = false) => {
'', '',
queryParams.value, queryParams.value,
) )
const { data: res } = await getSafetyMeasureListApi(queryParams.value) const res = await getSafetyMeasureListApi(queryParams.value)
console.log( console.log(
'%c🔍 获取安全违章上传记录出参 %c', '%c🔍 获取安全违章上传记录出参 %c',
@ -123,7 +123,7 @@ const getSafetyMeasureListData = async (isTap = false) => {
// //
safetyMeasureList.value = res?.data || [] safetyMeasureList.value = res?.data || []
// //
queryParams.value.pageNum = 1 queryParams.value.page = 1
} else { } else {
// //
if (res?.data && res?.data.length > 0) { if (res?.data && res?.data.length > 0) {
@ -148,7 +148,7 @@ getSafetyMeasureListData()
const onScrollTolower = debounce(() => { const onScrollTolower = debounce(() => {
// //
if (safetyMeasureList.value.length < total.value) { if (safetyMeasureList.value.length < total.value) {
queryParams.value.pageNum++ queryParams.value.page++
getSafetyMeasureListData(false) getSafetyMeasureListData(false)
} }
}, 500) }, 500)

View File

@ -33,7 +33,7 @@ const iconList_1 = ref([
}, },
{ {
jumpPath: '/pages/safetyMeasure/index', jumpPath: '/pages/safetyMeasure/index',
title: '安全措施落实', title: '安全措施',
iconUrl: icon_3, iconUrl: icon_3,
}, },
{ {

View File

@ -9,8 +9,8 @@ export default defineConfig({
// 在此处编写代理规则 // 在此处编写代理规则
'/api': { '/api': {
// target: 'http://192.168.0.133:11997', // 梁超 // target: 'http://192.168.0.133:11997', // 梁超
target: 'http://192.168.0.137:11997', // 方亮 // target: 'http://192.168.0.137:11997', // 方亮
// target: 'http://192.168.0.60:11997', // 赵福海 target: 'http://192.168.0.60:11997', // 赵福海
// target: 'http://192.168.0.39:11997', // 陈长文 // target: 'http://192.168.0.39:11997', // 陈长文
changeOrigin: true, changeOrigin: true,
rewrite: (path) => { rewrite: (path) => {