修改app部分样式异常
This commit is contained in:
@@ -8,9 +8,13 @@
|
||||
:tabslist="statusTabs"
|
||||
@update="switchStatus"
|
||||
></TabsComponents>
|
||||
|
||||
<view class="detail_list flex flex-1 overflow-auto">
|
||||
<scroll-view scroll-y="true" lower-threshold="160" @scrolltolower="scrolltolower">
|
||||
<scroll-view
|
||||
style="height: 100%; flex: 1"
|
||||
scroll-y="true"
|
||||
lower-threshold="160"
|
||||
@scrolltolower="scrolltolower"
|
||||
>
|
||||
<view
|
||||
class="item"
|
||||
v-for="(item, index) in list"
|
||||
@@ -108,10 +112,6 @@ function init() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
// 2. 开启锁
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
getComplainList(querySearch.value)
|
||||
.then(res => {
|
||||
list.value = [...list.value, ...res.rows]
|
||||
@@ -119,9 +119,14 @@ function init() {
|
||||
// 判断是否还有更多
|
||||
hasMore.value = list.value.length < total.value
|
||||
})
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -161,7 +166,10 @@ function scrolltolower() {
|
||||
flex: 1;
|
||||
background: #f9f9f9;
|
||||
padding: 20rpx 40rpx;
|
||||
justify-content: flex-start;
|
||||
align-items: stretch;
|
||||
.detail_list {
|
||||
margin-top: 20rpx;
|
||||
.item {
|
||||
background: #ffffff;
|
||||
border-radius: 16rpx;
|
||||
|
||||
@@ -122,17 +122,18 @@ function getlist() {
|
||||
return
|
||||
}
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
getSystemUsers_employee('complainUser', queryParmas.value.keyword)
|
||||
.then(res => {
|
||||
searchlist.value = res.data
|
||||
})
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
onShow(() => {
|
||||
|
||||
@@ -145,7 +145,7 @@ function init() {
|
||||
.filter(item => item !== false)
|
||||
baseFormData.value = result
|
||||
})
|
||||
.catch(err => {
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
|
||||
@@ -16,12 +16,14 @@
|
||||
@change="handleChangeTime"
|
||||
v-model="queryParmas.date"
|
||||
>
|
||||
<view class="day">{{ showDate }}</view>
|
||||
<view class="flex">
|
||||
<view class="day">{{ showDate }}</view>
|
||||
<view class="searchiconbox flex items-center">
|
||||
<view class="arrow"> </view>
|
||||
<view class="arrow1"> </view>
|
||||
</view>
|
||||
</view>
|
||||
</uni-datetime-picker>
|
||||
<view class="searchiconbox flex items-center">
|
||||
<view class="arrow"> </view>
|
||||
<view class="arrow1"> </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view
|
||||
@@ -115,10 +117,6 @@ function getlist() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
// 2. 开启锁
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
const { pageNum, pageSize, date, status } = queryParmas.value
|
||||
getInspectionList({
|
||||
pageSize,
|
||||
@@ -139,9 +137,14 @@ function getlist() {
|
||||
hasMore.value = list.value.length < res.total
|
||||
total.value = res.total
|
||||
})
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -215,7 +218,7 @@ const navBack = () => {
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
.timebox {
|
||||
width: 178rpx;
|
||||
width: 188rpx;
|
||||
height: 48rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
@@ -223,7 +226,7 @@ const navBack = () => {
|
||||
line-height: 48rpx;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
color: #999;
|
||||
margin-bottom: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
.daybox {
|
||||
|
||||
@@ -101,10 +101,7 @@ const total = ref(0)
|
||||
function getlist() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
|
||||
const { pageNum, pageSize, date, status } = queryParmas.value
|
||||
getInspectionList({
|
||||
pageSize,
|
||||
@@ -125,9 +122,14 @@ function getlist() {
|
||||
hasMore.value = list.value.length < res.total
|
||||
total.value = res.total
|
||||
})
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
/** 跳转到巡检上传页面 */
|
||||
|
||||
@@ -117,10 +117,7 @@ function getlist() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
// 2. 开启锁
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
|
||||
getVillageHouseList_keyword(queryParmas.value, queryParmas.value.searchValue)
|
||||
.then(res => {
|
||||
// 追加数据(正确方式)
|
||||
@@ -137,7 +134,6 @@ function getlist() {
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -116,10 +116,6 @@ function getlist() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
// 2. 开启锁
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
const { pageNum, pageSize, deviceType } = queryParmas.value
|
||||
getReplaceMainList({
|
||||
pageNum,
|
||||
@@ -131,9 +127,14 @@ function getlist() {
|
||||
total.value = res.total
|
||||
hasMore.value = infolist.value.length < total.value
|
||||
})
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
onShow(() => {
|
||||
|
||||
@@ -146,10 +146,6 @@ function scrolltolower() {
|
||||
function getlist() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
getTicketHallList(queryParmas.value)
|
||||
.then(res => {
|
||||
reportRecords.value = [...reportRecords.value, ...res.rows]
|
||||
@@ -169,7 +165,6 @@ function getlist() {
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -141,19 +141,20 @@ function getlist() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
// 2. 开启锁
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
getUserTicketlist(queryParmas.value)
|
||||
.then(res => {
|
||||
reportRecords.value = [...reportRecords.value, ...res.rows]
|
||||
hasMore.value = reportRecords.value.length < total.value
|
||||
total.value = res.total
|
||||
})
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
onShow(() => {
|
||||
|
||||
@@ -203,6 +203,7 @@ onShow(() => {
|
||||
})
|
||||
|
||||
function getTicketById() {
|
||||
if (!queryParams.value.id) return
|
||||
getTicketMainById(queryParams.value.id)
|
||||
.then(res => {
|
||||
repairInfo.value = res.data
|
||||
@@ -225,22 +226,31 @@ function getTicketById() {
|
||||
function handleStop(row) {
|
||||
// 0 已提交 1 已分配 2已解决
|
||||
let status = row.problemStatus
|
||||
|
||||
currentStep.value = 0
|
||||
// 维修步骤:0提交 1分配 2维修完成 / 待解决 3记录完成 完成
|
||||
if (status === '0') {
|
||||
currentStep.value = 1
|
||||
stepList.value[0].desc = '提交报修成功'
|
||||
} else if (status === '1') {
|
||||
return
|
||||
}
|
||||
if (status === '1') {
|
||||
currentStep.value = 2
|
||||
stepList.value[1].title = '已派单'
|
||||
stepList.value[1].desc = '物业已派单'
|
||||
stepList.value[2].title = '待解决'
|
||||
stepList.value[2].desc = `维修人员(${row.repairName})维修中`
|
||||
} else if (status === '2') {
|
||||
return
|
||||
}
|
||||
console.log(status)
|
||||
if (status === '2') {
|
||||
currentStep.value = 4
|
||||
stepList.value[0].desc = '提交报修成功'
|
||||
stepList.value[1].title = '已派单'
|
||||
stepList.value[1].desc = '物业已派单'
|
||||
stepList.value[2].title = '已解决'
|
||||
stepList.value[2].desc = `维修人员(${row.repairName})已解决`
|
||||
} else {
|
||||
currentStep.value = 0
|
||||
return
|
||||
}
|
||||
}
|
||||
/** 选择维修人员 */
|
||||
|
||||
@@ -115,19 +115,19 @@ function getlist() {
|
||||
if (isLoading.value) return
|
||||
// 2. 开启锁
|
||||
isLoading.value = true
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
|
||||
const { keyword, roleKey } = queryParmas.value
|
||||
getSystemUsers_employee(roleKey, keyword)
|
||||
.then(res => {
|
||||
searchlist.value = res.data
|
||||
})
|
||||
.catch(() => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '网络异常'
|
||||
})
|
||||
})
|
||||
.finally(() => {
|
||||
isLoading.value = false
|
||||
uni.hideLoading()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user