update fe and log config

This commit is contained in:
Himit_ZH 2021-09-17 20:52:45 +08:00
parent b77bbce8c3
commit 971f3f8506
7 changed files with 38 additions and 23 deletions

View File

@ -73,4 +73,4 @@ logging:
naming: info
root: info
file:
path: ./hoj_backend.log
path: ./hoj_backend

View File

@ -74,4 +74,4 @@ logging:
root: error
config: classpath:logback-spring.xml
file:
path: /hoj/log/backend/hoj_backend.log
path: /hoj/log/backend

View File

@ -84,5 +84,5 @@ logging:
root: error
config: classpath:logback-spring.xml
file:
path: /hoj/log/backend/hoj_backend.log
path: /hoj/log/backend

View File

@ -30,9 +30,11 @@
<!--按时间保存日志 修改格式可以按小时、按天、月来保存-->
<fileNamePattern>${logging.path}/hoj.info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!--保存时长-->
<MaxHistory>90</MaxHistory>
<!--文件大小-->
<totalSizeCap>1GB</totalSizeCap>
<MaxHistory>15</MaxHistory>
<!--单个文件最大-->
<maxFileSize>200MB</maxFileSize>
<!--总大小-->
<totalSizeCap>2GB</totalSizeCap>
</rollingPolicy>
</appender>
@ -49,7 +51,12 @@
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--路径-->
<fileNamePattern>${logging.path}/hoj.error.%d{yyyy-MM-dd}.log</fileNamePattern>
<MaxHistory>90</MaxHistory>
<!--保存时长-->
<MaxHistory>15</MaxHistory>
<!--单个文件最大-->
<maxFileSize>200MB</maxFileSize>
<!--总大小-->
<totalSizeCap>2GB</totalSizeCap>
</rollingPolicy>
</appender>
<root level="info">

View File

@ -41,7 +41,7 @@ logging:
root: error
config: classpath:logback-spring.xml
file:
path: /hoj/log/judgeserver/hoj_judgeserver.log
path: /hoj/log/judgeserver
# 暴露监控
management:
endpoints:

View File

@ -30,9 +30,11 @@
<!--按时间保存日志 修改格式可以按小时、按天、月来保存-->
<fileNamePattern>${logging.path}/hoj.info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!--保存时长-->
<MaxHistory>90</MaxHistory>
<!--文件大小-->
<totalSizeCap>1GB</totalSizeCap>
<MaxHistory>15</MaxHistory>
<!--单个文件最大-->
<maxFileSize>200MB</maxFileSize>
<!--总大小-->
<totalSizeCap>2GB</totalSizeCap>
</rollingPolicy>
</appender>
@ -49,7 +51,12 @@
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--路径-->
<fileNamePattern>${logging.path}/hoj.error.%d{yyyy-MM-dd}.log</fileNamePattern>
<MaxHistory>90</MaxHistory>
<!--保存时长-->
<MaxHistory>15</MaxHistory>
<!--单个文件最大-->
<maxFileSize>200MB</maxFileSize>
<!--总大小-->
<totalSizeCap>2GB</totalSizeCap>
</rollingPolicy>
</appender>
<root level="info">

View File

@ -156,7 +156,12 @@
</span>
</template>
</vxe-table-column>
<vxe-table-column field="score" :title="$t('m.Score')" width="64">
<vxe-table-column
field="score"
:title="$t('m.Score')"
width="64"
v-if="scoreColumnVisible"
>
<template v-slot="{ row }">
<template v-if="contestID && row.score != null">
<el-tag
@ -408,16 +413,6 @@ export default {
},
getData() {
// ACM
if (this.contestID && this.contestRuleType == RULE_TYPE.ACM) {
this.loadingTable = true;
setTimeout(() => {
//
this.$refs.xTable.getColumnByField('score').visible = false;
this.$refs.xTable.refreshColumn();
this.loadingTable = false;
}, 200);
}
this.getSubmissions();
},
@ -771,6 +766,12 @@ export default {
rejudgeColumnVisible() {
return this.isSuperAdmin && !this.contestID;
},
scoreColumnVisible() {
return (
(this.contestID && this.contestRuleType == this.RULE_TYPE.OI) ||
!this.contestID
);
},
},
watch: {
$route(newVal, oldVal) {