0d416652 by lihua

fix: 重新发起

1 parent ca960c94
......@@ -74,7 +74,7 @@ export const getCrossDetailList = (params) => request({
/** 重新发起失败的流程 */
export const crossPlatformApprove = (params) => request({
url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/approve-detail-cross/list?guid=${params.guid}&approveGuid=${params.approveGuid}`,
url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/approve-detail-cross/add-cross-platform-approve?guid=${params.guid}&approveGuid=${params.approveGuid}`,
method: 'post',
data: {}
})
......
......@@ -38,6 +38,7 @@ const dialogInfo = ref({
watch(() => props.visible, () => {
dialogInfo.value.visible = props.visible;
if (props.visible) {
isReSubmit.value = false;
tableInfo.value.data = [];
tableInfo.value.actionInfo.show = props.currentRowInfo?.crossPlatformApproveState == 'E';
gettableList();
......@@ -61,6 +62,7 @@ const gettableList = () => {
d.approveState = d.approveState == null ? undefined : d.approveState;
return d;
});
tableInfo.value.actionInfo.show = tableInfo.value.data?.[0] && data?.[0]?.approveState == 'E';
} else {
proxy.$ElMessage.error(res.msg);
}
......@@ -104,8 +106,8 @@ const tableInfo = ref({
type: "success",
message: '重新发起成功',
});
gettableList();
isReSubmit.value = true;
tableInfo.value.actionInfo.show = false;
} else {
proxy.$ElMessage({
type: "error",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!