diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index c129719..d6d1b71 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -154,6 +154,69 @@ ], }, { + path: '/process', + component: Layout, + redirect: '/process/list', + name: 'Process', + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + }, + children: [ + { + path: 'list', + name: 'ProcessList', + component: () => import('@/views/system/process/process.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process', + }, + }, + { + path: 'edit', + name: 'ProcessListEdit', + component: () => import('@/views/system/process/editProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'detail', + name: 'ProcessListDetail', + component: () => import('@/views/system/process/detailProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'add', + name: 'ProcessListAdd', + component: () => import('@/views/system/process/addProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + ], + }, + { path: '/tenant', component: Layout, redirect: '/tenant/list', diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index c129719..d6d1b71 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -154,6 +154,69 @@ ], }, { + path: '/process', + component: Layout, + redirect: '/process/list', + name: 'Process', + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + }, + children: [ + { + path: 'list', + name: 'ProcessList', + component: () => import('@/views/system/process/process.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process', + }, + }, + { + path: 'edit', + name: 'ProcessListEdit', + component: () => import('@/views/system/process/editProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'detail', + name: 'ProcessListDetail', + component: () => import('@/views/system/process/detailProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'add', + name: 'ProcessListAdd', + component: () => import('@/views/system/process/addProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + ], + }, + { path: '/tenant', component: Layout, redirect: '/tenant/list', diff --git a/src/views/setting.vue b/src/views/setting.vue new file mode 100644 index 0000000..2a00bf3 --- /dev/null +++ b/src/views/setting.vue @@ -0,0 +1,321 @@ + + + + + + + diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index c129719..d6d1b71 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -154,6 +154,69 @@ ], }, { + path: '/process', + component: Layout, + redirect: '/process/list', + name: 'Process', + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + }, + children: [ + { + path: 'list', + name: 'ProcessList', + component: () => import('@/views/system/process/process.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process', + }, + }, + { + path: 'edit', + name: 'ProcessListEdit', + component: () => import('@/views/system/process/editProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'detail', + name: 'ProcessListDetail', + component: () => import('@/views/system/process/detailProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'add', + name: 'ProcessListAdd', + component: () => import('@/views/system/process/addProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + ], + }, + { path: '/tenant', component: Layout, redirect: '/tenant/list', diff --git a/src/views/setting.vue b/src/views/setting.vue new file mode 100644 index 0000000..2a00bf3 --- /dev/null +++ b/src/views/setting.vue @@ -0,0 +1,321 @@ + + + + + + + diff --git a/src/views/system/process/addProcess.vue b/src/views/system/process/addProcess.vue new file mode 100644 index 0000000..ad5d290 --- /dev/null +++ b/src/views/system/process/addProcess.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index c129719..d6d1b71 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -154,6 +154,69 @@ ], }, { + path: '/process', + component: Layout, + redirect: '/process/list', + name: 'Process', + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + }, + children: [ + { + path: 'list', + name: 'ProcessList', + component: () => import('@/views/system/process/process.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process', + }, + }, + { + path: 'edit', + name: 'ProcessListEdit', + component: () => import('@/views/system/process/editProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'detail', + name: 'ProcessListDetail', + component: () => import('@/views/system/process/detailProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'add', + name: 'ProcessListAdd', + component: () => import('@/views/system/process/addProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + ], + }, + { path: '/tenant', component: Layout, redirect: '/tenant/list', diff --git a/src/views/setting.vue b/src/views/setting.vue new file mode 100644 index 0000000..2a00bf3 --- /dev/null +++ b/src/views/setting.vue @@ -0,0 +1,321 @@ + + + + + + + diff --git a/src/views/system/process/addProcess.vue b/src/views/system/process/addProcess.vue new file mode 100644 index 0000000..ad5d290 --- /dev/null +++ b/src/views/system/process/addProcess.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/src/views/system/process/detailProcess.vue b/src/views/system/process/detailProcess.vue new file mode 100644 index 0000000..1165f46 --- /dev/null +++ b/src/views/system/process/detailProcess.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index c129719..d6d1b71 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -154,6 +154,69 @@ ], }, { + path: '/process', + component: Layout, + redirect: '/process/list', + name: 'Process', + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + }, + children: [ + { + path: 'list', + name: 'ProcessList', + component: () => import('@/views/system/process/process.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process', + }, + }, + { + path: 'edit', + name: 'ProcessListEdit', + component: () => import('@/views/system/process/editProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'detail', + name: 'ProcessListDetail', + component: () => import('@/views/system/process/detailProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'add', + name: 'ProcessListAdd', + component: () => import('@/views/system/process/addProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + ], + }, + { path: '/tenant', component: Layout, redirect: '/tenant/list', diff --git a/src/views/setting.vue b/src/views/setting.vue new file mode 100644 index 0000000..2a00bf3 --- /dev/null +++ b/src/views/setting.vue @@ -0,0 +1,321 @@ + + + + + + + diff --git a/src/views/system/process/addProcess.vue b/src/views/system/process/addProcess.vue new file mode 100644 index 0000000..ad5d290 --- /dev/null +++ b/src/views/system/process/addProcess.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/src/views/system/process/detailProcess.vue b/src/views/system/process/detailProcess.vue new file mode 100644 index 0000000..1165f46 --- /dev/null +++ b/src/views/system/process/detailProcess.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/src/views/system/process/editProcess.vue b/src/views/system/process/editProcess.vue new file mode 100644 index 0000000..4ef4764 --- /dev/null +++ b/src/views/system/process/editProcess.vue @@ -0,0 +1,248 @@ + + + + + + diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index c129719..d6d1b71 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -154,6 +154,69 @@ ], }, { + path: '/process', + component: Layout, + redirect: '/process/list', + name: 'Process', + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + }, + children: [ + { + path: 'list', + name: 'ProcessList', + component: () => import('@/views/system/process/process.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process', + }, + }, + { + path: 'edit', + name: 'ProcessListEdit', + component: () => import('@/views/system/process/editProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'detail', + name: 'ProcessListDetail', + component: () => import('@/views/system/process/detailProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'add', + name: 'ProcessListAdd', + component: () => import('@/views/system/process/addProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + ], + }, + { path: '/tenant', component: Layout, redirect: '/tenant/list', diff --git a/src/views/setting.vue b/src/views/setting.vue new file mode 100644 index 0000000..2a00bf3 --- /dev/null +++ b/src/views/setting.vue @@ -0,0 +1,321 @@ + + + + + + + diff --git a/src/views/system/process/addProcess.vue b/src/views/system/process/addProcess.vue new file mode 100644 index 0000000..ad5d290 --- /dev/null +++ b/src/views/system/process/addProcess.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/src/views/system/process/detailProcess.vue b/src/views/system/process/detailProcess.vue new file mode 100644 index 0000000..1165f46 --- /dev/null +++ b/src/views/system/process/detailProcess.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/src/views/system/process/editProcess.vue b/src/views/system/process/editProcess.vue new file mode 100644 index 0000000..4ef4764 --- /dev/null +++ b/src/views/system/process/editProcess.vue @@ -0,0 +1,248 @@ + + + + + + diff --git a/src/views/system/process/process.ts b/src/views/system/process/process.ts new file mode 100644 index 0000000..2e183f8 --- /dev/null +++ b/src/views/system/process/process.ts @@ -0,0 +1,47 @@ +export interface IlistQuery { + deploymentId: string // 流程部署id + suspensionState: number | string // 流程状态:1激活 2废止 + number: string // 编号 + name: string // 名称 + business: string // 关联业务 + person: string // 负责人 + beginTime: string // 开始时间 + endTime: string // 结束时间 + status: string // 当前流程状态 + describe?: string // 流程描述 + offset: number + limit: number +} +// 字典 +export interface dictType { + id: string + name: string + value: string +} +export interface Iform { + number: string // 编号 + name: string // 名称 + business: string // 关联业务 + desc?: string // 流程描述 + formID?: string + decisionItem: string // 可选决策项 + noticeStarter: string // 审批结果是否通知发起人 +} + +// 关联业务列表 +export interface IBusinessList { + formId: string + formName: string +} + +export interface ITipList { + type: string + name?: string +} +// 流程基本信息 +export interface IworkFlowDef { + name: string // 名称 + decisionItem?: number | string // 可选决策项 + noticeStarter?: number | string // 审批结果是否通知发起人 +} + diff --git a/.env.development b/.env.development index 54c38a4..1ef3600 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,7 @@ VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX + # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.production b/.env.production index 427b973..ed8a601 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ NODE_ENV = production # 页面标题 -VITE_APP_TITLE = 计量业务系统 +VITE_APP_TITLE = 标题 # 接口请求地址,会设置到 axios 的 baseURL 参数上 VITE_APP_API_BASEURL = http://XXXXXXX:XXXXXXX # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 diff --git a/src/api/system/process.ts b/src/api/system/process.ts new file mode 100644 index 0000000..c2d4419 --- /dev/null +++ b/src/api/system/process.ts @@ -0,0 +1,123 @@ +// 流程管理接口 +import request from '../index' +// import type { IlistQuery } from '@/views/system/process/process' +const prefix = '/system/flow' + +// 列表 +export function getProcessList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 删除 +export function delProcessList(id: string) { + const param = { + deployId: id, + } + return request({ + url: `${prefix}/delete`, + method: 'post', + data: param, + }) +} +// 废止 +export function updateState(id: string, state: number) { + const param = { + deployId: id, + state, + } + return request({ + url: `${prefix}/updateState`, + method: 'post', + data: param, + }) +} + +// 加载流程定义 +export function unloadProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 流程定义编辑 +export function editProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/update`, + method: 'post', + data: param, + }) +} + +// 新建流程 +export function addProcess(params: Object) { + const param = { + _value: params, + } + return request({ + url: `${prefix}/jsonToBpmn`, + method: 'post', + data: param, + }) +} + +// 获取流程定义详情 +export function getProcessDetail(formId: string) { + const param = { + formId, + } + return request({ + url: `${prefix}/detail`, + method: 'post', + data: param, + }) +} + +// 获取关联业务列表 +export function getBusinessList() { + return request({ + url: `${prefix}/flowFormList`, + method: 'get', + }) +} + +// 获取发起人的主管层级数 +export function getDirectorLevel(userId: number | string) { + return request({ + url: `${prefix}/directorLevel`, + method: 'get', + params: { userId }, + }) +} + +// 导出列表 +export function exportProcessList(data: { + deploymentId: string + suspensionState: string + number: string + name: string + business: string + person: string + beginTime: string + endTime: string + status: string + ids: string[] +}) { + return request({ + url: `${prefix}/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts index c129719..d6d1b71 100644 --- a/src/router/modules/system.ts +++ b/src/router/modules/system.ts @@ -154,6 +154,69 @@ ], }, { + path: '/process', + component: Layout, + redirect: '/process/list', + name: 'Process', + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + }, + children: [ + { + path: 'list', + name: 'ProcessList', + component: () => import('@/views/system/process/process.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process', + }, + }, + { + path: 'edit', + name: 'ProcessListEdit', + component: () => import('@/views/system/process/editProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + auth: '/sys/process', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'detail', + name: 'ProcessListDetail', + component: () => import('@/views/system/process/detailProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + { + path: 'add', + name: 'ProcessListAdd', + component: () => import('@/views/system/process/addProcess.vue'), + meta: { + title: '流程管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/process/list', + }, + }, + ], + }, + { path: '/tenant', component: Layout, redirect: '/tenant/list', diff --git a/src/views/setting.vue b/src/views/setting.vue new file mode 100644 index 0000000..2a00bf3 --- /dev/null +++ b/src/views/setting.vue @@ -0,0 +1,321 @@ + + + + + + + diff --git a/src/views/system/process/addProcess.vue b/src/views/system/process/addProcess.vue new file mode 100644 index 0000000..ad5d290 --- /dev/null +++ b/src/views/system/process/addProcess.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/src/views/system/process/detailProcess.vue b/src/views/system/process/detailProcess.vue new file mode 100644 index 0000000..1165f46 --- /dev/null +++ b/src/views/system/process/detailProcess.vue @@ -0,0 +1,157 @@ + + + + + + diff --git a/src/views/system/process/editProcess.vue b/src/views/system/process/editProcess.vue new file mode 100644 index 0000000..4ef4764 --- /dev/null +++ b/src/views/system/process/editProcess.vue @@ -0,0 +1,248 @@ + + + + + + diff --git a/src/views/system/process/process.ts b/src/views/system/process/process.ts new file mode 100644 index 0000000..2e183f8 --- /dev/null +++ b/src/views/system/process/process.ts @@ -0,0 +1,47 @@ +export interface IlistQuery { + deploymentId: string // 流程部署id + suspensionState: number | string // 流程状态:1激活 2废止 + number: string // 编号 + name: string // 名称 + business: string // 关联业务 + person: string // 负责人 + beginTime: string // 开始时间 + endTime: string // 结束时间 + status: string // 当前流程状态 + describe?: string // 流程描述 + offset: number + limit: number +} +// 字典 +export interface dictType { + id: string + name: string + value: string +} +export interface Iform { + number: string // 编号 + name: string // 名称 + business: string // 关联业务 + desc?: string // 流程描述 + formID?: string + decisionItem: string // 可选决策项 + noticeStarter: string // 审批结果是否通知发起人 +} + +// 关联业务列表 +export interface IBusinessList { + formId: string + formName: string +} + +export interface ITipList { + type: string + name?: string +} +// 流程基本信息 +export interface IworkFlowDef { + name: string // 名称 + decisionItem?: number | string // 可选决策项 + noticeStarter?: number | string // 审批结果是否通知发起人 +} + diff --git a/src/views/system/process/process.vue b/src/views/system/process/process.vue new file mode 100644 index 0000000..eab9f8a --- /dev/null +++ b/src/views/system/process/process.vue @@ -0,0 +1,378 @@ + + + + + + + + +