Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
52681289
Commit
52681289
authored
Dec 08, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 系统参数新增文件上传
parent
07ad815e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
base-manager-ui/admin/src/pages/basicset/system/parameter/modal/AddParameter.vue
...rc/pages/basicset/system/parameter/modal/AddParameter.vue
+25
-2
No files found.
base-manager-ui/admin/src/pages/basicset/system/parameter/modal/AddParameter.vue
View file @
52681289
...
...
@@ -6,8 +6,21 @@
@
cancel=
"handleCancel"
:maskClosable=
"false"
>
<a-button
slot=
"footer"
@
click=
"handleReset"
>
重置
</a-button>
<a-button
slot=
"footer"
type=
"primary"
@
click=
"handleOk"
>
确定
</a-button>
<template
slot=
"footer"
>
<a-space>
<a-button
@
click=
"handleReset"
>
重置
</a-button>
<a-upload
name=
"file"
:show-upload-list=
"false"
:action=
"api + 'base/file/commonupload'"
@
change=
"handleUpload"
>
<a-button
type=
"primary"
>
文件上传
</a-button>
</a-upload>
<a-button
type=
"primary"
@
click=
"handleOk"
>
确定
</a-button>
</a-space>
</
template
>
<a-form-model
:model=
"form"
ref=
"form"
...
...
@@ -99,6 +112,7 @@ export default {
},
data
()
{
return
{
api
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
form
:
{
name
:
""
,
// 参数名称
firstOrganize
:
""
,
// 一级组织
...
...
@@ -166,6 +180,15 @@ export default {
}
});
},
// 文件上传
handleUpload
({
file
})
{
if
(
file
.
status
===
"
done
"
)
{
let
{
code
,
url
}
=
file
.
response
;
if
(
code
==
1
)
{
this
.
form
.
paramValue
=
url
;
}
}
},
},
};
</
script
>
...
...
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