zhangwencui
2 天以前 88693372feede0ba6ba2821d8ca4243c3b2fcdc1
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 />
@@ -97,7 +97,7 @@
    </view>
    <view v-else
          class="no-data">
      <text>暂无会议室记录</text>
      <text>暂无用印记录</text>
    </view>
    <!-- 浮动新增按钮 -->
    <view class="fab-button"
@@ -111,7 +111,7 @@
<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();