|
|
|
@ -1,11 +1,14 @@ |
|
|
|
|
<template> |
|
|
|
|
<a-button-group class="j-table-operator"> |
|
|
|
|
<!-- <a-button-group class="j-table-operator"> |
|
|
|
|
<a-button type="primary" @click="setDisabled(0)">启用</a-button> |
|
|
|
|
<a-button type="primary" @click="setDisabled(1)">禁用</a-button> |
|
|
|
|
<a-button type="primary" @click="showUploadModal">文件弹窗</a-button> |
|
|
|
|
</a-button-group> |
|
|
|
|
</a-button-group>--> |
|
|
|
|
<BasicForm @register="register" @submit="handleSubmit" /> |
|
|
|
|
<JUploadModal v-model:value="uploadModalValue" @register="registerModel" /> |
|
|
|
|
<div class="button-container"> |
|
|
|
|
<a-button type="primary" @click="goBack">返回</a-button> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
@ -14,9 +17,10 @@ |
|
|
|
|
import { UploadTypeEnum } from '/@/components/Form/src/jeecg/components/JUpload'; |
|
|
|
|
import { JUploadModal } from '/@/components/Form/src/jeecg/components/JUpload'; |
|
|
|
|
import { useModal } from '/@/components/Modal'; |
|
|
|
|
import {useRouter} from "vue-router"; |
|
|
|
|
|
|
|
|
|
const uploadModalValue = ref(''); |
|
|
|
|
|
|
|
|
|
const {back} = useRouter(); |
|
|
|
|
const schemas: FormSchema[] = [ |
|
|
|
|
/*{ |
|
|
|
|
field: 'uploadFile', |
|
|
|
@ -27,8 +31,8 @@ |
|
|
|
|
{ |
|
|
|
|
field: 'uploadFileMax', |
|
|
|
|
component: 'JUpload', |
|
|
|
|
helpMessage: '最多上传10个文件', |
|
|
|
|
label: '上传文件(10)', |
|
|
|
|
helpMessage: '最多上传10个附件', |
|
|
|
|
label: '上传附件(10)', |
|
|
|
|
componentProps: { maxCount: 10 }, |
|
|
|
|
}, |
|
|
|
|
/*{ |
|
|
|
@ -81,4 +85,12 @@ |
|
|
|
|
fileType: UploadTypeEnum.image, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
function goBack() { |
|
|
|
|
back(); |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
.button-container { |
|
|
|
|
text-align: center; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|