Commit 1f814d4f authored by baiyinhao's avatar baiyinhao

修改页面

parent afcff59c
......@@ -12,16 +12,28 @@
<Col :span="12" v-for="info in myRegistrationColumnsForDetail" :key="info">
<div class="col-item">
<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
:size="150"
:simpleShow="true"
:showBadge="false"
:imgList="data[info.dataIndex]"
/>
</div> -->
<div v-if="['dataStructure'].includes(info.dataIndex)" class="item-des">
分析数据结构
</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 v-else class="item-des">{{ data[info.dataIndex] ? data[info.dataIndex] : '-' }}</div>
</div>
......@@ -37,18 +49,25 @@
<script lang="ts" setup>
import PageWrapper from '@/components/Page/src/PageWrapper.vue';
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 { ref, onMounted } from 'vue';
import { TableImg } from '@/components/Table';
import { useMessage } from '@/hooks/web/useMessage';
import { UploadOutlined } from '@ant-design/icons-vue';
const { createMessage } = useMessage();
const route = useRoute();
const data = ref(route.query);
const router = useRouter();
const isAudit = ref(route.query.isAudit);
const fileList = [
{
uid: 1,
name: '证明材料.pdf',
status: 'done',
},
];
function handleBack() {
router.go(-1);
}
......
......@@ -12,9 +12,9 @@
</template>
<BasicTable @register="registerTable">
<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" />
</template>
</template> -->
<template v-if="column.key === 'action'">
<TableAction
:actions="[
......
......@@ -33,10 +33,10 @@ export const myRegistrationColumns: BasicColumn[] = [
title: '状态',
dataIndex: 'status',
},
{
title: '登记证书',
dataIndex: 'enrollBook',
},
// {
// title: '登记证书',
// dataIndex: 'enrollBook',
// },
];
export const myRegistrationColumnsForDetail: BasicColumn[] = [
{
......@@ -99,10 +99,10 @@ export const myRegistrationColumnsForDetail: BasicColumn[] = [
title: '存证公证平台',
dataIndex: 'storagePlatform',
},
{
title: '登记证书',
dataIndex: 'enrollBook',
},
// {
// title: '登记证书',
// dataIndex: 'enrollBook',
// },
{
title: '数据结构',
dataIndex: 'dataStructure',
......@@ -115,6 +115,10 @@ export const myRegistrationColumnsForDetail: BasicColumn[] = [
title: '算法规则简述',
dataIndex: 'ruleExplain',
},
{
title: '上传文件',
dataIndex: 'upload',
},
];
export const myRegistrationForm: FormSchema[] = [
{
......
......@@ -56,7 +56,7 @@
]"
/>
<TableAction
v-if="record.progress === '已完成' && record.type === '文件'"
v-if="record.progress === '已完成' && record.type === '数据服务'"
:actions="[
{
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