diff --git a/.env.development b/.env.development index cd182d8..2bd86fc 100644 --- a/.env.development +++ b/.env.development @@ -9,9 +9,9 @@ VITE_APP_ENV='development' # 开发环境 VITE_APP_BASE_API='/dev-api' # # 开发环境 接口代理地址 -#VITE_APP_PROXY_API='http://192.168.1.222:8080' +VITE_APP_PROXY_API='http://192.168.1.222:8080' # 开发环境 接口代理地址 -VITE_APP_PROXY_API='http://192.168.1.6:8080' +#VITE_APP_PROXY_API='http://192.168.1.6:8080' # 图片基础地址 VITE_IMG_URL='http://192.168.1.222:8080' diff --git a/src/views/system/Repair/repairMain.vue b/src/views/system/Repair/repairMain.vue index a5177b8..ce4a0f5 100644 --- a/src/views/system/Repair/repairMain.vue +++ b/src/views/system/Repair/repairMain.vue @@ -77,8 +77,8 @@ :min-scale="0.2" :preview-src-list="form.problemImageUrlList" show-progress - :initial-index="0" v-for="(item, index) in form.problemImageUrlList" + :initial-index="index" :key="index" :src="item" lazy diff --git a/src/views/system/Sdb/statistics/index.vue b/src/views/system/Sdb/statistics/index.vue index a047cc7..b601609 100644 --- a/src/views/system/Sdb/statistics/index.vue +++ b/src/views/system/Sdb/statistics/index.vue @@ -10,15 +10,14 @@ clearable v-model="SearchTime" @change=" - (val) => { + (val: string[]) => { if (!val) { queryParams.startDate = ''; queryParams.endDate = ''; return; } SearchTime = val; - const days = val; - const [star, end] = days.map((item) => item.split(' ')[0]); + const [star, end] = val.map((item) => item.split(' ')[0]); queryParams.startDate = star + ' 00:00:00'; queryParams.endDate = end + ' 23:59:59'; } @@ -38,7 +37,7 @@ 导出统计 - +