修改巡检内容

This commit is contained in:
xuli
2025-12-22 18:11:07 +08:00
parent eecfa777a8
commit 03b2f64389
3 changed files with 6 additions and 22 deletions

View File

@@ -284,11 +284,8 @@ onLoad(option => {
minioObj = JSON.parse(uni.getStorageSync(MINIO_KEY) || "\{\}")
// console.log(minioObj)
})
onShow(()=>{
getList();
})
// 下拉刷新
@@ -336,7 +333,7 @@ const getList = async() => {
item.loading=false;
if(item.resultContent){
if(item.pointType==2 ||item.pointType==1){
item['chooseList'] = item.resultContent.split(",") //JSON.parse(item.resultContent)
item['chooseList'] = item.resultContent.split(",")||[]; //JSON.parse(item.resultContent)
}else if(item.pointType==7){
let imgList = item.resultContent?.split(",")||[];
imgList.forEach(imgUrl=>{
@@ -357,7 +354,6 @@ const getList = async() => {
})
}
}
})
// console.log(data.pointList)
optionObj.value = data

View File

@@ -109,13 +109,9 @@ onLoad(async option => {
problemId.value = option.problemId;
minioObj = JSON.parse(uni.getStorageSync(MINIO_KEY) || "\{\}")
let userinfo = await getUserInfo({});
realname.value = userinfo.realname
})
onShow(()=>{
getList();
})
@@ -191,14 +187,12 @@ const chooseMedia = () => {
let data = res.data;
mediaArr.value.push(data.fileName);
if (file.fileType === 'image') {// 图片
// imgArr.value.push(data.fileUrl)
imgArr.value.push({
shortUrl:minioObj.minioThumbUrl +"/"+data.fileName,
url:minioObj.minioUrl +"/"+data.fileName,
name:data.fileName
})
} else if (file.fileType === 'video') {// 视频
// videoArr.value.push(data.fileUrl)
videoArr.value.push({
shortUrl:minioObj.minioThumbUrl +"/"+data.fileName,
url:minioObj.minioUrl +"/"+data.fileName,

View File

@@ -120,10 +120,7 @@ onLoad(async option => {
minioObj = JSON.parse(uni.getStorageSync(MINIO_KEY) || "\{\}")
let userinfo = await getUserInfo({});
realname.value = userinfo.realname
})
onShow(()=>{
realname.value = userinfo.realname;
getList();
})
@@ -212,10 +209,9 @@ const chooseMedia = () => {
maxDuration: 60, // 拍摄视频最长拍摄时间
camera: 'back',
success: (res) => {
console.log("chooseMedia=>",res)
// console.log("chooseMedia=>",res)
res.tempFiles.forEach(async file => {
// tempFilePath
console.log(`文件类型: ${file.fileType}, 文件路径: ${file.tempFilePath}`);
// console.log(`文件类型: ${file.fileType}, 文件路径: ${file.tempFilePath}`);
let compressImg = file.tempFilePath;
// 图片进行压缩
if (file.fileType === 'image') {
@@ -235,17 +231,15 @@ const chooseMedia = () => {
}
imgLoading.value=true;
minioUpload(param).then(res=>{
let data = res.data;console.log("上传成功后=>",res)
let data = res.data;//console.log("上传成功后=>",res)
mediaArr.value.push(data.fileName);
if (file.fileType === 'image') {// 图片
// imgArr.value.push(data.fileUrl)
imgArr.value.push({
shortUrl:minioObj.minioThumbUrl +"/"+data.fileName,
url:minioObj.minioUrl +"/"+data.fileName,
name:data.fileName
})
} else if (file.fileType === 'video') {// 视频
// videoArr.value.push(data.fileUrl)
videoArr.value.push({
shortUrl:minioObj.minioThumbUrl +"/"+data.fileName,
url:minioObj.minioUrl +"/"+data.fileName,