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