表单间距调整

szh-new
lijingjia 6 months ago
parent 51ca74d043
commit 3959c73344

@ -332,7 +332,7 @@
} }
&:not(.ant-form-item-with-help) { &:not(.ant-form-item-with-help) {
margin-bottom: 15px; margin-bottom: 10px;
} }
&.suffix-item { &.suffix-item {

@ -30,17 +30,20 @@
</a-radio-group> </a-radio-group>
<p class="message">默认打印格式为pdf,如需其他格式请选择</p> <p class="message">默认打印格式为pdf,如需其他格式请选择</p>
</a-form-item> </a-form-item>
<a-spin :spinning="loading">
<a-form-item <a-form-item
label="点击选择模版将跳转打印预览页" label="点击选择模版将跳转打印预览页"
> >
<a-row :gutter="15"> <a-row :gutter="15">
<a-col :span="12" v-for="item in modelData" :key="item.id" @click="toPrint(item.id)"> <a-col :span="12" v-for="item in modelData" :key="item.id" @click="toPrint(item.id)">
<div class="model-card"> <div class="model-card">
<span class="iconfont icon-printing" :style="{ fontSize: '13px' }"></span>
{{ item.templateName }} {{ item.templateName }}
</div> </div>
</a-col> </a-col>
</a-row> </a-row>
</a-form-item> </a-form-item>
</a-spin>
</a-form> </a-form>
</a-spin> </a-spin>
<template #footer> <template #footer>
@ -74,7 +77,9 @@
const init = (v) => { const init = (v) => {
visible.value = true visible.value = true
jsonDataStr.value = JSON.stringify(v) jsonDataStr.value = JSON.stringify(v)
loading.value = true
GetOpenPrintModuleList().then(res => { GetOpenPrintModuleList().then(res => {
loading.value = false
const { data } = res const { data } = res
let modelId = null let modelId = null
data.forEach(item => { data.forEach(item => {
@ -87,6 +92,8 @@
modelData.value = r.data modelData.value = r.data
}) })
} }
}).catch(() => {
loading.value = false
}) })
} }
@ -134,5 +141,8 @@
.ant-modal-footer { .ant-modal-footer {
display: none; display: none;
} }
.model-card:hover {
color: #4A54FF;
}
} }
</style> </style>

@ -35,7 +35,7 @@ h5 {
// //
.ds-form-detail { .ds-form-detail {
.ant-form-item { .ant-form-item {
margin-bottom: 15px; margin-bottom: 10px;
} }
.ant-form-item-control-input-content { .ant-form-item-control-input-content {
white-space: nowrap; white-space: nowrap;

Loading…
Cancel
Save