|
@@ -37,9 +37,13 @@ export default defineComponent({
|
|
|
{
|
|
|
label: '全部',
|
|
|
value: ''
|
|
|
- },
|
|
|
- ...resourceTypeArray
|
|
|
+ }
|
|
|
];
|
|
|
+ resourceTypeArray.forEach((item: any) => {
|
|
|
+ if (item.value !== 'MUSIC') {
|
|
|
+ resourceList.value.push(item);
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
// 获取声部列表
|
|
|
await catchStore.getSubjects();
|
|
@@ -48,26 +52,23 @@ export default defineComponent({
|
|
|
<div class={styles.searchGroup}>
|
|
|
<div class={styles.searchCatatory}>
|
|
|
<NSpace size="small" class={styles.btnType}>
|
|
|
- {resourceList.value.map(
|
|
|
- (item: any) =>
|
|
|
- item.value !== 'MUSIC' && (
|
|
|
- <NButton
|
|
|
- type={forms.type === item.value ? 'primary' : 'default'}
|
|
|
- secondary={forms.type === item.value ? false : true}
|
|
|
- round
|
|
|
- size="small"
|
|
|
- focusable={false}
|
|
|
- onClick={() => {
|
|
|
- forms.type = item.value;
|
|
|
- onSearch();
|
|
|
- }}>
|
|
|
- {item.label}
|
|
|
- </NButton>
|
|
|
- )
|
|
|
- )}
|
|
|
+ {resourceList.value.map((item: any) => (
|
|
|
+ <NButton
|
|
|
+ type={forms.type === item.value ? 'primary' : 'default'}
|
|
|
+ secondary={forms.type === item.value ? false : true}
|
|
|
+ round
|
|
|
+ size="small"
|
|
|
+ focusable={false}
|
|
|
+ onClick={() => {
|
|
|
+ forms.type = item.value;
|
|
|
+ onSearch();
|
|
|
+ }}>
|
|
|
+ {item.label}
|
|
|
+ </NButton>
|
|
|
+ ))}
|
|
|
</NSpace>
|
|
|
|
|
|
- <NSpace>
|
|
|
+ <NSpace size="small" class={styles.btnGroup}>
|
|
|
{state.isEdit ? (
|
|
|
<>
|
|
|
<NButton
|