code review:驳回逻辑
This commit is contained in:
parent
ada93a160b
commit
245147223f
@ -42,18 +42,12 @@ export const exportTask = async (params) => {
|
|||||||
return await request.download({ url: '/bpm/task/export', params })
|
return await request.download({ url: '/bpm/task/export', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// 获取所有可回退的节点
|
||||||
* 获取所有可回退的节点
|
|
||||||
* @param params
|
|
||||||
*/
|
|
||||||
export const getReturnList = async (params) => {
|
export const getReturnList = async (params) => {
|
||||||
return await request.get({ url: '/bpm/task/get-return-list', params })
|
return await request.get({ url: '/bpm/task/get-return-list', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// 回退
|
||||||
* 确认回退
|
export const returnTask = async (data) => {
|
||||||
* @param params
|
|
||||||
*/
|
|
||||||
export const okReturnTask = async (data) => {
|
|
||||||
return await request.put({ url: '/bpm/task/return', data })
|
return await request.put({ url: '/bpm/task/return', data })
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ const getResultCss = (result) => {
|
|||||||
return 'highlight-cancel'
|
return 'highlight-cancel'
|
||||||
} else if (result === 5) {
|
} else if (result === 5) {
|
||||||
// 退回
|
// 退回
|
||||||
return 'highlight-rollback'
|
return 'highlight-return'
|
||||||
}
|
}
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
@ -586,41 +586,41 @@ watch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 回退 */
|
/** 回退 */
|
||||||
.highlight-rollback.djs-shape .djs-visual > :nth-child(1) {
|
.highlight-return.djs-shape .djs-visual > :nth-child(1) {
|
||||||
fill: #e6a23c !important;
|
fill: #e6a23c !important;
|
||||||
stroke: #e6a23c !important;
|
stroke: #e6a23c !important;
|
||||||
fill-opacity: 0.2 !important;
|
fill-opacity: 0.2 !important;
|
||||||
}
|
}
|
||||||
.highlight-rollback.djs-shape .djs-visual > :nth-child(2) {
|
.highlight-return.djs-shape .djs-visual > :nth-child(2) {
|
||||||
fill: #e6a23c !important;
|
fill: #e6a23c !important;
|
||||||
}
|
}
|
||||||
.highlight-rollback.djs-shape .djs-visual > path {
|
.highlight-return.djs-shape .djs-visual > path {
|
||||||
fill: #e6a23c !important;
|
fill: #e6a23c !important;
|
||||||
fill-opacity: 0.2 !important;
|
fill-opacity: 0.2 !important;
|
||||||
stroke: #e6a23c !important;
|
stroke: #e6a23c !important;
|
||||||
}
|
}
|
||||||
.highlight-rollback.djs-connection > .djs-visual > path {
|
.highlight-return.djs-connection > .djs-visual > path {
|
||||||
stroke: #e6a23c !important;
|
stroke: #e6a23c !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight-rollback:not(.djs-connection) .djs-visual > :nth-child(1) {
|
.highlight-return:not(.djs-connection) .djs-visual > :nth-child(1) {
|
||||||
fill: #e6a23c !important; /* color elements as green */
|
fill: #e6a23c !important; /* color elements as green */
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.highlight-rollback.djs-shape .djs-visual > :nth-child(1)) {
|
:deep(.highlight-return.djs-shape .djs-visual > :nth-child(1)) {
|
||||||
fill: #e6a23c !important;
|
fill: #e6a23c !important;
|
||||||
stroke: #e6a23c !important;
|
stroke: #e6a23c !important;
|
||||||
fill-opacity: 0.2 !important;
|
fill-opacity: 0.2 !important;
|
||||||
}
|
}
|
||||||
:deep(.highlight-rollback.djs-shape .djs-visual > :nth-child(2)) {
|
:deep(.highlight-return.djs-shape .djs-visual > :nth-child(2)) {
|
||||||
fill: #e6a23c !important;
|
fill: #e6a23c !important;
|
||||||
}
|
}
|
||||||
:deep(.highlight-rollback.djs-shape .djs-visual > path) {
|
:deep(.highlight-return.djs-shape .djs-visual > path) {
|
||||||
fill: #e6a23c !important;
|
fill: #e6a23c !important;
|
||||||
fill-opacity: 0.2 !important;
|
fill-opacity: 0.2 !important;
|
||||||
stroke: #e6a23c !important;
|
stroke: #e6a23c !important;
|
||||||
}
|
}
|
||||||
:deep(.highlight-rollback.djs-connection > .djs-visual > path) {
|
:deep(.highlight-return.djs-connection > .djs-visual > path) {
|
||||||
stroke: #e6a23c !important;
|
stroke: #e6a23c !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ const submitForm = async () => {
|
|||||||
// 提交请求
|
// 提交请求
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
try {
|
try {
|
||||||
await TaskApi.okReturnTask(formData.value)
|
await TaskApi.returnTask(formData.value)
|
||||||
message.success('回退成功')
|
message.success('回退成功')
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
// 发送操作成功的事件
|
// 发送操作成功的事件
|
||||||
|
Loading…
Reference in New Issue
Block a user