Lou
2024-01-17 ef51ae09decb4e016a849d8a5d96be7f44dafc4f
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;