Commit 6f77c7df authored by LiXuyang's avatar LiXuyang

政策管理-改

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