| | |
| | | // import { useUserStoreHook } from "@/store/modules/user"; |
| | | import type { PaginationProps } from "@pureadmin/table"; |
| | | |
| | | import pdfPreview from "../../component/pdfPreview.vue"; |
| | | // const nowRole = computed(() => { |
| | | // return useUserStoreHook().nowRole; |
| | | // }); |
| | |
| | | } |
| | | |
| | | function resetForm(formEl) { |
| | | if (!formEl) return; |
| | | formEl.resetFields(); |
| | | onSearch(); |
| | | // if (!formEl) return; |
| | | // formEl.resetFields(); |
| | | // onSearch(); |
| | | |
| | | addDialog({ |
| | | title: `预览pdf`, |
| | | props: {}, |
| | | width: "60%", |
| | | draggable: true, |
| | | fullscreen: deviceDetection(), |
| | | fullscreenIcon: true, |
| | | sureBtnLoading: true, |
| | | closeOnClickModal: false, |
| | | contentRenderer: () => h(pdfPreview, { ref: formRef, formInline: null }) |
| | | // jsx 语法 (注意在.vue文件启用jsx语法,需要在script开启lang="tsx") |
| | | }); |
| | | } |
| | | const checkboxAsRadio = data => { |
| | | if (data.length > 1) { |