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