log 模块的弹窗样式调整

This commit is contained in:
任珮宇 2024-02-05 18:35:28 +08:00
parent fa04054986
commit c87c4ba6f7

View File

@ -17,7 +17,7 @@
</template>
<!-- 标题结束 -->
<!-- 内容 -->
<a-spin :spinning="isGettingTreeData" style="margin-top: 80px; width: 100%; text-align: center;"> </a-spin>
<a-spin :spinning="isGettingTreeData" style="margin-top: 80px; width: 100%; text-align: center"> </a-spin>
<tree-with-line
v-if="treeData.length"
:treeData="treeData"
@ -57,7 +57,7 @@
<!-- 日志列表结束 -->
<custom-modal title="Log" :width="950" v-model="visible" :footer="null">
<a-spin class="log-detail" :spinning="isGettingDetail">
<div v-for="(logItem, index) in logInfo" :key="index">
<div style="font-family: 宋体" v-for="(logItem, index) in logInfo" :key="index">
{{ logItem }}
</div>
</a-spin>
@ -74,42 +74,42 @@ const columns = [
title: 'NAME',
align: 'center',
width: 320,
dataIndex: 'fileName'
dataIndex: 'fileName',
},
{
title: 'DATE',
align: 'center',
width: 200,
dataIndex: 'fileDate'
dataIndex: 'fileDate',
},
{
title: 'SIZE',
align: 'center',
width: 220,
dataIndex: 'fileSize'
dataIndex: 'fileSize',
},
{
title: 'OPERATE',
align: 'center',
width: 200,
scopedSlots: {
customRender: 'operate'
}
}
customRender: 'operate',
},
},
]
export default {
name: 'LogManage',
mixins: [JeecgListMixin],
components: {
TreeWithLine
TreeWithLine,
},
data() {
this.columns = columns
return {
disableMixinCreated: true,
url: {
list: '/logManage/findFiles'
list: '/logManage/findFiles',
},
isGettingTreeData: false, //
treeData: [],
@ -119,7 +119,7 @@ export default {
visible: false,
isGettingDetail: false,
logInfo: []
logInfo: [],
}
},
created() {
@ -148,11 +148,11 @@ export default {
*/
buildTreeData(treeJson) {
const tree = []
treeJson.forEach(item => {
treeJson.forEach((item) => {
const treeNode = {
title: item.name,
key: item.path,
children: []
children: [],
}
if (item.children && item.children.length) {
treeNode.children.push(...this.buildTreeData(item.children))
@ -180,7 +180,7 @@ export default {
var params = this.getQueryParams() //
this.loading = true
getAction(this.url.list, params)
.then(res => {
.then((res) => {
this.dataSource = res
})
.finally(() => {
@ -216,8 +216,8 @@ export default {
formData.append('fileName', fileName)
formData.append('localPath', filePath)
downloadFile('/logManage/downloadFile', fileName, formData, 'post')
}
}
},
},
}
</script>
<style lang="less" scoped>