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
2adc706f
Commit
2adc706f
authored
Apr 08, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
2caa0679
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
7 deletions
+48
-7
dayStatic.vue
src/pages/teacher/dayStatic.vue
+18
-7
teacherMonth.vue
src/pages/teacher/teacherMonth.vue
+30
-0
No files found.
src/pages/teacher/dayStatic.vue
View file @
2adc706f
...
...
@@ -2,7 +2,7 @@
.Sysuser_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
height
:
28px
!important
;
height
:
28px
!important
;
}
.myTable_Zk
tbody
tr
:first-child
td
{
...
...
@@ -13,6 +13,7 @@
background
:
yellow
!important
;
z-index
:
1
!important
;
}
</
style
>
<
template
>
<div
class=
"page-body"
>
...
...
@@ -28,9 +29,9 @@
</q-field>
</div>
<div
class=
"col-2"
>
<q-select
filled
dense
stack-label
@
input=
"GetTeacherList(),getList()"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.DeptId"
ref=
"Teacher_Id"
:options=
"deptList"
label=
"语种"
clearable
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-select
filled
dense
stack-label
@
input=
"GetTeacherList(),getList()"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.DeptId"
ref=
"Teacher_Id"
:options=
"deptList"
label=
"语种"
clearable
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
<div
class=
"col-2"
>
<q-select
filled
dense
stack-label
@
input=
"getList"
option-value=
"TId"
@
filter=
"filterTeacherFn"
use-input
...
...
@@ -347,16 +348,24 @@
this
.
msg
.
YearStr
=
d
.
getFullYear
().
toString
();
this
.
msg
.
MonthStr
=
(
d
.
getMonth
()
+
1
).
toString
();
this
.
myDate
=
this
.
msg
.
YearStr
+
'-'
+
this
.
msg
.
MonthStr
if
(
this
.
$route
.
query
)
{
if
(
this
.
$route
.
query
.
Dept_Id
)
{
this
.
msg
.
DeptId
=
parseInt
(
this
.
$route
.
query
.
Dept_Id
)
}
}
this
.
GetTeacherList
();
if
(
this
.
$route
.
query
.
TeacherId
)
{
this
.
msg
.
TeacherId
=
parseInt
(
this
.
$route
.
query
.
TeacherId
);
}
this
.
getList
();
},
methods
:
{
//获取教师下拉
GetTeacherList
()
{
this
.
msg
.
TeacherId
=
""
;
this
.
msg
.
TeacherId
=
""
;
var
qMsg
=
{
NotQueryTIds
:
"5,10,15,20"
,
Dept_Id
:
this
.
msg
.
DeptId
,
Dept_Id
:
this
.
msg
.
DeptId
,
}
getTeacherDropDownList
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -404,7 +413,9 @@
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
</
style
>
src/pages/teacher/teacherMonth.vue
View file @
2adc706f
...
...
@@ -19,6 +19,12 @@
</
template
>
</q-field>
</div>
<div
class=
"col-2"
>
<q-select
filled
dense
stack-label
@
input=
"getList()"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.DeptId"
ref=
"Teacher_Id"
:options=
"deptList"
label=
"语种"
clearable
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
</div>
<div
style=
"float:right;"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;"
...
...
@@ -150,6 +156,13 @@
</
template
>
</template>
</q-tr>
<
template
v-slot:body-cell-DateStr=
"props"
>
<q-td
:props=
"props"
>
<span
v-if=
"props.row.TeacherId>0"
style=
"color:blue;cursor:pointer;"
@
click=
"goTotal(props.row)"
>
{{
props
.
row
.
DateStr
}}
</span>
<span
v-else
>
{{
props
.
row
.
DateStr
}}
</span>
</q-td>
</
template
>
<
template
v-slot:bottom
>
</
template
>
</q-table>
...
...
@@ -341,8 +354,18 @@
msg
:
{
YearStr
:
''
,
MonthStr
:
''
,
DeptId
:
8
,
rowsPerPage
:
0
,
},
deptList
:
[{
Id
:
8
,
Name
:
"日语"
},
{
Id
:
14
,
Name
:
"韩语"
},
],
}
},
created
()
{
...
...
@@ -387,6 +410,13 @@
this
.
dataList
=
res
.
Data
;
}
})
},
//跳转页面
goTotal
(
obj
){
this
.
OpenNewUrl
(
'/teacher/dayStatic'
,
{
TeacherId
:
obj
.
TeacherId
,
Dept_Id
:
obj
.
Dept_Id
});
}
}
}
...
...
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