feat:网元许可快速上传功能

This commit is contained in:
zhongzm
2025-09-10 18:08:53 +08:00
parent cdbe9a1e42
commit 5932662e7c
4 changed files with 467 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ const neListStore = useNeListStore();
const EditModal = defineAsyncComponent(
() => import('./components/EditModal.vue')
);
// 快速许可证上传
const QuickLicenseModal = defineAsyncComponent(
() => import('./components/QuickLicenseModal.vue')
);
/**字典数据-状态 */
let dictStatus = ref<DictType[]>([]);
@@ -210,7 +214,7 @@ function fnGetList(pageNum?: number) {
tablePagination.total = totalV;
if (
tablePagination.total <=
(queryParams.pageNum - 1) * tablePagination.pageSize &&
(queryParams.pageNum - 1) * tablePagination.pageSize &&
queryParams.pageNum !== 1
) {
tableState.loading = false;
@@ -228,6 +232,8 @@ function fnGetList(pageNum?: number) {
type ModalStateType = {
/**新增框或修改框是否显示 */
openByEdit: boolean;
/**快速许可证上传框是否显示 */
openByQuickUpload: boolean;
/**授权记录ID */
licenseId: number;
/**确定按钮 loading */
@@ -237,6 +243,7 @@ type ModalStateType = {
/**对话框对象信息状态 */
let modalState: ModalStateType = reactive({
openByEdit: false,
openByQuickUpload: false,
licenseId: 0,
confirmLoading: false,
});
@@ -270,6 +277,7 @@ function fnModalOk(e: any) {
*/
function fnModalCancel() {
modalState.openByEdit = false;
modalState.openByQuickUpload = false;
modalState.licenseId = 0;
}
@@ -410,6 +418,14 @@ onMounted(() => {
<!-- 插槽-卡片左侧侧 -->
<template #title>
<a-space :size="8" align="center">
<a-button
type="primary"
:loading="modalState.confirmLoading"
@click.prevent="modalState.openByQuickUpload = true"
>
<template #icon><UploadOutlined /></template>
{{ t('views.ne.neLicense.quickUpload.title') }}
</a-button>
<a-button
type="default"
:loading="modalState.confirmLoading"
@@ -514,6 +530,13 @@ onMounted(() => {
@ok="fnModalOk"
@cancel="fnModalCancel"
></EditModal>
<!-- 快速许可证上传框 -->
<QuickLicenseModal
v-model:open="modalState.openByQuickUpload"
@ok="fnModalOk"
@cancel="fnModalCancel"
></QuickLicenseModal>
</PageContainer>
</template>