|
@@ -337,8 +337,14 @@
|
|
</div>
|
|
</div>
|
|
<!-- 导师反馈 -->
|
|
<!-- 导师反馈 -->
|
|
<div>
|
|
<div>
|
|
- <h3 style="margin-top:0px;">导师反馈</h3>
|
|
|
|
- <editor :min-height="300" v-model="mentorFeedback"/>
|
|
|
|
|
|
+ <h3>导师反馈</h3>
|
|
|
|
+ <editor :min-height="300" v-model="mentorFeedback" v-if="showSaveButton"/>
|
|
|
|
+ <span
|
|
|
|
+ v-if="!showSaveButton"
|
|
|
|
+ v-html="mentorFeedback"
|
|
|
|
+ style="overflow:scroll; display:block; border:1px solid #CCCCCC; height: 300px; padding:15px;font-family: Helvetica, Arial, sans-serif; font-size: 13px;"
|
|
|
|
+ >
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
<!-- 保存按钮 -->
|
|
<!-- 保存按钮 -->
|
|
<div style="text-align:center;margin: 20px auto;">
|
|
<div style="text-align:center;margin: 20px auto;">
|
|
@@ -346,6 +352,7 @@
|
|
size="medium"
|
|
size="medium"
|
|
type="success"
|
|
type="success"
|
|
@click="handleSave"
|
|
@click="handleSave"
|
|
|
|
+ v-if="showSaveButton"
|
|
>
|
|
>
|
|
保存
|
|
保存
|
|
</el-button>
|
|
</el-button>
|
|
@@ -410,12 +417,15 @@ import { getToken } from "@/utils/auth";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import Editor from '@/components/Editor';
|
|
import Editor from '@/components/Editor';
|
|
|
|
+import { listMentors2 } from "@/api/plant/staffmgr";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "SeasonalFeedback",
|
|
name: "SeasonalFeedback",
|
|
components: { Treeselect, Editor },
|
|
components: { Treeselect, Editor },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 显示保存按钮
|
|
|
|
+ showSaveButton: false,
|
|
// 导师标签
|
|
// 导师标签
|
|
mentorTabs: [],
|
|
mentorTabs: [],
|
|
// 详情对话框表格数据
|
|
// 详情对话框表格数据
|
|
@@ -652,6 +662,25 @@ export default {
|
|
this.initPageData();
|
|
this.initPageData();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ /** 设置最后截止日期 */
|
|
|
|
+ resetLastDay() {
|
|
|
|
+ // 最后截止日期
|
|
|
|
+ let lastDay = new Date(this.meetingDate);
|
|
|
|
+ lastDay.setTime(lastDay.getTime() + 3600 * 1000 * 24 * 7);
|
|
|
|
+ // 当前日期
|
|
|
|
+ let now = new Date();
|
|
|
|
+ if (lastDay > now) {
|
|
|
|
+ // 导师可修改反馈内容
|
|
|
|
+ this.showSaveButton = true;
|
|
|
|
+ // 学员可查看导师反馈内容
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ // 导师不可修改反馈内容
|
|
|
|
+ this.showSaveButton = false;
|
|
|
|
+ // 学员不可查看导师反馈内容
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ },
|
|
/** 标签页切换事件 */
|
|
/** 标签页切换事件 */
|
|
handleTabClick(tab) {
|
|
handleTabClick(tab) {
|
|
// 清空问卷
|
|
// 清空问卷
|
|
@@ -703,6 +732,7 @@ export default {
|
|
if (data[i].questionId == "16") { this.radio13 = data[i].answer; }
|
|
if (data[i].questionId == "16") { this.radio13 = data[i].answer; }
|
|
if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
|
|
if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
|
|
}
|
|
}
|
|
|
|
+ window.scrollTo(0, 0);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -715,12 +745,12 @@ export default {
|
|
this.queryParams.feedbackYearTemp = date.getFullYear().toString();
|
|
this.queryParams.feedbackYearTemp = date.getFullYear().toString();
|
|
this.queryParams.feedbackSeason = ( ( date.getMonth() + 2 ) / 3 ).toString();
|
|
this.queryParams.feedbackSeason = ( ( date.getMonth() + 2 ) / 3 ).toString();
|
|
// ====================获取导师下拉列表====================
|
|
// ====================获取导师下拉列表====================
|
|
- listMentors().then(response => {
|
|
|
|
|
|
+ listMentors2().then(response => {
|
|
let mentorList = response.data;
|
|
let mentorList = response.data;
|
|
for (let i = 0; i < mentorList.length; i++) {
|
|
for (let i = 0; i < mentorList.length; i++) {
|
|
let mentor = {};
|
|
let mentor = {};
|
|
- mentor.key = mentorList[i].mentorStaffId;
|
|
|
|
- mentor.value = mentorList[i].mentorStaffName;
|
|
|
|
|
|
+ mentor.key = mentorList[i].staffid;
|
|
|
|
+ mentor.value = mentorList[i].name;
|
|
this.mentorOptions.push(mentor);
|
|
this.mentorOptions.push(mentor);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -745,6 +775,7 @@ export default {
|
|
this.feedbackId = data.id;
|
|
this.feedbackId = data.id;
|
|
this.parentId = data.id;
|
|
this.parentId = data.id;
|
|
this.meetingDate = data.meetingDate;
|
|
this.meetingDate = data.meetingDate;
|
|
|
|
+ this.resetLastDay();
|
|
this.mentorFeedback = data.mentorFeedback;
|
|
this.mentorFeedback = data.mentorFeedback;
|
|
// 初始化汇报附件
|
|
// 初始化汇报附件
|
|
this.initFileList(data.id);
|
|
this.initFileList(data.id);
|
|
@@ -776,6 +807,7 @@ export default {
|
|
if (data[i].questionId == "16") { this.radio13 = data[i].answer; }
|
|
if (data[i].questionId == "16") { this.radio13 = data[i].answer; }
|
|
if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
|
|
if (data[i].questionId == "17") { this.radio14 = data[i].answer; }
|
|
}
|
|
}
|
|
|
|
+ window.scrollTo(0, 0);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -1139,6 +1171,7 @@ export default {
|
|
this.feedbackId = data.id;
|
|
this.feedbackId = data.id;
|
|
this.parentId = data.id;
|
|
this.parentId = data.id;
|
|
this.meetingDate = data.meetingDate;
|
|
this.meetingDate = data.meetingDate;
|
|
|
|
+ this.resetLastDay();
|
|
this.mentorFeedback = data.mentorFeedback;
|
|
this.mentorFeedback = data.mentorFeedback;
|
|
// 刷新汇报附件
|
|
// 刷新汇报附件
|
|
this.initFileList(data.id);
|
|
this.initFileList(data.id);
|