update fe and log config
This commit is contained in:
parent
b77bbce8c3
commit
971f3f8506
|
@ -73,4 +73,4 @@ logging:
|
|||
naming: info
|
||||
root: info
|
||||
file:
|
||||
path: ./hoj_backend.log
|
||||
path: ./hoj_backend
|
|
@ -74,4 +74,4 @@ logging:
|
|||
root: error
|
||||
config: classpath:logback-spring.xml
|
||||
file:
|
||||
path: /hoj/log/backend/hoj_backend.log
|
||||
path: /hoj/log/backend
|
|
@ -84,5 +84,5 @@ logging:
|
|||
root: error
|
||||
config: classpath:logback-spring.xml
|
||||
file:
|
||||
path: /hoj/log/backend/hoj_backend.log
|
||||
path: /hoj/log/backend
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue