Commit 1f814d4f authored by baiyinhao's avatar baiyinhao

修改页面

parent afcff59c
...@@ -12,16 +12,28 @@ ...@@ -12,16 +12,28 @@
<Col :span="12" v-for="info in myRegistrationColumnsForDetail" :key="info"> <Col :span="12" v-for="info in myRegistrationColumnsForDetail" :key="info">
<div class="col-item"> <div class="col-item">
<div class="item-label">{{ info.title }}</div> <div class="item-label">{{ info.title }}</div>
<div v-if="['enrollBook'].includes(info.dataIndex)" class="item-des" <!-- <div v-if="['enrollBook'].includes(info.dataIndex)" class="item-des"
><TableImg ><TableImg
:size="150" :size="150"
:simpleShow="true" :simpleShow="true"
:showBadge="false" :showBadge="false"
:imgList="data[info.dataIndex]" :imgList="data[info.dataIndex]"
/> />
</div> -->
<div v-if="['dataStructure'].includes(info.dataIndex)" class="item-des">
分析数据结构
</div> </div>
<div v-else-if="['dataStructure'].includes(info.dataIndex)" class="item-des"> <div v-else-if="['upload'].includes(info.dataIndex)" class="item-des">
引入表格占位 <Upload
:style="{ pointerEvents: status === 'detail' ? 'none' : null }"
style="width: 45%; margin-left: 5px"
v-model:file-list="fileList"
>
<a-button>
<UploadOutlined />
重新上传文件
</a-button>
</Upload>
</div> </div>
<div v-else class="item-des">{{ data[info.dataIndex] ? data[info.dataIndex] : '-' }}</div> <div v-else class="item-des">{{ data[info.dataIndex] ? data[info.dataIndex] : '-' }}</div>
</div> </div>
...@@ -37,18 +49,25 @@ ...@@ -37,18 +49,25 @@
<script lang="ts" setup> <script lang="ts" setup>
import PageWrapper from '@/components/Page/src/PageWrapper.vue'; import PageWrapper from '@/components/Page/src/PageWrapper.vue';
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
import { Col, Row } from 'ant-design-vue'; import { Col, Row, Descriptions, Alert, Upload } from 'ant-design-vue';
import { myRegistrationColumnsForDetail } from './myRegistration.data'; import { myRegistrationColumnsForDetail } from './myRegistration.data';
import { ref, onMounted } from 'vue'; import { ref, onMounted } from 'vue';
import { TableImg } from '@/components/Table'; import { TableImg } from '@/components/Table';
import { useMessage } from '@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { UploadOutlined } from '@ant-design/icons-vue';
const { createMessage } = useMessage(); const { createMessage } = useMessage();
const route = useRoute(); const route = useRoute();
const data = ref(route.query); const data = ref(route.query);
const router = useRouter(); const router = useRouter();
const isAudit = ref(route.query.isAudit); const isAudit = ref(route.query.isAudit);
const fileList = [
{
uid: 1,
name: '证明材料.pdf',
status: 'done',
},
];
function handleBack() { function handleBack() {
router.go(-1); router.go(-1);
} }
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
</template> </template>
<BasicTable @register="registerTable"> <BasicTable @register="registerTable">
<template #bodyCell="{ column, record, text }"> <template #bodyCell="{ column, record, text }">
<template v-if="column.key === 'enrollBook'"> <!-- <template v-if="column.key === 'enrollBook'">
<TableImg :size="40" :simple-show="true" :show-badge="false" :img-list="text" /> <TableImg :size="40" :simple-show="true" :show-badge="false" :img-list="text" />
</template> </template> -->
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<TableAction <TableAction
:actions="[ :actions="[
......
...@@ -33,10 +33,10 @@ export const myRegistrationColumns: BasicColumn[] = [ ...@@ -33,10 +33,10 @@ export const myRegistrationColumns: BasicColumn[] = [
title: '状态', title: '状态',
dataIndex: 'status', dataIndex: 'status',
}, },
{ // {
title: '登记证书', // title: '登记证书',
dataIndex: 'enrollBook', // dataIndex: 'enrollBook',
}, // },
]; ];
export const myRegistrationColumnsForDetail: BasicColumn[] = [ export const myRegistrationColumnsForDetail: BasicColumn[] = [
{ {
...@@ -99,10 +99,10 @@ export const myRegistrationColumnsForDetail: BasicColumn[] = [ ...@@ -99,10 +99,10 @@ export const myRegistrationColumnsForDetail: BasicColumn[] = [
title: '存证公证平台', title: '存证公证平台',
dataIndex: 'storagePlatform', dataIndex: 'storagePlatform',
}, },
{ // {
title: '登记证书', // title: '登记证书',
dataIndex: 'enrollBook', // dataIndex: 'enrollBook',
}, // },
{ {
title: '数据结构', title: '数据结构',
dataIndex: 'dataStructure', dataIndex: 'dataStructure',
...@@ -115,6 +115,10 @@ export const myRegistrationColumnsForDetail: BasicColumn[] = [ ...@@ -115,6 +115,10 @@ export const myRegistrationColumnsForDetail: BasicColumn[] = [
title: '算法规则简述', title: '算法规则简述',
dataIndex: 'ruleExplain', dataIndex: 'ruleExplain',
}, },
{
title: '上传文件',
dataIndex: 'upload',
},
]; ];
export const myRegistrationForm: FormSchema[] = [ export const myRegistrationForm: FormSchema[] = [
{ {
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
]" ]"
/> />
<TableAction <TableAction
v-if="record.progress === '已完成' && record.type === '文件'" v-if="record.progress === '已完成' && record.type === '数据服务'"
:actions="[ :actions="[
{ {
label: '下载', label: '下载',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment