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 @@