Sfoglia il codice sorgente

refactor(ledger): 优化日志列表返回按钮功能

duy 1 mese fa
parent
commit
568fb842e6
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      src/views/ledger/components/table-list.vue

+ 5 - 1
src/views/ledger/components/table-list.vue

@@ -113,7 +113,7 @@
         </HcNewCard>
         <HcNewCard v-else>
             <template #extra>
-                <el-button type="primary" @click="listShow = true">
+                <el-button type="primary" @click="goBackList">
                     <HcIcon name="arrow-go-back" />
                     <span>返回日志列表</span>
                 </el-button>
@@ -800,6 +800,10 @@ const theLogRemoveByIdsMonth = async (id) => {
         getTableDataMonth()
     }
 }
+const goBackList = () => {
+    listShow.value = true
+    getTableData().then()
+}
 </script>
 
 <style lang="scss" scoped>