From ac3ad638949e4d560ddf69320a5f9bb28ca5aaca Mon Sep 17 00:00:00 2001
From: ahaos <8406649+lhailgl@user.noreply.gitee.com>
Date: Wed, 19 Jul 2023 14:48:30 +0000
Subject: [PATCH] =?UTF-8?q?!29=20=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E6=89=93=E5=BC=80=E5=AF=B9=E8=AF=9D=E6=A1=86=E5=92=8C=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E8=AF=B7=E6=B1=82=E9=A1=BA=E5=BA=8F=20Merge=20pull=20?=
=?UTF-8?q?request=20!29=20from=20ahaos/tspr?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/plugins/download.ts | 4 +-
src/utils/jsencrypt.ts | 2 +-
src/utils/propTypes.ts | 3 +-
src/views/demo/demo/index.vue | 18 +++----
src/views/demo/tree/index.vue | 36 ++++++-------
src/views/monitor/online/index.vue | 2 +-
src/views/system/client/index.vue | 58 ++++++++-------------
src/views/system/config/index.vue | 16 +++---
src/views/system/dept/index.vue | 65 +++++++++++-------------
src/views/system/dict/data.vue | 16 +++---
src/views/system/dict/index.vue | 17 +++----
src/views/system/menu/index.vue | 22 +++-----
src/views/system/notice/index.vue | 16 +++---
src/views/system/oss/config.vue | 26 ++++------
src/views/system/oss/index.vue | 24 ++++-----
src/views/system/post/index.vue | 16 +++---
src/views/system/role/index.vue | 42 +++++----------
src/views/system/tenant/index.vue | 26 ++++------
src/views/system/tenantPackage/index.vue | 32 ++++--------
src/views/system/user/index.vue | 46 ++++++++---------
src/views/tool/gen/index.vue | 2 +-
21 files changed, 193 insertions(+), 296 deletions(-)
diff --git a/src/plugins/download.ts b/src/plugins/download.ts
index c6c8521..49e0333 100644
--- a/src/plugins/download.ts
+++ b/src/plugins/download.ts
@@ -54,8 +54,8 @@ export default {
}
downloadLoadingInstance.close();
} catch (r) {
- console.error(r)
- ElMessage.error('下载文件出现错误,请联系管理员!')
+ console.error(r);
+ ElMessage.error('下载文件出现错误,请联系管理员!');
downloadLoadingInstance.close();
}
},
diff --git a/src/utils/jsencrypt.ts b/src/utils/jsencrypt.ts
index 6a8edf6..98114b4 100644
--- a/src/utils/jsencrypt.ts
+++ b/src/utils/jsencrypt.ts
@@ -1,7 +1,7 @@
import JSEncrypt from 'jsencrypt';
// 密钥对生成 http://web.chacuo.net/netrsakeypair
-const publicKey = import.meta.env.VITE_APP_RSA_PUBLIC_KEY
+const publicKey = import.meta.env.VITE_APP_RSA_PUBLIC_KEY;
// 前端不建议存放私钥 不建议解密数据 因为都是透明的意义不大
const privateKey = '**********';
diff --git a/src/utils/propTypes.ts b/src/utils/propTypes.ts
index 2f31820..1847040 100644
--- a/src/utils/propTypes.ts
+++ b/src/utils/propTypes.ts
@@ -19,8 +19,7 @@ export default class ProjectTypes extends VueTypes {
return toValidableType('style', {
type: [String, Object],
default: undefined
-
- })
+ });
}
}
export { propTypes };
diff --git a/src/views/demo/demo/index.vue b/src/views/demo/demo/index.vue
index 54f7c86..fa2c625 100644
--- a/src/views/demo/demo/index.vue
+++ b/src/views/demo/demo/index.vue
@@ -208,25 +208,19 @@ const handleSelectionChange = (selection: DemoVO[]) => {
/** 新增按钮操作 */
const handleAdd = () => {
+ reset();
dialog.visible = true;
dialog.title = "添加测试单";
- nextTick(() => {
- reset();
- });
}
/** 修改按钮操作 */
-const handleUpdate = (row?: DemoVO) => {
- loading.value = true
+const handleUpdate = async (row?: DemoVO) => {
+ reset();
+ const _id = row?.id || ids.value[0]
+ const res = await getDemo(_id);
+ Object.assign(form.value, res.data);
dialog.visible = true;
dialog.title = "修改测试单";
- nextTick(async () => {
- reset();
- const _id = row?.id || ids.value[0]
- const res = await getDemo(_id);
- loading.value = false;
- Object.assign(form.value, res.data);
- });
}
/** 提交按钮 */
diff --git a/src/views/demo/tree/index.vue b/src/views/demo/tree/index.vue
index f6ec15c..162ddf6 100644
--- a/src/views/demo/tree/index.vue
+++ b/src/views/demo/tree/index.vue
@@ -201,17 +201,15 @@ const resetQuery = () => {
/** 新增按钮操作 */
const handleAdd = (row?: TreeVO) => {
+ reset();
+ getTreeselect();
+ if (row && row.id) {
+ form.value.parentId = row.id;
+ } else {
+ form.value.parentId = 0;
+ }
dialog.visible = true;
dialog.title = "添加测试树";
- nextTick(() => {
- reset();
- getTreeselect();
- if (row != null && row.id) {
- form.value.parentId = row.id;
- } else {
- form.value.parentId = 0;
- }
- });
}
/** 展开/折叠操作 */
@@ -229,20 +227,16 @@ const toggleExpandAll = (data: TreeVO[], status: boolean) => {
}
/** 修改按钮操作 */
-const handleUpdate = (row: TreeVO) => {
- loading.value = true;
+const handleUpdate = async (row: TreeVO) => {
+ reset();
+ await getTreeselect();
+ if (row) {
+ form.value.parentId = row.id;
+ }
+ const res = await getTree(row.id);
+ Object.assign(form.value, res.data);
dialog.visible = true;
dialog.title = "修改测试树";
- nextTick(async () => {
- reset();
- await getTreeselect();
- if (row != null) {
- form.value.parentId = row.id;
- }
- const res = await getTree(row.id);
- loading.value = false;
- Object.assign(form.value, res.data);
- });
}
/** 提交按钮 */
diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue
index 6d7bf87..ddbd385 100644
--- a/src/views/monitor/online/index.vue
+++ b/src/views/monitor/online/index.vue
@@ -95,7 +95,7 @@ const resetQuery = () => {
const handleForceLogout = async (row: OnlineVO) => {
await proxy?.$modal.confirm('是否确认强退名称为"' + row.userName + '"的用户?');
await forceLogout(row.tokenId);
- getList();
+ await getList();
proxy?.$modal.msgSuccess("删除成功");
}
diff --git a/src/views/system/client/index.vue b/src/views/system/client/index.vue
index 2130d03..827eaf2 100644
--- a/src/views/system/client/index.vue
+++ b/src/views/system/client/index.vue
@@ -29,10 +29,14 @@
新增
- 修改
+
+ 修改
+
- 删除
+
+ 删除
+
导出
@@ -50,7 +54,7 @@
-
+
@@ -80,13 +84,7 @@
-
+
@@ -99,18 +97,12 @@
-
+
-
+
@@ -156,8 +148,6 @@