|
@@ -235,7 +235,6 @@ onMounted(() => {
|
|
|
// 可以从route.query或route.params中获取参数
|
|
// 可以从route.query或route.params中获取参数
|
|
|
if (route.query.id) {
|
|
if (route.query.id) {
|
|
|
// 如果有传入id参数,可以做特殊处理
|
|
// 如果有传入id参数,可以做特殊处理
|
|
|
- console.log('接收到参数id:', route.query.id)
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
status().then(res=>{
|
|
status().then(res=>{
|
|
@@ -298,12 +297,10 @@ function onPageChange(page) {
|
|
|
function showPhotos(row) {
|
|
function showPhotos(row) {
|
|
|
processingPhotoTaskItems(row.id).then((res) => {
|
|
processingPhotoTaskItems(row.id).then((res) => {
|
|
|
const items = res.data
|
|
const items = res.data
|
|
|
- console.log(res)
|
|
|
|
|
if (!items || items.length === 0) {
|
|
if (!items || items.length === 0) {
|
|
|
showNotify({ type: 'warning', message: '没有对应的拍摄' })
|
|
showNotify({ type: 'warning', message: '没有对应的拍摄' })
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- console.log(import.meta.env.VITE_APP_BASE_API)
|
|
|
|
|
const baseUrl = import.meta.env.VITE_APP_BASE_API + 'statics/storage/'
|
|
const baseUrl = import.meta.env.VITE_APP_BASE_API + 'statics/storage/'
|
|
|
const paths = baseUrl.split('.')
|
|
const paths = baseUrl.split('.')
|
|
|
paths[1] = 'swms'
|
|
paths[1] = 'swms'
|
|
@@ -314,7 +311,6 @@ function showPhotos(row) {
|
|
|
return `${base}${module}/${path}`
|
|
return `${base}${module}/${path}`
|
|
|
}).filter(url => url)
|
|
}).filter(url => url)
|
|
|
|
|
|
|
|
- console.log(reviewImages.value)
|
|
|
|
|
// 预览图片
|
|
// 预览图片
|
|
|
if (reviewImages.value.length > 0) {
|
|
if (reviewImages.value.length > 0) {
|
|
|
showImagePreview({
|
|
showImagePreview({
|
|
@@ -364,7 +360,6 @@ const beforeReadImage = (file) => {
|
|
|
// 图片读取完成后处理
|
|
// 图片读取完成后处理
|
|
|
const afterReadImage = (file) => {
|
|
const afterReadImage = (file) => {
|
|
|
// file 是上传的文件信息,可以在这里进行额外处理
|
|
// file 是上传的文件信息,可以在这里进行额外处理
|
|
|
- console.log('文件读取完成:', file)
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 提交上传
|
|
// 提交上传
|
|
@@ -440,12 +435,6 @@ const submitUpload = async () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 筛选相关方法
|
|
|
|
|
-function onFilterChange() {
|
|
|
|
|
- // 清除筛选时自动搜索
|
|
|
|
|
- onFilterSearch()
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
function onFilterSearch() {
|
|
function onFilterSearch() {
|
|
|
// 搜索时重置到第一页
|
|
// 搜索时重置到第一页
|
|
|
paginate.value.page = 1
|
|
paginate.value.page = 1
|