Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
4de8ae05
Commit
4de8ae05
authored
Dec 17, 2021
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
into master
parents
b1f3421c
756938ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
14 deletions
+63
-14
user.js
src/api/users/user.js
+13
-0
manager-form.vue
src/components/school/manager/manager-form.vue
+25
-11
student-left.vue
src/components/school/student/student-left.vue
+25
-3
No files found.
src/api/users/user.js
View file @
4de8ae05
...
@@ -186,3 +186,16 @@ export function UpdateEmployeeType(data) {
...
@@ -186,3 +186,16 @@ export function UpdateEmployeeType(data) {
data
data
})
})
}
}
/**
* 获取用户角色下拉
* @param {查询参数} data
*/
export
function
GetUserRoleList
(
data
)
{
return
request
({
url
:
'/User/GetUserRoleList'
,
method
:
'post'
,
data
})
}
src/components/school/manager/manager-form.vue
View file @
4de8ae05
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"text-caption q-mb-md q-px-xs text-grey-6"
>
基本资料
</div>
<div
class=
"text-caption q-mb-md q-px-xs text-grey-6"
>
基本资料
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<q-select
filled
v-if=
"isEditShow"
stack-label
option-value=
"SId"
option-label=
"SName"
<q-select
filled
v-if=
"isEditShow"
stack-label
option-value=
"SId"
option-label=
"SName"
v-model=
"objOption.School_Id"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
v-model=
"objOption.School_Id"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
class=
"col-6 q-pb-lg q-pr-lg"
emit-value
map-options
@
input=
"schoolChagne"
/>
class=
"col-6 q-pb-lg q-pr-lg"
emit-value
map-options
@
input=
"schoolChagne"
/>
<selectTree
:treeData=
'DeptList'
v-if=
"isEditShow"
:defaultArray=
"returnString"
nodeKey=
"DeptId"
<selectTree
:treeData=
'DeptList'
v-if=
"isEditShow"
:defaultArray=
"returnString"
nodeKey=
"DeptId"
:multiple=
"false"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"选择部门"
@
getChild=
"getChild"
:multiple=
"false"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"选择部门"
@
getChild=
"getChild"
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
:rules=
"[val => !!val || '密码']"
/>
:rules=
"[val => !!val || '密码']"
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.LeaveStatus"
@
input=
'getLeave'
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.LeaveStatus"
@
input=
'getLeave'
ref=
"Education"
:options=
"LeaveStatusList"
label=
"在职状态"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
ref=
"Education"
:options=
"LeaveStatusList"
label=
"在职状态"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
emit-value
map-options
/>
<q-input
v-show=
"objOption.AccountId>0 && objOption.LeaveStatus==4"
filled
v-model=
"objOption.LeaveTime"
<q-input
v-show=
"objOption.AccountId>0 && objOption.LeaveStatus==4"
filled
v-model=
"objOption.LeaveTime"
class=
"col-6 q-pr-lg q-pb-lg"
mask=
"date"
label=
"离职时间"
>
class=
"col-6 q-pr-lg q-pb-lg"
mask=
"date"
label=
"离职时间"
>
<
template
v-slot:append
>
<
template
v-slot:append
>
...
@@ -70,19 +70,21 @@
...
@@ -70,19 +70,21 @@
</q-icon>
</q-icon>
</
template
>
</
template
>
</q-input>
</q-input>
<div
class=
"col-6 q-pb-lg"
style=
"margin-top:20px;"
>
<q-uploader
style=
"display: inline-block;max-height: 320px;max-width: 100%; background-repeat:no-repeat"
:style=
"{'background-image':'url(' + objOption.UserIcon + ')'}"
max-files=
"1"
hide-upload-btn
@
rejected=
"onRejected"
label=
"头像"
accept=
".jpg, image/*"
auto-upload
:factory=
"uploadFile"
no-thumbnails
>
</q-uploader>
</div>
<q-select
filled
stack-label
:disable=
"objOption.AccountId==0?false:true"
option-value=
"Id"
<q-select
filled
stack-label
:disable=
"objOption.AccountId==0?false:true"
option-value=
"Id"
option-label=
"Value"
ref=
"ID"
v-model=
"objOption.AccountType"
:options=
"AccountTypeList"
label=
"用户类型"
option-label=
"Value"
ref=
"ID"
v-model=
"objOption.AccountType"
:options=
"AccountTypeList"
label=
"用户类型"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
ref=
"ID"
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"EmployeeName"
ref=
"ID"
v-model=
"objOption.DirectSupervisor"
:options=
"EmployeeList"
label=
"直属上级"
:dense=
"false"
v-model=
"objOption.DirectSupervisor"
:options=
"EmployeeList"
label=
"直属上级"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
ref=
"UserRole"
clearable
v-model=
"objOption.UserRole"
:options=
"roleList"
label=
"用户角色"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<div
class=
"col-6 q-pb-lg"
style=
"margin-top:20px;"
>
<q-uploader
style=
"display: inline-block;max-height: 320px;max-width: 100%; background-repeat:no-repeat"
:style=
"{'background-image':'url(' + objOption.UserIcon + ')'}"
max-files=
"1"
hide-upload-btn
@
rejected=
"onRejected"
label=
"头像"
accept=
".jpg, image/*"
auto-upload
:factory=
"uploadFile"
no-thumbnails
>
</q-uploader>
</div>
</div>
</div>
</q-card-section>
</q-card-section>
<q-separator
/>
<q-separator
/>
...
@@ -116,7 +118,8 @@
...
@@ -116,7 +118,8 @@
}
from
'../../../api/common/common'
}
from
'../../../api/common/common'
import
selectTree
from
'../../common/select-tree'
import
selectTree
from
'../../common/select-tree'
import
{
import
{
queryEmployee
//员工列表
queryEmployee
,
//员工列表
GetUserRoleList
}
from
'../../../api/users/user'
}
from
'../../../api/users/user'
export
default
{
export
default
{
components
:
{},
components
:
{},
...
@@ -153,7 +156,8 @@
...
@@ -153,7 +156,8 @@
AccountType
:
1
,
// 是否是老师
AccountType
:
1
,
// 是否是老师
AccountId
:
0
,
//账号对应的表主键编号
AccountId
:
0
,
//账号对应的表主键编号
Email
:
""
,
//邮箱
Email
:
""
,
//邮箱
DirectSupervisor
:
0
//直属上级
DirectSupervisor
:
0
,
//直属上级
UserRole
:
''
//用户角色(1-市场人员,2-课程顾问)
},
},
optionTitle
:
""
,
optionTitle
:
""
,
schoolList
:
[],
schoolList
:
[],
...
@@ -168,6 +172,7 @@
...
@@ -168,6 +172,7 @@
Id
:
1
,
Id
:
1
,
Name
:
'女'
Name
:
'女'
}],
}],
roleList
:[],
EducationList
:
[],
//学历数组
EducationList
:
[],
//学历数组
LeaveStatusList
:
[],
//在职状态
LeaveStatusList
:
[],
//在职状态
isEditShow
:
false
,
//是否显示修改应该隐藏
isEditShow
:
false
,
//是否显示修改应该隐藏
...
@@ -196,11 +201,19 @@
...
@@ -196,11 +201,19 @@
this
.
getEducationList
();
this
.
getEducationList
();
this
.
getLeaveState
();
this
.
getLeaveState
();
this
.
Employee
();
this
.
Employee
();
this
.
getRoleList
();
},
},
mounted
()
{
mounted
()
{
this
.
initObj
();
this
.
initObj
();
},
},
methods
:
{
methods
:
{
getRoleList
(){
GetUserRoleList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
roleList
=
res
.
Data
;
}
})
},
Employee
()
{
Employee
()
{
var
qMsg
=
{
var
qMsg
=
{
EmployeeName
:
''
EmployeeName
:
''
...
@@ -322,6 +335,7 @@
...
@@ -322,6 +335,7 @@
this
.
objOption
.
AccountId
=
res
.
Data
.
AccountId
;
this
.
objOption
.
AccountId
=
res
.
Data
.
AccountId
;
this
.
objOption
.
Email
=
res
.
Data
.
Email
;
this
.
objOption
.
Email
=
res
.
Data
.
Email
;
this
.
objOption
.
DirectSupervisor
=
res
.
Data
.
DirectSupervisor
;
this
.
objOption
.
DirectSupervisor
=
res
.
Data
.
DirectSupervisor
;
this
.
objOption
.
UserRole
=
res
.
Data
.
UserRole
;
if
(
this
.
objOption
.
School_Id
)
{
if
(
this
.
objOption
.
School_Id
)
{
this
.
queryDeptTree
();
this
.
queryDeptTree
();
}
}
...
...
src/components/school/student/student-left.vue
View file @
4de8ae05
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
转介人
转介人
</div>
</div>
<div
class=
"stage_value"
>
<div
class=
"stage_value"
>
<q-select
filled
v-model=
"customObj.StuSourceId"
style=
"width:185px;"
dense
:options=
"customList"
option-label=
"CustomerName
"
<q-select
filled
v-model=
"customObj.StuSourceId"
style=
"width:185px;"
use-input
@
filter=
"filterStudent"
dense
:options=
"MyTransListData
"
option-
value=
"Customer
Id"
emit-value
map-options
/>
option-
label=
"StuName"
option-value=
"Stu
Id"
emit-value
map-options
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -269,7 +269,8 @@
...
@@ -269,7 +269,8 @@
getStudentInfo
,
//获取学员客户信息
getStudentInfo
,
//获取学员客户信息
queryStuStageList
,
//获取客户阶段列表
queryStuStageList
,
//获取客户阶段列表
saveStudent
,
//保存学员信息
saveStudent
,
//保存学员信息
GetStudentTypeList
GetStudentTypeList
,
getStudentDorpDownList
}
from
'../../../api/school/index'
;
}
from
'../../../api/school/index'
;
import
{
import
{
getGuestBasicsEnumList
,
getGuestBasicsEnumList
,
...
@@ -343,6 +344,8 @@
...
@@ -343,6 +344,8 @@
customFromList
:
[],
//客户来源
customFromList
:
[],
//客户来源
customTypeList
:
[],
//客户类型
customTypeList
:
[],
//客户类型
customList
:
[],
customList
:
[],
TransListData
:[],
//转介人数据
MyTransListData
:[],
checkMsg
:
{
checkMsg
:
{
StuId
:
0
,
StuId
:
0
,
StuTel
:
''
,
StuTel
:
''
,
...
@@ -361,6 +364,7 @@
...
@@ -361,6 +364,7 @@
this
.
getCustomFrom
();
this
.
getCustomFrom
();
this
.
GetCustomerList
();
this
.
GetCustomerList
();
this
.
getCustomTypeList
();
this
.
getCustomTypeList
();
this
.
getStudentDorpDown
();
if
(
this
.
saveObj
&&
this
.
saveObj
.
StuId
>
0
)
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
StuId
>
0
)
{
this
.
customMsg
.
StuId
=
this
.
saveObj
.
StuId
;
this
.
customMsg
.
StuId
=
this
.
saveObj
.
StuId
;
this
.
checkMsg
.
StuId
=
this
.
saveObj
.
StuId
;
this
.
checkMsg
.
StuId
=
this
.
saveObj
.
StuId
;
...
@@ -496,6 +500,24 @@
...
@@ -496,6 +500,24 @@
}
}
})
})
},
},
//获取转介人下拉
getStudentDorpDown
(){
getStudentDorpDownList
().
then
(
res
=>
{
console
.
log
(
res
,
'res'
);
if
(
res
.
Code
==
1
)
{
this
.
TransListData
=
res
.
Data
;
this
.
MyTransListData
=
res
.
Data
;
}
})
},
//筛选转介人
filterStudent
(
val
,
update
,
abort
){
update
(()
=>
{
this
.
MyTransListData
=
this
.
TransListData
.
filter
(
v
=>
v
.
StuName
.
indexOf
(
val
)
>
-
1
);
});
},
queryStuInfo
()
{
queryStuInfo
()
{
getStudentInfo
({
getStudentInfo
({
StuId
:
this
.
customMsg
.
StuId
StuId
:
this
.
customMsg
.
StuId
...
...
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