From ef51ae09decb4e016a849d8a5d96be7f44dafc4f Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Wed, 17 Jan 2024 19:28:20 +0800
Subject: [PATCH] 修复问题
---
subPackage/bs/views/repairRecord.vue | 33 +++++++++++++++++++--------------
1 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/subPackage/bs/views/repairRecord.vue b/subPackage/bs/views/repairRecord.vue
index f9d23b2..ac56f0a 100644
--- a/subPackage/bs/views/repairRecord.vue
+++ b/subPackage/bs/views/repairRecord.vue
@@ -7,7 +7,8 @@
inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}"></u-tabs>
<view class="search">
<u-search placeholder="请输入需要查询信息的姓名" v-model="keyWord" :clearabled="true" :showAction="true"
- :animation="true" @search="searchConfirm" @clear="clearConfirm" @custom="searchConfirm"></u-search>
+ :animation="true" @search="searchConfirm" @clear="clearConfirm"
+ @custom="searchConfirm"></u-search>
</view>
</view>
</view>
@@ -16,7 +17,9 @@
<view class="list-item bgc-ff mb-20" v-for="item in reportList" :key="item.id" @click="pushPage(item)">
<view class="item-title flex a-i-c j-c-s-b mb-20">
<text class="f-32 fw">{{ findObjValue(item.type, typeList, 'type').name }}</text>
- <u-tag class="u_tag" size="mini" plain plainFill :text="findObjValue(item.confirmFlag, tabList, 'status').name" :type="findObjValue(item.confirmFlag, tabList, 'status').type"></u-tag>
+ <u-tag class="u_tag" size="mini" plain plainFill
+ :text="findObjValue(item.confirmFlag, tabList, 'status').name"
+ :type="findObjValue(item.confirmFlag, tabList, 'status').type"></u-tag>
</view>
<view class="item-row flex a-i-c j-c-s-b">
<text class="f-28">姓名</text>
@@ -48,8 +51,7 @@
current: 1,
size: 10
},
- tabList: [
- {
+ tabList: [{
name: "全部",
status: '',
type: 'warning'
@@ -70,8 +72,7 @@
type: 'error'
},
],
- typeList: [
- {
+ typeList: [{
name: "公共维修",
type: 1
},
@@ -98,12 +99,12 @@
loadingStatus: 'nomore'
}
},
-
- onLoad(option){
+
+ onLoad(option) {
this.tabIndex = Number(option.type);
- this.tabStatus = option.type == 0?'':option.type
+ this.tabStatus = option.type == 0 ? '' : option.type
},
-
+
onShow() {
this.currentRole = uni.getStorageSync("activeRole")
this.reportList = []
@@ -118,9 +119,12 @@
this.loadingStatus = 'loadingmore'
const params = {
realName: this.keyWord,
- confirmFlag: this.tabStatus
+ confirmFlag: this.tabStatus,
+ houseCode: uni.getStorageSync("siteInfo").houseCode
}
- const { roleName } = this.currentRole
+ const {
+ roleName
+ } = this.currentRole
const res = await getPage({
...params,
roleName,
@@ -132,8 +136,8 @@
records
}
} = res
-
-
+
+
if (code !== 200) {
uni.showToast({
title: '数据请求失败',
@@ -204,6 +208,7 @@
.item-row {
padding: 10rpx 0;
+
.address {
width: 75%;
text-align: right;
--
Gitblit v1.9.3