update 统一业务id参数

This commit is contained in:
gssong 2024-12-17 18:59:35 +08:00
parent 4097fe1d72
commit f3abcd1442
11 changed files with 15 additions and 15 deletions

View File

@ -31,9 +31,9 @@ export const pageByFinish = (query: FlowInstanceQuery): AxiosPromise<FlowInstanc
/**
* id获取历史流程图
*/
export const flowImage = (businessKey: string | number) => {
export const flowImage = (businessId: string | number) => {
return request({
url: `/workflow/instance/flowImage/${businessKey}` + '?t' + Math.random(),
url: `/workflow/instance/flowImage/${businessId}` + '?t' + Math.random(),
method: 'get'
});
};

View File

@ -7,7 +7,7 @@ export default {
proxy.$router.push({
path: routerJumpVo.formPath,
query: {
id: routerJumpVo.businessKey,
id: routerJumpVo.businessId,
type: routerJumpVo.type,
taskId: routerJumpVo.taskId
}

View File

@ -1,5 +1,5 @@
export interface RouterJumpVo {
businessKey: string;
businessId: string;
taskId: string | number;
type: string;
formCustom: string;
@ -7,7 +7,7 @@ export interface RouterJumpVo {
}
export interface StartProcessBo {
businessKey: string | number;
businessId: string | number;
flowCode: string;
variables: any;
}

View File

@ -76,12 +76,12 @@ const tabActiveName = ref('bpmn');
const imgUrl = ref('');
//
const init = async (businessKey: string | number) => {
const init = async (businessId: string | number) => {
visible.value = true;
loading.value = true;
tabActiveName.value = 'bpmn';
historyList.value = [];
flowImage(businessKey).then((resp) => {
flowImage(businessId).then((resp) => {
if (resp.data) {
historyList.value = resp.data.list;
imgUrl.value = 'data:image/gif;base64,' + resp.data.image;

View File

@ -128,7 +128,7 @@ const approvalRecordRef = ref<InstanceType<typeof ApprovalRecord>>();
const leaveFormRef = ref<ElFormInstance>();
const submitFormData = ref<StartProcessBo>({
businessKey: '',
businessId: '',
flowCode: '',
variables: {}
});
@ -245,7 +245,7 @@ const submitFlow = async () => {
const handleStartWorkFlow = async (data: LeaveVO) => {
try {
submitFormData.value.flowCode = flowCode.value;
submitFormData.value.businessKey = data.id;
submitFormData.value.businessId = data.id;
//
taskVariables.value = {
leaveDays: data.leaveDays,

View File

@ -369,7 +369,7 @@ const cancelPopover = async (index: any) => {
/** 查看按钮操作 */
const handleView = (row) => {
const routerJumpVo = reactive<RouterJumpVo>({
businessKey: row.businessId,
businessId: row.businessId,
taskId: row.id,
type: 'view',
formCustom: row.formCustom,

View File

@ -231,7 +231,7 @@ const submitCallback = async (data) => {
/** 查看按钮操作 */
const handleView = (row) => {
const routerJumpVo = reactive<RouterJumpVo>({
businessKey: row.businessId,
businessId: row.businessId,
taskId: row.id,
type: 'view',
formCustom: row.formCustom,

View File

@ -243,7 +243,7 @@ const handleCancelProcessApply = async (businessId: string) => {
//
const handleOpen = async (row, type) => {
const routerJumpVo = reactive<RouterJumpVo>({
businessKey: row.businessId,
businessId: row.businessId,
taskId: row.id,
type: type,
formCustom: row.formCustom,

View File

@ -120,7 +120,7 @@ const getTaskCopyList = () => {
/** 查看按钮操作 */
const handleView = (row) => {
const routerJumpVo = reactive<RouterJumpVo>({
businessKey: row.businessId,
businessId: row.businessId,
taskId: row.id,
type: 'view',
formCustom: row.formCustom,

View File

@ -152,7 +152,7 @@ const getFinishList = () => {
/** 查看按钮操作 */
const handleView = (row: FlowTaskVO) => {
const routerJumpVo = reactive<RouterJumpVo>({
businessKey: row.businessId,
businessId: row.businessId,
taskId: row.id,
type: 'view',
formCustom: row.formCustom,

View File

@ -154,7 +154,7 @@ const getWaitingList = () => {
//
const handleOpen = async (row: FlowTaskVO) => {
const routerJumpVo = reactive<RouterJumpVo>({
businessKey: row.businessId,
businessId: row.businessId,
taskId: row.id,
type: 'approval',
formCustom: row.formCustom,