Commit 6f77c7df authored by LiXuyang's avatar LiXuyang

政策管理-改

parent 3c8e943e
......@@ -33,13 +33,14 @@
</a-button>
</div>
</div>
<div v-show="['add', 'edit'].includes(status)" class="pd-body">
<!-- <div v-show="['add', 'edit'].includes(status)" class="pd-body">-->
<div class="pd-body">
<div class="title">基本信息</div>
<BasicForm @register="infoForm" />
<BasicForm :disabled="status === 'detail'" @register="infoForm" />
<div class="title">正文</div>
<BasicForm @register="detailForm">
<BasicForm :disabled="status === 'detail'" @register="detailForm">
<template #imgSrc="{ field, model }">
<Upload style="width: 45%" v-model:file-list="fileList" list-type="picture">
<Upload :style="{pointerEvents: status === 'detail' ? 'none' : null}" style="width: 45%" v-model:file-list="fileList" list-type="picture">
<a-button>
<UploadOutlined />
选择图片
......@@ -48,24 +49,24 @@
</template>
</BasicForm>
</div>
<div v-show="status === 'detail'" class="pd-detail">
<div class="pd-des">
<div class="pd-time">{{ data.uploadTime }}</div>
<div class="pd-from">来源:{{ data.from }}</div>
</div>
<Divider style="width: 100%" />
<div class="pd-txt">
<img
v-if="fileList[0] && fileList[0].thumbUrl"
:src="fileList[0] ? fileList[0].thumbUrl : null"
style="width: 80%; height: 200px;"
alt=""
/>
<div class="des-p">
{{ data.details }}
</div>
</div>
</div>
<!-- <div v-show="status === 'detail'" class="pd-detail">-->
<!-- <div class="pd-des">-->
<!-- <div class="pd-time">{{ data.uploadTime }}</div>-->
<!-- <div class="pd-from">来源:{{ data.from }}</div>-->
<!-- </div>-->
<!-- <Divider style="width: 100%" />-->
<!-- <div class="pd-txt">-->
<!-- <img-->
<!-- v-if="fileList[0] && fileList[0].thumbUrl"-->
<!-- :src="fileList[0] ? fileList[0].thumbUrl : null"-->
<!-- style="width: 80%; height: 200px;"-->
<!-- alt=""-->
<!-- />-->
<!-- <div class="des-p">-->
<!-- {{ data.details }}-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
</template>
</PageWrapper>
</template>
......
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