Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
9cee891e
Commit
9cee891e
authored
Oct 27, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
a39082e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
234 additions
and
1 deletion
+234
-1
memberGroup.vue
src/components/UserMan/memberGroup.vue
+228
-0
index.js
src/router/index.js
+6
-1
No files found.
src/components/UserMan/memberGroup.vue
0 → 100644
View file @
9cee891e
<
template
>
<div
class=
"memberGroup"
>
<div
class=
"head-title"
>
用户分组
<el-button
@
click=
"EditGroup(null)"
style=
"float: right; margin-top: -5px; margin-right: 10px"
size=
"small"
type=
"primary"
>
新增
</el-button>
</div>
<div
class=
"content"
>
<div
style=
"display: flex; align-items: center; flex-wrap: wrap"
>
<div
class=
"searchInput"
style=
"width: 150px"
>
<el-input
@
keyup
.
enter
.
native=
"(msg.pageIndex = 1), getList()"
@
clear=
"(msg.pageIndex = 1), getList()"
style=
"display: inline-block; width: 125px; height: 30px"
placeholder=
"请输入昵称"
v-model=
"msg.GroupName"
size=
"small"
clearable
>
</el-input>
<span
@
click=
"(msg.pageIndex = 1), getList()"
class=
"el-icon-search"
style=
" color: #979dad; font-size: 14px; position: relative; top: 1px; "
></span>
</div>
</div>
<!-- @selection-change="handleSelectionChange"-->
<el-table
:data=
"tableData"
v-loading=
"loading"
border
style=
"width: 100%; margin: 20px 0"
>
<!--:selectable="checkSelectable"-->
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
prop=
"GroupId"
label=
"ID"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"GroupName"
label=
"分组名称"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"LookGroupIds"
label=
"可查看分组"
width=
"100"
>
</el-table-column>
<el-table-column
prop=
"CreateDate"
width=
"150"
label=
"加入时间"
></el-table-column>
<el-table-column
prop=
"address"
width=
"140"
label=
"操作"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
@
click=
"EditGroup(scope.row)"
style=
"width: 32px; height: 32px"
src=
"../../assets/img/userman/edit.png"
alt=
""
/>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
@
click=
"showQRcode(scope.row)"
style=
"width: 32px; height: 32px"
src=
"../../assets/img/userman/QRcode.png"
alt=
""
/>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align: right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"total,prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
<!-- 修改星星数 -->
<!-- <el-dialog title="修改星星数" :visible.sync="Egoods" width="600px" :close-on-click-modal="false">
<div>
<el-form :model="modifyobj" :rules="rules" ref="modifyobj" label-width="150px">
<el-form-item label="修改模式">
<el-radio v-model="modifyobj.IsAdd" :label="1">增加</el-radio>
<el-radio v-model="modifyobj.IsAdd" :label="2">减少</el-radio>
</el-form-item>
<el-form-item label="原始星星数">
<span>{{ PNum }}</span>
</el-form-item>
<el-form-item label="修改星星数">
<el-input v-model="modifyobj.PonitNum" style="width: 260px" size="small" :min="0" type="number"
placeholder="请输入星星数"></el-input>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="Egoods = false">关 闭</el-button>
<el-button size="small" type="primary" @click="setUpdatePointNum()">修 改</el-button>
</span>
</el-dialog> -->
<!-- 充值积分 -->
<!-- <el-dialog title="二维码" :visible.sync="qrshow" width="600px">
<div style="display: flex; align-items: center; justify-content: center">
<el-image style="width: 200px; height: 200px" :src="qrcodeImg"></el-image>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="qrshow = false">关 闭</el-button>
</span>
</el-dialog>
<el-dialog title="查看详情" :visible.sync="detailShow" width="800px">
<detail :data="detailData" />
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="detailShow = false">关 闭</el-button>
</span>
</el-dialog> -->
</div>
</template>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
detail
from
"./components/seeDetail"
;
export
default
{
components
:
{
ChooseImg
,
detail
,
},
data
()
{
return
{
loading
:
false
,
tableData
:
[],
total
:
0
,
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
GroupName
:
""
,
},
addMsg
:
{
GroupId
:
0
,
GroupName
:
""
,
//分组名称
LookGroupIds
:
""
,
IsSpecial
:
0
,
},
};
},
created
()
{
this
.
getgroupList
();
},
methods
:
{
//新增修改用户分组
EditGroup
(
obj
)
{
},
//保存用户分组信息
SaveGroup
()
{
this
.
apipost
(
"/api/User/SetMemberGroup"
,
this
.
addMsg
,
res
=>
{
console
.
log
(
res
);
});
},
//获取用户分组信息
GetGroup
(
item
)
{
this
.
apipost
(
"/api/User/GetMemberGroup"
,
{
GroupId
:
item
.
GroupId
},
res
=>
{
console
.
log
(
res
);
});
},
//删除分组
DeleteGroup
(
item
)
{
this
.
apipost
(
"/api/User/DeleteMemberGroup"
,
{
GroupId
:
item
.
GroupId
},
res
=>
{
console
.
log
(
res
);
});
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/User/GetMemberGroupPage"
,
this
.
msg
,
(
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
}
});
},
//分页改变
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//获取分组下来列表
getgroupList
()
{
this
.
apipost
(
"/api/User/GetMemberGroupList"
,
{
GroupId
:
item
.
GroupId
},
res
=>
{
console
.
log
(
res
);
});
}
},
mounted
()
{
this
.
getList
();
},
};
</
script
>
<
style
>
.memberGroup
.remark_name
{
color
:
#888888
;
font-size
:
12px
;
margin-left
:
10px
;
float
:
right
;
}
.memberGroup
.app-image
{
background-position
:
center
center
;
width
:
50px
;
height
:
50px
;
border-radius
:
0%
;
float
:
left
;
margin-right
:
8px
;
}
.memberGroup
.blue
{
color
:
#409eff
;
}
.memberGroup
.content
.searchInput
{
border
:
1px
solid
#dcdfe6
;
border-radius
:
4px
;
}
.memberGroup
.content
.searchInput
.el-input__inner
{
border
:
none
;
outline
:
none
;
height
:
30px
;
line-height
:
30px
;
}
.memberGroup
.content
.searchInput
{
line-height
:
normal
;
display
:
inline-table
;
width
:
100%
;
border-collapse
:
separate
;
border-spacing
:
0
;
width
:
250px
;
margin-right
:
20px
;
margin-bottom
:
10px
;
}
.memberGroup
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
</
style
>
src/router/index.js
View file @
9cee891e
...
...
@@ -919,7 +919,12 @@ export default new Router({
name
:
'studentListEdit'
,
component
:
resolve
=>
require
([
'@/components/UserMan/studentListEdit'
],
resolve
),
},
// 用户管理 相亲用户分组列表
{
path
:
'/memberGroup'
,
name
:
'memberGroup'
,
component
:
resolve
=>
require
([
'@/components/UserMan/memberGroup'
],
resolve
),
},
// 用户管理 相亲用户列表
{
path
:
'/blindDateUsersList'
,
...
...
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