zhangwencui
8 天以前 41acc01d0056630ac11083cf31397f2462acaf4e
src/pages/managementMeetings/sealManagement/index.vue
@@ -8,7 +8,7 @@
      <view class="search-bar">
        <view class="search-input">
          <up-input class="search-text"
                    placeholder="请输入申请标题"
                    placeholder="请输入申请编号"
                    v-model="name"
                    @blur="getList"
                    clearable />
@@ -77,7 +77,7 @@
                      @click="viewDetail(item,3)">
              查看
            </u-button>
            <u-button type="primary"
            <!-- <u-button type="primary"
                      size="small"
                      class="action-btn"
                      v-if="item.status === 'pending'"
@@ -90,28 +90,28 @@
                      v-if="item.status === 'pending'"
                      @click="confirmApprove(item,false)">
              拒绝
            </u-button>
            </u-button> -->
          </view>
        </view>
      </view>
    </view>
    <view v-else
          class="no-data">
      <text>暂无会议室记录</text>
      <text>暂无用印记录</text>
    </view>
    <!-- 浮动新增按钮 -->
    <view class="fab-button"
    <!-- <view class="fab-button"
          @click="addVisit">
      <up-icon name="plus"
               size="24"
               color="#ffffff"></up-icon>
    </view>
    </view> -->
  </view>
</template>
<script setup>
  import { ref, onMounted, computed } from "vue";
  import { onShow } from "@dcloudio/uni-app";
  import { onShow, onLoad } from "@dcloudio/uni-app";
  import { useDict } from "@/utils/dict";
  import PageHeader from "@/components/PageHeader.vue";
  import {
@@ -195,18 +195,18 @@
    const params = {
      current: -1,
      size: -1,
      title: name.value,
      applicationNum: name.value,
    };
    listSealApplication(params)
      .then(res => {
        const currentFactoryName = userStore.currentFactoryName;
        if (currentFactoryName) {
          visitList.value = res.data.records.filter(
            item => item.department === currentFactoryName
          );
        } else {
          visitList.value = res.data.records;
        }
        // const currentFactoryName = userStore.currentFactoryName;
        // if (currentFactoryName) {
        //   visitList.value = res.data.records.filter(
        //     item => item.department === currentFactoryName
        //   );
        // } else {
        visitList.value = res.data.records;
        // }
        closeToast();
      })
      .catch(() => {
@@ -287,6 +287,12 @@
      },
    });
  };
  onLoad(options => {
    // 解析applicationNum
    if (options.applicationNum) {
      name.value = options.applicationNum;
    }
  });
  onMounted(() => {
    getList();