Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
b8979b9d
Commit
b8979b9d
authored
Sep 14, 2021
by
liwenhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/merchant-managemet'
parents
e797f20d
efc4aac3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
index.less
src/pages/Groupmeal/merchantManagement/index.less
+4
-0
index.vue
src/pages/Groupmeal/merchantManagement/index.vue
+18
-0
No files found.
src/pages/Groupmeal/merchantManagement/index.less
View file @
b8979b9d
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
width: 100%;
width: 100%;
height: 100%;
height: 100%;
padding: 0 30px;
padding: 0 30px;
text-align: center;
.header {
.header {
display: flex;
display: flex;
justify-content: flex-end;
justify-content: flex-end;
...
@@ -42,4 +43,7 @@
...
@@ -42,4 +43,7 @@
height: 90%;
height: 90%;
}
}
}
}
.pagination-wrapper {
margin-top: 30px;
}
}
}
src/pages/Groupmeal/merchantManagement/index.vue
View file @
b8979b9d
...
@@ -24,6 +24,16 @@
...
@@ -24,6 +24,16 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
class=
"pagination-wrapper"
>
<el-pagination
background
layout=
"prev, pager, next"
:total=
"pageCount"
:page-size=
"10"
v-model:currentPage=
"currentPage"
@
current-change=
"handleCurrentChange"
></el-pagination>
</div>
<!-- 添加商家弹窗 -->
<!-- 添加商家弹窗 -->
<el-dialog
title=
"商家编辑"
v-model=
"merchantAdd"
:before-close=
"resetDate"
width=
"70%"
:show-close=
"false"
>
<el-dialog
title=
"商家编辑"
v-model=
"merchantAdd"
:before-close=
"resetDate"
width=
"70%"
:show-close=
"false"
>
<el-form
class=
"dioFor"
:model=
"addMerchant"
:rules=
"rules"
>
<el-form
class=
"dioFor"
:model=
"addMerchant"
:rules=
"rules"
>
...
@@ -107,9 +117,16 @@
...
@@ -107,9 +117,16 @@
// 列表
// 列表
merchantList
:
[],
merchantList
:
[],
deep
:
true
,
deep
:
true
,
currentPage
:
1
,
// 当前页
pageSize
:
20
,
// 每页条数
pageCount
:
0
,
// 总条数
};
};
},
},
methods
:
{
methods
:
{
handleCurrentChange
(
e
)
{
this
.
currentPage
=
e
;
this
.
getOtaList
();
},
modifyMerchant
(
id
,
index
)
{
modifyMerchant
(
id
,
index
)
{
if
(
typeof
id
==
"number"
)
{
if
(
typeof
id
==
"number"
)
{
this
.
addMerchant
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
merchantList
[
index
]));
this
.
addMerchant
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
merchantList
[
index
]));
...
@@ -121,6 +138,7 @@
...
@@ -121,6 +138,7 @@
const
{
result
,
code
,
reason
}
=
await
otaList
();
const
{
result
,
code
,
reason
}
=
await
otaList
();
if
(
code
!==
0
)
return
this
.
$message
.
error
(
reason
);
if
(
code
!==
0
)
return
this
.
$message
.
error
(
reason
);
this
.
merchantList
=
result
.
list
;
this
.
merchantList
=
result
.
list
;
this
.
pageCount
=
result
.
total
;
},
},
//保存
//保存
async
saveMerchant
()
{
async
saveMerchant
()
{
...
...
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