Skip to content

Commit

Permalink
feat:op客户端统计筛选时间添加默认当前时间 TencentBlueKing#2044
Browse files Browse the repository at this point in the history
* feat:op客户端统计筛选时间添加默认当前时间 TencentBlueKing#2044

* feat: op客户端统计筛选时间添加默认当前时间 TencentBlueKing#2044
  • Loading branch information
lannoy0523 authored Apr 23, 2024
1 parent 60a44ea commit e449cdd
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/frontend/devops-op/src/views/node/FileSystemRecord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ import { queryDailyFileSystemClient } from '@/api/fileSystem'
import { searchProjects } from '@/api/project'
import { listRepositories } from '@/api/repository'
import { formatNormalDate } from '@/utils/date'
import moment from 'moment'
export default {
name: 'FileSystem',
Expand All @@ -105,6 +106,12 @@ export default {
clients: []
}
},
created() {
const query = {
startTime: moment(new Date()).format('yyyy-MM-DD')
}
this.$router.push({ path: '/nodes/FileSystemRecord', query: query })
},
mounted() {
this.onRouteUpdate(this.$route)
},
Expand Down Expand Up @@ -175,13 +182,7 @@ export default {
})
},
queryClients(clientQuery) {
this.$refs['form'].validate((valid) => {
if (valid) {
this.doQueryClients(clientQuery)
} else {
return false
}
})
this.doQueryClients(clientQuery)
},
doQueryClients(clientQuery) {
this.loading = true
Expand Down

0 comments on commit e449cdd

Please sign in to comment.