jwyu 9 сар өмнө
parent
commit
1ad69c93ba

+ 1 - 1
src/views/customer/UserEdit.vue

@@ -279,7 +279,7 @@ async function handleSave(type) {
         <el-button
           type="primary"
           plain
-          @click="$router.back()"
+          @click="router.replace('/customer/userList')"
           style="width: 120px"
           >取消</el-button
         >

+ 6 - 4
src/views/customer/UserList.vue

@@ -130,12 +130,13 @@ function handleFilterList() {
 
 
 function handleEditUser(e) {
-  router.push({
+  const link=router.resolve({
     path: '/customer/userEdit',
     query: {
       id: e.UserId
     }
-  })
+  }).href
+  window.open(link,'__blank')
 }
 
 // 禁用用户
@@ -177,12 +178,13 @@ function handleDelUser(row) {
 
 // 跳转详情
 function handleGoDetail(e){
-  router.push({
+  const link=router.resolve({
     path:'/customer/userDetail',
     query:{
       id:e.UserId
     }
-  })
+  }).href
+  window.open(link,'__blank')
 }
 
 

+ 3 - 2
src/views/customer/reportStatistic/List.vue

@@ -111,12 +111,13 @@ function handleShowDetail(e){
 
 // 跳转详情
 function handleGoDetail(e){
-  router.push({
+  const link=router.resolve({
     path:'/customer/userDetail',
     query:{
       id:e.UserId
     }
-  })
+  }).href
+  window.open(link,'__blank')
 }
 
 </script>