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
f01c9bb8
Commit
f01c9bb8
authored
Dec 02, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e051eff3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
29 deletions
+30
-29
index.js
src/api/school/index.js
+1
-1
manager-form.vue
src/components/school/manager/manager-form.vue
+29
-28
No files found.
src/api/school/index.js
View file @
f01c9bb8
...
...
@@ -328,7 +328,7 @@ export function queryManagerPage(data) {
*/
export
function
saveManager
(
data
)
{
return
request
({
url
:
'/User/Set
Manager
'
,
url
:
'/User/Set
Employee
'
,
method
:
'post'
,
data
})
...
...
src/components/school/manager/manager-form.vue
View file @
f01c9bb8
...
...
@@ -16,7 +16,7 @@
<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-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"objOption.
MName"
ref=
"M
Name"
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"objOption.
EmployeeName"
ref=
"Employee
Name"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"管理者名称"
:rules=
"[val => !!val || '请填写管理者姓名']"
/>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"objOption.IDCard"
ref=
"IDCard"
...
...
@@ -28,8 +28,8 @@
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.Education"
ref=
"Education"
:options=
"EducationList"
label=
"学历"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-input
type=
"tel"
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.
MTel"
ref=
"M
Tel"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"联系电话"
:rules=
"[val => !!val || '请填写管理者联系电话']"
/>
<q-input
type=
"tel"
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.
Employee
Tel"
ref=
"EmployeeTel"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"联系电话"
:rules=
"[val => !!val || '请填写管理者联系电话']"
/>
<q-input
filled
v-model=
"objOption.EntryTime"
class=
"col-6 q-pr-lg q-pb-lg"
mask=
"date"
label=
"入职时间"
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
...
...
@@ -72,13 +72,13 @@
<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.
MHead
+ ')'}"
max-files=
"1"
hide-upload-btn
:style=
"{'background-image':'url(' + objOption.
UserIcon
+ ')'}"
max-files=
"1"
hide-upload-btn
@
rejected=
"onRejected"
label=
"管理者头像"
:max-file-size=
"512*1024"
accept=
".jpg, image/*"
auto-upload
:factory=
"uploadFile"
no-thumbnails
>
</q-uploader>
</div>
<q-toggle
size=
"md"
label=
"是否是老师"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"objOption.
Isteacher
"
/>
v-model=
"objOption.
AccountType
"
/>
</div>
</q-card-section>
...
...
@@ -126,15 +126,13 @@
return
{
persistent
:
true
,
objOption
:
{
M
Id
:
0
,
//管理者编号
Id
:
0
,
//管理者编号
School_Id
:
0
,
//学校编号
MName
:
""
,
//管理者姓名
MTel
:
''
,
//管理者电话
MHead
:
''
,
//头像
RoleAuth
:
""
,
//角色
EmployeeName
:
""
,
//管理者姓名
EmployeeTel
:
''
,
//管理者电话
UserIcon
:
''
,
//头像
Dept_Id
:
0
,
//部门编号
Post_Id
:
0
,
//岗位编号
IDCard
:
''
,
//身份证
Sex
:
0
,
//性别(0-男,1-女)
Education
:
0
,
//学历
...
...
@@ -145,7 +143,8 @@
LeaveStatus
:
0
,
//在职状态
Account
:
''
,
//账号
Password
:
''
,
//密码
Isteacher
:
1
,
// 是否是老师
AccountType
:
1
,
// 是否是老师
AccountId
:
0
,
//账号对应的表主键编号
},
optionTitle
:
""
,
schoolList
:
[],
...
...
@@ -216,18 +215,30 @@
if
(
this
.
saveObj
)
{
this
.
optionTitle
=
"修改员工信息"
queryEmployeeInfo
({
Id
:
this
.
saveObj
.
TabKeyId
Id
:
this
.
saveObj
.
Id
,
AccountId
:
this
.
saveObj
.
AccountId
,
AccountType
:
this
.
saveObj
.
AccountType
}).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
this
.
objOption
.
Id
=
res
.
Data
.
Id
;
this
.
objOption
.
School_Id
=
res
.
Data
.
School_Id
;
this
.
objOption
.
MName
=
res
.
Data
.
M
Name
;
this
.
objOption
.
MTel
=
res
.
Data
.
M
Tel
;
this
.
objOption
.
MHead
=
res
.
Data
.
MHead
;
this
.
objOption
.
EmployeeName
=
res
.
Data
.
Employee
Name
;
this
.
objOption
.
EmployeeTel
=
res
.
Data
.
Employee
Tel
;
this
.
objOption
.
UserIcon
=
res
.
Data
.
UserIcon
;
this
.
objOption
.
Post_Id
=
res
.
Data
.
Post_Id
;
this
.
objOption
.
Dept_Id
=
res
.
Data
.
Dept_Id
;
this
.
objOption
.
IDCard
=
res
.
Data
.
IDCard
;
this
.
objOption
.
Sex
=
res
.
Data
.
Sex
;
this
.
objOption
.
Education
=
res
.
Data
.
Education
;
this
.
objOption
.
EntryTime
=
res
.
Data
.
EntryTime
;
this
.
objOption
.
LeaveTime
=
res
.
Data
.
LeaveTime
;
this
.
objOption
.
BirthDate
=
res
.
Data
.
BirthDate
;
this
.
objOption
.
Address
=
res
.
Data
.
Address
;
this
.
objOption
.
LeaveStatus
=
res
.
Data
.
LeaveStatus
;
this
.
objOption
.
Account
=
res
.
Data
.
Account
;
this
.
objOption
.
AccountType
=
res
.
Data
.
AccountType
;
this
.
objOption
.
AccountId
=
res
.
Data
.
AccountId
;
this
.
returnString
.
push
(
res
.
Data
.
Dept_Id
.
toString
());
this
.
tempRole
=
res
.
Data
.
RoleList
;
if
(
this
.
objOption
.
Dept_Id
&&
this
.
objOption
.
Dept_Id
>
0
)
{
this
.
queryPostList
();
}
...
...
@@ -258,7 +269,7 @@
uploadFile
(
files
)
{
UploadSelfFile
(
'studentIcon'
,
files
[
0
],
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
objOption
.
MHead
=
res
.
FileUrl
;
this
.
objOption
.
UserIcon
=
res
.
FileUrl
;
}
})
},
...
...
@@ -267,16 +278,6 @@
this
.
persistent
=
false
},
setStudent
()
{
var
authStr
=
""
;
if
(
this
.
tempRole
&&
this
.
tempRole
.
length
>
0
)
{
this
.
tempRole
.
forEach
(
item
=>
{
authStr
+=
","
+
item
;
})
}
if
(
authStr
!=
''
)
{
authStr
=
authStr
.
substring
(
1
,
authStr
.
length
);
}
this
.
objOption
.
RoleAuth
=
authStr
;
this
.
saveLoading
=
true
saveManager
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveLoading
=
false
...
...
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