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
a001c733
Commit
a001c733
authored
May 08, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增学员列表
parent
ad565a10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1037 additions
and
8 deletions
+1037
-8
addUsers.vue
src/components/UserMan/addUsers.vue
+7
-6
studentList.vue
src/components/UserMan/studentList.vue
+766
-0
studentListEdit.vue
src/components/UserMan/studentListEdit.vue
+250
-0
edactivity.vue
src/components/education/edactivity.vue
+2
-2
index.js
src/router/index.js
+12
-0
No files found.
src/components/UserMan/addUsers.vue
View file @
a001c733
...
...
@@ -123,12 +123,13 @@
})
},
goUrl
()
{
this
.
$router
.
push
({
name
:
'usersList'
,
query
:
{
blank
:
"y"
}
});
// this.$router.push({
// name: 'usersList',
// query: {
// blank: "y"
// }
// });
this
.
$router
.
go
(
-
1
);
//返回上一层
},
generateUUID
(){
var
d
=
new
Date
().
getTime
();
...
...
src/components/UserMan/studentList.vue
0 → 100644
View file @
a001c733
This diff is collapsed.
Click to expand it.
src/components/UserMan/studentListEdit.vue
0 → 100644
View file @
a001c733
<
template
>
<div
class=
"setMember studentList usersListEdit"
>
<div
class=
"head-title"
>
<span
@
click=
"goUrl"
class=
"blue point"
>
用户管理
</span>
/ 用户编辑
</div>
<div
class=
"content"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"用户"
>
<div
class=
"app-image"
:style=
"
{backgroundImage:'url(' + userInfo.Photo + ')',backgroundSize:'cover'}">
</div>
</el-form-item>
<el-form-item
label=
"昵称"
>
<el-input
v-model=
"userInfo.Name"
style=
"width:478px"
size=
"small"
:disabled=
"true"
></el-input>
</el-form-item>
<el-form-item
label=
"会员等级"
>
<el-select
style=
"width:293px;"
size=
"small"
v-model=
"userInfo.MemberGrade"
placeholder=
"请选择活动区域"
>
<el-option
label=
"普通用户"
:value=
"0"
></el-option>
<el-option
v-for=
"(item,index) in options"
:key=
"index"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"上级"
>
<el-select
size=
"small"
v-model=
"userInfo.SuperiorId"
:filter-method=
"ChangeListName"
filterable
placeholder=
"请选择"
>
<el-option
label=
"总部"
:value=
"0"
></el-option>
<el-option
v-for=
"item in tableData"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"职位"
v-if=
"mall_userInfo.TenantId==1 && mall_userInfo.MallBaseId==1"
>
<el-select
size=
"small"
v-model=
"userInfo.PostId"
placeholder=
"请选择"
>
<el-option
label=
"无"
:value=
"0"
></el-option>
<el-option
label=
"领队导游"
:value=
"1"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"加入黑名单"
>
<el-switch
v-model=
"userInfo.Blacklist"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"0"
>
</el-switch>
<span
class=
"tip"
>
加入黑名单后,用户将无法下单
</span>
</el-form-item>
<el-form-item
label=
"联系方式"
>
<el-input
v-model=
"userInfo.ContactWay"
style=
"width:478px"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"手机号"
>
<el-input
v-model=
"userInfo.Moblie"
style=
"width:478px"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-input
v-model=
"userInfo.Remark"
style=
"width:478px"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"修改备注名"
>
<el-input
v-model=
"userInfo.AliasName"
style=
"width:478px"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"注册时间"
>
<span>
{{
userInfo
.
CreateDate
}}
</span>
</el-form-item>
</el-form>
</div>
<div
style=
"margin-top:20px"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"Save"
>
保存
</el-button>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
addMsg
:
{
Id
:
''
,
SuperiorId
:
''
,
MemberGrade
:
''
,
ContactWay
:
''
,
Remark
:
''
,
AliasName
:
''
,
PostId
:
0
,
//职位
},
val
:
''
,
value
:
''
,
total
:
0
,
rules
:
{
name
:
[{
required
:
true
,
message
:
'新手机号'
,
trigger
:
'blur'
}],
},
restaurants
:
[],
UserId
:
''
,
userInfo
:
{},
msg
:
{
pageIndex
:
1
,
pageSize
:
20
,
Name
:
''
,
Source
:
0
,
MemberGrade
:
0
,
Id
:
0
,
Moblie
:
''
},
mall_userInfo
:
{},
//用户信息
tableData
:
[],
options
:
[],
};
},
created
()
{
this
.
mall_userInfo
=
JSON
.
parse
(
localStorage
.
mall_userInfo
)
if
(
this
.
$route
.
query
.
UserId
)
{
this
.
UserId
=
this
.
$route
.
query
.
UserId
;
this
.
getData
()
this
.
getList
();
this
.
getMemberGradeList
()
}
},
methods
:
{
Save
()
{
let
userInfo
=
this
.
userInfo
;
this
.
addMsg
=
{
Id
:
userInfo
.
Id
,
SuperiorId
:
userInfo
.
SuperiorId
,
MemberGrade
:
userInfo
.
MemberGrade
,
ContactWay
:
userInfo
.
ContactWay
,
Remark
:
userInfo
.
Remark
,
AliasName
:
userInfo
.
AliasName
,
PostId
:
userInfo
.
PostId
,
Blacklist
:
userInfo
.
Blacklist
,
Moblie
:
userInfo
.
Moblie
,
}
this
.
apipost
(
"/api/user/SetMemberUserInfoForHT"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
goUrl
();
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
},
handleSelect
(
item
)
{},
ChangeListName
(
val
)
{
this
.
msg
.
Name
=
val
;
this
.
getList
();
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/user/GetMemberUserDropDownList"
,
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
;
}
})
},
getMemberGradeList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/user/GetMemberGradeList"
,
{
Grade
:
0
,
Name
:
''
,
Enabled
:
1
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
options
=
res
.
data
.
data
}
})
},
querySearch
(
queryString
,
cb
)
{
},
openChangeDig
()
{
this
.
changeState
=
true
;
},
goUrl
()
{
this
.
$router
.
push
({
name
:
'studentList'
,
query
:
{
blank
:
"y"
}
});
},
getData
()
{
this
.
apipost
(
"/api/user/GetMemberUserInfo"
,
{
UserId
:
this
.
UserId
},
res
=>
{
this
.
userInfo
=
res
.
data
.
data
;
this
.
msg
.
Name
=
this
.
userInfo
.
SuperiorName
;
this
.
getList
();
})
},
},
mounted
()
{
}
};
</
script
>
<
style
>
.usersListEdit
.tip
{
margin-left
:
10px
;
display
:
inline-block
;
height
:
30px
;
line-height
:
30px
;
color
:
#ff4544
;
background-color
:
#FEF0F0
;
padding
:
0
20px
;
border-radius
:
5px
;
}
.usersListEdit
.app-image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
80px
;
height
:
80px
;
border-radius
:
0%
;
}
.setMember
.setTable
.el-table__body
.cell
{
display
:
flex
;
align-items
:
center
;
}
.setMember
.commonLabel
.el-form-item__label
{
margin-top
:
-4px
;
}
.setMember
.discount
.el-form-item__label
{
padding-right
:
30px
;
margin-top
:
-4px
;
}
.setMember
.el-form-item
.elzk
{
position
:
absolute
;
left
:
-25px
;
top
:
8px
;
}
.setMember
.el-form-item
{
position
:
relative
;
}
.studentList
.blue
{
color
:
#409EFF
;
}
.studentList
.content
{
background
:
#fff
;
margin-top
:
10px
;
padding
:
20px
;
box-sizing
:
border-box
;
}
</
style
>
src/components/education/edactivity.vue
View file @
a001c733
...
...
@@ -105,12 +105,12 @@
<el-input
type=
"text"
class=
"w400"
v-model=
"addMsg.ActivityName"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"开始时间"
class=
"is-required"
prop=
"StartTime"
>
<el-date-picker
class=
"w300"
value-format=
"yyyy-MM-dd
"
v-model=
"addMsg.StartTime"
type=
"dat
e"
size=
"small"
<el-date-picker
class=
"w300"
value-format=
"yyyy-MM-dd
HH:mm:ss"
v-model=
"addMsg.StartTime"
type=
"datetim
e"
size=
"small"
placeholder=
"开始时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"结束时间"
class=
"is-required"
prop=
"EndTime"
>
<el-date-picker
class=
"w300"
v
-model=
"addMsg.EndTime"
type=
"dat
e"
size=
"small"
placeholder=
"结束时间"
>
<el-date-picker
class=
"w300"
v
alue-format=
"yyyy-MM-dd HH:mm:ss"
v-model=
"addMsg.EndTime"
type=
"datetim
e"
size=
"small"
placeholder=
"结束时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"报名开始时间"
class=
"is-required"
prop=
"SignStartTime"
>
...
...
src/router/index.js
View file @
a001c733
...
...
@@ -786,6 +786,18 @@ export default new Router({
name
:
'usersListEdit'
,
component
:
resolve
=>
require
([
'@/components/UserMan/usersListEdit'
],
resolve
),
},
// 用户管理 学员列表
{
path
:
'/studentList'
,
name
:
'studentList'
,
component
:
resolve
=>
require
([
'@/components/UserMan/studentList'
],
resolve
),
},
// 用户管理 学员列表编辑
{
path
:
'/studentListEdit'
,
name
:
'studentListEdit'
,
component
:
resolve
=>
require
([
'@/components/UserMan/studentListEdit'
],
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