|
@@ -36,6 +36,7 @@
|
|
:showDetail="(item) => router.push({ name: 'FormInheritor', query: { id: item.id } })"
|
|
:showDetail="(item) => router.push({ name: 'FormInheritor', query: { id: item.id } })"
|
|
>
|
|
>
|
|
<template #itemRight="{ item }">
|
|
<template #itemRight="{ item }">
|
|
|
|
+ <AdminItemState :item="item" />
|
|
<a-button type="link">编辑</a-button>
|
|
<a-button type="link">编辑</a-button>
|
|
<a-button type="link" @click.stop="handleCopyAccount(item)">传承人账号</a-button>
|
|
<a-button type="link" @click.stop="handleCopyAccount(item)">传承人账号</a-button>
|
|
</template>
|
|
</template>
|
|
@@ -67,6 +68,7 @@
|
|
:showDetail="(item) => router.push({ name: 'FormIch', query: { id: item.id } })"
|
|
:showDetail="(item) => router.push({ name: 'FormIch', query: { id: item.id } })"
|
|
>
|
|
>
|
|
<template #itemRight="{ item }">
|
|
<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: 'FormIch', query: { id: item.id } })">编辑</a-button>
|
|
</template>
|
|
</template>
|
|
</CommonListBlock>
|
|
</CommonListBlock>
|
|
@@ -91,6 +93,7 @@ import CommonListBlock from '@/components/content/CommonListBlock.vue';
|
|
import type { GetContentListItem } from '@/api/CommonContent';
|
|
import type { GetContentListItem } from '@/api/CommonContent';
|
|
import InheritorContent from '@/api/inheritor/InheritorContent';
|
|
import InheritorContent from '@/api/inheritor/InheritorContent';
|
|
import { message, Modal } from 'ant-design-vue';
|
|
import { message, Modal } from 'ant-design-vue';
|
|
|
|
+import AdminItemState from './components/AdminItemState.vue';
|
|
|
|
|
|
const { toClipboard } = useClipboard();
|
|
const { toClipboard } = useClipboard();
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
@@ -116,6 +119,7 @@ const categoryData = useSimpleDataLoader(async () => {
|
|
})
|
|
})
|
|
|
|
|
|
async function loadInheritorData(page: number, pageSize: number, dropDownValues: number[], searchText: string) {
|
|
async function loadInheritorData(page: number, pageSize: number, dropDownValues: number[], searchText: string) {
|
|
|
|
+ const submitList = await InheritorContent.getInheritorSubmtList(7);
|
|
const res = await CommonContent.getContentList(
|
|
const res = await CommonContent.getContentList(
|
|
new GetContentListParams()
|
|
new GetContentListParams()
|
|
.setModelId(7)
|
|
.setModelId(7)
|
|
@@ -131,13 +135,19 @@ async function loadInheritorData(page: number, pageSize: number, dropDownValues:
|
|
return {
|
|
return {
|
|
page,
|
|
page,
|
|
total: res.total,
|
|
total: res.total,
|
|
- data: res.list.map((item) => ({
|
|
|
|
- ...item,
|
|
|
|
- desc: `${item.ichName} ${item.levelText} ${item.batchText}`
|
|
|
|
- })),
|
|
|
|
|
|
+ data: res.list.map((item) => {
|
|
|
|
+ const submitInfo = submitList.find((item2) => item2.id == item.id);
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ desc: `${item.ichName} ${item.levelText} ${item.batchText}`,
|
|
|
|
+ hasSubmit: Boolean(submitInfo),
|
|
|
|
+ ...submitInfo,
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
}
|
|
}
|
|
}
|
|
}
|
|
async function loadIchData(page: number, pageSize: number, dropDownValues: number[], searchText: string) {
|
|
async function loadIchData(page: number, pageSize: number, dropDownValues: number[], searchText: string) {
|
|
|
|
+ const submitList = await InheritorContent.getInheritorSubmtList(2);
|
|
const res = await CommonContent.getContentList(
|
|
const res = await CommonContent.getContentList(
|
|
new GetContentListParams()
|
|
new GetContentListParams()
|
|
.setModelId(2)
|
|
.setModelId(2)
|
|
@@ -152,10 +162,15 @@ async function loadIchData(page: number, pageSize: number, dropDownValues: numbe
|
|
return {
|
|
return {
|
|
page,
|
|
page,
|
|
total: res.total,
|
|
total: res.total,
|
|
- data: res.list.map((item) => ({
|
|
|
|
- ...item,
|
|
|
|
- desc: `${item.ichTypeText} - ${item.levelText} ${item.batchText}`
|
|
|
|
- })),
|
|
|
|
|
|
+ data: res.list.map((item) => {
|
|
|
|
+ const submitInfo = submitList.find((item2) => item2.id == item.id);
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ desc: `${item.ichTypeText} - ${item.levelText} ${item.batchText}`,
|
|
|
|
+ hasSubmit: Boolean(submitInfo),
|
|
|
|
+ ...submitInfo,
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|