29e4e493 by lihua

fix: 重新发起

1 parent 700c2295
...@@ -74,7 +74,7 @@ export const getCrossDetailList = (params) => request({ ...@@ -74,7 +74,7 @@ export const getCrossDetailList = (params) => request({
74 74
75 /** 重新发起失败的流程 */ 75 /** 重新发起失败的流程 */
76 export const crossPlatformApprove = (params) => request({ 76 export const crossPlatformApprove = (params) => request({
77 url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/approve-detail-cross/list?guid=${params.guid}&approveGuid=${params.approveGuid}`, 77 url: `${import.meta.env.VITE_APP_WORK_FLOW_URL}/approve-detail-cross/add-cross-platform-approve?guid=${params.guid}&approveGuid=${params.approveGuid}`,
78 method: 'post', 78 method: 'post',
79 data: {} 79 data: {}
80 }) 80 })
......
...@@ -38,6 +38,7 @@ const dialogInfo = ref({ ...@@ -38,6 +38,7 @@ const dialogInfo = ref({
38 watch(() => props.visible, () => { 38 watch(() => props.visible, () => {
39 dialogInfo.value.visible = props.visible; 39 dialogInfo.value.visible = props.visible;
40 if (props.visible) { 40 if (props.visible) {
41 isReSubmit.value = false;
41 tableInfo.value.data = []; 42 tableInfo.value.data = [];
42 tableInfo.value.actionInfo.show = props.currentRowInfo?.crossPlatformApproveState == 'E'; 43 tableInfo.value.actionInfo.show = props.currentRowInfo?.crossPlatformApproveState == 'E';
43 gettableList(); 44 gettableList();
...@@ -61,6 +62,7 @@ const gettableList = () => { ...@@ -61,6 +62,7 @@ const gettableList = () => {
61 d.approveState = d.approveState == null ? undefined : d.approveState; 62 d.approveState = d.approveState == null ? undefined : d.approveState;
62 return d; 63 return d;
63 }); 64 });
65 tableInfo.value.actionInfo.show = tableInfo.value.data?.[0] && data?.[0]?.approveState == 'E';
64 } else { 66 } else {
65 proxy.$ElMessage.error(res.msg); 67 proxy.$ElMessage.error(res.msg);
66 } 68 }
...@@ -104,8 +106,8 @@ const tableInfo = ref({ ...@@ -104,8 +106,8 @@ const tableInfo = ref({
104 type: "success", 106 type: "success",
105 message: '重新发起成功', 107 message: '重新发起成功',
106 }); 108 });
109 gettableList();
107 isReSubmit.value = true; 110 isReSubmit.value = true;
108 tableInfo.value.actionInfo.show = false;
109 } else { 111 } else {
110 proxy.$ElMessage({ 112 proxy.$ElMessage({
111 type: "error", 113 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!