|
|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<div class="edu-training-edit">
|
|
|
- <DialogCom :title="this.title" :visible.sync="isShow" 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%;max-height: 500px;overflow-y: auto;" row-key="id" :default-expand-all="false" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
|
+ <el-table :data="logList" border style="width: 100%;max-height: 500px;" row-key="id" :default-expand-all="false" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
|
<el-table-column
|
|
|
prop="fileName"
|
|
|
label="文件名称"
|
|
|
@@ -45,7 +45,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
v-if="scope.row.exit == 1"
|
|
|
-
|
|
|
+ @click="downloadLog(scope.row)"
|
|
|
>下载
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -128,8 +128,20 @@ export default {
|
|
|
this.$message.success("获取成功");
|
|
|
});
|
|
|
},
|
|
|
- checkExit(row) {
|
|
|
- return;
|
|
|
+ downloadLog(row){
|
|
|
+ let data = {
|
|
|
+ serverId: this.serverId,
|
|
|
+ parentPath: row.parentPath,
|
|
|
+ path: row.path,
|
|
|
+ rootDir: row.path,
|
|
|
+ };
|
|
|
+ this.download(
|
|
|
+ "/system/server/downloadLogData",
|
|
|
+ {
|
|
|
+ ...data,
|
|
|
+ },
|
|
|
+ row.fileName
|
|
|
+ );
|
|
|
},
|
|
|
// 事件
|
|
|
onHide() {
|