|
@@ -1,49 +1,18 @@
|
|
|
import request, { tenantRequest } from '@/utils/request'
|
|
import request, { tenantRequest } from '@/utils/request'
|
|
|
import {
|
|
import {
|
|
|
- reject,
|
|
|
|
|
- submit,
|
|
|
|
|
confirmAndSend,
|
|
confirmAndSend,
|
|
|
del,
|
|
del,
|
|
|
send,
|
|
send,
|
|
|
- addScope,
|
|
|
|
|
- addUser,
|
|
|
|
|
|
|
+ addTenantOrOrg,
|
|
|
addTenant
|
|
addTenant
|
|
|
} from '@/api/base'
|
|
} from '@/api/base'
|
|
|
|
|
|
|
|
-export function getPublishes (query) {
|
|
|
|
|
- const { pageNum: pageIndex, pageSize, ...params } = query
|
|
|
|
|
- return tenantRequest({
|
|
|
|
|
- url: '/orchestration/calendarReleaseSchedu/page',
|
|
|
|
|
- method: 'GET',
|
|
|
|
|
- params: addScope({
|
|
|
|
|
- pageIndex, pageSize,
|
|
|
|
|
- ...params
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export function resolvePublish ({ id }) {
|
|
|
|
|
- return send({
|
|
|
|
|
- url: `/orchestration/calendarReleaseSchedu/${id}/approval`,
|
|
|
|
|
- method: 'POST',
|
|
|
|
|
- data: { remark: '' }
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export function rejectPublish ({ id, name }, remark) {
|
|
|
|
|
- return reject({
|
|
|
|
|
- url: `/orchestration/calendarReleaseSchedu/${id}/reject`,
|
|
|
|
|
- method: 'POST',
|
|
|
|
|
- data: { remark }
|
|
|
|
|
- }, name)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export function getPublishHistory (query) {
|
|
export function getPublishHistory (query) {
|
|
|
const { pageNum: pageIndex, pageSize, ...params } = query
|
|
const { pageNum: pageIndex, pageSize, ...params } = query
|
|
|
return tenantRequest({
|
|
return tenantRequest({
|
|
|
url: '/orchestration/calendarReleaseHis/page',
|
|
url: '/orchestration/calendarReleaseHis/page',
|
|
|
method: 'GET',
|
|
method: 'GET',
|
|
|
- params: addScope({
|
|
|
|
|
|
|
+ params: addTenantOrOrg({
|
|
|
pageIndex, pageSize,
|
|
pageIndex, pageSize,
|
|
|
...params
|
|
...params
|
|
|
})
|
|
})
|
|
@@ -57,30 +26,6 @@ export function cancelPublish (calendarReleaseHisId, name) {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export function getMyWorkflows (query) {
|
|
|
|
|
- const { pageNum: pageIndex, pageSize, ...params } = query
|
|
|
|
|
- return tenantRequest({
|
|
|
|
|
- url: '/workflow/calendarRelease/page',
|
|
|
|
|
- method: 'POST',
|
|
|
|
|
- data: addUser({
|
|
|
|
|
- pageIndex, pageSize,
|
|
|
|
|
- ...params
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export function getPublishWorkflows (query) {
|
|
|
|
|
- const { pageNum: pageIndex, pageSize, ...params } = query
|
|
|
|
|
- return tenantRequest({
|
|
|
|
|
- url: '/workflow/calendarRelease/page',
|
|
|
|
|
- method: 'POST',
|
|
|
|
|
- data: addTenant({
|
|
|
|
|
- pageIndex, pageSize,
|
|
|
|
|
- ...params
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export function getWorkflowsByUser (query) {
|
|
export function getWorkflowsByUser (query) {
|
|
|
const { pageNum: pageIndex, pageSize, ...params } = query
|
|
const { pageNum: pageIndex, pageSize, ...params } = query
|
|
|
return request({
|
|
return request({
|
|
@@ -119,28 +64,6 @@ export function getWorkflow (workflowId) {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export function reviewWorkflow (workflowId, data) {
|
|
|
|
|
- return send({
|
|
|
|
|
- url: `/workflow/calendarRelease/${workflowId}/reject`,
|
|
|
|
|
- method: 'POST',
|
|
|
|
|
- data
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export function calendarPublishRestart (workflowId, name) {
|
|
|
|
|
- return submit({
|
|
|
|
|
- url: `/workflow/${workflowId}/restart `,
|
|
|
|
|
- method: 'POST'
|
|
|
|
|
- }, name)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-export function calendarPublishStop (workflowId) {
|
|
|
|
|
- return request({
|
|
|
|
|
- url: `/workflow/${workflowId}/stop`,
|
|
|
|
|
- method: 'POST'
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export function getWorkflowHistory (workflowId) {
|
|
export function getWorkflowHistory (workflowId) {
|
|
|
return request({
|
|
return request({
|
|
|
url: `/workflow/${workflowId}/history `,
|
|
url: `/workflow/${workflowId}/history `,
|