mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
add goal
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import DefaultIndexTemplateVue from '@/views/view/indexTemplate/DefaultIndexTemplate.vue'
|
||||
import { computed, defineAsyncComponent, ref, watchEffect } from 'vue'
|
||||
import { defineAsyncComponent, ref } from 'vue'
|
||||
|
||||
const debugAPI = import.meta.env.VITE_DEBUG_API
|
||||
const releseAPI = `https://vtsuru.suki.club/api/`
|
||||
|
||||
@@ -878,6 +878,9 @@ onMounted(async () => {
|
||||
/>
|
||||
</template>
|
||||
</NTabPane>
|
||||
<NTabPane name="directory" tab="从文件夹读取">
|
||||
开发中...
|
||||
</NTabPane>
|
||||
</NTabs>
|
||||
</NSpin>
|
||||
</NScrollbar>
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
NDivider,
|
||||
NEmpty,
|
||||
NFlex,
|
||||
NIcon,
|
||||
NInput,
|
||||
NInputGroup,
|
||||
NInputGroupLabel,
|
||||
@@ -21,12 +22,14 @@ import {
|
||||
NScrollbar,
|
||||
NSpin,
|
||||
NTag,
|
||||
NText,
|
||||
NTime,
|
||||
NTooltip,
|
||||
useMessage,
|
||||
} from 'naive-ui'
|
||||
import { computed, h, onMounted, ref } from 'vue'
|
||||
import PointUserDetailCard from './PointUserDetailCard.vue'
|
||||
import { Info24Filled } from '@vicons/fluent'
|
||||
|
||||
const props = defineProps<{
|
||||
goods: ResponsePointGoodModel[]
|
||||
@@ -78,7 +81,13 @@ const column: DataTableColumns<ResponsePointUserModel> = [
|
||||
title: '用户名',
|
||||
key: 'username',
|
||||
render: (row: ResponsePointUserModel) => {
|
||||
return row.info?.name ?? '未知'
|
||||
return (
|
||||
row.info?.name ??
|
||||
h(NFlex, null, () => [
|
||||
'未知',
|
||||
h(NText, { depth: 3 }, { default: () => `(${row.info.userId ?? row.info.openId})` }),
|
||||
])
|
||||
)
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -231,16 +240,18 @@ onMounted(async () => {
|
||||
</NModal>
|
||||
<NModal v-model:show="showGivePointModal" preset="card" style="max-width: 500px" title="给予积分">
|
||||
<NFlex vertical>
|
||||
<NInputGroup>
|
||||
<NInputGroupLabel> 目标用户 </NInputGroupLabel>
|
||||
<NInputNumber
|
||||
v-model:value="addPointTarget"
|
||||
type="number"
|
||||
placeholder="请输入目标用户UId"
|
||||
min="0"
|
||||
style="max-width: 200px"
|
||||
/>
|
||||
</NInputGroup>
|
||||
<NFlex :wrap="false" align="center">
|
||||
<NInputGroup style="max-width: 200px">
|
||||
<NInputGroupLabel> 目标用户 </NInputGroupLabel>
|
||||
<NInputNumber v-model:value="addPointTarget" type="number" placeholder="请输入目标用户UId" min="0" />
|
||||
</NInputGroup>
|
||||
<NTooltip>
|
||||
<template #trigger>
|
||||
<NIcon :component="Info24Filled" />
|
||||
</template>
|
||||
如果目标用户没在直播间发言过则无法显示用户名, 不过不影响使用
|
||||
</NTooltip>
|
||||
</NFlex>
|
||||
<NInputGroup>
|
||||
<NInputGroupLabel> 积分数量 </NInputGroupLabel>
|
||||
<NInputNumber
|
||||
|
||||
Reference in New Issue
Block a user