From 8908f9cffef4b027f4760aa6ec082b42a04db151 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com>
Date: Sun, 15 May 2022 11:10:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2elementui2.2.0=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/utils/signalR.js | 1 -
src/views/components/dictData.vue | 8 +-
src/views/monitor/job/index.vue | 69 ++++----
src/views/monitor/job/log.vue | 4 +-
src/views/monitor/operlog/index.vue | 159 +++++++++----------
src/views/system/article/articleCategory.vue | 2 +-
src/views/system/article/manager.vue | 18 +--
src/views/system/commonLang/index.vue | 10 +-
src/views/system/config/index.vue | 31 ++--
src/views/system/dept/index.vue | 26 +--
src/views/system/dict/index.vue | 27 +++-
src/views/system/menu/index.vue | 38 +++--
src/views/system/notice/index.vue | 6 +-
src/views/system/post/index.vue | 16 +-
src/views/system/role/index.vue | 30 ++--
src/views/system/roleusers/index.vue | 24 ++-
src/views/system/user/index.vue | 29 ++--
src/views/tool/file/index.vue | 28 ++--
src/views/tool/gen/index.vue | 13 +-
19 files changed, 285 insertions(+), 254 deletions(-)
diff --git a/src/utils/signalR.js b/src/utils/signalR.js
index 31097b0..071033e 100644
--- a/src/utils/signalR.js
+++ b/src/utils/signalR.js
@@ -60,7 +60,6 @@ export default {
},
// 接收消息处理
receiveMsg(connection) {
- console.log(connection)
connection.on("onlineNum", (data) => {
store.dispatch("socket/changeOnlineNum", data);
});
diff --git a/src/views/components/dictData.vue b/src/views/components/dictData.vue
index 79ef921..e8f4f72 100644
--- a/src/views/components/dictData.vue
+++ b/src/views/components/dictData.vue
@@ -27,7 +27,9 @@
{{ scope.row.dictLabel }}
- {{ scope.row.dictLabel }}
+ {{ scope.row.dictLabel }}
+
@@ -40,8 +42,8 @@
- 编辑
- 删除
+ 编辑
+ 删除
diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue
index 4cc35e8..bf9126d 100644
--- a/src/views/monitor/job/index.vue
+++ b/src/views/monitor/job/index.vue
@@ -10,8 +10,7 @@
clearable
prefix-icon="el-icon-search"
@keyup.enter="handleQuery"
- @clear="handleQuery"
- />
+ @clear="handleQuery" />
{{ $t('btn.search') }}
@@ -55,66 +54,66 @@
-
+
-
+
{{ $t('btn.log') }}
-
-
+
+ @click="handleRun(scope.row)">
{{ $t('btn.run') }}
-
-
+
+ @click="handleStop(scope.row)">
{{ $t('btn.stop') }}
-
+
-
+ @click="handleStart(scope.row)">
{{ $t('btn.start') }}
-
-
+
+ @click="handleUpdate(scope.row)">
{{ $t('btn.edit') }}
-
+
-
+ @click="handleDelete(scope.row)">
{{ $t('btn.delete') }}
-
+
@@ -239,7 +238,7 @@
@@ -549,8 +548,8 @@ const logForm = reactive({
jobId: undefined,
title: undefined,
})
-function onJobLogView(){
- router.push({ path: 'job/log' })
+function onJobLogView() {
+ router.push({ path: 'job/log' })
}
/** 任务日志列表查询 */
function handleJobLog(row) {
diff --git a/src/views/monitor/job/log.vue b/src/views/monitor/job/log.vue
index df449ee..c3af69a 100644
--- a/src/views/monitor/job/log.vue
+++ b/src/views/monitor/job/log.vue
@@ -67,7 +67,7 @@
- 详细
+ 详细
@@ -106,7 +106,7 @@
diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue
index 86cf5d5..b8d4020 100644
--- a/src/views/monitor/operlog/index.vue
+++ b/src/views/monitor/operlog/index.vue
@@ -18,7 +18,12 @@
-
+
搜索
@@ -28,14 +33,15 @@
- 删除
+
+ 删除
+
清空
- 导出
-
+ 导出
@@ -54,14 +60,15 @@
-
+
- {{ scope.row.elapsed }}
- ms
+
+ {{ scope.row.elapsed }} ms
+
@@ -72,13 +79,14 @@
- 详细
+
+ 详细
-
+
@@ -126,21 +134,15 @@
关 闭
-
-
diff --git a/src/views/system/article/articleCategory.vue b/src/views/system/article/articleCategory.vue
index 3927c87..cb4a367 100644
--- a/src/views/system/article/articleCategory.vue
+++ b/src/views/system/article/articleCategory.vue
@@ -98,7 +98,7 @@
diff --git a/src/views/system/article/manager.vue b/src/views/system/article/manager.vue
index 289321c..b7c3f47 100644
--- a/src/views/system/article/manager.vue
+++ b/src/views/system/article/manager.vue
@@ -35,26 +35,26 @@
- {{ scope.row.status == '2' ? "草稿":"已发布" }}
+ {{ scope.row.status == '2' ? '草稿' : '已发布' }}
-
+
- 查看
- 编辑
-
+ 查看
+ 编辑
+
- 删除
+ 删除
-
\ No newline at end of file
+
diff --git a/src/views/system/commonLang/index.vue b/src/views/system/commonLang/index.vue
index 48d97a5..ae3b3a9 100644
--- a/src/views/system/commonLang/index.vue
+++ b/src/views/system/commonLang/index.vue
@@ -88,8 +88,8 @@
-
-
+
+
@@ -112,7 +112,9 @@
-
+
+ {{ $t('btn.edit') }}
+
@@ -163,7 +165,7 @@
diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue
index ec77d28..76bf1c6 100644
--- a/src/views/system/config/index.vue
+++ b/src/views/system/config/index.vue
@@ -13,7 +13,12 @@
-
+
{{ $t('btn.search') }}
@@ -23,14 +28,18 @@
- {{ $t('btn.add') }}
+
+ {{ $t('btn.add') }}
+
- {{ $t('btn.edit') }}
+
+ {{ $t('btn.edit') }}
+
- {{ $t('btn.delete') }}
+
+ {{ $t('btn.delete') }}
@@ -87,8 +84,7 @@
placeholder="请输入用户名称"
clearable
prefix-icon="search"
- @keyup.enter="handleSearchRoleUser"
- />
+ @keyup.enter="handleSearchRoleUser" />
@@ -101,8 +97,7 @@
row-key="userId"
stripe
border
- :height="tableHeight * 0.5"
- >
+ :height="tableHeight * 0.5">
@@ -117,8 +112,7 @@
:total="dataUserCount"
v-model:page="userQueryParams.pageNum"
v-model:limit="userQueryParams.pageSize"
- @pagination="handleGetUserTable"
- />
+ @pagination="handleGetUserTable" />
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index e828ccd..0bd2038 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -14,8 +14,7 @@
:filter-node-method="filterNode"
ref="deptTreeRef"
default-expand-all
- @node-click="handleNodeClick"
- />
+ @node-click="handleNodeClick" />
@@ -39,8 +38,7 @@
type="daterange"
range-separator="-"
start-placeholder="开始日期"
- end-placeholder="结束日期"
- >
+ end-placeholder="结束日期">
{{ $t('btn.search') }}
@@ -91,23 +89,16 @@
-
+
+
+
-
-
+ v-hasPermi="['system:user:resetPwd']">
@@ -142,8 +133,7 @@
:props="{ value: 'id', label: 'label', children: 'children' }"
value-key="id"
placeholder="请选择归属部门"
- check-strictly
- />
+ check-strictly />
@@ -214,8 +204,7 @@
:on-progress="handleFileUploadProgress"
:on-success="handleFileSuccess"
:auto-upload="false"
- drag
- >
+ drag>
diff --git a/src/views/tool/file/index.vue b/src/views/tool/file/index.vue
index 48e98ca..46751d3 100644
--- a/src/views/tool/file/index.vue
+++ b/src/views/tool/file/index.vue
@@ -12,8 +12,7 @@
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
- placeholder="请选择上传时间"
- >
+ placeholder="请选择上传时间">
@@ -58,8 +57,7 @@
:hide-on-click-modal="true"
fit="contain"
lazy
- class="el-avatar"
- >
+ class="el-avatar">
@@ -76,19 +74,19 @@
-
+
- {{ $t('btn.view') }}
+ {{ $t('btn.view') }}
+ v-clipboard:success="clipboardSuccess">
{{ $t('btn.copy') }}
-
+
{{ $t('btn.delete') }}
@@ -132,14 +130,13 @@
:drag="true"
:data="uploadData"
:autoUpload="false"
- @success="handleUploadSuccess"
- />
+ @success="handleUploadSuccess" />
@@ -188,10 +185,9 @@
+ v-clipboard:success="clipboardSuccess">
{{ $t('btn.copy') }}
diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue
index bdeae53..c0cf964 100644
--- a/src/views/tool/gen/index.vue
+++ b/src/views/tool/gen/index.vue
@@ -24,8 +24,7 @@
border
@selection-change="handleSelectionChange"
highlight-current-row
- height="480px"
- >
+ height="480px">
@@ -41,11 +40,11 @@
- 预览
- 编辑
- 删除
- 同步
- 生成代码
+ 预览
+ 编辑
+ 删除
+ 同步
+ 生成代码