fix: 日志管理时间差问题
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
<el-date-picker
|
||||
v-model="query.createTime"
|
||||
type="datetimerange"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
:range-separator="$t('Log.to')"
|
||||
:start-placeholder="$t('Log.start_time')"
|
||||
:end-placeholder="$t('Log.end_time')">
|
||||
@@ -125,6 +126,10 @@ export default {
|
||||
this.queryData()
|
||||
},
|
||||
queryData() {
|
||||
if (this.query.createTime) {
|
||||
this.query.startTime = this.query.createTime[0]
|
||||
this.query.endTime = this.query.createTime[1]
|
||||
}
|
||||
luceneOperation.getLogData(this.query).then(res => {
|
||||
this.logs = [] // 清空
|
||||
var ansi_up = new AnsiUp()
|
||||
|
||||
Reference in New Issue
Block a user