ソースを参照

跳转及返回方式更改

ydf 2 年 前
コミット
dea793d19a

+ 1 - 1
.env.development

@@ -2,7 +2,7 @@
2 2
 # VUE_APP_BASE_URL = 'http://192.168.50.205:9999'
3 3
 # VUE_APP_BASE_URL = 'http://172.16.6.217:9999'
4 4
 # 测试环境外网
5
-VUE_APP_BASE_URL = 'http://121.36.17.6:9098'
5
+ VUE_APP_BASE_URL = 'http://121.36.17.6:9098'
6 6
 # 正式环境外网
7 7
 # VUE_APP_BASE_URL = 'http://121.36.17.6:9099'
8 8
 

+ 5 - 4
src/views/InformationFilling/enterWarehouseInfo/detail.vue

@@ -224,10 +224,11 @@ const saveSubmit = (status) => {
224 224
 
225 225
 /** 返回 */
226 226
 const returnPage = (row: any) => {
227
-  router.push({
228
-    path: "/InformationFilling/enterWarehouseInfo",
229
-    query: {random: Math.random()}
230
-  });
227
+  closeTagAndOpenLastTag()
228
+  // router.push({
229
+  //   path: "/InformationFilling/enterWarehouseInfo",
230
+  //   // query: {random: Math.random()}
231
+  // });
231 232
 };
232 233
 
233 234
 //附件部分

+ 1 - 1
src/views/InformationFilling/enterWarehouseInfo/index.vue

@@ -107,7 +107,7 @@ const clearSearch = () => {
107 107
 const openDetail = (row: any, type) => {
108 108
   router.push({
109 109
     path: "/InformationFilling/enterWarehouseInfoDetail",
110
-    query: {id: row.inboundId, type: type, random: Math.random()}
110
+    query: {id: row.inboundId, type: type}
111 111
   });
112 112
 };
113 113
 /** 列表数据获取 */

+ 5 - 4
src/views/InformationFilling/outIssue/detail.vue

@@ -260,10 +260,11 @@ const saveSubmit = (status) => {
260 260
 
261 261
 /** 返回 */
262 262
 const returnPage = (row: any) => {
263
-  router.push({
264
-    path: "/InformationFilling/outIssue",
265
-    query: {random: Math.random()}
266
-  });
263
+  closeTagAndOpenLastTag()
264
+  // router.push({
265
+  //   path: "/InformationFilling/outIssue",
266
+  //   // query: {random: Math.random()}
267
+  // });
267 268
 };
268 269
 
269 270
 //附件部分

+ 1 - 1
src/views/InformationFilling/outIssue/index.vue

@@ -103,7 +103,7 @@ const clearSearch = () => {
103 103
 const openDetail = (row: any, type) => {
104 104
   router.push({
105 105
     path: "/InformationFilling/outIssueDetail",
106
-    query: {id: row.outboundId, type: type, random: Math.random()}
106
+    query: {id: row.outboundId, type: type}
107 107
   });
108 108
 };
109 109
 /** 列表数据获取 */

+ 6 - 4
src/views/InformationFilling/outWarehouseInfo/detail.vue

@@ -129,6 +129,7 @@ import router from "@/router";
129 129
 import { addOutData, updateOutData, lookOutData, dictTree } from "@/api/inAndOut/formationFilling/out";
130 130
 import { sysFile } from "@/api/inAndOut/formationFilling/in";
131 131
 import { useDict } from '@/hooks/dict';
132
+import { closeTagAndOpenLastTag } from '@/router/Routermethods';
132 133
 
133 134
 const { outdound_type, is_available, province_ch } = useDict('outdound_type', 'is_available', 'province_ch');
134 135
 
@@ -237,10 +238,11 @@ const saveSubmit = (status) => {
237 238
 
238 239
 /** 返回 */
239 240
 const returnPage = (row: any) => {
240
-  router.push({
241
-    path: "/InformationFilling/outWarehouseInfo",
242
-    query: {random: Math.random()}
243
-  });
241
+  closeTagAndOpenLastTag()
242
+  // router.push({
243
+  //   path: "/InformationFilling/outWarehouseInfo",
244
+  //   query: {random: Math.random()}
245
+  // });
244 246
 };
245 247
 
246 248
 //附件部分

+ 1 - 1
src/views/InformationFilling/outWarehouseInfo/index.vue

@@ -113,7 +113,7 @@ const clearSearch = () => {
113 113
 const openDetail = (row: any, type) => {
114 114
   router.push({
115 115
     path: "/InformationFilling/outWarehouseInfoDetail",
116
-    query: {id: row.outboundId, type: type, random: Math.random()}
116
+    query: {id: row.outboundId, type: type}
117 117
   });
118 118
 };
119 119
 /** 列表数据获取 */