fix -- 修复删除流程错误处理,删除未使用的接口
This commit is contained in:
@@ -34,46 +34,3 @@ export function deployStart(deployId) {
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
@@ -53,45 +53,10 @@ export function deployStart(deployId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
// 删除流程实例
|
||||
export function delProcess(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
url: '/workflow/instance/delete/?instanceId=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
@@ -70,46 +70,3 @@ export function deployStart(deployId) {
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
@@ -155,13 +155,11 @@
|
||||
<script>
|
||||
import {
|
||||
getDeployment,
|
||||
delDeployment,
|
||||
addDeployment,
|
||||
updateDeployment,
|
||||
exportDeployment,
|
||||
flowRecord
|
||||
} from "@/api/workflow/finished";
|
||||
import { myProcessList,stopProcess } from "@/api/workflow/process";
|
||||
import { myProcessList, stopProcess, delProcess } from "@/api/workflow/process";
|
||||
import {listDefinition} from "@/api/workflow/definition";
|
||||
import { listCategory } from '@/api/workflow/category';
|
||||
export default {
|
||||
@@ -344,13 +342,13 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
const ids = row.procInsId;
|
||||
this.$confirm('是否确认删除流程定义编号为"' + ids + '"的数据项?', "警告", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(function() {
|
||||
return delDeployment(ids);
|
||||
return delProcess(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
|
||||
Reference in New Issue
Block a user