Commit 2adc706f authored by zhengke's avatar zhengke

修改

parent 2caa0679
......@@ -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>
......@@ -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
});
}
}
}
......
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