Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
longhui_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
杨硕
longhui_web
Commits
82ee147b
Commit
82ee147b
authored
Jun 27, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc端修改
parent
37e2cc1e
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
236 additions
and
80 deletions
+236
-80
member.js
src/api/member/member.js
+8
-0
index.js
src/api/voucher/index.js
+7
-0
index.vue
src/components/Pagination/index.vue
+19
-7
index.vue
src/views/announcements/index.vue
+2
-2
index.vue
src/views/business/index.vue
+18
-17
index.vue
src/views/member/memberinfo/index.vue
+172
-47
index.vue
src/views/voucher/coupon/index.vue
+10
-7
No files found.
src/api/member/member.js
View file @
82ee147b
...
...
@@ -22,3 +22,11 @@ export function getDetailById(id) {
method
:
'get'
})
}
// 查询会员参加活动的列表
export
function
getMemberOrder
(
params
)
{
return
request
({
url
:
'/system/order/selectMemberOrderByPagination'
,
method
:
'get'
,
params
})
}
src/api/voucher/index.js
View file @
82ee147b
...
...
@@ -79,3 +79,10 @@ export function getbusinessList(query) {
params
:
query
})
}
// 查看用户信息
export
function
getMemberDetaiByBusinessId
(
businessId
)
{
return
request
({
url
:
'/system/coupon/selectCouponById/'
+
businessId
,
method
:
'get'
})
}
src/components/Pagination/index.vue
View file @
82ee147b
...
...
@@ -3,9 +3,10 @@
<el-pagination
:background=
"background"
:current-page
.
sync=
"currentPage"
:page-size
.
sync=
"
rows
"
:page-size
.
sync=
"
pageSize
"
:layout=
"layout"
:page-sizes=
"rows"
:page-sizes=
"pageSizes"
:pager-count=
"pagerCount"
:total=
"total"
v-bind=
"$attrs"
@
size-change=
"handleSizeChange"
...
...
@@ -32,12 +33,17 @@ export default {
type
:
Number
,
default
:
20
},
row
s
:
{
pageSize
s
:
{
type
:
Array
,
default
()
{
return
[
10
,
20
,
50
,
100
]
}
},
// 移动端页码按钮的数量端默认值5
pagerCount
:
{
type
:
Number
,
default
:
document
.
body
.
clientWidth
<
992
?
5
:
7
},
layout
:
{
type
:
String
,
default
:
'total, sizes, prev, pager, next, jumper'
...
...
@@ -55,6 +61,10 @@ export default {
default
:
false
}
},
data
()
{
return
{
}
},
computed
:
{
currentPage
:
{
get
()
{
...
...
@@ -64,7 +74,7 @@ export default {
this
.
$emit
(
'update:page'
,
val
)
}
},
rows
:
{
pageSize
:
{
get
()
{
return
this
.
limit
},
...
...
@@ -75,13 +85,16 @@ export default {
},
methods
:
{
handleSizeChange
(
val
)
{
if
(
this
.
currentPage
*
val
>
this
.
total
)
{
this
.
currentPage
=
1
}
this
.
$emit
(
'pagination'
,
{
page
:
this
.
currentPage
,
limit
:
val
})
if
(
this
.
autoScroll
)
{
scrollTo
(
0
,
800
)
}
},
handleCurrentChange
(
val
)
{
this
.
$emit
(
'pagination'
,
{
page
:
val
,
limit
:
this
.
rows
})
this
.
$emit
(
'pagination'
,
{
page
:
val
,
limit
:
this
.
pageSize
})
if
(
this
.
autoScroll
)
{
scrollTo
(
0
,
800
)
}
...
...
@@ -93,8 +106,7 @@ export default {
<
style
scoped
>
.pagination-container
{
background
:
#fff
;
padding
:
15px
;
text-align
:
right
;
padding
:
32px
16px
;
}
.pagination-container.hidden
{
display
:
none
;
...
...
src/views/announcements/index.vue
View file @
82ee147b
...
...
@@ -61,9 +61,9 @@
{{
scope
.
row
.
pushTime
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建人"
prop=
"
pushTi
me"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"创建人"
prop=
"
createNa
me"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
pushTi
me
||
'-'
}}
{{
scope
.
row
.
createNa
me
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"公告状态"
align=
"center"
prop=
"status"
>
...
...
src/views/business/index.vue
View file @
82ee147b
...
...
@@ -58,7 +58,7 @@
icon=
"el-icon-plus"
size=
"small"
@
click=
"handleAdd"
>
新增
商家
</el-button>
>
新增
</el-button>
</div>
</el-form>
<div
class=
"placeholder"
/>
...
...
@@ -211,14 +211,21 @@
<el-table
ref=
"table"
style=
"margin-top: 16px"
:header-cell-class-name=
"cellClass"
border
:data=
"memberList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
width=
"55"
/>
<el-table-column
label=
"会员头像"
prop=
"avatar"
:show-overflow-tooltip=
"true"
width=
"80"
>
<el-table-column
label=
"会员头像"
prop=
"avatar"
width=
"80"
>
<
template
slot-scope=
"scope"
>
<img
:src=
"replaceImg(scope.row.avatar)"
style=
"width: 100%;height: 100%"
>
</
template
>
</el-table-column>
<el-table-column
label=
"会员账号"
prop=
"phone"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
phone
||
'-'
}}
<el-popover
placement=
"right"
width=
"400"
trigger=
"click"
>
<span>
{{
text
}}
</span>
<el-button
slot=
"reference"
@
click=
"handleClick(scope.row)"
>
{{
scope
.
row
.
phone
}}
</el-button>
</el-popover>
</
template
>
</el-table-column>
<el-table-column
label=
"用户昵称"
prop=
"nickName"
:show-overflow-tooltip=
"true"
>
...
...
@@ -256,13 +263,14 @@ import {
}
from
'@/api/system/dict/type'
import
dictCons
from
'@/utils/dictCons'
import
{
queryBussinessAll
,
queryDetailById
,
deleteBussiness
,
BingBussinss
,
UnBingBussiness
,
updataBussinessInfo
}
from
'@/api/bussiness/bussiness'
import
{
queryMemberList
}
from
'@/api/member/member'
import
{
queryMemberList
,
getDetailById
}
from
'@/api/member/member'
export
default
{
name
:
'Dict'
,
// components: { Template },
data
()
{
return
{
text
:
''
,
srcList
:
[
'http://192.144.239.97:20043/file/static/images/login/denglu_icon_logo.png'
],
...
...
@@ -365,19 +373,12 @@ export default {
})
},
methods
:
{
vbs
(
val
)
{
console
.
log
(
'val信息'
,
val
)
const
baseURL
=
'http://192.144.239.97:20043/file/'
let
url
=
baseURL
+
val
console
.
log
(
'url'
,
url
)
if
(
val
===
null
)
{
url
=
'http://192.144.239.97:20043/file/static/images/login/denglu_icon_logo.png'
}
this
.
$nextTick
().
then
(()
=>
{
this
.
srcList
=
[]
this
.
srcList
.
push
(
url
)
this
.
$forceUpdate
()
console
.
log
(
'srcList'
,
this
.
srcList
)
// 点击显示完整的会员账户
handleClick
(
row
)
{
console
.
log
(
'row'
,
row
)
getDetailById
(
row
.
businessId
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
text
=
res
.
data
.
phone
})
},
replacesrc
(
row
)
{
...
...
src/views/member/memberinfo/index.vue
View file @
82ee147b
...
...
@@ -107,7 +107,8 @@
</el-table-column>
<el-table-column
label=
"报名活动数"
prop=
"count"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
count
||
'-'
}}
<el-button
type=
"text"
@
click=
"openDetail(scope.row)"
>
{{
scope
.
row
.
count
||
'-'
}}
</el-button>
<!--
{{
scope
.
row
.
count
||
'-'
}}
-->
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
class-name=
"small-padding fixed-width"
width=
"100"
>
...
...
@@ -117,7 +118,8 @@
size=
"mini"
type=
"text"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
>
详情
</el-button>
<!--
<el-button-->
<!-- v-hasPermi="['sys:dict:remove']"-->
<!-- size="mini"-->
...
...
@@ -136,24 +138,31 @@
@
pagination=
"getList"
/>
<!-- 会员详情对话框 -->
<el-dialog
title=
"会员信息"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
@
close=
"reset"
>
<el-dialog
title=
"会员信息"
:close-on-click-modal=
"false"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
@
close=
"reset"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"100px"
>
<el-form-item
label=
"头像"
>
<el-form-item
label=
"头像"
>
<img
:src=
"replaceImg(form.avatar)"
style=
"width: 80px;height: 80px"
>
</el-form-item>
<el-form-item
label=
"会员账号"
>
<span>
{{ form.phone || '-' }}
</span>
</el-form-item>
<el-form-item
label=
"会员昵称"
>
<el-form-item
label=
"会员昵称"
>
<span>
{{ form.nickName || '-' }}
</span>
</el-form-item>
<el-form-item
label=
"会员性别"
>
<el-form-item
label=
"会员性别"
>
{{ replaceSex(form.sex) || '-' }}
</el-form-item>
<el-form-item
label=
"会员邮箱"
>
<el-form-item
label=
"会员邮箱"
>
{{ form.email || '-' }}
</el-form-item>
<el-form-item
label=
"会员等级"
>
<el-form-item
label=
"会员等级"
>
<span>
{{ form.level || '-' }}
</span>
</el-form-item>
<el-form-item
label=
"会员积分"
>
...
...
@@ -164,11 +173,77 @@
</el-form-item>
</el-form>
</el-dialog>
<!-- 会员参加活动列表对话框 -->
<el-dialog
title=
"会员参加活动列表"
class=
"activeDialog"
:close-on-click-modal=
"false"
:visible
.
sync=
"activity.open"
width=
"60%"
append-to-body
@
close=
"reset"
>
<el-form
ref=
"form"
:model=
"form"
:inline=
"true"
label-width=
"68px"
>
<el-form-item>
<el-input
v-model=
"activityQuery.name"
placeholder=
"订单名称"
clearable
:maxlength=
"30"
size=
"small"
style=
"width: 200px"
/>
</el-form-item>
<el-form-item>
<el-input
v-model=
"activityQuery.price"
placeholder=
"订单金额"
clearable
:maxlength=
"30"
size=
"small"
style=
"width: 200px"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuerys"
>
查询
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuerys"
>
重置
</el-button>
</el-form-item>
<el-table
ref=
"table"
style=
"margin-top: 16px"
border
:data=
"activityList"
>
<el-table-column
label=
"订单名称"
prop=
"name"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
name
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"订单金额"
prop=
"price"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
price
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"支付数量"
prop=
"num"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
num
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"下单时间"
prop=
"createTime"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createTime
||
'-'
}}
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"activity.total>0"
:total=
"activity.total"
:page
.
sync=
"activityQuery.page"
:limit
.
sync=
"activityQuery. rows"
@
pagination=
"getActivityList"
/>
</el-form>
</el-dialog>
</div>
</template>
<
script
>
import
{
queryMemberList
,
deleteMember
,
getDetailById
}
from
'@/api/member/member'
import
{
queryMemberList
,
deleteMember
,
getDetailById
,
getMemberOrder
}
from
'@/api/member/member'
import
{
addType
,
updateType
,
...
...
@@ -180,6 +255,21 @@ export default {
name
:
'Dict'
,
data
()
{
return
{
// 活动对象
activity
:
{
total
:
''
,
page
:
1
,
rows
:
10
,
open
:
false
},
activityList
:
[],
activityQuery
:
{
name
:
''
,
price
:
''
,
businessId
:
undefined
,
page
:
1
,
rows
:
10
},
baseUrl
:
'http://192.144.239.97:20043/file/static/images/login/denglu_icon_logo.png'
,
value
:
true
,
test
:
''
,
...
...
@@ -254,31 +344,46 @@ export default {
manageLoading
:
false
}
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
this
.
$store
.
dispatch
(
'searchSave/searchParamsSet'
,
{
path
:
this
.
$route
.
path
,
param
:
{
...
this
.
queryParams
}
})
next
()
},
created
()
{
// if (this.$store.getters.searchParams[this.$route.path]) {
// const { searchParams } = this.$store.getters; const { path } = this.$route
// const param = JSON.parse(searchParams[path]) // 保留着的查询条件
// this.queryParams = { ...param }
// }
this
.
getList
()
// optionselect().then(response => {
// this.options = response.data
// })
},
methods
:
{
replaceEmil
(
value
){
if
(
value
===
'***'
){
// 活动重置
resetQuerys
()
{
this
.
activityQuery
.
name
=
''
this
.
activityQuery
.
price
=
''
this
.
activityQuery
.
page
=
1
this
.
activityQuery
.
rows
=
10
console
.
log
(
'activityQuery'
,
this
.
activityQuery
)
this
.
getActivityList
()
},
// 活动查询
handleQuerys
()
{
this
.
activityQuery
.
page
=
1
this
.
getActivityList
()
},
getActivityList
()
{
getMemberOrder
(
this
.
activityQuery
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
activityList
=
res
.
rows
this
.
activity
.
total
=
res
.
total
this
.
activity
.
open
=
true
})
},
// 打开会员参加活动列表
openDetail
(
row
)
{
console
.
log
(
row
)
this
.
activityQuery
.
businessId
=
row
.
businessId
console
.
log
(
'activityQuery'
,
this
.
activityQuery
)
getMemberOrder
(
this
.
activityQuery
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
activityList
=
res
.
rows
this
.
activity
.
total
=
res
.
total
this
.
activity
.
open
=
true
})
},
replaceEmil
(
value
)
{
if
(
value
===
'***'
)
{
return
'-'
}
else
{
return
value
...
...
@@ -347,8 +452,12 @@ export default {
if
(
flag
)
{
if
(
this
.
form
.
dataId
)
{
// 如果找不到 下拉框选项中对应选中的选项 或者 下拉框选项中对应选中的选项 状态为1(停用)则将双向绑定的数据清空
if
(
!
this
.
optionsDict
.
find
(
item
=>
{
return
item
.
dictCode
===
this
.
form
.
dataId
})
||
this
.
optionsDict
.
find
(
item
=>
{
return
item
.
dictCode
===
this
.
form
.
dataId
}).
status
===
1
)
{
if
(
!
this
.
optionsDict
.
find
(
item
=>
{
return
item
.
dictCode
===
this
.
form
.
dataId
})
||
this
.
optionsDict
.
find
(
item
=>
{
return
item
.
dictCode
===
this
.
form
.
dataId
}).
status
===
1
)
{
this
.
form
.
dataId
=
''
}
}
...
...
@@ -416,7 +525,7 @@ export default {
/** 详情按钮操作 */
handleDetail
(
row
)
{
getDetailById
(
row
.
businessId
).
then
(
res
=>
{
console
.
log
(
'详情'
,
res
)
console
.
log
(
'详情'
,
res
)
this
.
form
=
res
.
data
this
.
open
=
true
})
...
...
@@ -427,7 +536,9 @@ export default {
if
(
valid
)
{
this
.
manageLoading
=
true
const
temp
=
Object
.
assign
({},
this
.
form
)
if
(
!
temp
.
parentId
)
{
temp
.
dataId
=
''
}
if
(
!
temp
.
parentId
)
{
temp
.
dataId
=
''
}
if
(
this
.
title
===
'修改字典类型'
)
{
updateType
(
temp
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
...
...
@@ -439,7 +550,9 @@ export default {
this
.
getList
()
}
this
.
manageLoading
=
false
}).
catch
(()
=>
{
this
.
manageLoading
=
false
})
}).
catch
(()
=>
{
this
.
manageLoading
=
false
})
}
else
{
addType
(
temp
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
...
...
@@ -451,7 +564,9 @@ export default {
this
.
getList
()
}
this
.
manageLoading
=
false
}).
catch
(()
=>
{
this
.
manageLoading
=
false
})
}).
catch
(()
=>
{
this
.
manageLoading
=
false
})
}
}
})
...
...
@@ -519,15 +634,23 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.activeDialog
{
::v-deep
.el-dialog
.el-dialog__body
{
max-height
:
73vh
;
}
}
.app-container-dict
{
font-size
:
18px
;
padding
:
0
;
.placeholder
{
height
:
1
.3vh
;
.placeholder
{
height
:
1
.3vh
;
background-color
:
#F4F4F4
;
margin-bottom
:
10px
margin-bottom
:
10px
}
/
deep
/
.el-table
td
.cell
{
/
deep
/
.el-table
td
.cell
{
font-size
:
14px
;
padding-left
:
10px
;
height
:
64px
!
important
;
...
...
@@ -536,12 +659,14 @@ export default {
align-items
:
center
;
display
:
flex
;
}
}
</
style
>
<
style
lang=
"scss"
>
.app-container-dict
{
.el-form
{
padding
:
0
0
0
10px
;
.el-form-item
{
margin-top
:
0
;
margin-left
:
0
;
...
...
src/views/voucher/coupon/index.vue
View file @
82ee147b
...
...
@@ -259,12 +259,8 @@
placement=
"right"
width=
"400"
trigger=
"click"
>
<el-table
:data=
"gridData"
>
<el-table-column
width=
"150"
property=
"date"
label=
"日期"
></el-table-column>
<el-table-column
width=
"100"
property=
"name"
label=
"姓名"
></el-table-column>
<el-table-column
width=
"300"
property=
"address"
label=
"地址"
></el-table-column>
</el-table>
<el-button
slot=
"reference"
>
{{
scope
.
row
.
userName
}}
</el-button>
<span>
{{
test
}}
</span>
<el-button
slot=
"reference"
@
click=
"handleClick(scope.row)"
>
{{
scope
.
row
.
userName
}}
</el-button>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -315,7 +311,7 @@ import {
clearCache
}
from
'@/api/system/dict/type'
import
Template
from
'@/views/instance/Template'
import
{
delvoucher
,
selectCouponPickByPagination
,
voucherdetail
,
voucherlist
,
voucherpublish
}
from
'@/api/voucher'
import
{
delvoucher
,
selectCouponPickByPagination
,
voucherdetail
,
voucherlist
,
voucherpublish
,
getMemberDetaiByBusinessId
}
from
'@/api/voucher'
export
default
{
name
:
'Dict'
,
...
...
@@ -440,6 +436,13 @@ export default {
this
.
getList
()
},
methods
:
{
handleClick
(
row
)
{
console
.
log
(
'row'
,
row
)
getMemberDetaiByBusinessId
(
row
.
businessId
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
this
.
test
=
res
.
data
.
userName
})
},
/** 查询字典类型列表 */
getList
()
{
this
.
loading
=
true
...
...
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