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
b0480a3e
Commit
b0480a3e
authored
Jul 25, 2022
by
shangtx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 服务详情图片
parent
76761cdb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
SubClassEdit.vue
src/views/serv/SubClassEdit.vue
+15
-2
No files found.
src/views/serv/SubClassEdit.vue
View file @
b0480a3e
...
...
@@ -18,7 +18,7 @@
<a-input
v-decorator=
"['description']"
/>
</a-form-item>
</a-col>
<a-col
:span=
"
11
"
>
<a-col
:span=
"
5
"
>
<ImageUpload
label=
"图片"
decoration=
"img"
...
...
@@ -28,6 +28,16 @@
:form=
"form"
/>
</a-col>
<a-col
:span=
"5"
:offset=
"1"
>
<ImageUpload
label=
"详情图片"
decoration=
"detailImg"
:formItemLayout=
"null"
:required=
"true"
ref=
"detailImg"
:form=
"form"
/>
</a-col>
<a-col
:span=
"11"
:offset=
"1"
>
<a-form-item
label=
"排序"
>
<a-input-number
v-decorator=
"['sequence']"
/>
...
...
@@ -35,7 +45,7 @@
</a-col>
<a-col
:span=
"23"
>
<a-form-item
label=
"服务详情"
>
<RichText
ref=
"RichText"
/>
<RichText
ref=
"RichText"
:height=
"700"
/>
</a-form-item>
</a-col>
</a-row>
...
...
@@ -74,6 +84,7 @@ export default {
getSubDetails
(
this
.
id
).
then
(({
data
})
=>
{
this
.
form
.
setFieldsValue
(
data
)
this
.
$refs
.
image
.
setValue
([
data
.
img
])
this
.
$refs
.
detailImg
.
setValue
([
data
.
detailImg
])
this
.
$refs
.
RichText
.
setContent
(
data
.
textDescription
)
})
}
...
...
@@ -83,6 +94,7 @@ export default {
this
.
categoryId
=
null
this
.
categoryName
=
''
this
.
$refs
.
image
.
reset
()
this
.
$refs
.
detailImg
.
reset
()
this
.
form
.
resetFields
()
this
.
$refs
.
RichText
.
clear
()
this
.
visible
=
false
...
...
@@ -95,6 +107,7 @@ export default {
const
reqData
=
{
...
values
,
img
:
this
.
$refs
.
image
.
getValue
()[
0
],
detailImg
:
this
.
$refs
.
detailImg
.
getValue
()[
0
],
id
:
this
.
id
,
categoryId
:
this
.
categoryId
,
textDescription
:
this
.
$refs
.
RichText
.
getContent
()
...
...
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