zhangqiOMG 2 年之前
父節點
當前提交
9b1db561b2

+ 4 - 1
src/components/normal-basic-layout/details/modules/datalog/index.vue

@@ -1,6 +1,9 @@
 <template>
   <div>
-    <el-timeline>
+    <div v-if="list.length === 0">
+      <el-empty description="暂无记录"></el-empty>
+    </div>
+    <el-timeline v-else>
       <el-timeline-item
         v-for="(activity, index) in list"
         :key="index"

+ 1 - 0
src/components/normal-basic-layout/details/modules/group/group.vue

@@ -140,6 +140,7 @@ export default {
         this.queryGroup()
         this.visible1 = false
         this.$emit('onSuccess')
+        this.$store.dispatch('changeDetailDrawer',false)
       })
     },
     async deleteGroupAccount (item) {

+ 10 - 7
src/components/normal-basic-layout/drawerDetail/drawer.vue

@@ -4,8 +4,8 @@
     :with-header="false"
     direction="rtl"
     size="90%"
-    @close="closeDrawer"
-    append-to-body>
+    append-to-body
+    :before-close="closeDrawer">
     <div class="detail__panel">
       <router-view v-if="closeDrawerTemp"/>
     </div>
@@ -23,20 +23,23 @@ export default {
 	},
   data () {
     return {
+
     }
   },
   methods:{
-    closeDrawer () {
-      this.$store.dispatch('changeDetailDrawer',false)
+    closeDrawer (done) {
       this.$router.go(-1)
+      
+      this.$store.dispatch('changeDetailDrawer',false)
+
       this.$emit('onSuccess')
     }
   },
   mounted () {
+    var that = this
     window.addEventListener("popstate", function(e) {
-      if (this.closeDrawerTemp === true) {
-        this.$store.dispatch('changeDetailDrawer',false)
-      }
+     that.$store.dispatch('changeDetailDrawer',false)
+     this.$emit('onSuccess')
     }, false);
   }
 }

+ 0 - 1
src/store/index.js

@@ -93,7 +93,6 @@ export default new Vuex.Store({
       state.menuApp = data
     },
     changeDetailDrawer (state,bool) {
-      console.log(bool)
       state.closeDrawerTemp = bool
     },
     DrawerShowChange (state,bool) {