更新动态表单提示信息,优化歌曲列表管理界面,添加修改展示模板按钮

This commit is contained in:
2025-03-31 19:15:15 +08:00
parent 21e9e0fa27
commit 25597149fc
4 changed files with 895 additions and 1035 deletions

View File

@@ -49,7 +49,7 @@
public: 'true', public: 'true',
}); });
if (resp.code == 200) { if (resp.code == 200) {
message.success('已保存至服务器'); message.success('已保存设置');
props.config?.forEach(item => { props.config?.forEach(item => {
if (item.type === 'render') { if (item.type === 'render') {
item.onUploaded?.(props.configData[item.key], props.configData); item.onUploaded?.(props.configData[item.key], props.configData);

View File

@@ -645,7 +645,9 @@ onMounted(() => {
<NDivider style="margin: 15px 0 15px 0" /> <NDivider style="margin: 15px 0 15px 0" />
</div> </div>
</Transition> </Transition>
<template v-if="isSelf">
<NButton <NButton
:disabled="selectedColumn.length <= 1 && isSelf" :disabled="selectedColumn.length <= 1 && isSelf"
type="info" type="info"
size="small" size="small"
@@ -654,6 +656,7 @@ onMounted(() => {
批量编辑 批量编辑
</NButton> </NButton>
<NDivider style="margin: 5px 0 5px 0" /> <NDivider style="margin: 5px 0 5px 0" />
</template>
<NDataTable <NDataTable
v-model:checked-row-keys="selectedColumn" v-model:checked-row-keys="selectedColumn"
size="small" size="small"

View File

@@ -611,6 +611,13 @@ onMounted(async () => {
> >
添加歌曲 添加歌曲
</NButton> </NButton>
<NButton
secondary
type="primary"
@click="$router.push({ name: 'manage-index', query: { tab: 'setting', setting: 'template', template: 'songlist' } })"
>
修改展示模板
</NButton>
<NButton <NButton
type="primary" type="primary"
secondary secondary
@@ -640,11 +647,6 @@ onMounted(async () => {
> >
刷新 刷新
</NButton> </NButton>
<NButton
@click="$router.push({ name: 'manage-index', query: { tab: 'setting', setting: 'template', template: 'songlist' } })"
>
修改模板
</NButton>
</NSpace> </NSpace>
<NDivider <NDivider
style="margin: 16px 0 16px 0" style="margin: 16px 0 16px 0"

File diff suppressed because it is too large Load Diff