Commit 2adc706f authored by zhengke's avatar zhengke

修改

parent 2caa0679
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.Sysuser_Date .el-input__inner { .Sysuser_Date .el-input__inner {
background: transparent !important; background: transparent !important;
border: 0 !important; border: 0 !important;
height:28px!important; height: 28px !important;
} }
.myTable_Zk tbody tr:first-child td { .myTable_Zk tbody tr:first-child td {
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
background: yellow !important; background: yellow !important;
z-index: 1 !important; z-index: 1 !important;
} }
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
...@@ -28,9 +29,9 @@ ...@@ -28,9 +29,9 @@
</q-field> </q-field>
</div> </div>
<div class="col-2"> <div class="col-2">
<q-select filled dense stack-label @input="GetTeacherList(),getList()" option-value="Id" <q-select filled dense stack-label @input="GetTeacherList(),getList()" option-value="Id" option-label="Name"
option-label="Name" v-model="msg.DeptId" ref="Teacher_Id" :options="deptList" label="语种" clearable v-model="msg.DeptId" ref="Teacher_Id" :options="deptList" label="语种" clearable class="col-6 q-pr-lg q-pb-lg"
class="col-6 q-pr-lg q-pb-lg" emit-value map-options /> emit-value map-options />
</div> </div>
<div class="col-2"> <div class="col-2">
<q-select filled dense stack-label @input="getList" option-value="TId" @filter="filterTeacherFn" use-input <q-select filled dense stack-label @input="getList" option-value="TId" @filter="filterTeacherFn" use-input
...@@ -347,16 +348,24 @@ ...@@ -347,16 +348,24 @@
this.msg.YearStr = d.getFullYear().toString(); this.msg.YearStr = d.getFullYear().toString();
this.msg.MonthStr = (d.getMonth() + 1).toString(); this.msg.MonthStr = (d.getMonth() + 1).toString();
this.myDate = this.msg.YearStr + '-' + this.msg.MonthStr 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(); this.GetTeacherList();
if (this.$route.query.TeacherId) {
this.msg.TeacherId = parseInt(this.$route.query.TeacherId);
}
this.getList(); this.getList();
}, },
methods: { methods: {
//获取教师下拉 //获取教师下拉
GetTeacherList() { GetTeacherList() {
this.msg.TeacherId=""; this.msg.TeacherId = "";
var qMsg = { var qMsg = {
NotQueryTIds: "5,10,15,20", NotQueryTIds: "5,10,15,20",
Dept_Id:this.msg.DeptId, Dept_Id: this.msg.DeptId,
} }
getTeacherDropDownList(qMsg).then(res => { getTeacherDropDownList(qMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -404,7 +413,9 @@ ...@@ -404,7 +413,9 @@
} }
} }
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style>
\ No newline at end of file </style>
...@@ -19,6 +19,12 @@ ...@@ -19,6 +19,12 @@
</template> </template>
</q-field> </q-field>
</div> </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>
<div style="float:right;"> <div style="float:right;">
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;"
...@@ -150,6 +156,13 @@ ...@@ -150,6 +156,13 @@
</template> </template>
</template> </template>
</q-tr> </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 v-slot:bottom>
</template> </template>
</q-table> </q-table>
...@@ -341,8 +354,18 @@ ...@@ -341,8 +354,18 @@
msg: { msg: {
YearStr: '', YearStr: '',
MonthStr: '', MonthStr: '',
DeptId: 8,
rowsPerPage: 0, rowsPerPage: 0,
}, },
deptList: [{
Id: 8,
Name: "日语"
},
{
Id: 14,
Name: "韩语"
},
],
} }
}, },
created() { created() {
...@@ -387,6 +410,13 @@ ...@@ -387,6 +410,13 @@
this.dataList = res.Data; this.dataList = res.Data;
} }
}) })
},
//跳转页面
goTotal(obj){
this.OpenNewUrl('/teacher/dayStatic', {
TeacherId: obj.TeacherId,
Dept_Id: obj.Dept_Id
});
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment