flx:优化

This commit is contained in:
Rain_ 2025-11-27 18:25:00 +08:00
parent 0dff4c08b7
commit 9b66141fcd
5 changed files with 155 additions and 113 deletions

View File

@ -207,19 +207,22 @@
success(res) {
const tempFilePaths = res.tempFilePaths;
console.log(222, tempFilePaths[0])
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
// uni.uploadFile({
// url: that.url_config + 'upload/image', //
// filePath: tempFilePaths[0],
// name: 'files',
// success: (uploadFileRes) => {
// let data = {
// name: JSON.parse(uploadFileRes.data).data[0].filename,
// url: JSON.parse(uploadFileRes.data).data[0].imageUrl
// };
// that.imgFileList.push(data)
// }
// });
return
// #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //
filePath: tempFilePaths[0],
name: 'files',
success: (uploadFileRes) => {
let data = {
name: JSON.parse(uploadFileRes.data).data[0].filename,
url: JSON.parse(uploadFileRes.data).data[0].imageUrl
};
that.imgFileList.push(data)
}
});
}
})
} else if (type == 2) {

View File

@ -927,39 +927,52 @@
this.listData = [];
this.checkPointName = ''
this.regionId = []
this.condition.reviewId = '';
this.condition.changeId = '';
this.condition.verifyManId = '';
this.condition.regionId = '';
if (this.checkedTab == 2 || this.checkedTab == 5) {
this.condition.changeId = this.userInfo.userId
} else if (this.checkedTab == 3) {
this.condition.reviewId = this.userInfo.userId
} else if (this.checkedTab == 4) {
this.condition.verifyManId = this.userInfo.userId
} else if (this.checkedTab == 6) {
this.condition.regionId = this.regionId
}
this.getListData()
},
//
getListData() {
if (this.checkedTab == 2 || this.checkedTab == 5) {
this.condition.changeId = this.userInfo.userId
// this.condition.reviewId = ''
// this.condition.verifyManId = ''
// this.condition.regionId = []
} else if (this.checkedTab == 3) {
this.condition.reviewId = this.userInfo.userId
// this.condition.changeId = '';
// this.condition.verifyManId = ''
// this.condition.regionId = []
} else if (this.checkedTab == 4) {
this.condition.verifyManId = this.userInfo.userId
// this.condition.changeId = '';
// this.condition.reviewId = ''
// this.condition.regionId = []
} else if (this.checkedTab == 6) {
// this.condition.status = ''
// this.condition.verifyManId = ''
// this.condition.changeId = '';
// this.condition.reviewId = ''
this.condition.regionId = this.regionId
} else {
// this.condition.status = ''
// this.condition.reviewId = '';
// this.condition.changeId = '';
// this.condition.verifyManId = ''
// this.condition.regionId = ''
// if (this.checkedTab == 2 || this.checkedTab == 5) {
// this.condition.changeId = this.userInfo.userId
// // this.condition.reviewId = ''
// // this.condition.verifyManId = ''
// // this.condition.regionId = []
// } else if (this.checkedTab == 3) {
// this.condition.reviewId = this.userInfo.userId
// // this.condition.changeId = '';
// // this.condition.verifyManId = ''
// // this.condition.regionId = []
// } else if (this.checkedTab == 4) {
// this.condition.verifyManId = this.userInfo.userId
// // this.condition.changeId = '';
// // this.condition.reviewId = ''
// // this.condition.regionId = []
// } else if (this.checkedTab == 6) {
// // this.condition.status = ''
// // this.condition.verifyManId = ''
// // this.condition.changeId = '';
// // this.condition.reviewId = ''
// this.condition.regionId = this.regionId
// } else {
// // this.condition.status = ''
// // this.condition.reviewId = '';
// // this.condition.changeId = '';
// // this.condition.verifyManId = ''
// // this.condition.regionId = ''
}
// }
console.log('查询列表条件数据', this.checkedTab)
let that = this;
// uni.showLoading({title: ''})
@ -1009,6 +1022,7 @@
background: #EFF3F7;
min-height: 100vh;
}
.fixedheader {
position: fixed;
top: 0;
@ -1295,7 +1309,8 @@
margin-top: 20rpx;
display: flex;
align-items: center;
> image {
>image {
width: 40rpx;
height: 40rpx;
margin-right: 10rpx;
@ -1313,10 +1328,12 @@
color: #808080;
margin-top: 20rpx;
}
.item_header {
font-size: 24rpx;
color: #808080;
}
.item_info {
font-size: 26rpx;
line-height: 24px;
@ -1361,7 +1378,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
>view {
width: 300rpx;
height: 300rpx;
@ -1369,7 +1386,7 @@
background-repeat: no-repeat;
background-size: 100% 100%;
}
>text {
font-size: 22rpx;
color: #808080;

View File

@ -207,19 +207,21 @@
success(res) {
const tempFilePaths = res.tempFilePaths;
console.log(222, tempFilePaths[0])
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
// uni.uploadFile({
// url: that.url_config + 'upload/image', //
// filePath: tempFilePaths[0],
// name: 'files',
// success: (uploadFileRes) => {
// let data = {
// name: JSON.parse(uploadFileRes.data).data[0].filename,
// url: JSON.parse(uploadFileRes.data).data[0].imageUrl
// };
// that.imgFileList.push(data)
// }
// });
return
uni.uploadFile({
url: that.url_config + 'upload/image', //
filePath: tempFilePaths[0],
name: 'files',
success: (uploadFileRes) => {
let data = {
name: JSON.parse(uploadFileRes.data).data[0].filename,
url: JSON.parse(uploadFileRes.data).data[0].imageUrl
};
that.imgFileList.push(data)
}
});
}
})
} else if (type == 2) {

View File

@ -927,39 +927,52 @@
this.listData = [];
this.checkPointName = ''
this.regionId = []
this.condition.reviewId = '';
this.condition.changeId = '';
this.condition.verifyManId = ''
this.condition.regionId = ''
if (this.checkedTab == 2 || this.checkedTab == 5) {
this.condition.changeId = this.userInfo.userId
} else if (this.checkedTab == 3) {
this.condition.reviewId = this.userInfo.userId
} else if (this.checkedTab == 4) {
this.condition.verifyManId = this.userInfo.userId
} else if (this.checkedTab == 6) {
this.condition.regionId = this.regionId
}
this.getListData()
},
//
getListData() {
if (this.checkedTab == 2 || this.checkedTab == 5) {
this.condition.changeId = this.userInfo.userId
// this.condition.reviewId = ''
// this.condition.verifyManId = ''
// this.condition.regionId = []
} else if (this.checkedTab == 3) {
this.condition.reviewId = this.userInfo.userId
// this.condition.changeId = '';
// this.condition.verifyManId = ''
// this.condition.regionId = []
} else if (this.checkedTab == 4) {
this.condition.verifyManId = this.userInfo.userId
// this.condition.changeId = '';
// this.condition.reviewId = ''
// this.condition.regionId = []
} else if (this.checkedTab == 6) {
// this.condition.status = ''
// this.condition.verifyManId = ''
// this.condition.changeId = '';
// this.condition.reviewId = ''
this.condition.regionId = this.regionId
} else {
// this.condition.status = ''
// this.condition.reviewId = '';
// this.condition.changeId = '';
// this.condition.verifyManId = ''
// this.condition.regionId = ''
// if (this.checkedTab == 2 || this.checkedTab == 5) {
// this.condition.changeId = this.userInfo.userId
// // this.condition.reviewId = ''
// // this.condition.verifyManId = ''
// // this.condition.regionId = []
// } else if (this.checkedTab == 3) {
// this.condition.reviewId = this.userInfo.userId
// // this.condition.changeId = '';
// // this.condition.verifyManId = ''
// // this.condition.regionId = []
// } else if (this.checkedTab == 4) {
// this.condition.verifyManId = this.userInfo.userId
// // this.condition.changeId = '';
// // this.condition.reviewId = ''
// // this.condition.regionId = []
// } else if (this.checkedTab == 6) {
// // this.condition.status = ''
// // this.condition.verifyManId = ''
// // this.condition.changeId = '';
// // this.condition.reviewId = ''
// this.condition.regionId = this.regionId
// } else {
// // this.condition.status = ''
// // this.condition.reviewId = '';
// // this.condition.changeId = '';
// // this.condition.verifyManId = ''
// // this.condition.regionId = ''
}
// }
console.log('查询列表条件数据', this.checkedTab)
let that = this;
// uni.showLoading({title: ''})
@ -1009,6 +1022,7 @@
background: #EFF3F7;
min-height: 100vh;
}
.fixedheader {
position: fixed;
top: 0;
@ -1295,7 +1309,8 @@
margin-top: 20rpx;
display: flex;
align-items: center;
> image {
>image {
width: 40rpx;
height: 40rpx;
margin-right: 10rpx;
@ -1313,10 +1328,12 @@
color: #808080;
margin-top: 20rpx;
}
.item_header {
font-size: 24rpx;
color: #808080;
}
.item_info {
font-size: 26rpx;
line-height: 24px;
@ -1361,7 +1378,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
>view {
width: 300rpx;
height: 300rpx;
@ -1369,7 +1386,7 @@
background-repeat: no-repeat;
background-size: 100% 100%;
}
>text {
font-size: 22rpx;
color: #808080;

View File

@ -380,34 +380,37 @@
count: 5 - that.fileList.length,
success(res) {
const tempFilePaths = res.tempFilePaths;
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
// uni.uploadFile({
// url: that.url_config + 'upload/image', //
// filePath: tempFilePaths[0],
// name: 'files',
// success: (uploadFileRes) => {
// let data = {
// name: JSON.parse(uploadFileRes.data).data[0].filename,
// url: JSON.parse(uploadFileRes.data).data[0].imageUrl
// };
// that.fileList.push(data)
// uni.getImageInfo({
// src: tempFilePaths[0],
// success: (resInfo) => {
// console.log(' resInfo', resInfo)
// that.imgList = {
// imgUrl: tempFilePaths[0],
// imgWidth: resInfo.width,
// imgHeight: resInfo.height,
// // team:'',
// // name: ''
// }
// that.openImg = true
// }
// })
// that.openImg = false
// }
// });
return
// #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //
filePath: tempFilePaths[0],
name: 'files',
success: (uploadFileRes) => {
let data = {
name: JSON.parse(uploadFileRes.data).data[0].filename,
url: JSON.parse(uploadFileRes.data).data[0].imageUrl
};
that.fileList.push(data)
// uni.getImageInfo({
// src: tempFilePaths[0],
// success: (resInfo) => {
// console.log(' resInfo', resInfo)
// that.imgList = {
// imgUrl: tempFilePaths[0],
// imgWidth: resInfo.width,
// imgHeight: resInfo.height,
// // team:'',
// // name: ''
// }
// that.openImg = true
// }
// })
// that.openImg = false
}
});
}
})
},