Commit 88bf28b9 authored by 黄奎's avatar 黄奎

页面修改

parent d90b176f
...@@ -159,29 +159,27 @@ ...@@ -159,29 +159,27 @@
} }
}), }),
created() { created() {
this.findData(); this.findData();
let today = new Date(); let today = new Date();
// if (this.$route.query) {
// if (this.$route.query.TeacherAccountId) {
// this.msg.TeacherAccountId = parseInt(this.$route.query.TeacherAccountId)
// }
// if (this.$route.query.YearStr && this.$route.query.MonthStr) {
// this.msg.YearStr = this.$route.query.YearStr;
// this.msg.MonthStr = this.$route.query.MonthStr
// this.queryDate = this.msg.YearStr + '-' + this.msg.MonthStr
// }
// } else {
// }
this.msg.YearStr = today.getFullYear().toString(); this.msg.YearStr = today.getFullYear().toString();
this.msg.MonthStr = (today.getMonth() + 1).toString(); this.msg.MonthStr = (today.getMonth() + 1).toString();
this.queryDate = this.msg.YearStr + '-' + this.msg.MonthStr; this.queryDate = this.msg.YearStr + '-' + this.msg.MonthStr;
if (this.$route.query) {
if (this.$route.query.TeacherAccountId) {
this.msg.TeacherAccountId = Number(this.$route.query.TeacherAccountId)
}
if (this.$route.query.YearStr && this.$route.query.MonthStr) {
this.msg.YearStr = this.$route.query.YearStr;
this.msg.MonthStr = this.$route.query.MonthStr
this.queryDate = this.msg.YearStr + '-' + this.msg.MonthStr
}
}
}, },
mounted() { mounted() {
if (!this.isHaveEdit) { // if (!this.isHaveEdit) {
let userinfo = this.getLocalStorage(); // let userinfo = this.getLocalStorage();
this.msg.TeacherAccountId = userinfo.Id; // this.msg.TeacherAccountId = userinfo.Id;
} // }
this.getTeacherAssessmentPage() this.getTeacherAssessmentPage()
}, },
methods: { methods: {
......
...@@ -121,6 +121,9 @@ ...@@ -121,6 +121,9 @@
}, },
mounted() { mounted() {
let today = new Date(); let today = new Date();
var yearStr = today.getFullYear().toString();
var monthStr = (today.getMonth() + 1).toString();
this.teacherDate = yearStr + '-' + monthStr;
if (this.$route.query) { if (this.$route.query) {
if (this.$route.query.Id) { if (this.$route.query.Id) {
this.saveObj.Id = this.$route.query.Id; this.saveObj.Id = this.$route.query.Id;
...@@ -132,10 +135,6 @@ ...@@ -132,10 +135,6 @@
this.teacherDate = this.$route.query.YearStr + '-' + this.$route.query.MonthStr; this.teacherDate = this.$route.query.YearStr + '-' + this.$route.query.MonthStr;
} }
this.getInfo(); this.getInfo();
} else {
var yearStr = today.getFullYear().toString();
var monthStr = (today.getMonth() + 1).toString();
this.teacherDate = yearStr + '-' + monthStr;
} }
}, },
methods: { methods: {
......
...@@ -202,9 +202,9 @@ ...@@ -202,9 +202,9 @@
</template> </template>
<template v-slot:body-cell-AssessmentScore="props"> <template v-slot:body-cell-AssessmentScore="props">
<q-td :props="props"> <q-td :props="props">
<!-- <span style="color:blue;cursor:pointer;" title="点击查看考核信息" @click="GoToDetails(props.row,2)"> <span style="color:blue;cursor:pointer;" title="点击查看考核信息" @click="GoToDetails(props.row,2)">
</span> --> {{props.row.AssessmentScore}}
{{props.row.AssessmentScore}} </span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-SpeakClassScore="props"> <template v-slot:body-cell-SpeakClassScore="props">
...@@ -589,7 +589,7 @@ ...@@ -589,7 +589,7 @@
YearStr: this.msg.YearStr, YearStr: this.msg.YearStr,
MonthStr: this.msg.MonthStr, MonthStr: this.msg.MonthStr,
}; };
this.OpenNewUrl('/teacher/jobEvaluation', qObj) this.OpenNewUrl('/teacher/appraisalList', qObj)
} }
}, },
//初始化部门数据 //初始化部门数据
......
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