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
3ad78b8d
Commit
3ad78b8d
authored
Apr 12, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
bd219114
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
12 deletions
+48
-12
assessmentRule.vue
src/pages/teacher/assessmentRule.vue
+48
-12
No files found.
src/pages/teacher/assessmentRule.vue
View file @
3ad78b8d
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<div>
<div>
<q-card
flat
class=
"q-pa-lg q-my-lg"
v-loading=
"loading"
>
<q-card
flat
class=
"q-pa-lg q-my-lg"
v-loading=
"loading"
>
<div
class=
"text-h6 text-weight-bold"
style=
"margin-bottom:20px;"
>
分配给以下成员
</div>
<div
class=
"text-h6 text-weight-bold"
style=
"margin-bottom:20px;"
>
分配给以下成员
</div>
<q-select
class=
"col-6 q-pb"
v-model=
"
saveObj.teachingDirector"
style=
"width:300px;"
clearable
filled
stack-label
<q-select
class=
"col-6 q-pb"
v-model=
"
dictObjEmp.Code"
style=
"width:300px;"
clearable
filled
stack-label
use-input
use-input
option-value=
"Id"
option-label=
"EmployeeName"
ref=
"ManagerId"
:options=
"EmployeeList"
label=
"教学主管"
option-value=
"Id"
option-label=
"EmployeeName"
ref=
"ManagerId"
:options=
"EmployeeList"
label=
"教学主管"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
<template
v-slot:no-option
>
<template
v-slot:no-option
>
<q-item>
<q-item>
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
</q-item>
</q-item>
</
template
>
</
template
>
</q-select>
</q-select>
<q-select
class=
"col-6 q-pb"
v-model=
"
saveObj.jiaoWuDirector"
style=
"width:300px;margin-top:20px;"
clearable
<q-select
class=
"col-6 q-pb"
v-model=
"
dictObjEmp.Content"
style=
"width:300px;margin-top:20px;"
clearable
filled
filled
stack-label
use-input
option-value=
"Id"
option-label=
"EmployeeName"
ref=
"ManagerId
"
stack-label
use-input
option-value=
"Id"
option-label=
"EmployeeName"
ref=
"ManagerId"
:options=
"EmployeeList
"
:options=
"EmployeeList"
label=
"教务主管"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
label=
"教务主管"
:dense=
"false"
emit-value
map-options
@
filter=
"filterFn"
>
<
template
v-slot:no-option
>
<
template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
<q-item-section
class=
"text-grey"
>
...
@@ -39,16 +39,19 @@
...
@@ -39,16 +39,19 @@
import
{
import
{
saveDict
saveDict
}
from
"../../api/system/notiveSysSet"
;
}
from
"../../api/system/notiveSysSet"
;
import
{
import
{
queryEmployee
queryEmployee
}
from
"../../api/users/user"
;
//获取员工
}
from
"../../api/users/user"
;
//获取员工
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
saveObj
:
{
dictObjEmp
:
{
teachingDirector
:
""
,
//教学主管
ID
:
0
,
jiaoWuDirector
:
""
,
//教务主管
Code
:
""
,
Content
:
""
,
DictKey
:
"TEACHER_ASSESSMENT"
,
Mask
:
""
,
Name
:
"教师考评审核配置"
,
},
},
saving
:
false
,
saving
:
false
,
loading
:
false
,
loading
:
false
,
...
@@ -67,7 +70,7 @@
...
@@ -67,7 +70,7 @@
getEmployee
()
{
getEmployee
()
{
var
qMsg
=
{
var
qMsg
=
{
EmployeeName
:
''
,
EmployeeName
:
''
,
IsLeave
:
1
,
IsLeave
:
1
,
}
}
queryEmployee
(
qMsg
).
then
(
res
=>
{
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
...
@@ -89,10 +92,43 @@
...
@@ -89,10 +92,43 @@
},
},
//获取数据
//获取数据
init
()
{
init
()
{
this
.
loading
=
true
;
getDictValue
({
Key
:
this
.
dictObjEmp
.
DictKey
}).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
var
tempObj
=
res
.
Data
;
if
(
tempObj
)
{
this
.
dictObjEmp
.
ID
=
tempObj
.
ID
;
if
(
tempObj
.
Code
&&
tempObj
.
Code
!=
''
)
{
this
.
dictObjEmp
.
Code
=
Number
(
tempObj
.
Code
);
}
if
(
tempObj
.
Content
&&
tempObj
.
Content
!=
''
)
{
this
.
dictObjEmp
.
Content
=
Number
(
tempObj
.
Content
);
}
}
}
});
},
},
//保存配置
saveHandler
()
{
saveHandler
()
{
this
.
saving
=
true
;
saveDict
(
this
.
dictObjEmp
).
then
(
r
=>
{
this
.
saving
=
false
;
if
(
r
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
"数据保存成功!"
,
position
:
"top"
});
this
.
init
();
}
else
{
this
.
saving
=
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