| | |
| | | <view class="search-bar"> |
| | | <view class="search-input"> |
| | | <up-input class="search-text" |
| | | placeholder="请输入申请标题" |
| | | placeholder="请输入申请编号" |
| | | v-model="name" |
| | | @blur="getList" |
| | | clearable /> |
| | |
| | | </view> |
| | | <view v-else |
| | | class="no-data"> |
| | | <text>暂无会议室记录</text> |
| | | <text>暂无用印记录</text> |
| | | </view> |
| | | <!-- 浮动新增按钮 --> |
| | | <view class="fab-button" |
| | |
| | | |
| | | <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 { |
| | |
| | | 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(() => { |
| | |
| | | }, |
| | | }); |
| | | }; |
| | | onLoad(options => { |
| | | // 解析applicationNum |
| | | if (options.applicationNum) { |
| | | name.value = options.applicationNum; |
| | | } |
| | | }); |
| | | |
| | | onMounted(() => { |
| | | getList(); |