mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
fix: fileconfig 初始化表單
This commit is contained in:
parent
afa3e6dc96
commit
8a06d7e359
@ -197,7 +197,7 @@ const dialogVisible = ref(false) // 是否显示弹出层
|
|||||||
const dialogTitle = ref('edit') // 弹出层标题
|
const dialogTitle = ref('edit') // 弹出层标题
|
||||||
const formRef = ref<FormInstance>() // 表单 Ref
|
const formRef = ref<FormInstance>() // 表单 Ref
|
||||||
const detailData = ref() // 详情 Ref
|
const detailData = ref() // 详情 Ref
|
||||||
let form = ref<FileConfigApi.FileConfigVO>({
|
const form = ref<FileConfigApi.FileConfigVO>({
|
||||||
id: 0,
|
id: 0,
|
||||||
name: '',
|
name: '',
|
||||||
storage: 0,
|
storage: 0,
|
||||||
@ -230,6 +230,28 @@ const setDialogTile = (type: string) => {
|
|||||||
const handleCreate = (formEl: FormInstance | undefined) => {
|
const handleCreate = (formEl: FormInstance | undefined) => {
|
||||||
setDialogTile('create')
|
setDialogTile('create')
|
||||||
formEl?.resetFields()
|
formEl?.resetFields()
|
||||||
|
form.value = {
|
||||||
|
id: 0,
|
||||||
|
name: '',
|
||||||
|
storage: 0,
|
||||||
|
master: false,
|
||||||
|
visible: false,
|
||||||
|
config: {
|
||||||
|
basePath: '',
|
||||||
|
host: '',
|
||||||
|
port: 0,
|
||||||
|
username: '',
|
||||||
|
password: '',
|
||||||
|
mode: '',
|
||||||
|
endpoint: '',
|
||||||
|
bucket: '',
|
||||||
|
accessKey: '',
|
||||||
|
accessSecret: '',
|
||||||
|
domain: ''
|
||||||
|
},
|
||||||
|
remark: '',
|
||||||
|
createTime: new Date()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
|
Loading…
Reference in New Issue
Block a user