|
|
@@ -8,14 +8,27 @@
|
|
|
width="1080px"
|
|
|
:formProps="{ grid: 8 }"
|
|
|
:formatData="formatData"
|
|
|
+ labelWidth="120px"
|
|
|
@success="(data) => emit('success', data)"
|
|
|
- ></simple-form-modal>
|
|
|
+ >
|
|
|
+ <template #other>
|
|
|
+ <div class="image-pos" id="image-pos">
|
|
|
+ <image-upload
|
|
|
+ :limit="1"
|
|
|
+ v-model="formData.cover"
|
|
|
+ :item-style="{ width: '260px', height: '320px', margin: 0 }"
|
|
|
+ :button-style="{ width: '260px', height: '320px', margin: 0 }"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </simple-form-modal>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import { reactive, ref, defineEmits, getCurrentInstance } from 'vue';
|
|
|
import { useFormData } from '@/utils/use-form-data';
|
|
|
import SimpleFormModal from '@/components/CommonPage/SimpleFormModal.vue';
|
|
|
+ import ImageUpload from '@/components/ImageUpload/index.vue';
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
|
|
//获取省市
|
|
|
@@ -24,12 +37,14 @@
|
|
|
const title = ref('新增图书');
|
|
|
const emit = defineEmits(['success']);
|
|
|
|
|
|
+ let colProps = { style: { marginRight: '15px' } };
|
|
|
+
|
|
|
const formItems = reactive([
|
|
|
{ type: 'input', label: '书名', prop: 'bookName', required: true },
|
|
|
- { type: 'input', label: 'ISBN', prop: 'isbn', required: true },
|
|
|
- { type: 'imageUpload', label: '封面', prop: 'cover', props: { limit: 1 } },
|
|
|
+ { type: 'input', label: 'ISBN', prop: 'isbn', required: true, colProps },
|
|
|
+ // { type: 'imageUpload', label: '封面', prop: 'cover', props: { limit: 1 } },
|
|
|
{ type: 'input', label: '作者', prop: 'author', required: true },
|
|
|
- { type: 'input', label: '定价', prop: 'price', required: true },
|
|
|
+ { type: 'input', label: '定价', prop: 'price', required: true, colProps },
|
|
|
{ type: 'input', label: '出版社', prop: 'publish', required: true },
|
|
|
{
|
|
|
type: 'date',
|
|
|
@@ -39,7 +54,8 @@
|
|
|
props: {
|
|
|
format: 'YYYY-MM-DD',
|
|
|
valueFormat: 'YYYY-MM-DD'
|
|
|
- }
|
|
|
+ },
|
|
|
+ colProps
|
|
|
},
|
|
|
{
|
|
|
type: 'dictSelect',
|
|
|
@@ -47,20 +63,21 @@
|
|
|
prop: 'bookTag',
|
|
|
props: { code: 'book_tag' }
|
|
|
},
|
|
|
- { type: 'input', label: '中图分类号', prop: 'chineCateNo' },
|
|
|
+ { type: 'input', label: '中图法分类', prop: 'chineCateNo', colProps },
|
|
|
{ type: 'input', label: '丛书提名', prop: 'bookPut' },
|
|
|
- { type: 'input', label: '其他提名', prop: 'otherPut' },
|
|
|
+ { type: 'input', label: '其他提名', prop: 'otherPut', colProps },
|
|
|
{ type: 'input', label: '主题', prop: 'bookTopic' },
|
|
|
- { type: 'input', label: '语种', prop: 'lang' },
|
|
|
- { type: 'input', label: '装帧', prop: 'bookFormat' },
|
|
|
+ { type: 'input', label: '语种', prop: 'lang', colProps },
|
|
|
{ type: 'input', label: '开本尺寸', prop: 'bookFormat' },
|
|
|
+ { type: 'input', label: '装帧', prop: 'bookPack', colProps },
|
|
|
+ { type: 'input', label: '翻译人', prop: 'translator' },
|
|
|
{
|
|
|
type: 'dictSelect',
|
|
|
label: '是否套装',
|
|
|
prop: 'suit',
|
|
|
props: { code: 'is_common_yes' }
|
|
|
},
|
|
|
- { type: 'input', label: '版本', prop: 'bookVersion' },
|
|
|
+ { type: 'input', label: '中图法分类名称', prop: 'chineCateName' },
|
|
|
{ type: 'input', label: '总页数', prop: 'pageTotal' },
|
|
|
{
|
|
|
type: 'dictSelect',
|
|
|
@@ -68,8 +85,10 @@
|
|
|
prop: 'perCheck',
|
|
|
props: { code: 'is_common_yes' }
|
|
|
},
|
|
|
+ { type: 'input', label: '字数', prop: 'worldCount' },
|
|
|
{ type: 'input', label: '出版地', prop: 'putAddress' },
|
|
|
{ type: 'input', label: '读者对象', prop: 'readers' },
|
|
|
+ { type: 'input', label: '版本', prop: 'bookVersion' },
|
|
|
{ type: 'input', label: '印刷厂', prop: 'printHouse' },
|
|
|
{
|
|
|
type: 'date',
|
|
|
@@ -165,3 +184,11 @@
|
|
|
|
|
|
defineExpose({ handleOpen });
|
|
|
</script>
|
|
|
+<style lang="scss">
|
|
|
+ .image-pos {
|
|
|
+ position: absolute;
|
|
|
+ right: 40px;
|
|
|
+ top: 16px;
|
|
|
+ z-index:10
|
|
|
+ }
|
|
|
+</style>
|