Jelajahi Sumber

日志管理功能代码提交

jingyuanchao 1 tahun lalu
induk
melakukan
9b59ce1cd1
1 mengubah file dengan 6 tambahan dan 10 penghapusan
  1. 6 10
      src/views/system/logManagement/dialog.info.vue

+ 6 - 10
src/views/system/logManagement/dialog.info.vue

@@ -1,9 +1,9 @@
 <template>
   <div class="edu-training-edit">
-    <DialogCom :title="this.title" :visible.sync="isShow"  width="1000px" append-to-body>
+    <DialogCom :title="this.title" :visible.sync="isShow" width="1000px" append-to-body>
       <div class="page-body">
-        <div class="extend_mod" style="max-height: 500px;">
-          <el-table :data="logList" border style="width: 100%;" row-key="id" :default-expand-all="false" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
+        <div class="extend_mod">
+          <el-table :data="logList" border style="width: 100%;height: auto" row-key="id" :default-expand-all="false" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
             <el-table-column
               prop="fileName"
               label="文件名称"
@@ -17,7 +17,6 @@
               <template slot-scope="scope">
                 {{ scope.row.fileType == 1 ? '文件' : '目录' }}
               </template>
-
             </el-table-column>
             <el-table-column
               prop="fileSize"
@@ -53,7 +52,6 @@
           </el-table>
         </div>
       </div>
-
       <div slot="footer" class="dialog-footer">
         <el-button @click="onHide">关闭</el-button>
       </div>
@@ -81,7 +79,6 @@ export default {
       serviceId: null,
     };
   },
-
   props: {},
   watch: {},
   computed: {
@@ -115,7 +112,6 @@ export default {
       await this.refresh(server.id, service.id);
       this.isShow = true;
     },
-
     transferLog(row) {
       console.log(row)
       let data = {
@@ -125,7 +121,8 @@ export default {
         rootDir: row.path,
       };
       transferLogData(data).then((response) => {
-        this.$message.success("获取成功");
+        this.$message.success("获取成功,正在重新加载页面!");
+        this.refresh(this.serverId, this.serviceId);
       });
     },
     downloadLog(row){
@@ -154,8 +151,7 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-.text-content {
-  margin: 0;
+.page-body {
   max-height: 500px;
   overflow: auto;
 }