diff --git a/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue b/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue index 3451f604..34a54c8c 100644 --- a/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue +++ b/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue @@ -53,11 +53,14 @@ /> + > + + {{ scope.row.assigneeUser?.nickname || scope.row.ownerUser?.nickname }} + + - + + + {{ scope.row.assigneeUser?.deptName || scope.row.ownerUser?.deptName }} + + import('@/views/bpm/processInstance/detail/index_new.vue'), - //component: () => import('@/views/bpm/processInstance/detail/index.vue'), + component: () => import('@/views/bpm/processInstance/detail/index.vue'), name: 'BpmProcessInstanceDetail', meta: { noCache: true, diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue index 4534ec61..97dca594 100644 --- a/src/views/bpm/model/index.vue +++ b/src/views/bpm/model/index.vue @@ -1,216 +1,95 @@ - - - - - - - - - - - - - - - - - - - - 搜索 - 重置 - - 新建 - - - - + + 流程模型 + + + + + + + + + + + + 新建模型 + + - - - - - - - - - - - - - 全部可见 - - - {{ scope.row.startUsers[0].nickname }} - - - - {{ scope.row.startUsers[0].nickname }}等 {{ scope.row.startUsers.length }} 人可见 - - - - - - - - - {{ scope.row.formName }} - - - {{ scope.row.formCustomCreatePath }} - - 暂无表单 - - - - - - {{ formatDate(scope.row.processDefinition.deploymentTime) }} - - - v{{ scope.row.processDefinition.version }} - - 未部署 - - 已停用 - - - - - - - 修改 - - - 设计 - - - 发布 - - handleCommand(command, scope.row)" - v-hasPermi="['bpm:process-definition:query', 'bpm:model:update', 'bpm:model:delete']" - > - 更多 + + handleCommand(command)" placement="bottom-end"> + + + - - 历史 + + + 新建分类 - - {{ scope.row.processDefinition.suspensionState === 1 ? '停用' : '启用' }} - - - 删除 + + + 分类排序 + + + + 取 消 + 保存排序 + + + + + + + + + + + + - - - - + + - + + @@ -218,26 +97,20 @@ + + diff --git a/src/views/bpm/model/index_new.vue b/src/views/bpm/model/index_new.vue deleted file mode 100644 index 97dca594..00000000 --- a/src/views/bpm/model/index_new.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - - 流程模型 - - - - - - - - - - - - 新建模型 - - - - - handleCommand(command)" placement="bottom-end"> - - - - - - - - 新建分类 - - - - 分类排序 - - - - - - - - 取 消 - 保存排序 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/bpm/model/index_old.vue b/src/views/bpm/model/index_old.vue new file mode 100644 index 00000000..4534ec61 --- /dev/null +++ b/src/views/bpm/model/index_old.vue @@ -0,0 +1,404 @@ + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + 新建 + + + + + + + + + + + + + + + + + + 全部可见 + + + {{ scope.row.startUsers[0].nickname }} + + + + {{ scope.row.startUsers[0].nickname }}等 {{ scope.row.startUsers.length }} 人可见 + + + + + + + + + {{ scope.row.formName }} + + + {{ scope.row.formCustomCreatePath }} + + 暂无表单 + + + + + + {{ formatDate(scope.row.processDefinition.deploymentTime) }} + + + v{{ scope.row.processDefinition.version }} + + 未部署 + + 已停用 + + + + + + + 修改 + + + 设计 + + + 发布 + + handleCommand(command, scope.row)" + v-hasPermi="['bpm:process-definition:query', 'bpm:model:update', 'bpm:model:delete']" + > + 更多 + + + + 历史 + + + {{ scope.row.processDefinition.suspensionState === 1 ? '停用' : '启用' }} + + + 删除 + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue index 00a579f4..33520627 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue @@ -1,8 +1,5 @@ - - 流程图 - @@ -16,8 +13,7 @@ defineOptions({ name: 'BpmProcessInstanceBpmnViewer' }) const props = defineProps({ loading: propTypes.bool.def(false), // 是否加载中 id: propTypes.string, // 流程实例的编号 - bpmnXml: propTypes.string, // BPMN XML - showHeader: propTypes.bool.def(true), // 是否显示头 + bpmnXml: propTypes.string // BPMN XML }) const view = ref({ diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue b/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue index fd2de617..b164f337 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue @@ -1,9 +1,6 @@ - - 审批记录 - - + 审批任务:{{ item.name }} - - 子任务 - - - { return '' } -/** 子任务 */ -const taskSignListRef = ref() -const openChildrenTask = (item: any) => { - taskSignListRef.value.open(item) -} - /** 查看表单 */ const fApi = ref() // form-create 的 API 操作类 const taskForm = ref({ diff --git a/src/views/bpm/processInstance/detail/dialog/TaskDelegateForm.vue b/src/views/bpm/processInstance/detail/dialog/TaskDelegateForm.vue deleted file mode 100644 index 178b1b97..00000000 --- a/src/views/bpm/processInstance/detail/dialog/TaskDelegateForm.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - 确 定 - 取 消 - - - - diff --git a/src/views/bpm/processInstance/detail/dialog/TaskReturnForm.vue b/src/views/bpm/processInstance/detail/dialog/TaskReturnForm.vue deleted file mode 100644 index 92d15f2c..00000000 --- a/src/views/bpm/processInstance/detail/dialog/TaskReturnForm.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - 确 定 - 取 消 - - - - diff --git a/src/views/bpm/processInstance/detail/dialog/TaskSignCreateForm.vue b/src/views/bpm/processInstance/detail/dialog/TaskSignCreateForm.vue deleted file mode 100644 index 9e4998c1..00000000 --- a/src/views/bpm/processInstance/detail/dialog/TaskSignCreateForm.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - 向前加签 - - - 向后加签 - - 取 消 - - - - diff --git a/src/views/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue b/src/views/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue index fc6d6b2c..33d7ed76 100644 --- a/src/views/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue +++ b/src/views/bpm/processInstance/detail/dialog/TaskSignDeleteForm.vue @@ -86,4 +86,5 @@ const resetForm = () => { } formRef.value?.resetFields() } +// TODO @jason:新界面搞完,可以删除 diff --git a/src/views/bpm/processInstance/detail/dialog/TaskSignList.vue b/src/views/bpm/processInstance/detail/dialog/TaskSignList.vue index 80ef37e1..57842a5e 100644 --- a/src/views/bpm/processInstance/detail/dialog/TaskSignList.vue +++ b/src/views/bpm/processInstance/detail/dialog/TaskSignList.vue @@ -103,4 +103,5 @@ const handleSignDeleteSuccess = () => { const isSignDeleteButtonVisible = (task: any) => { return task && task.children && !isEmpty(task.children) } +// TODO @jason:新界面搞完,可以删除 diff --git a/src/views/bpm/processInstance/detail/dialog/TaskTransferForm.vue b/src/views/bpm/processInstance/detail/dialog/TaskTransferForm.vue deleted file mode 100644 index c1012ac9..00000000 --- a/src/views/bpm/processInstance/detail/dialog/TaskTransferForm.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - 确 定 - 取 消 - - - - diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index fb45d8c9..204746c3 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -1,216 +1,163 @@ - - - - - 审批任务【{{ item.name }}】 - - - - - {{ processInstance.name }} - - - {{ processInstance?.startUser.nickname }} - {{ processInstance?.startUser.deptName }} - - - - - 填写表单【{{ runningTasks[index]?.formName }}】 - - - - - - - - - - - - - - - - - - - {{ - item.buttonsSetting?.[OperationButtonType.APPROVE]?.displayName || - OPERATION_BUTTON_NAME.get(OperationButtonType.APPROVE) - }} - - - - {{ - item.buttonsSetting?.[OperationButtonType.REJECT].displayName || - OPERATION_BUTTON_NAME.get(OperationButtonType.REJECT) - }} - - - - {{ - item.buttonsSetting?.[OperationButtonType.TRANSFER]?.displayName || - OPERATION_BUTTON_NAME.get(OperationButtonType.TRANSFER) - }} - - - - {{ - item.buttonsSetting?.[OperationButtonType.DELEGATE]?.displayName || - OPERATION_BUTTON_NAME.get(OperationButtonType.DELEGATE) - }} - - - - {{ - item.buttonsSetting?.[OperationButtonType.ADD_SIGN]?.displayName || - OPERATION_BUTTON_NAME.get(OperationButtonType.ADD_SIGN) - }} - - - - {{ - item.buttonsSetting?.[OperationButtonType.RETURN]?.displayName || - OPERATION_BUTTON_NAME.get(OperationButtonType.RETURN) - }} - - - - - - - - - 申请信息【{{ processInstance.name }}】 - - - - + + + - - - - - - + 编号:{{ id }} + + + {{ processInstance.name }} + + - - + + + + + {{ processInstance?.startUser?.nickname.substring(0, 1) }} + + {{ processInstance?.startUser?.nickname }} + + {{ formatDate(processInstance.startTime) }} 提交 + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + 流转评论 + + + + + + + + + + + + diff --git a/src/views/bpm/processInstance/detail/index_new.vue b/src/views/bpm/processInstance/detail/index_new.vue deleted file mode 100644 index 262c1844..00000000 --- a/src/views/bpm/processInstance/detail/index_new.vue +++ /dev/null @@ -1,341 +0,0 @@ - - - - - - 编号:{{ id }} - - - {{ processInstance.name }} - - - - - - - - {{ processInstance?.startUser?.nickname.substring(0, 1) }} - - {{ processInstance?.startUser?.nickname }} - - {{ formatDate(processInstance.startTime) }} 提交 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 流转评论 - - - - - - - - - - - - - - -