From 0230a4af01a2eaed9c43a54e54ffad97d4a549f4 Mon Sep 17 00:00:00 2001 From: moon69 <1016830869@qq.com> Date: Sat, 9 Mar 2024 17:38:56 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=97=A0=E6=B3=95=E5=9B=9E=E6=98=BE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/role/RoleDataPermissionForm.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/system/role/RoleDataPermissionForm.vue b/src/views/system/role/RoleDataPermissionForm.vue index 5d7801b7..e9e55ff8 100644 --- a/src/views/system/role/RoleDataPermissionForm.vue +++ b/src/views/system/role/RoleDataPermissionForm.vue @@ -102,8 +102,12 @@ const open = async (row: RoleApi.RoleVO) => { formData.name = row.name formData.code = row.code formData.dataScope = row.dataScope - row.dataScopeDeptIds?.forEach((deptId: number) => { - treeRef.value.setChecked(deptId, true, false) + + // 需要在 DOM 渲染完成后,再设置选中状态 + nextTick(() => { + row.dataScopeDeptIds?.forEach((deptId: number) => { + treeRef.value.setChecked(deptId, true, false) + }) }) } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 From 4c0a5e8c30ffd5fe5acdf155e6642799bca4770c Mon Sep 17 00:00:00 2001 From: moon69 <1016830869@qq.com> Date: Sun, 10 Mar 2024 11:59:49 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=97=A0=E6=B3=95=E5=9B=9E=E6=98=BE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/role/RoleDataPermissionForm.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/system/role/RoleDataPermissionForm.vue b/src/views/system/role/RoleDataPermissionForm.vue index e9e55ff8..51867a77 100644 --- a/src/views/system/role/RoleDataPermissionForm.vue +++ b/src/views/system/role/RoleDataPermissionForm.vue @@ -102,12 +102,11 @@ const open = async (row: RoleApi.RoleVO) => { formData.name = row.name formData.code = row.code formData.dataScope = row.dataScope - + + await nextTick() // 需要在 DOM 渲染完成后,再设置选中状态 - nextTick(() => { - row.dataScopeDeptIds?.forEach((deptId: number) => { - treeRef.value.setChecked(deptId, true, false) - }) + row.dataScopeDeptIds?.forEach((deptId: number) => { + treeRef.value.setChecked(deptId, true, false) }) } defineExpose({ open }) // 提供 open 方法,用于打开弹窗 From 68e1556378d171651058f4cada4b488b903bc967 Mon Sep 17 00:00:00 2001 From: sunva Date: Fri, 29 Mar 2024 17:06:56 +0800 Subject: [PATCH 3/7] =?UTF-8?q?SYSTEM=EF=BC=9A=E4=BF=AE=E5=A4=8D=E3=80=90?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86/=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E7=AE=A1=E7=90=86/=E6=96=B0=E5=A2=9E=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E4=B8=8E=E5=AF=BC=E5=87=BA=E6=8C=89=E9=92=AE=E3=80=91=E6=9D=83?= =?UTF-8?q?=E9=99=90hasPermi=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/post/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 44663263..8532cf20 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -41,7 +41,7 @@ type="primary" plain @click="openForm('create')" - v-hasPermi="['system:notice:create']" + v-hasPermi="['system:post:create']" > 新增 @@ -50,7 +50,7 @@ plain @click="handleExport" :loading="exportLoading" - v-hasPermi="['infra:config:export']" + v-hasPermi="['infra:post:export']" > 导出 From ffc81621d709c5f1601fc46e13d699b83de03740 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 30 Mar 2024 20:41:32 +0800 Subject: [PATCH 4/7] =?UTF-8?q?REPORT=EF=BC=9A=E3=80=90=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E3=80=91Ureport=20=E7=9A=84=E5=AE=9E=E7=8E=B0=EF=BC=8C?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=E5=92=8C=20Spring=20Boot=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=80=A7=E8=BE=83=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report/ureport/index.ts | 39 ---- src/views/report/ureport/UReportDataForm.vue | 113 ---------- src/views/report/ureport/index.vue | 13 -- src/views/report/ureport/index2.vue | 220 ------------------- 4 files changed, 385 deletions(-) delete mode 100644 src/api/report/ureport/index.ts delete mode 100644 src/views/report/ureport/UReportDataForm.vue delete mode 100644 src/views/report/ureport/index.vue delete mode 100644 src/views/report/ureport/index2.vue diff --git a/src/api/report/ureport/index.ts b/src/api/report/ureport/index.ts deleted file mode 100644 index 2a9daea4..00000000 --- a/src/api/report/ureport/index.ts +++ /dev/null @@ -1,39 +0,0 @@ -import request from '@/config/axios' - -export interface UReportDataVO { - id: number - name: string - status: number - content: string - remark: string -} - -// 查询Ureport2报表分页 -export const getUReportDataPage = async (params) => { - return await request.get({ url: `/report/ureport-data/page`, params }) -} - -// 查询Ureport2报表详情 -export const getUReportData = async (id: number) => { - return await request.get({ url: `/report/ureport-data/get?id=` + id }) -} - -// 新增Ureport2报表 -export const createUReportData = async (data: UReportDataVO) => { - return await request.post({ url: `/report/ureport-data/create`, data }) -} - -// 修改Ureport2报表 -export const updateUReportData = async (data: UReportDataVO) => { - return await request.put({ url: `/report/ureport-data/update`, data }) -} - -// 删除Ureport2报表 -export const deleteUReportData = async (id: number) => { - return await request.delete({ url: `/report/ureport-data/delete?id=` + id }) -} - -// 导出Ureport2报表 Excel -export const exportUReportData = async (params) => { - return await request.download({ url: `/report/ureport-data/export-excel`, params }) -} diff --git a/src/views/report/ureport/UReportDataForm.vue b/src/views/report/ureport/UReportDataForm.vue deleted file mode 100644 index 0711f3c5..00000000 --- a/src/views/report/ureport/UReportDataForm.vue +++ /dev/null @@ -1,113 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/report/ureport/index.vue b/src/views/report/ureport/index.vue deleted file mode 100644 index e9d6c0e4..00000000 --- a/src/views/report/ureport/index.vue +++ /dev/null @@ -1,13 +0,0 @@ -