|
@@ -48,32 +48,27 @@
|
|
|
<AdminItemState :item="item" />
|
|
|
<a-button type="link" @click.stop="router.push({ name: 'FormIch', query: { id: item.id } })">编辑</a-button>
|
|
|
<a-button type="link" @click.stop="handleGoWorks(item)">非遗项目作品</a-button>
|
|
|
+ <a-button type="link" @click.stop="handleGoSeminar(item)">关联传习所</a-button>
|
|
|
</template>
|
|
|
</CommonListBlock>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="3" tab="传习所">
|
|
|
+ <a-tab-pane key="3" tab="传习所列表">
|
|
|
<div class="d-flex justify-content-end">
|
|
|
- <a-button type="primary" :disabled="true" @click="router.push({ name: 'FormWork' })">+ 新增</a-button>
|
|
|
+ <a-button type="primary" @click="router.push({ name: 'FormSeminar' })">+ 新增</a-button>
|
|
|
</div>
|
|
|
<CommonListBlock
|
|
|
:showTotal="true"
|
|
|
:rowCount="1"
|
|
|
:rowType="5"
|
|
|
- :dropDownNames="[{
|
|
|
- options: categoryData.content.value ?? [],
|
|
|
- label: '分类',
|
|
|
- defaultSelectedValue: 0,
|
|
|
- }]"
|
|
|
:load="(page: number, pageSize: number, _, searchText: string, dropDownValues: number[]) => loadSeminarData(page, pageSize, dropDownValues, searchText)"
|
|
|
- :showDetail="(item) => router.push({ name: 'FormIch', query: { id: item.id } })"
|
|
|
- >
|
|
|
+ :showDetail="(item) => router.push({ name: 'FormSeminar', query: { id: item.id } })"
|
|
|
+ >
|
|
|
<template #itemRight="{ item }">
|
|
|
- <AdminItemState :item="item" />
|
|
|
- <a-button type="link" @click.stop="router.push({ name: 'FormIch', query: { id: item.id } })">编辑</a-button>
|
|
|
+ <a-button type="link" @click.stop="router.push({ name: 'FormSeminar', query: { id: item.id } })">编辑</a-button>
|
|
|
</template>
|
|
|
</CommonListBlock>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="4" tab="重点区域">
|
|
|
+ <a-tab-pane v-if="false" key="4" tab="重点区域">
|
|
|
<div class="d-flex justify-content-end">
|
|
|
<a-button type="primary" :disabled="true" @click="router.push({ name: 'FormWork' })">+ 新增</a-button>
|
|
|
</div>
|
|
@@ -194,6 +189,19 @@ async function loadIchData(page: number, pageSize: number, dropDownValues: numbe
|
|
|
}
|
|
|
}
|
|
|
async function loadSeminarData(page: number, pageSize: number, dropDownValues: number[], searchText: string) {
|
|
|
+ if (page === 1) {
|
|
|
+ const res = await InheritorContent.getIchSeminarInfo({
|
|
|
+ ichId: undefined,
|
|
|
+ });
|
|
|
+ return {
|
|
|
+ page,
|
|
|
+ total: res.length,
|
|
|
+ data: res.map((item) => ({
|
|
|
+ ...item,
|
|
|
+ desc: item.address,
|
|
|
+ })),
|
|
|
+ }
|
|
|
+ }
|
|
|
return {
|
|
|
page,
|
|
|
total: 0,
|
|
@@ -236,6 +244,11 @@ async function handleCopyAccount(item: GetContentListItem) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+function handleGoSeminar(item: GetContentListItem) {
|
|
|
+ router.push({ name: 'AdminSeminar', query: {
|
|
|
+ ichId: item.id,
|
|
|
+ } })
|
|
|
+}
|
|
|
function handleGoWorks(item: GetContentListItem) {
|
|
|
router.push({ name: 'AdminWorks', query: {
|
|
|
ichId: item.id,
|