Commit cac8dfc1 authored by 黄奎's avatar 黄奎

页面修改

parent e1fa51d3
...@@ -159,11 +159,23 @@ ...@@ -159,11 +159,23 @@
} }
}), }),
created() { created() {
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;
this.findData();
}, },
mounted() { mounted() {
if (!this.isHaveEdit) { if (!this.isHaveEdit) {
......
...@@ -116,13 +116,11 @@ ...@@ -116,13 +116,11 @@
} }
}, },
created() { created() {
let today = new Date();
var yearStr = today.getFullYear().toString();
var monthStr = (today.getMonth() + 1).toString();
this.teacherDate = yearStr + '-' + monthStr;
this.GetTeacherList(); this.GetTeacherList();
}, },
mounted() { mounted() {
let today = new Date();
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;
...@@ -130,7 +128,14 @@ ...@@ -130,7 +128,14 @@
if (this.$route.query.TeacherAccountId) { if (this.$route.query.TeacherAccountId) {
this.saveObj.TeacherAccountId = this.$route.query.TeacherAccountId this.saveObj.TeacherAccountId = this.$route.query.TeacherAccountId
} }
if (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: {
...@@ -221,7 +226,7 @@ ...@@ -221,7 +226,7 @@
this.$router.push({ this.$router.push({
path: "/teacher/appraisalList", path: "/teacher/appraisalList",
query: { query: {
} }
}); });
} }
......
...@@ -195,11 +195,18 @@ ...@@ -195,11 +195,18 @@
</template> </template>
<template v-slot:body-cell-FinishTimesPlanCount="props"> <template v-slot:body-cell-FinishTimesPlanCount="props">
<q-td :props="props"> <q-td :props="props">
<span style="color:blue;cursor:pointer;" title="点击查看跟进详细信息" @click="GoToDetails(props.row)"> <span style="color:blue;cursor:pointer;" title="点击查看跟进详细信息" @click="GoToDetails(props.row,1)">
{{props.row.FinishTimes}} / {{props.row.FinishTimes}} /
{{props.row.FollowCount}}</span> {{props.row.FollowCount}}</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-AssessmentScore="props">
<q-td :props="props">
<!-- <span style="color:blue;cursor:pointer;" title="点击查看考核信息" @click="GoToDetails(props.row,2)">
</span> -->
{{props.row.AssessmentScore}}
</q-td>
</template>
<template v-slot:bottom-row> <template v-slot:bottom-row>
<q-tr v-if="lastRow"> <q-tr v-if="lastRow">
<q-td> <q-td>
...@@ -533,15 +540,26 @@ ...@@ -533,15 +540,26 @@
this.getList(); this.getList();
}, },
methods: { methods: {
//跳转到跟进详情 GoToDetails(item, type) {
GoToDetails(item) { //跳转到跟进详情
var lastDay = new Date(this.msg.YearStr, this.msg.MonthStr, 0).getDate() if (type == 1) {
var qObj = { var lastDay = new Date(this.msg.YearStr, this.msg.MonthStr, 0).getDate();
HeadTeacherId: item.AccountId, var qObj = {
StartTime: this.msg.YearStr + "-" + this.msg.MonthStr + "-01", HeadTeacherId: item.AccountId,
EndTime: this.msg.YearStr + "-" + this.msg.MonthStr + "-" + lastDay, StartTime: this.msg.YearStr + "-" + this.msg.MonthStr + "-01",
}; EndTime: this.msg.YearStr + "-" + this.msg.MonthStr + "-" + lastDay,
this.OpenNewUrl('/teacher/teacherTrack', qObj) };
this.OpenNewUrl('/teacher/teacherTrack', qObj)
}
//跳转到考核列表
else {
var qObj = {
TeacherAccountId: item.AccountId,
YearStr: this.msg.YearStr,
MonthStr: this.msg.MonthStr,
};
this.OpenNewUrl('/teacher/jobEvaluation', qObj)
}
}, },
//初始化部门数据 //初始化部门数据
initDeptList() { initDeptList() {
......
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