From a778e2a7eabca8f201ceed7a27801a732b30eedf Mon Sep 17 00:00:00 2001 From: dx <1242347652@qq.com> Date: Wed, 5 Mar 2025 17:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BB=BB=E5=8A=A1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/index.ts | 6 + src/assets/imgs/no_data.png | Bin 0 -> 11409 bytes src/views/system/user/index.vue | 22 + src/views/task/create copy.vue | 616 ++++++++++++++++++++++++++++ src/views/task/create.vue | 2 +- src/views/task/create2.vue | 170 ++++++++ src/views/task/createEnterprise.vue | 301 ++++++++++++++ src/views/task/index.vue | 2 - 8 files changed, 1116 insertions(+), 3 deletions(-) create mode 100644 src/assets/imgs/no_data.png create mode 100644 src/views/task/create copy.vue create mode 100644 src/views/task/create2.vue create mode 100644 src/views/task/createEnterprise.vue diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 425afe2..fa7d4fb 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -56,6 +56,12 @@ export const deleteUser = (id: number) => { return request.delete({ url: '/system/user/delete?id=' + id }) } +// 删除用户 +export const deleteUserAllData = (id: number) => { + return request.delete({ url: '/system/user/test_delete?id=' + id }) +} + + // 导出用户 export const exportUser = (params) => { return request.download({ url: '/system/user/export', params }) diff --git a/src/assets/imgs/no_data.png b/src/assets/imgs/no_data.png new file mode 100644 index 0000000000000000000000000000000000000000..ac154094dcb7e7dfaeeaf9891aaa65055b6f29a1 GIT binary patch literal 11409 zcmV;CEN;_@P)006EC1^@s6vBd^m00009a7bBm000XU z000XU0RWnu7ytkO0drDELIAGL9O(c600d`2O+f$vv5yP1nhjXc z2FCOT2Jnn!%JRshC`x#B*O`2rS7ucM-9V$e3D!|i=&s7j%If;+JI~Al7-Wz^1{q|K zK?WIQkU<6+W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1tKHpMog=Pfqo9VQmaV46(m`DirJ fed`3EtIGcX+Bcf7`t9C<00000NkvXXu0mjfNkiOB literal 0 HcmV?d00001 diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index f681db8..1f8e5cc 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -156,6 +156,12 @@ > 删除 + + 测试删除全部数据 + { case 'handleRole': handleRole(row) break + case 'handleDelete2': + handleDelete2(row.id) + break default: break } @@ -350,6 +359,19 @@ const handleDelete = async (id: number) => { } catch {} } +/** 删除按钮操作 */ +const handleDelete2 = async (id: number) => { + try { + // 删除的二次确认 + await message.delConfirm() + // 发起删除 + await UserApi.deleteUserAllData(id) + message.success(t('common.delSuccess')) + // 刷新列表 + await getList() + } catch {} +} + /** 重置密码 */ const handleResetPwd = async (row: UserApi.UserVO) => { try { diff --git a/src/views/task/create copy.vue b/src/views/task/create copy.vue new file mode 100644 index 0000000..e669456 --- /dev/null +++ b/src/views/task/create copy.vue @@ -0,0 +1,616 @@ + + + \ No newline at end of file diff --git a/src/views/task/create.vue b/src/views/task/create.vue index 2d9e69d..94c9207 100644 --- a/src/views/task/create.vue +++ b/src/views/task/create.vue @@ -75,7 +75,7 @@ - +
diff --git a/src/views/task/create2.vue b/src/views/task/create2.vue new file mode 100644 index 0000000..e538ece --- /dev/null +++ b/src/views/task/create2.vue @@ -0,0 +1,170 @@ + + + \ No newline at end of file diff --git a/src/views/task/createEnterprise.vue b/src/views/task/createEnterprise.vue new file mode 100644 index 0000000..4692f7f --- /dev/null +++ b/src/views/task/createEnterprise.vue @@ -0,0 +1,301 @@ + + + + \ No newline at end of file diff --git a/src/views/task/index.vue b/src/views/task/index.vue index ee2161d..c73361e 100644 --- a/src/views/task/index.vue +++ b/src/views/task/index.vue @@ -294,8 +294,6 @@ const taskExec = async (data) => { loading.value = false } - - } //选择任务中企业范围