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
253b230d
Commit
253b230d
authored
Apr 13, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6c8df7bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
32 deletions
+87
-32
index.js
src/api/teacher/index.js
+26
-0
appraisalList.vue
src/pages/teacher/appraisalList.vue
+1
-5
jobEvaluation.vue
src/pages/teacher/jobEvaluation.vue
+60
-27
No files found.
src/api/teacher/index.js
View file @
253b230d
...
...
@@ -542,3 +542,29 @@ export function queryTeacherAssessmentPage(data) {
data
})
}
/**
* 获取教师考核信息
* @param {*} data
*/
export
function
queryTeacherAssessmentInfo
(
data
)
{
return
request
({
url
:
'/TeacherAssessment/GetTeacherAssessmentInfo'
,
method
:
'post'
,
data
})
}
/**
* 保存老师考核信息
* @param {*} data
*/
export
function
setTeacherAssessmentInfo
(
data
)
{
return
request
({
url
:
'/TeacherAssessment/SaveTeacherAssessmentInfo'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/pages/teacher/appraisalList.vue
View file @
253b230d
...
...
@@ -134,10 +134,8 @@
},
getTeacherAssessmentPage
()
{
this
.
loading
=
true
;
queryTeacherAssessmentPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
...
...
@@ -154,9 +152,7 @@
},
//跳转考核表
goAssessTable
()
{
this
.
OpenNewUrl
(
'/teacher/jobEvaluation'
,
{
});
this
.
OpenNewUrl
(
'/teacher/jobEvaluation'
,
{});
}
}
}
...
...
src/pages/teacher/jobEvaluation.vue
View file @
253b230d
...
...
@@ -14,7 +14,6 @@
height
:
40px
;
background-color
:
rgb
(
238
,
238
,
239
);
}
</
style
>
<
template
>
<div
class=
"page-body"
>
...
...
@@ -22,35 +21,39 @@
<div
class=
"col row wrap q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"chooseTeacher"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"
教师团队
"
dense
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"
老师
"
dense
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
<div
class=
"col-3"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:7px;"
@
click=
"saveTeacherAssessment"
label=
"保存"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<table
class=
"jobTable"
style=
"border-collapse:collapse;"
>
<tbody
v-for=
"(item,index) in
data
List"
:key=
"index"
>
<tbody
v-for=
"(item,index) in
saveObj.Details
List"
:key=
"index"
>
<tr>
<th
width=
"150"
>
类别
</th>
<th
width=
"150"
>
内容
</th>
<th
v-for=
"(
T,tindex) in item.SubtypeList[0].OptionList
"
>
<div>
{{
T
.
LevelTitle
}}
</div>
<div>
{{
T
.
LevelScore
}}
</div>
<th
v-for=
"(
sItem,tindex) in item.SubtypeList[0].OptionList"
:key=
"tindex
"
>
<div>
{{
sItem
.
LevelTitle
}}
</div>
<div>
{{
sItem
.
LevelScore
}}
分
</div>
</th>
<th
width=
"200"
>
考核
</th>
</tr>
<tr>
<td
:rowspan=
"item.SubtypeList.length+1"
>
{{
item
.
TypeName
}}
</td>
</tr>
<tr
v-for=
"(sItem,sIndex) in item.SubtypeList"
>
<tr
v-for=
"(sItem,sIndex) in item.SubtypeList"
:key=
"sIndex"
>
<td>
{{
sItem
.
SubTypeName
}}
</td>
<td
v-for=
"(cItem,cIndex) in sItem.OptionList"
style=
"position:relative;"
>
<td
v-for=
"(cItem,cIndex) in sItem.OptionList"
style=
"position:relative;"
:key=
"cIndex"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"cItem.LevelDesc"
placement=
"top-start"
>
<i
style=
"position:absolute;left:3px;top:3px;"
class=
"iconfont icon-bangzhu"
></i>
</el-tooltip>
<q-checkbox
v-model=
"
selection
"
val=
"teal"
color=
"green"
/>
<q-checkbox
v-model=
"
cItem.IsCheck"
@
input=
"changeStatus(sItem,cItem)
"
val=
"teal"
color=
"green"
/>
</td>
<td></td>
<td>
{{
sItem
.
CheckScore
}}
</td>
</tr>
</tbody>
</table>
...
...
@@ -62,7 +65,8 @@
getTeacherDropDownList
}
from
"../../api/school/index"
;
import
{
GetAssessmentTypeList
queryTeacherAssessmentInfo
,
setTeacherAssessmentInfo
,
}
from
"../../api/teacher/index"
;
export
default
{
meta
:
{
...
...
@@ -71,23 +75,40 @@
components
:
{},
data
()
{
return
{
dataList
:
[],
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
},
chooseTeacher
:
''
,
TeacherList
:
[],
//关联教师下拉数据
selection
:
''
saveObj
:
{
Id
:
0
,
//主键编号
YearStr
:
0
,
//年份
MonthStr
:
0
,
//月份
TeacherAccountId
:
0
,
//教师账号表编号
TeacherScore
:
0
,
//教学主管打分
JiaoWuScore
:
0
,
//教务主管打分
TotalScore
:
0
,
//总分
DetailsList
:
[],
}
}
},
created
()
{},
mounted
()
{
created
()
{
this
.
GetTeacherList
();
this
.
getList
();
},
mounted
()
{
this
.
getInfo
();
},
methods
:
{
changeStatus
(
subItem
,
optionItem
)
{
if
(
optionItem
.
IsCheck
)
{
subItem
.
OptionList
.
forEach
(
sItem
=>
{
sItem
.
IsCheck
=
false
;
});
optionItem
.
IsCheck
=
true
;
subItem
.
CheckId
=
optionItem
.
LevelId
;
subItem
.
CheckScore
=
optionItem
.
LevelScore
;
}
else
{
subItem
.
CheckId
=
0
;
subItem
.
CheckScore
=
0
;
}
},
//获取教师下拉
GetTeacherList
()
{
getTeacherDropDownList
({}).
then
(
res
=>
{
...
...
@@ -96,18 +117,30 @@
}
});
},
getList
()
{
GetAssessmentTypeList
({}).
then
(
res
=>
{
getInfo
()
{
var
qMsg
=
{
TeacherAccountId
:
this
.
saveObj
.
TeacherAccountId
};
queryTeacherAssessmentInfo
(
qMsg
).
then
(
res
=>
{
console
.
log
(
"info"
,
res
)
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
var
tempData
=
res
.
Data
;
this
.
saveObj
.
DetailsList
=
tempData
.
DetailsList
}
})
},
//保存老师考核信息
saveTeacherAssessment
()
{
setTeacherAssessmentInfo
(
this
.
saveObj
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
if
(
res
.
Code
==
1
)
{
}
})
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
\ No newline at end of file
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