fix -- 调整办公管理模块接口

This commit is contained in:
konbai
2022-04-04 17:59:06 +08:00
parent 0858f853df
commit b51c4d91fd
16 changed files with 189 additions and 322 deletions

View File

@@ -1,23 +1,5 @@
import request from '@/utils/request'
// 查询已办任务列表
export function finishedList(query) {
return request({
url: '/workflow/task/finishedList',
method: 'get',
params: query
})
}
// 任务流转记录
export function flowRecord(query) {
return request({
url: '/workflow/task/flowRecord',
method: 'get',
params: query
})
}
// 撤回任务
export function revokeProcess(data) {
return request({
@@ -26,11 +8,3 @@ export function revokeProcess(data) {
data: data
})
}
// 部署流程实例
export function deployStart(deployId) {
return request({
url: '/workflow/process/startFlow/' + deployId,
method: 'get',
})
}

View File

@@ -22,7 +22,25 @@ export function startProcess(processDefId, data) {
// 我的发起的流程
export function listOwnProcess(query) {
return request({
url: '/workflow/process/own',
url: '/workflow/process/ownList',
method: 'get',
params: query
})
}
// 我待办的流程
export function listTodoProcess(query) {
return request({
url: '/workflow/process/todoList',
method: 'get',
params: query
})
}
// 我已办的流程
export function listFinishedProcess(query) {
return request({
url: '/workflow/process/finishedList',
method: 'get',
params: query
})

View File

@@ -1,14 +1,5 @@
import request from '@/utils/request'
// 查询待办任务列表
export function todoList(query) {
return request({
url: '/workflow/task/todoList',
method: 'get',
params: query
})
}
// 完成任务
export function complete(data) {
return request({

View File

@@ -82,7 +82,8 @@
</template>
<script>
import { finishedList, delDeployment, revokeProcess } from "@/api/workflow/finished";
import { listFinishedProcess } from '@/api/workflow/process';
import { delDeployment, revokeProcess } from "@/api/workflow/finished";
export default {
name: "Finished",
@@ -137,7 +138,7 @@ export default {
/** 查询流程定义列表 */
getList() {
this.loading = true;
finishedList(this.queryParams).then(response => {
listFinishedProcess(this.queryParams).then(response => {
this.finishedList = response.rows;
this.total = response.total;
this.loading = false;

View File

@@ -79,12 +79,8 @@
</template>
<script>
import { listTodoProcess } from '@/api/workflow/process';
import {
todoList,
complete,
returnList,
returnTask,
rejectTask,
delDeployment,
exportDeployment
} from "@/api/workflow/todo";
@@ -132,7 +128,7 @@ export default {
/** 查询流程定义列表 */
getList() {
this.loading = true;
todoList(this.queryParams).then(response => {
listTodoProcess(this.queryParams).then(response => {
this.todoList = response.rows;
this.total = response.total;
this.loading = false;