From 5d31b52e679fab6dd34ca519ddfbd7151958b319 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Mon, 25 Mar 2024 22:39:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 9 +++++++++ src/views/monitor/logininfor/index.vue | 2 ++ src/views/monitor/online/index.vue | 2 ++ src/views/monitor/operlog/index.vue | 2 ++ src/views/rapid/gen/index.vue | 2 ++ src/views/system/config/index.vue | 7 ++----- src/views/system/dept/index.vue | 8 ++++++-- src/views/system/menu/index.vue | 14 ++++++++++---- src/views/system/notice/inform/index.vue | 4 +++- src/views/system/notice/publish/index.vue | 4 +++- src/views/system/post/index.vue | 16 ++++++++++------ src/views/system/role/index.vue | 2 ++ src/views/tool/interface-switch/index.vue | 3 ++- src/views/workflow/about/index.vue | 5 +++-- src/views/workflow/approve/index.vue | 5 +++-- src/views/workflow/initiated/index.vue | 4 +++- src/views/workflow/listen/index.vue | 4 +++- src/views/workflow/process/ProcessEdit.vue | 2 +- src/views/workflow/process/ProcessTree.vue | 8 ++++---- src/views/workflow/process/index.vue | 4 +++- .../workflow/process/nodes/ConcurrentNode.vue | 18 +++++++++--------- .../workflow/process/nodes/ConditionNode.vue | 13 +++++-------- src/views/workflow/task/index.vue | 11 +++++++++-- 23 files changed, 98 insertions(+), 51 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index a816fda..9c643ac 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -70,6 +70,15 @@ const router = createRouter({ breadcrumb: true } }, + { + path: '/workflow/process', + name: 'process', + component: () => import('@/views/workflow/process/index.vue'), + meta: { + title: '流程管理', + breadcrumb: true + } + }, { path: '/workflow/process/edit', name: 'processAdd', diff --git a/src/views/monitor/logininfor/index.vue b/src/views/monitor/logininfor/index.vue index db53e3a..414ea2b 100644 --- a/src/views/monitor/logininfor/index.vue +++ b/src/views/monitor/logininfor/index.vue @@ -148,6 +148,8 @@ const getList = async () => { list.value = res.data.rows total.value = res.data.total loading.value = false + }else { + ElMessage.error(res.msg); } }) } diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue index f696c3f..8facdbf 100644 --- a/src/views/monitor/online/index.vue +++ b/src/views/monitor/online/index.vue @@ -78,6 +78,8 @@ const getList = async () => { list.value = res.data.rows total.value = res.data.total loading.value = false + }else { + ElMessage.error(res.msg); } }) } diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue index 89a1a92..a117696 100644 --- a/src/views/monitor/operlog/index.vue +++ b/src/views/monitor/operlog/index.vue @@ -247,6 +247,8 @@ const getList = async () => { list.value = res.data.rows; total.value = res.data.total; loading.value = false; + }else { + ElMessage.error(res.msg); } }); }; diff --git a/src/views/rapid/gen/index.vue b/src/views/rapid/gen/index.vue index a3b4cf0..d9bce77 100644 --- a/src/views/rapid/gen/index.vue +++ b/src/views/rapid/gen/index.vue @@ -271,6 +271,8 @@ const getList = async () => { list.value = res.data.rows total.value = res.data.total loading.value = false + }else { + ElMessage.error(res.msg); } }) } diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index 643cdbf..0b311d8 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -18,7 +18,7 @@ - 搜索 + 搜索 重置 @@ -160,10 +160,7 @@ const formRules = ref({ {required: true, message: "系统内置不能为空", trigger: "change"}, ], }) -//搜索功能 -const handleSearch = () => { - getList() -} + //重置搜索 const handleReset = () => { queryForm.value.resetFields() diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 912478c..e00ad03 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -182,8 +182,12 @@ const getEditOption = (deptId) => { const getList = async () => { loading.value = true getDeptList(queryParams).then(res => { - list.value = res.data - loading.value = false + if (res.code === 1000) { + list.value = res.data + loading.value = false + } else { + ElMessage.error(res.msg); + } }) } const getDetail = (deptId) => { diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index f59efb9..b1ee86f 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -44,8 +44,10 @@