From 1c0f01cc462d37e146c34127d2883ca51e26d508 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期二, 24 六月 2025 17:12:32 +0800
Subject: [PATCH] fix: 修复PIMTable不支持懒加载问题。修复【来票登记】金额格式化显示NaN问题。 style: 重构来票登记页面。 feat: 完善文件上传组件功能。【来票台账】底部添加合计。【来票登记】添加上传附件

---
 src/components/SizeSelect/index.vue |   36 ++++++++++++------------------------
 1 files changed, 12 insertions(+), 24 deletions(-)

diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue
index 289d4a0..dddb58a 100644
--- a/src/components/SizeSelect/index.vue
+++ b/src/components/SizeSelect/index.vue
@@ -16,36 +16,24 @@
 </template>
 
 <script setup>
-import { ElMessage } from 'element-plus'
+import useAppStore from "@/store/modules/app"
 
-const store = useStore();
-const size = computed(() => store.getters.size);
-const route = useRoute();
-const router = useRouter();
-const {proxy} = getCurrentInstance();
+const appStore = useAppStore()
+const size = computed(() => appStore.size)
+const route = useRoute()
+const router = useRouter()
+const { proxy } = getCurrentInstance()
 const sizeOptions = ref([
-  { label: '杈冨ぇ', value: 'large' },
-  { label: '榛樿', value: 'default' },
-  { label: '绋嶅皬', value: 'small' },
+  { label: "杈冨ぇ", value: "large" },
+  { label: "榛樿", value: "default" },
+  { label: "绋嶅皬", value: "small" },
 ])
 
-function refreshView() {
-  // In order to make the cached page re-rendered
-  store.dispatch('tagsView/delAllCachedViews', route)
-
-  const { fullPath } = route
-
-  nextTick(() => {
-    router.replace({
-      path: '/redirect' + fullPath
-    })
-  })
-}
 function handleSetSize(size) {
-  proxy.$modal.loading("姝e湪璁剧疆甯冨眬澶у皬锛岃绋嶅��...");
-  store.dispatch('app/setSize', size)
+  proxy.$modal.loading("姝e湪璁剧疆甯冨眬澶у皬锛岃绋嶅��...")
+  appStore.setSize(size)
   setTimeout("window.location.reload()", 1000)
-};
+}
 </script>
 
 <style lang='scss' scoped>

--
Gitblit v1.9.3