Sfoglia il codice sorgente

feature/路线传参修复

dengrui 10 mesi fa
parent
commit
b76cb68907

+ 1 - 1
src/views/base/craftManagement/route/bindProcess.vue

@@ -354,7 +354,7 @@ const reset = () => {
 };
 const editProComponent = async () => {
   router.push({
-    path: `/base/craftManagement/processCom/${route.fullPath.split("/")[4]}/${route.fullPath.split("/")[5]}`,
+    path: `/base/craftManagement/processCom/${route.fullPath.split("/")[4]}/${route.fullPath.split("/")[5]}/${currentProcess.value.operationId}`,
   });
 };
 

+ 1 - 1
src/views/base/craftManagement/route/components/bottomTable.vue

@@ -208,7 +208,7 @@ const getSOAPpdf = (itemValue) => {
 
 onMounted(() => {
   routeId.value = route.fullPath.split("/")[4];
-  search.value.operationId = route.fullPath.split("/")[4];
+  search.value.operationId = route.fullPath.split("/")[6];
   url.value = tableConfig[props.tableType].url;
   option.value = Object.assign(option.value, {
     addBtn: false,

+ 1 - 2
src/views/base/craftManagement/route/components/processComponent.vue

@@ -119,10 +119,9 @@ const loadTopList = () => {
 };
 onMounted(async () => {
   prodtCode.value = route.fullPath.split("/")[5];
-  routerId.value = route.fullPath.split("/")[4];
+  routerId.value = route.fullPath.split("/")[6];
   await loadTopList();
 
-  console.log(prodtCode.value, "2", routerId.value, "3");
 });
 
 // 顶部====================

+ 2 - 2
src/views/base/craftManagement/route/components/setExcel/index.vue

@@ -89,7 +89,7 @@ const deleteTep = async (id) => {
 const onSelected = async () => {
   const { data, code } = await add({
     baseFormIds: value1.value,
-    operationId: route.params.id,
+    operationId: route.fullPath.split("/")[6],
   });
   if (code == "200") {
     ElMessage.success("添加成功!");
@@ -116,7 +116,7 @@ const { form, data, option, search, page, toDeleteIds, Methords, Utils } =
 //     value1.value.push(el.id);
 //   });
 // };
-search.value = { ...search.value, operationId: route.params.id };
+search.value = { ...search.value, operationId: route.fullPath.split("/")[6] };
 const { dataList, createRow, updateRow, deleteRow, searchChange, resetChange } =
   Methords; //增删改查
 const { selectionChange, multipleDelete } = Methords; //选中和批量删除事件