feat(admin): 列表支持按系统筛选,用户列补语义标签
- 收藏/点赞/观看增加「全部系统 / Android / iOS」下拉 - 用户列第二行标注 UID,游客行标注设备,避免一串字母看不出含义
This commit is contained in:
1 parent
5dbc752798
commit
e1eb58d4c4
6 files changed
+93
-14
No files matched your search
@@ -15,8 +15,20 @@ const TARGET_OPTIONS = [
|
||||
{ value: 'EPISODE', label: '剧集' },
|
||||
{ value: 'COMMENT', label: '评论' }
|
||||
]
|
||||
const PLATFORM_OPTIONS = [
|
||||
{ value: '', label: '全部系统' },
|
||||
{ value: 'ANDROID', label: 'Android' },
|
||||
{ value: 'IOS', label: 'iOS' }
|
||||
]
|
||||
|
||||
const filters = reactive({ keyword: '', deviceId: '', dramaTitle: '', range: null, targetType: '' })
|
||||
const filters = reactive({
|
||||
keyword: '',
|
||||
deviceId: '',
|
||||
dramaTitle: '',
|
||||
range: null,
|
||||
targetType: '',
|
||||
platform: ''
|
||||
})
|
||||
const rows = ref([])
|
||||
const total = ref(0)
|
||||
const loading = ref(false)
|
||||
@@ -33,6 +45,7 @@ async function load() {
|
||||
deviceId: filters.deviceId.trim() || undefined,
|
||||
dramaTitle: filters.dramaTitle.trim() || undefined,
|
||||
targetType: filters.targetType || undefined,
|
||||
platform: filters.platform || undefined,
|
||||
startTime: filters.range?.[0] || undefined,
|
||||
endTime: filters.range?.[1] || undefined
|
||||
})
|
||||
@@ -49,7 +62,14 @@ function search() {
|
||||
}
|
||||
|
||||
function resetFilters() {
|
||||
Object.assign(filters, { keyword: '', deviceId: '', dramaTitle: '', range: null, targetType: '' })
|
||||
Object.assign(filters, {
|
||||
keyword: '',
|
||||
deviceId: '',
|
||||
dramaTitle: '',
|
||||
range: null,
|
||||
targetType: '',
|
||||
platform: ''
|
||||
})
|
||||
search()
|
||||
}
|
||||
|
||||
@@ -108,6 +128,14 @@ onMounted(load)
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<el-select v-model="filters.platform" class="console-select" placeholder="全部系统">
|
||||
<el-option
|
||||
v-for="item in PLATFORM_OPTIONS"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<el-date-picker
|
||||
v-model="filters.range"
|
||||
class="engagement-range"
|
||||
|
||||
Reference in new issue
Block a user