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
ee2c7cab
Commit
ee2c7cab
authored
Jul 20, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7c039547
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
197 deletions
+102
-197
teacher-form.vue
src/components/school/teacher/teacher-form.vue
+31
-23
sysuser.vue
src/pages/school/sysuser.vue
+56
-93
teacher.vue
src/pages/school/teacher.vue
+15
-81
No files found.
src/components/school/teacher/teacher-form.vue
View file @
ee2c7cab
...
@@ -16,22 +16,23 @@
...
@@ -16,22 +16,23 @@
ref=
"TeacherTel"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"联系电话"
:rules=
"[val => !!val || '请填写教师联系电话']"
/>
ref=
"TeacherTel"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"联系电话"
:rules=
"[val => !!val || '请填写教师联系电话']"
/>
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.TeacherSay"
ref=
"TeacherSay"
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.TeacherSay"
ref=
"TeacherSay"
class=
"col-6 q-pb-lg"
label=
"教师营销语"
/>
class=
"col-6 q-pb-lg"
label=
"教师营销语"
/>
<selectTree
:treeData=
'DeptList'
:defaultArray=
"returnString
"
<selectTree
:treeData=
'DeptList'
:defaultArray=
"returnString"
nodeKey=
"DeptId"
:multiple=
"false
"
nodeKey=
"DeptId"
:multiple=
"false"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"选择部门
"
labelKey=
"DeptName"
childrenKey=
"ChildList"
tipText=
"选择部门"
@
getChild=
"getChild
"
@
getChild=
"getChild"
classStr=
"col-6 q-pr-lg q-pb-lg"
></selectTree>
classStr=
"col-6 q-pr-lg q-pb-lg"
></selectTree>
<q-select
filled
stack-label
option-value=
"PostId"
option-label=
"PostName"
v-model=
"objOption.Post_Id"
<q-select
filled
stack-label
option-value=
"PostId"
option-label=
"PostName"
v-model=
"objOption.Post_Id"
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseStuNum"
ref=
"BaseStuNum"
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseStuNum"
ref=
"BaseStuNum"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"带班基础人数"
@
keyup
.
native=
"checkInteger(objOption,'BaseStuNum')"
/>
class=
"col-6 q-pr-lg q-pb-lg"
label=
"带班基础人数"
@
keyup
.
native=
"checkInteger(objOption,'BaseStuNum')"
/>
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseHourFee"
ref=
"BaseHourFee"
<q-input
filled
stack-label
maxlength=
"5"
:dense=
"false"
v-model=
"objOption.BaseHourFee"
ref=
"BaseHourFee"
class=
"col-6 q-pb-lg"
label=
"基础课时费"
@
keyup
.
native=
"checkPrice(objOption,'BaseHourFee')"
/>
class=
"col-6 q-pb-lg"
label=
"基础课时费"
@
keyup
.
native=
"checkPrice(objOption,'BaseHourFee')"
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseSpecialty"
ref=
"SpecialtyList"
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseSpecialty"
:options=
"SpecialtyList"
label=
"老师特长"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
ref=
"SpecialtyList"
:options=
"SpecialtyList"
label=
"老师特长"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
@
input=
"schoolChagne"
multiple
clearable
/>
emit-value
map-options
@
input=
"schoolChagne"
multiple
clearable
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.BaseHoursEnabled"
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.BaseHoursEnabled"
ref=
"BaseHoursEnabled"
:options=
"BaseHoursList"
label=
"是否启用基础课时"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
ref=
"BaseHoursEnabled"
:options=
"BaseHoursList"
label=
"是否启用基础课时"
:dense=
"false"
class=
"col-6 q-pb-lg"
<q-input
v-if=
'objOption.BaseHoursEnabled==1'
filled
v-model=
"objOption.EnableTime"
mask=
"####-##"
label=
"启用时间"
ref=
"EnableTime"
emit-value
map-options
/>
:rules=
"[val => !!val || '请选择启用时间']"
>
<q-input
v-if=
'objOption.BaseHoursEnabled==1'
filled
v-model=
"objOption.EnableTime"
mask=
"####-##"
label=
"启用时间"
ref=
"EnableTime"
:rules=
"[val => !!val || '请选择启用时间']"
>
<template
v-slot:append
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-popup-proxy
ref=
"qDateProxy"
transition-show=
"scale"
transition-hide=
"scale"
>
...
@@ -44,7 +45,6 @@
...
@@ -44,7 +45,6 @@
</
template
>
</
template
>
</q-input>
</q-input>
</div>
</div>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"row wrap"
style=
"margin-top:20px;"
>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<div
class=
"col-6 q-pr-lg q-pb-lg"
>
<q-uploader
style=
"display: inline-block;height: 320px;max-width: 100%; background-repeat:no-repeat"
<q-uploader
style=
"display: inline-block;height: 320px;max-width: 100%; background-repeat:no-repeat"
...
@@ -160,10 +160,16 @@
...
@@ -160,10 +160,16 @@
BaseStuNum
:
0
,
//带班基础人数
BaseStuNum
:
0
,
//带班基础人数
BaseHourFee
:
0
,
//基础课时费
BaseHourFee
:
0
,
//基础课时费
Specialty
:
""
,
//老师擅长
Specialty
:
""
,
//老师擅长
BaseHoursEnabled
:
1
,
//是否启用基础课时 1是
BaseHoursEnabled
:
1
,
//是否启用基础课时 1是
EnableTime
:
''
,
//启用时间 (存到月)
EnableTime
:
''
,
//启用时间 (存到月)
},
},
BaseHoursList
:[{
Id
:
0
,
Name
:
'关闭'
},{
Id
:
1
,
Name
:
'开启'
}],
BaseHoursList
:
[{
Id
:
0
,
Name
:
'关闭'
},
{
Id
:
1
,
Name
:
'开启'
}],
chooseSpecialty
:
[],
chooseSpecialty
:
[],
optionTitle
:
""
,
optionTitle
:
""
,
schoolList
:
[],
schoolList
:
[],
...
@@ -233,14 +239,17 @@
...
@@ -233,14 +239,17 @@
//获取部门结构树
//获取部门结构树
queryDeptTree
()
{
queryDeptTree
()
{
var
msg
=
{
var
msg
=
{
School_Id
:
0
School_Id
:
-
1
};
};
if
(
this
.
objOption
.
School_Id
&&
this
.
objOption
.
School_Id
!=
''
)
{
if
(
this
.
objOption
.
School_Id
!=
''
&&
this
.
objOption
.
School_Id
>=
0
)
{
msg
.
School_Id
=
this
.
objOption
.
School_Id
;
msg
.
School_Id
=
this
.
objOption
.
School_Id
;
}
}
getDeptTree
(
msg
).
then
(
res
=>
{
getDeptTree
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
DeptList
=
res
.
Data
;
this
.
DeptList
=
res
.
Data
;
if
(
this
.
objOption
.
Dept_Id
)
{
this
.
$set
(
this
.
returnString
,
0
,
this
.
objOption
.
Dept_Id
);
}
}
}
})
})
},
},
...
@@ -286,18 +295,17 @@
...
@@ -286,18 +295,17 @@
this
.
objOption
.
BaseStuNum
=
this
.
saveObj
.
BaseStuNum
;
this
.
objOption
.
BaseStuNum
=
this
.
saveObj
.
BaseStuNum
;
this
.
objOption
.
BaseHourFee
=
this
.
saveObj
.
BaseHourFee
;
this
.
objOption
.
BaseHourFee
=
this
.
saveObj
.
BaseHourFee
;
this
.
objOption
.
Specialty
=
this
.
saveObj
.
Specialty
;
this
.
objOption
.
Specialty
=
this
.
saveObj
.
Specialty
;
this
.
objOption
.
EnableTime
=
this
.
saveObj
.
EnableTime
;
this
.
objOption
.
EnableTime
=
this
.
saveObj
.
EnableTime
;
this
.
objOption
.
BaseHoursEnabled
=
this
.
saveObj
.
BaseHoursEnabled
;
this
.
objOption
.
BaseHoursEnabled
=
this
.
saveObj
.
BaseHoursEnabled
;
if
(
this
.
saveObj
.
ChooseSpecialty
&&
this
.
saveObj
.
ChooseSpecialty
.
length
>
0
)
{
if
(
this
.
saveObj
.
ChooseSpecialty
&&
this
.
saveObj
.
ChooseSpecialty
.
length
>
0
)
{
this
.
chooseSpecialty
=
this
.
saveObj
.
ChooseSpecialty
;
this
.
chooseSpecialty
=
this
.
saveObj
.
ChooseSpecialty
;
}
}
if
(
this
.
objOption
.
School_Id
)
{
if
(
this
.
objOption
&&
this
.
objOption
.
School_Id
>=
0
)
{
this
.
queryDeptTree
();
this
.
queryDeptTree
();
}
}
if
(
this
.
objOption
.
Dept_Id
)
{
if
(
this
.
objOption
.
Dept_Id
)
{
this
.
queryPostList
();
this
.
queryPostList
();
this
.
returnString
.
push
(
this
.
objOption
.
Dept_Id
.
toString
());
}
}
if
(
this
.
objOption
.
TeachTag
&&
this
.
objOption
.
TeachTag
.
length
>
0
)
{
if
(
this
.
objOption
.
TeachTag
&&
this
.
objOption
.
TeachTag
.
length
>
0
)
{
this
.
tags
=
JSON
.
parse
(
this
.
objOption
.
TeachTag
)
this
.
tags
=
JSON
.
parse
(
this
.
objOption
.
TeachTag
)
...
@@ -365,7 +373,7 @@
...
@@ -365,7 +373,7 @@
// } else if (this.objOption.TeacherHead == '') {
// } else if (this.objOption.TeacherHead == '') {
// err_msg = "请上传用户头像"
// err_msg = "请上传用户头像"
// }
// }
if
(
this
.
objOption
.
BaseHoursEnabled
==
1
&&
this
.
objOption
.
EnableTime
==
''
)
{
if
(
this
.
objOption
.
BaseHoursEnabled
==
1
&&
this
.
objOption
.
EnableTime
==
''
)
{
err_msg
=
"请选择日期"
err_msg
=
"请选择日期"
}
}
if
(
err_msg
==
""
)
{
if
(
err_msg
==
""
)
{
...
...
src/pages/school/sysuser.vue
View file @
ee2c7cab
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"multiple"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"multiple"
:selected
.
sync=
"selected"
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
:selected
.
sync=
"selected"
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
:data=
"data"
:
data=
"data"
:
columns=
"columns"
row-key=
"Id"
>
:columns=
"columns"
row-key=
"Id"
>
<
template
v-slot:top=
"props"
>
<
template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
员工管理
</div>
<div
class=
"col-2 q-table__title"
>
员工管理
</div>
<q-space
/>
<q-space
/>
...
@@ -102,12 +102,11 @@
...
@@ -102,12 +102,11 @@
<q-avatar
rounded
size=
"sm"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.row.UserIcon"
>
<q-avatar
rounded
size=
"sm"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.row.UserIcon"
>
{{
GetFirst
(
props
.
value
[
0
])
}}
</q-avatar>
{{
GetFirst
(
props
.
value
[
0
])
}}
</q-avatar>
<span
class=
"q-ml-md text-blue cursor-pointer"
style=
"color:#2961FE;margin-left:10px;cursor:pointer;"
<span
class=
"q-ml-md text-blue cursor-pointer"
style=
"color:#2961FE;margin-left:10px;cursor:pointer;"
@
click=
"
getEmpInfoInfo(props.row
)"
title=
"点击查看详情"
>
{{
props
.
value
}}
</span>
@
click=
"
EditManager(props.row,1
)"
title=
"点击查看详情"
>
{{
props
.
value
}}
</span>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-PropertyNumber=
"props"
>
<
template
v-slot:body-cell-PropertyNumber=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<span
class=
"q-ml-md text-blue cursor-pointer"
style=
"color:#2961FE;margin-left:10px;cursor:pointer;"
<span
class=
"q-ml-md text-blue cursor-pointer"
style=
"color:#2961FE;margin-left:10px;cursor:pointer;"
@
click=
"goeduyhsl(props.row)"
title=
"点击查看详情"
>
{{
props
.
value
}}
</span>
@
click=
"goeduyhsl(props.row)"
title=
"点击查看详情"
>
{{
props
.
value
}}
</span>
</q-td>
</q-td>
...
@@ -146,10 +145,9 @@
...
@@ -146,10 +145,9 @@
<
template
v-slot:body-cell-optioned=
"props"
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"syster_qDropdown"
>
<div
class=
"syster_qDropdown"
>
<q-btn
v-if=
"props.row.ManagerAccount==''"
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"创建账号"
@
click=
"createAccount(props.row.MId)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditManager(props.row)"
/>
@
click=
"EditManager(props.row
,2
)"
/>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left:10px;"
>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left:10px;"
>
<q-list>
<q-list>
<q-item
clickable
v-close-popup
@
click=
"transFerJob(props.row,3)"
>
<q-item
clickable
v-close-popup
@
click=
"transFerJob(props.row,3)"
>
...
@@ -162,7 +160,8 @@
...
@@ -162,7 +160,8 @@
<q-item-label>
调部门
</q-item-label>
<q-item-label>
调部门
</q-item-label>
</q-item-section>
</q-item-section>
</q-item>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"goEAccountId(props.row.EmAccountId)"
v-if=
"props.row.EmAccountId>0"
>
<q-item
clickable
v-close-popup
@
click=
"goEAccountId(props.row.EmAccountId)"
v-if=
"props.row.EmAccountId>0"
>
<q-item-section>
<q-item-section>
<q-item-label>
账户
</q-item-label>
<q-item-label>
账户
</q-item-label>
</q-item-section>
</q-item-section>
...
@@ -185,9 +184,9 @@
...
@@ -185,9 +184,9 @@
</q-table>
</q-table>
<manager-form
v-if=
"isShowManagerForm"
:save-obj=
"managerOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
<manager-form
v-if=
"isShowManagerForm"
:save-obj=
"managerOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</manager-form>
</manager-form>
<employee-set
v-if=
"isShowEmployeeSet"
:seting-obj=
"setObj"
@
close=
"closeS
etForm"
@
success=
"refreshSet
Page"
>
<employee-set
v-if=
"isShowEmployeeSet"
:seting-obj=
"setObj"
@
close=
"closeS
tuForm"
@
success=
"refresh
Page"
>
</employee-set>
</employee-set>
<employee-info
v-if=
"isShowEmpInfo"
:save-obj=
"managerOption"
@
close=
"close
EmpInfo
Form"
@
success=
"refreshPage"
>
<employee-info
v-if=
"isShowEmpInfo"
:save-obj=
"managerOption"
@
close=
"close
Stu
Form"
@
success=
"refreshPage"
>
</employee-info>
</employee-info>
</div>
</div>
</div>
</div>
...
@@ -296,8 +295,8 @@
...
@@ -296,8 +295,8 @@
align
:
'left'
,
align
:
'left'
,
},
},
{
{
name
:
'DirectSupervisorName'
,
name
:
'DirectSupervisorName'
,
label
:
'直属上级'
,
label
:
'直属上级'
,
field
:
'DirectSupervisorName'
,
field
:
'DirectSupervisorName'
,
align
:
'left'
,
align
:
'left'
,
},
},
...
@@ -327,7 +326,7 @@
...
@@ -327,7 +326,7 @@
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
10
,
pageSize
:
10
,
rowsPerPage
:
10
,
rowsPerPage
:
10
,
School_Id
:
0
,
//校区
School_Id
:
-
1
,
//校区
Dept_Id
:
0
,
//部门
Dept_Id
:
0
,
//部门
Post_Id
:
0
,
//岗位编号
Post_Id
:
0
,
//岗位编号
LeaveStatus
:
0
,
//在职状态
LeaveStatus
:
0
,
//在职状态
...
@@ -339,7 +338,6 @@
...
@@ -339,7 +338,6 @@
EndBirthDate
:
""
,
//结束生日
EndBirthDate
:
""
,
//结束生日
EmployeeName
:
""
,
//员工姓名电话
EmployeeName
:
""
,
//员工姓名电话
},
},
schoolTemp
:
""
,
pageCount
:
0
,
pageCount
:
0
,
managerOption
:
null
,
managerOption
:
null
,
schoolList
:
[],
//校区数组
schoolList
:
[],
//校区数组
...
@@ -374,28 +372,6 @@
...
@@ -374,28 +372,6 @@
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
this
.
getManager
()
this
.
getManager
()
},
},
//创建账号
createAccount
(
id
)
{
let
that
=
this
createManagerAccount
({
MId
:
id
,
}).
then
(
res
=>
{
that
.
$q
.
dialog
({
title
:
"创建账号"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
getManager
();
}).
onCancel
(()
=>
{
that
.
getManager
();
})
})
},
//重置密码
//重置密码
resetPassWord
()
{
resetPassWord
()
{
if
(
this
.
selected
.
length
==
0
)
{
if
(
this
.
selected
.
length
==
0
)
{
...
@@ -449,7 +425,7 @@
...
@@ -449,7 +425,7 @@
})
})
},
},
//单个重置密码
//单个重置密码
resetSinglePwd
(
item
){
resetSinglePwd
(
item
)
{
let
that
=
this
let
that
=
this
this
.
$q
.
dialog
({
this
.
$q
.
dialog
({
title
:
"重置密码"
,
title
:
"重置密码"
,
...
@@ -533,7 +509,7 @@
...
@@ -533,7 +509,7 @@
this
.
schoolList
=
res
.
Data
;
this
.
schoolList
=
res
.
Data
;
var
obj
=
{
var
obj
=
{
SName
:
'全部'
,
SName
:
'全部'
,
SId
:
0
SId
:
-
1
}
}
this
.
schoolList
.
unshift
(
obj
);
this
.
schoolList
.
unshift
(
obj
);
})
})
...
@@ -562,13 +538,12 @@
...
@@ -562,13 +538,12 @@
this
.
msg
.
EndLeaveTime
=
''
;
this
.
msg
.
EndLeaveTime
=
''
;
}
}
queryManagerPage
(
this
.
msg
).
then
(
res
=>
{
queryManagerPage
(
this
.
msg
).
then
(
res
=>
{
this
.
data
=
res
.
Data
.
PageData
;
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
let
UserIds
=
[];
let
UserIds
=
[];
this
.
data
.
forEach
(
x
=>
{
this
.
data
.
forEach
(
x
=>
{
UserIds
.
push
(
x
.
EmAccountId
);
UserIds
.
push
(
x
.
EmAccountId
);
x
.
PropertyNumber
=
0
x
.
PropertyNumber
=
0
})
})
UserIds
=
UserIds
.
join
(
','
)
UserIds
=
UserIds
.
join
(
','
)
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -577,19 +552,21 @@
...
@@ -577,19 +552,21 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
})
})
},
},
geteduyhzclist
(
UserIds
){
geteduyhzclist
(
UserIds
)
{
getEduEmployeeNumList
({
UserIds
:
UserIds
}).
then
(
res
=>
{
getEduEmployeeNumList
({
UserIds
:
UserIds
}).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
let
data
=
res
.
data
.
data
let
data
=
res
.
data
.
data
var
mydata
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
));
var
mydata
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
));
data
.
forEach
(
x
=>
{
data
.
forEach
(
x
=>
{
mydata
.
forEach
(
j
=>
{
mydata
.
forEach
(
j
=>
{
if
(
x
.
EmployeeId
==
j
.
EmAccountId
)
{
if
(
x
.
EmployeeId
==
j
.
EmAccountId
)
{
j
.
PropertyNumber
=
x
.
PropertyNumber
;
j
.
PropertyNumber
=
x
.
PropertyNumber
;
}
}
})
})
});
});
this
.
data
=
mydata
;
this
.
data
=
mydata
;
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
})
})
...
@@ -602,27 +579,26 @@
...
@@ -602,27 +579,26 @@
this
.
msg
.
Status
=
"-1"
;
this
.
msg
.
Status
=
"-1"
;
this
.
msg
.
School_Id
=
0
;
this
.
msg
.
School_Id
=
0
;
}
}
this
.
selected
=
[];
this
.
getManager
()
this
.
getManager
()
},
},
EditManager
(
obj
)
{
EditManager
(
obj
,
type
)
{
if
(
obj
)
{
if
(
obj
)
{
this
.
managerOption
=
obj
;
this
.
managerOption
=
obj
;
}
else
{
}
else
{
this
.
managerOption
=
null
;
this
.
managerOption
=
null
;
}
}
if
(
type
==
1
)
{
this
.
isShowEmpInfo
=
true
;
}
else
if
(
type
==
2
)
{
this
.
isShowManagerForm
=
true
;
this
.
isShowManagerForm
=
true
;
}
},
},
//关闭表单
closeStuForm
()
{
closeStuForm
()
{
this
.
isShowManagerForm
=
false
;
this
.
isShowManagerForm
=
false
;
},
//关闭右侧抽屉
closeSetForm
()
{
this
.
isShowEmployeeSet
=
false
;
this
.
isShowEmployeeSet
=
false
;
},
this
.
isShowEmpInfo
=
false
;
//关抽屉刷新数据
refreshSetPage
()
{
this
.
getManager
();
this
.
selected
=
[];
},
},
getChild
(
deptArray
)
{
getChild
(
deptArray
)
{
var
tempStr
=
""
;
var
tempStr
=
""
;
...
@@ -694,15 +670,14 @@
...
@@ -694,15 +670,14 @@
this
.
setObj
.
selected
.
push
(
obj
);
this
.
setObj
.
selected
.
push
(
obj
);
this
.
isShowEmployeeSet
=
true
;
this
.
isShowEmployeeSet
=
true
;
},
},
goEAccountId
(
Id
){
goEAccountId
(
Id
)
{
// this.$router.push({ path: '/financial/empBankAccount ',query:{"id":Id,"type":9}})
var
tempStr
=
'/financial/empBankAccount?type=9'
+
'&id='
+
Id
;
var
tempStr
=
'/financial/empBankAccount?type=9'
+
'&id='
+
Id
;
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
tempStr
path
:
tempStr
});
});
},
},
goWOrkTransfer
(
Id
){
goWOrkTransfer
(
Id
)
{
var
tempStr
=
'/financial/financalDocument/GetWOrkTransferPageLis?type=9'
+
'&id='
+
Id
;
var
tempStr
=
'/financial/financalDocument/GetWOrkTransferPageLis?type=9'
+
'&id='
+
Id
;
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
tempStr
path
:
tempStr
});
});
...
@@ -712,22 +687,10 @@
...
@@ -712,22 +687,10 @@
return
val
.
substr
(
0
,
1
);
return
val
.
substr
(
0
,
1
);
}
}
},
},
//显示员工信息弹窗
getEmpInfoInfo
(
obj
)
{
if
(
obj
)
{
this
.
managerOption
=
obj
;
}
else
{
this
.
managerOption
=
null
;
}
this
.
isShowEmpInfo
=
true
;
},
//关闭员工信息弹窗
closeEmpInfoForm
()
{
this
.
isShowEmpInfo
=
false
;
},
//点击使用资产跳转到资产列表查看
//点击使用资产跳转到资产列表查看
goeduyhsl
(
row
){
goeduyhsl
(
row
)
{
var
tempStr
=
'/school/receiveNumList?id='
+
row
.
EmAccountId
;
var
tempStr
=
'/school/receiveNumList?id='
+
row
.
EmAccountId
;
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
tempStr
path
:
tempStr
});
});
...
...
src/pages/school/teacher.vue
View file @
ee2c7cab
...
@@ -8,16 +8,13 @@
...
@@ -8,16 +8,13 @@
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
clearable
filled
stack-label
option-value=
"SId"
option-label=
"SName"
<q-select
@
input=
"resetSearch"
clearable
filled
stack-label
option-value=
"SId"
option-label=
"SName"
v-model=
"schoolTemp"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
/>
v-model=
"msg.School_Id"
ref=
"School_Id"
:options=
"schoolList"
emit-value
map-options
label=
"所属校区"
:dense=
"false"
/>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.IsShow"
:options=
"ShowOpts"
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.IsShow"
:options=
"ShowOpts"
emit-value
map-options
label=
"显示状态"
/>
emit-value
map-options
label=
"显示状态"
/>
</div>
</div>
<!--
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.AuditStatus"
:options=
"AuditOpts"
emit-value
map-options
label=
"审核状态"
/>
</div>
-->
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
...
@@ -114,9 +111,9 @@
...
@@ -114,9 +111,9 @@
</q-td>
</q-td>
</
template
>
</
template
>
</q-table>
</q-table>
<teacher-form
v-if=
"persistent"
:save-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"
addAfterQuery
"
>
<teacher-form
v-if=
"persistent"
:save-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"
RefreshPage
"
>
</teacher-form>
</teacher-form>
<teacher-shenhe
v-if=
"persistentExamine"
:show-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"
addAfterQuery
"
>
<teacher-shenhe
v-if=
"persistentExamine"
:show-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"
RefreshPage
"
>
</teacher-shenhe>
</teacher-shenhe>
</div>
</div>
</div>
</div>
...
@@ -157,12 +154,6 @@
...
@@ -157,12 +154,6 @@
field
:
'TeacherTel'
,
field
:
'TeacherTel'
,
align
:
'left'
align
:
'left'
},
},
// {
// name: 'TeachTag',
// label: '标签',
// field: 'TeachTag',
// align: 'left'
// },
{
{
name
:
'SName'
,
name
:
'SName'
,
label
:
'所属校区'
,
label
:
'所属校区'
,
...
@@ -187,12 +178,6 @@
...
@@ -187,12 +178,6 @@
field
:
'BaseStuNum'
,
field
:
'BaseStuNum'
,
align
:
'left'
,
align
:
'left'
,
},
},
// {
// name: 'AuditStatus',
// label: '审核状态',
// align: 'left',
// field: 'AuditStatus'
// },
{
{
name
:
'IsShow'
,
name
:
'IsShow'
,
label
:
'是否显示'
,
label
:
'是否显示'
,
...
@@ -211,18 +196,6 @@
...
@@ -211,18 +196,6 @@
align
:
'left'
,
align
:
'left'
,
field
:
'CourseCount'
field
:
'CourseCount'
},
},
// {
// name: 'OnlineClassCount',
// label: '网课产品',
// align: 'left',
// field: 'OnlineClassCount'
// },
// {
// name: 'OnlineOrderCount',
// label: '网课订单',
// align: 'left',
// field: 'OnlineOrderCount'
// },
{
{
name
:
'CreateTimeStr'
,
name
:
'CreateTimeStr'
,
label
:
'入职时间'
,
label
:
'入职时间'
,
...
@@ -262,23 +235,6 @@
...
@@ -262,23 +235,6 @@
value
:
'1'
value
:
'1'
}
}
],
],
AuditOpts
:
[{
label
:
'全部'
,
value
:
'-1'
},
{
label
:
'审核中'
,
value
:
'1'
},
{
label
:
'审核通过'
,
value
:
'2'
},
{
label
:
'审核不通过'
,
value
:
'3'
}
],
msg
:
{
msg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
12
,
pageSize
:
12
,
...
@@ -286,8 +242,8 @@
...
@@ -286,8 +242,8 @@
TeacherName
:
""
,
TeacherName
:
""
,
TeacherTel
:
""
,
TeacherTel
:
""
,
AuditStatus
:
"-1"
,
AuditStatus
:
"-1"
,
School_Id
:
""
,
IsShow
:
"-1"
,
IsShow
:
"-1"
,
School_Id
:
0
},
},
pageCount
:
0
,
pageCount
:
0
,
persistent
:
false
,
persistent
:
false
,
...
@@ -298,21 +254,18 @@
...
@@ -298,21 +254,18 @@
resetLoading
:
false
resetLoading
:
false
}
}
},
},
moun
ted
()
{
crea
ted
()
{
this
.
currentUrl
=
this
.
$route
.
path
this
.
currentUrl
=
this
.
$route
.
path
this
.
getSchool
()
this
.
getSchool
()
},
mounted
()
{
this
.
getTeacher
()
this
.
getTeacher
()
},
},
methods
:
{
methods
:
{
resetSearch
()
{
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
this
.
loading
=
true
;
this
.
loading
=
true
this
.
msg
.
pageIndex
=
1
;
if
(
this
.
schoolTemp
)
{
this
.
getTeacher
();
this
.
msg
.
School_Id
=
this
.
schoolTemp
.
SId
}
else
{
this
.
msg
.
School_Id
=
0
}
this
.
getTeacher
()
},
},
resetPw
(
id
)
{
resetPw
(
id
)
{
let
that
=
this
let
that
=
this
...
@@ -398,21 +351,13 @@
...
@@ -398,21 +351,13 @@
})
})
},
},
changePage
(
val
)
{
changePage
(
val
)
{
this
.
msg
.
Status
=
this
.
StatusTemp
?
this
.
StatusTemp
.
value
:
'-1'
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
getTeacher
();
this
.
getTeacher
();
},
},
getSchool
()
{
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
schoolList
=
res
.
Data
this
.
schoolList
=
res
.
Data
;
if
(
this
.
msg
.
School_Id
!=
0
)
{
this
.
schoolTemp
=
this
.
schoolList
.
filter
(
x
=>
{
if
(
this
.
objOption
.
School_Id
==
x
.
SId
)
{
return
x
}
})[
0
]
}
})
})
},
},
getTeacher
()
{
getTeacher
()
{
...
@@ -424,23 +369,12 @@
...
@@ -424,23 +369,12 @@
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
addAfterQuery
()
{
RefreshPage
()
{
if
(
!
this
.
objOption
)
{
this
.
msg
=
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
TeacherName
:
""
,
TeacherTel
:
""
,
AuditStatus
:
"-1"
,
IsShow
:
"-1"
}
}
this
.
getTeacher
()
this
.
getTeacher
()
},
},
addObj
(
obj
)
{
addObj
(
obj
)
{
if
(
obj
)
{
if
(
obj
)
{
this
.
objOption
=
obj
this
.
objOption
=
obj
;
}
else
{
}
else
{
this
.
objOption
=
null
this
.
objOption
=
null
}
}
...
...
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