Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
c955ce68
Commit
c955ce68
authored
Sep 06, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
948d11e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
banner_detail.vue
src/views/banner_management/banner_detail.vue
+17
-10
No files found.
src/views/banner_management/banner_detail.vue
View file @
c955ce68
...
...
@@ -20,10 +20,11 @@
<el-input
v-model
.
trim=
"form.title"
class=
"form-input"
maxlength=
"20"
show-word-limit
clearable
disabled
/>
</el-form-item>
<el-form-item
label=
"轮播图"
prop=
"img"
>
<ImagePreview
:src=
"baseUrl + form.img"
:width=
"150"
:height=
"150"
/>
<ImagePreview
v-if=
"form.img"
:src=
"baseUrl + form.img"
:width=
"150"
:height=
"150"
style=
"box-shadow: none"
/>
<ImagePreview
v-else
:src=
"'123'"
:width=
"150"
:height=
"150"
style=
"box-shadow: none"
/>
</el-form-item>
<el-form-item
label=
"跳转地址"
prop=
"url"
>
<el-input
:placeholder=
"form.url || '-'
"
class=
"form-input"
maxlength=
"30"
show-word-limit
clearable
disabled
/>
<el-input
v-model=
"form.url
"
class=
"form-input"
maxlength=
"30"
show-word-limit
clearable
disabled
/>
</el-form-item>
<el-form-item
label=
"权重"
prop=
"sort"
>
<el-input-number
...
...
@@ -37,7 +38,7 @@
/>
</el-form-item>
<el-form-item
label=
"创建日期"
prop=
"createTime"
>
<el-input
disabled=
"true"
:placeholder=
"form.createTim
e"
style=
"width: 25%"
/>
<el-input
v-model=
"form.createTime"
disabled=
"tru
e"
style=
"width: 25%"
/>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<span
style=
"height: 2.5rem;line-height: 2.5rem"
>
...
...
@@ -52,7 +53,7 @@
</span>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"notes"
>
<el-input
:placeholder=
"form.notes || '-'"
type=
"textarea"
rows=
"3"
disabled
class=
"form-input"
maxlength=
"60"
clearable
/>
<el-input
v-model=
"form.notes"
type=
"textarea"
rows=
"3"
class=
"disText"
disabled
maxlength=
"60"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
class=
"resetBtn"
icon=
"el-icon-back"
@
click=
"goBack"
>
返回
</el-button>
...
...
@@ -97,12 +98,12 @@ export default {
getBanner
(
this
.
id
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
form
=
res
.
data
//
if (this.form.url === undefined || this.form.url === null || this.form.url === '') {
// this.form.url = '暂无数据
'
//
}
//
if (this.form.notes === undefined || this.form.notes === null || this.form.notes === '') {
// this.form.notes = '暂无数据
'
//
}
if
(
this
.
form
.
url
===
undefined
||
this
.
form
.
url
===
null
||
this
.
form
.
url
===
''
)
{
this
.
form
.
url
=
'-
'
}
if
(
this
.
form
.
notes
===
undefined
||
this
.
form
.
notes
===
null
||
this
.
form
.
notes
===
''
)
{
this
.
form
.
notes
=
'-
'
}
}
})
},
...
...
@@ -170,4 +171,10 @@ export default {
color
:
#333333
;
line-height
:
24px
;
}
::v-deep
.el-textarea.is-disabled
.el-textarea__inner
{
color
:
#333
!
important
;
background-color
:
#f4f4f4
!
important
;
}
</
style
>
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