|  | @@ -15,7 +15,7 @@
 | 
											
												
													
														|  |                align="center"
 |  |                align="center"
 | 
											
												
													
														|  |              >
 |  |              >
 | 
											
												
													
														|  |                <template slot-scope="scope">
 |  |                <template slot-scope="scope">
 | 
											
												
													
														|  | -                {{ scope.row.fileType == 1 ? '目录' : '文件' }}
 |  | 
 | 
											
												
													
														|  | 
 |  | +                {{ scope.row.fileType == 1 ? '文件' : '目录' }}
 | 
											
												
													
														|  |                </template>
 |  |                </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |              </el-table-column>
 |  |              </el-table-column>
 | 
											
										
											
												
													
														|  | @@ -36,14 +36,14 @@
 | 
											
												
													
														|  |                    size="mini"
 |  |                    size="mini"
 | 
											
												
													
														|  |                    type="text"
 |  |                    type="text"
 | 
											
												
													
														|  |                    icon="el-icon-edit-outline"
 |  |                    icon="el-icon-edit-outline"
 | 
											
												
													
														|  | -                  @click="handleUpdate(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"
 |  |                    icon="el-icon-edit-outline"
 | 
											
												
													
														|  | -                  @click="handleUpdate(scope.row)"
 |  | 
 | 
											
												
													
														|  | 
 |  | +                  @click="transferLog(scope.row)"
 | 
											
												
													
														|  |                  >重新获取
 |  |                  >重新获取
 | 
											
												
													
														|  |                  </el-button>
 |  |                  </el-button>
 | 
											
												
													
														|  |                  <el-button
 |  |                  <el-button
 | 
											
										
											
												
													
														|  | @@ -67,7 +67,7 @@
 | 
											
												
													
														|  |  </template>
 |  |  </template>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  | -import {mapState, mapMutations} from "vuex";
 |  | 
 | 
											
												
													
														|  | 
 |  | +import {mapMutations, mapState} from "vuex";
 | 
											
												
													
														|  |  import {getLogList} from "@/api/system/logManagement";
 |  |  import {getLogList} from "@/api/system/logManagement";
 | 
											
												
													
														|  |  import {getLabel} from "@/views/commonOption";
 |  |  import {getLabel} from "@/views/commonOption";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -82,6 +82,8 @@ export default {
 | 
											
												
													
														|  |        formData: this.reset(),
 |  |        formData: this.reset(),
 | 
											
												
													
														|  |        title: '',
 |  |        title: '',
 | 
											
												
													
														|  |        logList: [],
 |  |        logList: [],
 | 
											
												
													
														|  | 
 |  | +      serverId: null,
 | 
											
												
													
														|  | 
 |  | +      serviceId: null,
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -95,7 +97,6 @@ export default {
 | 
											
												
													
														|  |      getLabel,
 |  |      getLabel,
 | 
											
												
													
														|  |      reset(other = {}) {
 |  |      reset(other = {}) {
 | 
											
												
													
														|  |        return {
 |  |        return {
 | 
											
												
													
														|  | -        id: null,
 |  | 
 | 
											
												
													
														|  |          fileName: null,
 |  |          fileName: null,
 | 
											
												
													
														|  |          fileSize: null,
 |  |          fileSize: null,
 | 
											
												
													
														|  |          fileType: null,
 |  |          fileType: null,
 | 
											
										
											
												
													
														|  | @@ -103,22 +104,27 @@ export default {
 | 
											
												
													
														|  |        };
 |  |        };
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      async refresh(serverId, serviceId) {
 |  |      async refresh(serverId, serviceId) {
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |        if (!serverId || !serviceId) {
 |  |        if (!serverId || !serviceId) {
 | 
											
												
													
														|  |          this.reset(serverId);
 |  |          this.reset(serverId);
 | 
											
												
													
														|  |        } else {
 |  |        } else {
 | 
											
												
													
														|  | -        getLogList(serverId, serverId).then((response) => {
 |  | 
 | 
											
												
													
														|  | 
 |  | +        getLogList(serverId, serviceId).then((response) => {
 | 
											
												
													
														|  |            this.logList = response.data;
 |  |            this.logList = response.data;
 | 
											
												
													
														|  |            this.loading = false;
 |  |            this.loading = false;
 | 
											
												
													
														|  |          });
 |  |          });
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      async show(server, service, other = {}) {
 |  |      async show(server, service, other = {}) {
 | 
											
												
													
														|  | -      this.id = server;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.serverId = server.id;
 | 
											
												
													
														|  | 
 |  | +      this.serviceId = service.id;
 | 
											
												
													
														|  |        this.title = service.checkName + "日志详情页";
 |  |        this.title = service.checkName + "日志详情页";
 | 
											
												
													
														|  |        await this.refresh(server.id, service.id);
 |  |        await this.refresh(server.id, service.id);
 | 
											
												
													
														|  |        this.isShow = true;
 |  |        this.isShow = true;
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    transferLog(row) {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  |      // 事件
 |  |      // 事件
 | 
											
												
													
														|  |      onHide() {
 |  |      onHide() {
 | 
											
												
													
														|  |        this.isShow = false;
 |  |        this.isShow = false;
 |