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
d13dc64e
Commit
d13dc64e
authored
Jun 29, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
轮播管理自测
parent
70d1e421
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
index.vue
src/components/ImageUpload/index.vue
+5
-1
banner_add.vue
src/views/banner_management/banner_add.vue
+3
-2
banner_edit.vue
src/views/banner_management/banner_edit.vue
+3
-2
banner_management.vue
src/views/banner_management/banner_management.vue
+1
-1
No files found.
src/components/ImageUpload/index.vue
View file @
d13dc64e
...
@@ -35,7 +35,11 @@
...
@@ -35,7 +35,11 @@
width=
"800"
width=
"800"
append-to-body
append-to-body
>
>
<img
:src=
"dialogImageUrl"
style=
"display: block; max-width: 100%; margin: 0 auto"
alt=
""
/>
<img
:src=
"dialogImageUrl"
style=
"display: block; max-width: 100%; margin: 0 auto"
alt=
""
>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
...
...
src/views/banner_management/banner_add.vue
View file @
d13dc64e
...
@@ -110,14 +110,15 @@ export default {
...
@@ -110,14 +110,15 @@ export default {
{
validator
:
titleTest
,
trigger
:
'blur'
}
{
validator
:
titleTest
,
trigger
:
'blur'
}
],
],
img
:
[
img
:
[
{
required
:
false
,
message
:
'请选择轮播图'
,
trigger
:
'
blur
'
}
{
required
:
false
,
message
:
'请选择轮播图'
,
trigger
:
'
change
'
}
],
],
url
:
[
url
:
[
{
required
:
false
,
message
:
'请输入跳转地址'
,
trigger
:
'blur'
}
{
required
:
false
,
message
:
'请输入跳转地址'
,
trigger
:
'blur'
}
],
],
sort
:
[
sort
:
[
{
required
:
true
,
message
:
'请输入权重'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入权重'
,
trigger
:
'blur'
},
{
validator
:
checkSort
,
trigger
:
'blur'
}
{
validator
:
checkSort
,
trigger
:
'blur'
},
{
validator
:
checkSort
,
trigger
:
'change'
}
],
],
status
:
[
status
:
[
{
required
:
false
,
message
:
'请选择轮播状态'
,
trigger
:
'blur'
}
{
required
:
false
,
message
:
'请选择轮播状态'
,
trigger
:
'blur'
}
...
...
src/views/banner_management/banner_edit.vue
View file @
d13dc64e
...
@@ -115,14 +115,15 @@ export default {
...
@@ -115,14 +115,15 @@ export default {
{
validator
:
titleTest
,
trigger
:
'blur'
}
{
validator
:
titleTest
,
trigger
:
'blur'
}
],
],
img
:
[
img
:
[
{
required
:
false
,
message
:
'请选择轮播图'
,
trigger
:
'
blur
'
}
{
required
:
false
,
message
:
'请选择轮播图'
,
trigger
:
'
change
'
}
],
],
url
:
[
url
:
[
{
required
:
false
,
message
:
'请输入跳转地址'
,
trigger
:
'blur'
}
{
required
:
false
,
message
:
'请输入跳转地址'
,
trigger
:
'blur'
}
],
],
sort
:
[
sort
:
[
{
required
:
true
,
message
:
'请输入权重'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入权重'
,
trigger
:
'blur'
},
{
validator
:
checkSort
,
trigger
:
'blur'
}
{
validator
:
checkSort
,
trigger
:
'blur'
},
{
validator
:
checkSort
,
trigger
:
'change'
}
],
],
status
:
[
status
:
[
{
required
:
false
,
message
:
'请选择轮播状态'
,
trigger
:
'blur'
}
{
required
:
false
,
message
:
'请选择轮播状态'
,
trigger
:
'blur'
}
...
...
src/views/banner_management/banner_management.vue
View file @
d13dc64e
...
@@ -240,11 +240,11 @@ export default {
...
@@ -240,11 +240,11 @@ export default {
/** 查询轮播图管理列表 */
/** 查询轮播图管理列表 */
getBannerList
()
{
getBannerList
()
{
this
.
loading
=
true
this
.
loading
=
true
console
.
log
(
'查询条件'
,
this
.
queryParams
)
listBanner
(
this
.
queryParams
).
then
(
response
=>
{
listBanner
(
this
.
queryParams
).
then
(
response
=>
{
this
.
bannerList
=
response
.
rows
this
.
bannerList
=
response
.
rows
this
.
total
=
response
.
total
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
loading
=
false
console
.
log
(
'查询res'
,
this
.
bannerList
)
})
})
},
},
// 取消按钮
// 取消按钮
...
...
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