From 712573dc13ef6aee9510f2c68fecca96a0a423a8 Mon Sep 17 00:00:00 2001
From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com>
Date: Tue, 29 Oct 2024 15:07:04 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/modules/remaining.ts | 62 ++++-----
src/views/Home/clgl/ClglCreate.vue | 190 +++++++++++++++++++++++++
src/views/Home/clgl/ClglDetail.vue | 200 +++++++++++++++++++++++++++
src/views/Home/clgl/index.vue | 214 +++++++++++++----------------
4 files changed, 509 insertions(+), 157 deletions(-)
create mode 100644 src/views/Home/clgl/ClglCreate.vue
create mode 100644 src/views/Home/clgl/ClglDetail.vue
diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts
index 2e44614..d099282 100644
--- a/src/router/modules/remaining.ts
+++ b/src/router/modules/remaining.ts
@@ -376,40 +376,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
}
]
},
- // {
- // path: '/Home',
- // component: Layout,
- // name: 'car',
- // meta: {
- // hidden: true
- // },
- // children: [
- // {
- // path: 'clgl/ClglCreate',
- // component: () => import('@/views/Home/clgl/ClglCreate.vue'),
- // name: 'ClglCreate',
- // meta: {
- // noCache: true,
- // hidden: true,
- // canTo: true,
- // title: '发起车辆管理流程',
- // activeMenu: '/Home/clgl/Clglflow'
- // }
- // },
- // // {
- // // path: 'clgl/ClglDetail',
- // // component: () => import('@/views/Home/clgl/ClglDetail.vue'),
- // // name: 'ClglCreate',
- // // meta: {
- // // noCache: true,
- // // hidden: true,
- // // canTo: true,
- // // title: '发起车辆管理流程',
- // // activeMenu: '/Home/clgl/Clglflow'
- // // }
- // // },
- // ]
- // },
{
path: '/mall/product', // 商品中心
component: Layout,
@@ -685,9 +651,33 @@ const remainingRouter: AppRouteRecordRaw[] = [
title: '发起请假流程',
activeMenu: '/qjgl/qjglflow'
}
- }
+ },
+ {
+ path: 'clgl/ClglCreate',
+ component: () => import('@/views/Home/clgl/ClglCreate.vue'),
+ name: 'ClglCreate',
+ meta: {
+ noCache: true,
+ hidden: true,
+ canTo: true,
+ title: '发起车辆管理流程',
+ activeMenu: '/Home/clgl/Clglflow'
+ }
+ },
+ {
+ path: 'clgl/ClglDetail',
+ component: () => import('@/views/Home/clgl/ClglDetail.vue'),
+ name: 'ClglDetail',
+ meta: {
+ noCache: true,
+ hidden: true,
+ canTo: true,
+ title: '发起车辆管理流程',
+ activeMenu: '/Home/clgl/Clglflow'
+ }
+ },
]
- }
+ },
]
export default remainingRouter
diff --git a/src/views/Home/clgl/ClglCreate.vue b/src/views/Home/clgl/ClglCreate.vue
new file mode 100644
index 0000000..cbef299
--- /dev/null
+++ b/src/views/Home/clgl/ClglCreate.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dict.label }}
+
+
+
+
+
+
+
+
+
+
+ 确 定
+
+
+
diff --git a/src/views/Home/clgl/ClglDetail.vue b/src/views/Home/clgl/ClglDetail.vue
new file mode 100644
index 0000000..a25334a
--- /dev/null
+++ b/src/views/Home/clgl/ClglDetail.vue
@@ -0,0 +1,200 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dict.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Home/clgl/index.vue b/src/views/Home/clgl/index.vue
index 56a9d63..47a1223 100644
--- a/src/views/Home/clgl/index.vue
+++ b/src/views/Home/clgl/index.vue
@@ -8,24 +8,6 @@
:inline="true"
label-width="68px"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
搜索
重置
-
- 新增
-
导出
+
+ 发起流程
+
@@ -168,40 +84,61 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+ 进度
+
+
+ 详情
+
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
-import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import { ClglApi, ClglVO } from '@/api/home/clgl'
import ClglForm from './ClglForm.vue'
+import router from "@/router";
+import * as LeaveApi from '@/api/bpm/leave'
/** 车辆管理 列表 */
defineOptions({ name: 'Clgl' })
@@ -271,6 +209,40 @@ const queryParams = reactive({
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中
+/** 添加操作 */
+const handleCreate = () => {
+ router.push({ name: 'ClglCreate' })
+}
+/** 详情操作 */
+const handleDetail = (row: LeaveApi.LeaveVO) => {
+ router.push({
+ name: 'ClglDetail',
+ query: {
+ id: row.id
+ }
+ })
+}
+
+/** 审批进度 */
+const handleProcessDetail = (row) => {
+ router.push({
+ name: 'BpmProcessInstanceDetail',
+ query: {
+ id: row.processInstanceId
+ }
+ })
+}
+
+// fix: 列表不刷新的问题。
+watch(
+ () => router.currentRoute.value,
+ () => {
+ getList()
+ }
+)
+
+
+
/** 查询列表 */
const getList = async () => {
loading.value = true