فهرست منبع

缺陷客户端保存

qinzhipeng_v 5 سال پیش
والد
کامیت
d82ab5041e
2فایلهای تغییر یافته به همراه21 افزوده شده و 16 حذف شده
  1. 1 1
      src/views/projectManage/bugList/details/index.vue
  2. 20 15
      src/views/projectManage/projectList/projectIndex.vue

+ 1 - 1
src/views/projectManage/bugList/details/index.vue

@@ -227,7 +227,7 @@
                       v-model="bug.appId"
                       clearable
                       filterable
-                      @change="getVersionList(bug.appId);"
+                      @change="getVersionList(bug.appId), bugUpdate(bug,'appInfo');"
                     >
                       <el-option
                         v-for="item in appClientList"

+ 20 - 15
src/views/projectManage/projectList/projectIndex.vue

@@ -320,20 +320,26 @@ import {
 } from '@/api/projectIndex'
 import '@/views/projectManage/publicCss/index.css'
 export default {
-  beforeRouteLeave(to, from, next) {
-    // 这里需要elementui的支持,如果使用其他界面组件自行替换即可
-    this.$confirm('正在离开本页面,本页面内所有未保存数据都会丢失', '警告', {
-      confirmButtonText: '确定',
-      cancelButtonText: '取消',
-      type: 'warning'
-    }).then(() => {
-      // 正常跳转
-      next()
-    }).catch(() => {
-      // 如果取消跳转地址栏会变化,这时保持地址栏不变
-      window.history.go(1)
-    })
-  },
+  // beforeRouteLeave(to, from, next) {
+  //   // this.$nextTick(() => {
+  //   //   // 这里需要elementui的支持,如果使用其他界面组件自行替换即可
+  //   //   this.$confirm('正在离开本页面,本页面内所有未保存数据都会丢失', '警告', {
+  //   //     distinguishCancelAndClose: true,
+  //   //     confirmButtonText: '确定',
+  //   //     cancelButtonText: '取消',
+  //   //     type: 'warning'
+  //   //   }).then(() => {
+  //   //   // 正常跳转
+  //   //     next(true)
+  //   //   }).catch(() => {
+  //   //   // 如果取消跳转地址栏会变化,这时保持地址栏不变
+  //   //     window.history.go(1)
+  //   //   })
+  //   // })
+  //   // next(false)
+
+  //   this.$store.state.data.status = false
+  // },
   data() {
     return {
       curIndex: 1,
@@ -396,7 +402,6 @@ export default {
   },
   destroyed() {
     this.$store.state.data.status = false
-    this.beforeRouteLeave()
   },
   methods: {
     test2(item, e) {