工单只展示3个图片
This commit is contained in:
@@ -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">
|
||||||
@@ -275,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;
|
||||||
@@ -282,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 => {
|
||||||
...item,
|
const list = item.repairImageUrl ? item.repairImageUrl.split(',').filter(Boolean) : []
|
||||||
repairImageUrlList: item.repairImageUrl
|
list.length = 3
|
||||||
? item.repairImageUrl.split(',').filter(Boolean)
|
const obj = {
|
||||||
: []
|
...item,
|
||||||
}))
|
repairImageUrlList: list.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 {
|
||||||
|
|||||||
@@ -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 => ({
|
|
||||||
...item,
|
const list = res.rows.map(item => {
|
||||||
repairImageUrlList: item.repairImageUrl
|
const list = item.repairImageUrl ? item.repairImageUrl.split(',').filter(Boolean) : []
|
||||||
? item.repairImageUrl.split(',').filter(Boolean)
|
list.length = 3
|
||||||
: []
|
const obj = {
|
||||||
}))
|
...item,
|
||||||
|
repairImageUrlList: list.filter(Boolean)
|
||||||
|
}
|
||||||
|
return obj
|
||||||
|
})
|
||||||
|
|
||||||
if (queryParmas.value.pageNum === 1) {
|
if (queryParmas.value.pageNum === 1) {
|
||||||
reportRecords.value = list
|
reportRecords.value = list
|
||||||
|
|||||||
Reference in New Issue
Block a user