# Conflicts:
#	wuye-manager-uniapp/pages/index/index.vue
This commit is contained in:
zhouyanli
2026-08-29 17:16:15 +08:00
5 changed files with 35 additions and 18 deletions

View File

@@ -2,12 +2,12 @@
<view class="page_padding"> <view class="page_padding">
<view class="flex-1 flex-col flex inspection_main_box"> <view class="flex-1 flex-col flex inspection_main_box">
<view class="info_box"> <view class="info_box">
<view class="title_box flex flex-between"> <view class="title_box">
<view class="title flex"> <view class="title flex">
<text class="line"></text> <text class="line"></text>
<text>{{ info.villageName }} - {{ info.taskName }}</text> <text>{{ info.villageName }} - {{ info.taskName }}</text>
</view> </view>
<view class="inspection_status" style="flex: 100rpx"> <text>已巡检</text> </view> <view class="inspection_status" style="width: 100rpx"> <text>已巡检</text> </view>
</view> </view>
<view class="info"> <view class="info">
<view class="item"> <view class="item">
@@ -67,7 +67,9 @@
<view class="inspection_items"> <view class="inspection_items">
<view class="label">巡检结果:</view> <view class="label">巡检结果:</view>
<view class="desction_value"> <view class="desction_value">
<textarea class="my_textarea" disabled auto-height :value="ite.desition" /> <view class="my_textarea">
{{ ite.desition }}
</view>
</view> </view>
</view> </view>
<view class="inspection_items"> <view class="inspection_items">
@@ -186,12 +188,16 @@ function handlePrivew(lists, index) {
border-radius: 16rpx; border-radius: 16rpx;
background-color: #fff; background-color: #fff;
.title_box { .title_box {
display: flex;
align-items: center;
justify-content: space-between;
.title { .title {
font-weight: 550; font-weight: 550;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
min-height: 40rpx; min-height: 40rpx;
line-height: 40rpx; line-height: 40rpx;
.line { .line {
display: block; display: block;
width: 6rpx; width: 6rpx;
@@ -271,6 +277,7 @@ function handlePrivew(lists, index) {
overflow-y: auto; /* 超出滚动 */ overflow-y: auto; /* 超出滚动 */
.my_textarea { .my_textarea {
padding: 5rpx;
min-height: 80rpx; min-height: 80rpx;
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
@@ -278,6 +285,7 @@ function handlePrivew(lists, index) {
line-height: 36rpx; line-height: 36rpx;
word-wrap: break-word; // 单词/中文自动换行 word-wrap: break-word; // 单词/中文自动换行
word-break: break-all; // 长英文无空格强制截断换行 word-break: break-all; // 长英文无空格强制截断换行
overflow: hidden;
} }
} }
} }

View File

@@ -314,6 +314,8 @@ onShow(() => {
text-align: center; text-align: center;
font-weight: 400; font-weight: 400;
font-size: 28rpx; font-size: 28rpx;
border-radius: 25rpx;
background: #4d5dfa;
color: #ffffff; color: #ffffff;
} }
} }

View File

@@ -80,7 +80,7 @@
:key="index" :key="index"
:src="item" :src="item"
class="images" class="images"
@tap="handlePrivew(record.repairImageUrlList, index)" @tap.stop="handlePrivew(record.repairImageUrlList, index)"
mode="scaleToFill" mode="scaleToFill"
></image> ></image>
</view> </view>
@@ -159,12 +159,16 @@ function getlist() {
isLoading.value = true isLoading.value = true
getTicketHallList(queryParmas.value) getTicketHallList(queryParmas.value)
.then(res => { .then(res => {
const list = res.rows.map(item => ({ const list = res.rows.map(item => {
const list = item.repairImageUrl ? item.repairImageUrl.split(',').filter(Boolean) : []
list.length = 3
const obj = {
...item, ...item,
repairImageUrlList: item.repairImageUrl repairImageUrlList: list.filter(Boolean)
? item.repairImageUrl.split(',').filter(Boolean) }
: [] return obj
})) })
console.log(list)
if (queryParmas.value.pageNum === 1) { if (queryParmas.value.pageNum === 1) {
reportRecords.value = list reportRecords.value = list
} else { } else {
@@ -385,7 +389,6 @@ function handlePrivew(items, index) {
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.card-title { .card-title {
flex: 1;
margin-right: 10rpx; margin-right: 10rpx;
font-size: 32rpx; font-size: 32rpx;
color: #222222; color: #222222;

View File

@@ -142,12 +142,16 @@ function getlist() {
getUserTicketlist(queryParmas.value) getUserTicketlist(queryParmas.value)
.then(res => { .then(res => {
total.value = res.total total.value = res.total
const list = res.rows.map(item => ({
const list = res.rows.map(item => {
const list = item.repairImageUrl ? item.repairImageUrl.split(',').filter(Boolean) : []
list.length = 3
const obj = {
...item, ...item,
repairImageUrlList: item.repairImageUrl repairImageUrlList: list.filter(Boolean)
? item.repairImageUrl.split(',').filter(Boolean) }
: [] return obj
})) })
if (queryParmas.value.pageNum === 1) { if (queryParmas.value.pageNum === 1) {
reportRecords.value = list reportRecords.value = list

View File

@@ -452,7 +452,7 @@ onLoad(() => {
const hasShowGuide = uni.getStorageSync('hasShowGuide') const hasShowGuide = uni.getStorageSync('hasShowGuide')
uni.hideTabBar({ animation: false }) uni.hideTabBar({ animation: false })
uni.reLaunch({ uni.reLaunch({
url: hasShowGuide ? '/pageSubPack/loginSub/login?mode=pwd' : '/pages/guide/guide', url: hasShowGuide ? '/pageSubPack/loginSub/pwd-login' : '/pages/guide/guide',
animationType: 'none', animationType: 'none',
animationDuration: 0 animationDuration: 0
}) })