|  | @@ -3,11 +3,11 @@
 | 
											
												
													
														|  |      <DialogCom :title="this.title" :visible.sync="isShow" append-to-body>
 |  |      <DialogCom :title="this.title" :visible.sync="isShow" append-to-body>
 | 
											
												
													
														|  |        <div class="page-body">
 |  |        <div class="page-body">
 | 
											
												
													
														|  |          <div class="extend_mod" style="max-height: 500px;">
 |  |          <div class="extend_mod" style="max-height: 500px;">
 | 
											
												
													
														|  | -          <el-table :data="logList" border style="width: 100%;max-height: 500px;overflow-y: auto;">
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <el-table :data="logList" border style="width: 100%;max-height: 500px;overflow-y: auto;" row-key="id" :default-expand-all="false" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
 | 
											
												
													
														|  |              <el-table-column
 |  |              <el-table-column
 | 
											
												
													
														|  |                prop="fileName"
 |  |                prop="fileName"
 | 
											
												
													
														|  |                label="文件名称"
 |  |                label="文件名称"
 | 
											
												
													
														|  | -              align="center"
 |  | 
 | 
											
												
													
														|  | 
 |  | +              align="left"
 | 
											
												
													
														|  |              ></el-table-column>
 |  |              ></el-table-column>
 | 
											
												
													
														|  |              <el-table-column
 |  |              <el-table-column
 | 
											
												
													
														|  |                prop="fileType"
 |  |                prop="fileType"
 | 
											
										
											
												
													
														|  | @@ -36,21 +36,16 @@
 | 
											
												
													
														|  |                    size="mini"
 |  |                    size="mini"
 | 
											
												
													
														|  |                    type="text"
 |  |                    type="text"
 | 
											
												
													
														|  |                    icon="el-icon-edit-outline"
 |  |                    icon="el-icon-edit-outline"
 | 
											
												
													
														|  | 
 |  | +                  v-if="scope.row.fileType ==1 "
 | 
											
												
													
														|  |                    @click="transferLog(scope.row)"
 |  |                    @click="transferLog(scope.row)"
 | 
											
												
													
														|  |                  >获取日志
 |  |                  >获取日志
 | 
											
												
													
														|  |                  </el-button>
 |  |                  </el-button>
 | 
											
												
													
														|  |                  <el-button
 |  |                  <el-button
 | 
											
												
													
														|  |                    size="mini"
 |  |                    size="mini"
 | 
											
												
													
														|  |                    type="text"
 |  |                    type="text"
 | 
											
												
													
														|  | -                  icon="el-icon-edit-outline"
 |  | 
 | 
											
												
													
														|  | -                  @click="transferLog(scope.row)"
 |  | 
 | 
											
												
													
														|  | -                >重新获取
 |  | 
 | 
											
												
													
														|  | -                </el-button>
 |  | 
 | 
											
												
													
														|  | -                <el-button
 |  | 
 | 
											
												
													
														|  | -                  size="mini"
 |  | 
 | 
											
												
													
														|  | -                  type="text"
 |  | 
 | 
											
												
													
														|  |                    icon="el-icon-delete"
 |  |                    icon="el-icon-delete"
 | 
											
												
													
														|  | -                  @click="handleDelete(scope.row)"
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  v-if="scope.row.exit == 1"
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |                  >下载
 |  |                  >下载
 | 
											
												
													
														|  |                  </el-button>
 |  |                  </el-button>
 | 
											
												
													
														|  |                </template>
 |  |                </template>
 | 
											
										
											
												
													
														|  | @@ -68,7 +63,7 @@
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  |  import {mapMutations, mapState} from "vuex";
 |  |  import {mapMutations, mapState} from "vuex";
 | 
											
												
													
														|  | -import {getLogList} from "@/api/system/logManagement";
 |  | 
 | 
											
												
													
														|  | 
 |  | +import {getLogList, transferLogData} from "@/api/system/logManagement";
 | 
											
												
													
														|  |  import {getLabel} from "@/views/commonOption";
 |  |  import {getLabel} from "@/views/commonOption";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
										
											
												
													
														|  | @@ -122,8 +117,19 @@ export default {
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      transferLog(row) {
 |  |      transferLog(row) {
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +      console.log(row)
 | 
											
												
													
														|  | 
 |  | +      let data = {
 | 
											
												
													
														|  | 
 |  | +        serverId: this.serverId,
 | 
											
												
													
														|  | 
 |  | +        parentPath: row.parentPath,
 | 
											
												
													
														|  | 
 |  | +        path: row.path,
 | 
											
												
													
														|  | 
 |  | +        rootDir: row.path,
 | 
											
												
													
														|  | 
 |  | +      };
 | 
											
												
													
														|  | 
 |  | +      transferLogData(data).then((response) => {
 | 
											
												
													
														|  | 
 |  | +        this.$message.success("获取成功");
 | 
											
												
													
														|  | 
 |  | +      });
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    checkExit(row) {
 | 
											
												
													
														|  | 
 |  | +      return;
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 事件
 |  |      // 事件
 | 
											
												
													
														|  |      onHide() {
 |  |      onHide() {
 |