Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
85fe4ad8
authored
Dec 03, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
修复 file 在 IDEA 报错的问题
parent
aecc9bb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
src/api/infra/fileConfig/index.ts
+1
-1
src/views/infra/file/index.vue
+1
-0
src/views/infra/fileConfig/FileConfigForm.vue
+6
-5
No files found.
src/api/infra/fileConfig/index.ts
View file @
85fe4ad8
...
...
@@ -17,7 +17,7 @@ export interface FileClientConfig {
export
interface
FileConfigVO
{
id
:
number
name
:
string
storage
:
any
storage
?:
number
master
:
boolean
visible
:
boolean
config
:
FileClientConfig
...
...
src/views/infra/file/index.vue
View file @
85fe4ad8
...
...
@@ -110,6 +110,7 @@ const queryParams = reactive({
pageSize
:
10
,
name
:
undefined
,
type
:
undefined
,
path
:
undefined
,
createTime
:
[]
})
const
queryFormRef
=
ref
()
// 搜索的表单
...
...
src/views/infra/fileConfig/FileConfigForm.vue
View file @
85fe4ad8
...
...
@@ -101,6 +101,7 @@
<
script
lang=
"ts"
setup
>
import
{
DICT_TYPE
,
getDictOptions
}
from
'@/utils/dict'
import
*
as
FileConfigApi
from
'@/api/infra/fileConfig'
import
{
FormRules
}
from
'element-plus'
defineOptions
({
name
:
'InfraFileConfigForm'
})
...
...
@@ -116,9 +117,9 @@ const formData = ref({
name
:
''
,
storage
:
0
,
remark
:
''
,
config
:
{}
config
:
{}
as
FileConfigApi
.
FileClientConfig
})
const
formRules
=
reactive
({
const
formRules
=
reactive
<
FormRules
>
({
name
:
[{
required
:
true
,
message
:
'配置名不能为空'
,
trigger
:
'blur'
}],
storage
:
[{
required
:
true
,
message
:
'存储器不能为空'
,
trigger
:
'change'
}],
config
:
{
...
...
@@ -133,7 +134,7 @@ const formRules = reactive({
accessKey
:
[{
required
:
true
,
message
:
'accessKey 不能为空'
,
trigger
:
'blur'
}],
accessSecret
:
[{
required
:
true
,
message
:
'accessSecret 不能为空'
,
trigger
:
'blur'
}],
domain
:
[{
required
:
true
,
message
:
'自定义域名不能为空'
,
trigger
:
'blur'
}]
}
}
as
FormRules
})
const
formRef
=
ref
()
// 表单 Ref
...
...
@@ -186,9 +187,9 @@ const resetForm = () => {
formData
.
value
=
{
id
:
undefined
,
name
:
''
,
storage
:
0
,
storage
:
undefined
!
,
remark
:
''
,
config
:
{}
config
:
{}
as
FileConfigApi
.
FileClientConfig
}
formRef
.
value
?.
resetFields
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment