|
|
@@ -106,6 +106,34 @@
|
|
|
<a-tab-pane key="7" tab="区级非遗传承人">
|
|
|
<a-empty description="暂无数据" />
|
|
|
</a-tab-pane>
|
|
|
+ <a-tab-pane key="8" tab="自查评估表">
|
|
|
+ <CommonListBlock
|
|
|
+ :show-total="true"
|
|
|
+ :row-count="1"
|
|
|
+ :row-type="5"
|
|
|
+ :page-size="10"
|
|
|
+ :load="(page: number, pageSize: number, _tag: number, searchText: string, _drop: number[]) => loadSelfAssessmentAdminList(page, pageSize, searchText)"
|
|
|
+ :show-detail="(item) => router.push({ name: 'CollectEvaluationForm', query: { id: item.id, userId: item.userId } })"
|
|
|
+ >
|
|
|
+ <template #itemRight="{ item }">
|
|
|
+ <a-button type="link" @click.stop="router.push({ name: 'CollectEvaluationForm', query: { id: item.id, userId: item.userId } })">编辑</a-button>
|
|
|
+ </template>
|
|
|
+ </CommonListBlock>
|
|
|
+ </a-tab-pane>
|
|
|
+ <a-tab-pane key="9" tab="传承协议签名">
|
|
|
+ <CommonListBlock
|
|
|
+ :show-total="true"
|
|
|
+ :row-count="1"
|
|
|
+ :row-type="5"
|
|
|
+ :page-size="10"
|
|
|
+ :load="(page: number, pageSize: number, _tag: number, searchText: string, _drop: number[]) => loadAgreementSignAdminList(page, pageSize, searchText)"
|
|
|
+ :show-detail="(item) => router.push({ name: 'CollectAgreementSign', query: { id: item.id, userId: item.userId } })"
|
|
|
+ >
|
|
|
+ <template #itemRight="{ item }">
|
|
|
+ <a-button type="link" @click.stop="router.push({ name: 'CollectAgreementSign', query: { id: item.id, userId: item.userId } })">编辑</a-button>
|
|
|
+ </template>
|
|
|
+ </CommonListBlock>
|
|
|
+ </a-tab-pane>
|
|
|
<a-tab-pane v-if="false" key="4" tab="重点区域">
|
|
|
<div class="flex justify-end">
|
|
|
<a-button type="primary" :disabled="true" @click="router.push({ name: 'FormWork' })">+ 新增</a-button>
|
|
|
@@ -145,6 +173,7 @@ import useClipboard from 'vue-clipboard3';
|
|
|
import CommonContent, { GetContentListParams } from '@/api/CommonContent';
|
|
|
import CommonListBlock, { type DropdownCommonItem } from '@/components/content/CommonListBlock.vue';
|
|
|
import InheritorContent from '@/api/inheritor/InheritorContent';
|
|
|
+import AssessmentContentApi from '@/api/collect/AssessmentContent';
|
|
|
import AdminItemState from './components/AdminItemState.vue';
|
|
|
import { InfoCircleOutlined } from '@ant-design/icons-vue';
|
|
|
import { useSimpleDataLoader } from '@/composeables/useSimpleDataLoader';
|
|
|
@@ -303,6 +332,48 @@ async function loadAreaData(page: number, pageSize: number, dropDownValues: numb
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/** 管理员:自查评估表分页(与小程序 evaluation-list 一致,关键词走接口) */
|
|
|
+async function loadSelfAssessmentAdminList(page: number, pageSize: number, searchText: string) {
|
|
|
+ const list = await AssessmentContentApi.getSelfAssessmentList({
|
|
|
+ year: new Date().getFullYear(),
|
|
|
+ page,
|
|
|
+ pageSize,
|
|
|
+ keywords: searchText?.trim() || undefined,
|
|
|
+ });
|
|
|
+ return {
|
|
|
+ page,
|
|
|
+ total: list.total,
|
|
|
+ data: list.data.map((row) => ({
|
|
|
+ ...row,
|
|
|
+ id: row.id,
|
|
|
+ userId: row.userId,
|
|
|
+ title: row.inheritor ?? '?',
|
|
|
+ desc: [row.mobile, row.unit, row.ichName].filter(Boolean).join(' · ') || '—',
|
|
|
+ })),
|
|
|
+ };
|
|
|
+}
|
|
|
+
|
|
|
+/** 管理员:传承协议分页(小程序 argeement-sign-list 误用评估接口,此处使用 getAgreementList) */
|
|
|
+async function loadAgreementSignAdminList(page: number, pageSize: number, searchText: string) {
|
|
|
+ const list = await AssessmentContentApi.getAgreementList({
|
|
|
+ year: new Date().getFullYear(),
|
|
|
+ page,
|
|
|
+ pageSize,
|
|
|
+ keywords: searchText?.trim() || undefined,
|
|
|
+ });
|
|
|
+ return {
|
|
|
+ page,
|
|
|
+ total: list.total,
|
|
|
+ data: list.data.map((row) => ({
|
|
|
+ ...row,
|
|
|
+ id: row.id,
|
|
|
+ userId: row.userId,
|
|
|
+ title: row.partyB ?? row.partyA ?? '?',
|
|
|
+ desc: [row.mobile, row.ich].filter(Boolean).join(' · ') || '—',
|
|
|
+ })),
|
|
|
+ };
|
|
|
+}
|
|
|
+
|
|
|
async function handleCopyAccount(item: GetContentListItem) {
|
|
|
let result;
|
|
|
try {
|