update 优化流程实例接口全部按照业务id操作

This commit is contained in:
gssong
2024-05-31 22:11:25 +08:00
parent 2c9daae153
commit 58e6fdef78
6 changed files with 33 additions and 30 deletions

View File

@ -51,7 +51,7 @@ const loading = ref(false);
const bpmnVisible = ref(true);
const historyList = ref([]);
const init = (instanceId) => {
const init = (businessKey) => {
loading.value = true;
bpmnVisible.value = true;
nextTick(async () => {
@ -67,7 +67,7 @@ const init = (instanceId) => {
MoveCanvasModule
] as ModuleDeclaration[]
});
const resp = await processApi.getHistoryList(instanceId);
const resp = await processApi.getHistoryList(businessKey);
xml.value = resp.data.xml;
taskList.value = resp.data.taskList;
historyList.value = resp.data.historyList;

View File

@ -67,17 +67,17 @@ const tabActiveName = ref('bpmn');
const bpmnViewRef = ref<BpmnView>();
//初始化查询审批记录
const init = async (instanceId: string) => {
const init = async (businessKey: string) => {
visible.value = true;
loading.value = true;
tabActiveName.value = 'bpmn';
historyList.value = [];
processApi.getHistoryRecord(instanceId).then((resp) => {
processApi.getHistoryRecord(businessKey).then((resp) => {
historyList.value = resp.data;
loading.value = false;
});
await nextTick(() => {
bpmnViewRef.value.init(instanceId);
bpmnViewRef.value.init(businessKey);
});
};