CN-545 feat: 实体详情列表也去掉时间过滤条件

This commit is contained in:
chenjinsong
2022-05-12 10:15:41 +08:00
parent d70426afc5
commit 61f0bdfcf8
4 changed files with 38 additions and 33 deletions

View File

@@ -42,6 +42,8 @@
<script>
import Card from '@/views/entityExplorer/entityList/Card'
import Row from '@/views/entityExplorer/entityList/Row'
import { getNowTime } from '@/utils/date-util'
import { ref } from 'vue'
export default {
name: 'EntityList',
@@ -50,8 +52,7 @@ export default {
from: String,
pageObj: Object,
loading: Boolean,
listMode: String,
timeFilter: Object
listMode: String
},
components: {
'entity-card': Card,
@@ -96,6 +97,15 @@ export default {
}
}
}
},
setup () {
// date
const dateRangeValue = 60
const { startTime, endTime } = getNowTime(dateRangeValue)
const timeFilter = ref({ startTime, endTime, dateRangeValue })
return {
timeFilter
}
}
}
</script>

View File

@@ -11,7 +11,7 @@ import { shallowRef } from 'vue'
export default {
props: {
entity: Object,
timeFilter: {},
timeFilter: Object,
listMode: String,
loading: Boolean
},