Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service-admin-view
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
external
on-site-service-admin-view
Commits
b7035df8
Commit
b7035df8
authored
Jul 26, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 图片类系统参数
parent
49f0cbf3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
SysParamEdit.vue
src/views/system/sysParam/SysParamEdit.vue
+13
-0
No files found.
src/views/system/sysParam/SysParamEdit.vue
View file @
b7035df8
...
@@ -10,6 +10,14 @@
...
@@ -10,6 +10,14 @@
>
>
<a-form>
<a-form>
<a-row>
<a-row>
<a-col
v-if=
"param.type == 4"
:span=
"24"
>
<ImageUpload
:label=
"param.name"
decoration=
"image"
:formItemLayout=
"null"
ref=
"image"
/>
</a-col>
<a-col
v-if=
"param.type == 3"
:span=
"24"
>
<a-col
v-if=
"param.type == 3"
:span=
"24"
>
<a-form-item
:label=
"param.name"
v-bind=
"formItemLayout"
>
<a-form-item
:label=
"param.name"
v-bind=
"formItemLayout"
>
<RichText
ref=
"RichText"
:height=
"600"
/>
<RichText
ref=
"RichText"
:height=
"600"
/>
...
@@ -58,6 +66,9 @@ export default {
...
@@ -58,6 +66,9 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
row
.
type
==
3
)
{
if
(
row
.
type
==
3
)
{
this
.
$refs
.
RichText
.
setContent
(
row
.
value
)
this
.
$refs
.
RichText
.
setContent
(
row
.
value
)
}
if
(
row
.
type
==
4
)
{
this
.
$refs
.
image
.
setValue
([
row
.
value
])
}
else
{
}
else
{
this
.
value
=
row
.
value
this
.
value
=
row
.
value
}
}
...
@@ -72,6 +83,8 @@ export default {
...
@@ -72,6 +83,8 @@ export default {
let
value
=
null
let
value
=
null
if
(
this
.
param
.
type
==
3
)
{
if
(
this
.
param
.
type
==
3
)
{
value
=
this
.
$refs
.
RichText
.
getContent
()
value
=
this
.
$refs
.
RichText
.
getContent
()
}
else
if
(
this
.
param
.
type
==
4
)
{
value
=
this
.
$refs
.
image
.
getValue
()[
0
]
}
else
{
}
else
{
value
=
this
.
value
value
=
this
.
value
}
}
...
...
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