Lou
2023-12-28 58d533b992d434f9e82cebf5771af488744aecb8
subPackage/workbench/views/cshw.vue
@@ -40,7 +40,7 @@
            </view>
            <view class="item-row flex a-i-c j-c-s-b">
               <text class="f-28">地址</text>
               <text class="address f-28 c-66">{{ item.localtion ? item.localtion : '未完善' }}</text>
               <text class="address f-28 c-66">{{ item.location ? item.location : '未完善' }}</text>
            </view>
            <view class="item-row flex a-i-c j-c-s-b">
               <text class="f-28">法人信息</text>
@@ -55,11 +55,11 @@
      <u-toast ref="uToast"></u-toast>
      <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
         <date-range-modal  ref="dateRane"    @comfirm="handleComfirmDate"  @rest="handleRestDate"  />
      <date-range-modal ref="dateRane" @comfirm="handleComfirmDate" @rest="handleRestDate" />
   </view>
</template>
@@ -67,11 +67,11 @@
   import {
      getSiteMaintenanceData
   } from '@/api/placeExp/placeExp.js'
   import dateRangeModal from '@/components/dateRangeModal/modal.vue';
   export default {
      components:{
      components: {
         dateRangeModal
      },
      data() {
@@ -107,18 +107,18 @@
            loadingStatus: 'nomore',
            clickInfo: {},
            currentRole: {},
            selectDate:[],
            selectDate: [],
         }
      },
      onLoad(option){
         if(option.from){
      onLoad(option) {
         if (option.from) {
            this.tabIndex = 1;
            this.tabStatus = 1;
         }
      },
      onShow() {
         this.currentRole = uni.getStorageSync("activeRole")
         this.resetParams()
@@ -128,10 +128,10 @@
         this.pagingParams.current++
         this.getSiteList()
      },
      methods: {
         async getSiteList() {
            this.$nextTick(() => {
@@ -142,14 +142,14 @@
               })
               this.loadingStatus = 'loadingmore'
            })
            const params = {
               placeName: this.keyWord,
               confirmFlag: this.tabStatus
            }
            if(this.selectDate.length){
                 params.startTime = this.selectDate[0],
                 params.endTime = this.selectDate[1]
            if (this.selectDate.length) {
               params.startTime = this.selectDate[0],
                  params.endTime = this.selectDate[1]
            }
            const {
               roleName
@@ -193,13 +193,13 @@
            this.resetParams()
            this.searchConfirm()
         },
         showDateModal(){
         showDateModal() {
            this.$refs.dateRane.open();
         },
         resetParams() {
            this.siteList = []
            this.pagingParams.current = 1
@@ -220,12 +220,12 @@
            this.$u.func.globalNavigator(`/subPackage/workbench/views/examine?id=${id}&placeId=${placeId}`)
         },
         handleRestDate(){
         handleRestDate() {
            this.selectDate = [];
            this.resetParams();
            this.getSiteList()
         },
         handleComfirmDate(val){
         handleComfirmDate(val) {
            this.selectDate = val;
            this.resetParams();
            this.getSiteList()