Commit 0fb89043 by Cat

zd 教师电子档案

parent 28069916
......@@ -75,6 +75,14 @@ export function getteacherNotice(query) {
params: query
})
}
// 级部列表
export function getGradeTnfo(query) {
return request({
url: '/teacherFiles/files/gradeList',
method: 'get',
params: query
})
}
//老师查看详情
export function getNoticeInfo(query) {
return request({
......@@ -85,10 +93,11 @@ export function getNoticeInfo(query) {
}
//老师查看列表
export function getTeacherTnfo(userId) {
export function getTeacherTnfo(query) {
return request({
url: '/teacherFiles/files/getTeachList/'+userId,
url: '/teacherFiles/files/getTeachList',
method: 'get',
params: query
})
}
......@@ -141,14 +150,14 @@ export function fileSubReview(id) {
})
}
// 教师档案提交通过
// 教师档案驳回
export function fileSubApproved(id) {
return request({
url: `/teacherFiles/files/reject/${id}`,
method: 'put'
})
}
// 教师档案提交驳回
// 教师档案提交
export function fileSubRejected(id) {
return request({
url: `/teacherFiles/files/passThrough/${id}`,
......
......@@ -8,7 +8,7 @@
class="demo-form-inline"
>
<el-form-item label="姓名">
<el-input v-model="queryForm.name"></el-input>
<el-input v-model="queryForm.teacherName"></el-input>
</el-form-item>
<el-form-item label="任务名称">
<el-select clearable v-model="queryForm.noticeName" style="width: 100%">
......@@ -40,15 +40,15 @@
<el-row :gutter="10">
<el-col :span="1.5">
<span>总计:</span>
<span style="font-size: 14px">120</span>
<span style="font-size: 14px">{{ this.total }}</span>
</el-col>
<el-col :span="1.5">
<span>已填写:</span>
<span style="font-size: 14px">60</span>
<span style="font-size: 14px">{{ completedCount }}</span>
</el-col>
<el-col :span="1.5">
<span>已确认:</span>
<span style="font-size: 14px">60</span>
<span style="font-size: 14px">{{ confirmedCount }}</span>
</el-col>
</el-row>
</el-form>
......@@ -58,6 +58,7 @@
border
:data="tableData"
@selection-change="handleSelectionChange"
@cell-dblclick="handleCheck"
>
<el-table-column type="selection" width="55" :selectable="selectable">
<template> </template>
......@@ -66,74 +67,87 @@
<el-table-column
label="是否填写"
align="center"
prop="schoolYear"
prop="state"
min-width="200"
/>
<el-table-column
>
<template slot-scope="{ row }">
{{
row.state == 1
? "未发布"
: row.state == 2
? "已发布"
: row.state == 3
? "已填写"
: row.state == 4
? "已提交"
: row.state == 5
? "已确认"
: row.state == 9
? "驳回"
: ""
}}
</template>
</el-table-column>
<!-- <el-table-column
label="任务名称"
align="center"
prop="noticeName"
min-width="150"
/>
/> -->
<el-table-column
label="学年学期"
align="center"
prop="level"
prop="filesSemester"
min-width="150"
/>
<el-table-column
label="级部"
align="center"
min-width="150"
prop="name"
prop="gradeName"
/>
<el-table-column
label="姓名"
align="center"
min-width="200"
prop="IDNum"
/>
<el-table-column
label="年龄"
align="center"
min-width="150"
prop="schedule"
prop="teacherName"
/>
<el-table-column label="年龄" align="center" min-width="150" prop="age" />
<el-table-column
label="职称"
align="center"
min-width="150"
prop="schedule"
prop="title"
/>
<el-table-column
label="学历"
align="center"
min-width="150"
prop="schedule"
prop="education"
/>
<el-table-column
label="政治面貌"
align="center"
min-width="150"
prop="schedule"
prop="appearance"
/>
<el-table-column
label="任教学科"
align="center"
min-width="150"
prop="schedule"
prop="courseName"
/>
<el-table-column
label="任教班级"
align="center"
min-width="150"
prop="schedule"
prop="className"
/>
<el-table-column
label="任正班主任班级"
align="center"
min-width="150"
prop="schedule"
prop="bzrClassName"
/>
<el-table-column
fixed="right"
......@@ -142,23 +156,38 @@
min-width="200"
>
<template slot-scope="scope">
<!--已填写 未确认-->
<!-- 已发布 -->
<div>
<el-button size="mini" type="text" @click="handleSubmit(scope.row)"
<el-button
v-if="scope.row.state <= 3"
size="mini"
type="text"
@click="handleSubmit(scope.row)"
>提交
</el-button>
<el-button size="mini" type="text" @click="handleReject(scope.row)"
<el-button
v-if="scope.row.state <= 3"
size="mini"
type="text"
@click="handleReject(scope.row)"
>驳回
</el-button>
<el-button size="mini" type="text" @click="handleEdit(scope.row)"
<el-button
v-if="scope.row.state <= 3"
size="mini"
type="text"
@click="handleEdit(scope.row)"
>修改
</el-button>
</div>
<!--未填写,无按钮-->
<div></div>
<!--已确认 只查看-->
<!--已提交-->
<div>
<el-button size="mini" type="text" @click="handleCheck(scope.row)"
<!-- v-if="scope.row.state == '5'" -->
<el-button
v-if="scope.row.state >= 3"
size="mini"
type="text"
@click="handleCheck(scope.row)"
>查看
</el-button>
</div>
......@@ -188,84 +217,99 @@
label-width="120px"
>
<el-form-item label="学年学期:" style="padding-right: 10px">
<el-input readonly v-model="dialogForm.name"></el-input>
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.filesSemester"
></el-input>
</el-form-item>
<el-form-item label="级部:" style="padding-right: 10px">
<el-input readonly v-model="dialogForm.name"></el-input>
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.gradeName"
></el-input>
</el-form-item>
<el-form-item label="姓名:" style="padding-right: 10px">
<el-input readonly v-model="dialogForm.name"></el-input>
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.teacherName"
></el-input>
</el-form-item>
<el-form-item label="性别:" style="padding-right: 10px">
<el-input readonly v-model="dialogForm.name"></el-input>
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.sex"
></el-input>
</el-form-item>
<el-form-item label="年龄:" style="padding-right: 10px">
<el-input readonly v-model="dialogForm.name"></el-input>
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.age"
></el-input>
</el-form-item>
<el-form-item label="职称:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.title"
></el-input>
</el-form-item>
<el-form-item label="学历:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.education"
></el-input>
</el-form-item>
<el-form-item label="政治面貌:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.appearance"
></el-input>
</el-form-item>
<el-form-item label="任教学科:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.courseName"
></el-input>
</el-form-item>
<el-form-item label="任教班级:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.className"
></el-input>
</el-form-item>
<el-form-item label="任正班主任班级:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.bzrClassName"
></el-input>
</el-form-item>
<el-form-item label="任副班主任班级:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.fbzrClassName"
></el-input>
</el-form-item>
<el-form-item label="是否教学组长:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.isTeachingGroupLeader"
></el-input>
</el-form-item>
<el-form-item label="是否教研组长:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.isResearchGroupLeader"
></el-input>
</el-form-item>
<el-form-item label="设计课时量:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.classHour"
></el-input>
</el-form-item>
<el-form-item label="班主任情况:" style="padding-right: 10px">
<el-input
:readonly="check == true ? true : false"
v-model="dialogForm.name"
v-model="dialogForm.classTeacherDetails"
></el-input>
</el-form-item>
</el-form>
......@@ -299,6 +343,7 @@
type="success"
size="mini"
style="float: right; margin-right: 50px; margin-top: 10px"
@click="handleExtract"
>提 取
</el-button>
</div>
......@@ -311,13 +356,29 @@
<el-table :data="tableFirstData" border>
<el-table-column align="center" fixed type="index" label="序号">
</el-table-column>
<el-table-column align="center" prop="name" label="论文名称">
<el-table-column
align="center"
prop="thesisList.thesisName"
label="论文名称"
>
</el-table-column>
<el-table-column align="center" prop="province" label="级别">
<el-table-column
align="center"
prop="thesisList.level"
label="级别"
>
</el-table-column>
<el-table-column align="center" prop="city" label="等级">
<el-table-column
align="center"
prop="thesisList.grade"
label="等级"
>
</el-table-column>
<el-table-column align="center" prop="address" label="发表时间">
<el-table-column
align="center"
prop="thesisList.publishTime"
label="发表时间"
>
</el-table-column>
<el-table-column align="center" label="附件">
<template slot-scope="scope">
......@@ -336,9 +397,17 @@
<el-table :data="tableSecondData" border>
<el-table-column align="center" fixed type="index" label="序号">
</el-table-column>
<el-table-column align="center" prop="name" label="名称">
<el-table-column
align="center"
prop="materialList.name"
label="名称"
>
</el-table-column>
<el-table-column align="center" prop="address" label="发表时间">
<el-table-column
align="center"
prop="materialList.publishTime"
label="发表时间"
>
</el-table-column>
<el-table-column align="center" label="附件">
<template slot-scope="scope">
......@@ -350,16 +419,28 @@
<div class="tableThird">
<div class="tableTitle">
<i class="el-icon-data-analysis"></i>
<span style="margin-left: 5px">发表成就奖论文情况</span>
<span style="margin-left: 5px">培训情况</span>
</div>
<el-table :data="tableThirdData" border>
<el-table-column align="center" fixed type="index" label="序号">
</el-table-column>
<el-table-column align="center" prop="name" label="培训时间">
<el-table-column
align="center"
prop="trainingList.trainingTime"
label="培训时间"
>
</el-table-column>
<el-table-column align="center" prop="address" label="培训名称">
<el-table-column
align="center"
prop="trainingList.trainingName"
label="培训名称"
>
</el-table-column>
<el-table-column align="center" prop="address" label="是否合格">
<el-table-column
align="center"
prop="trainingList.isQualified"
label="是否合格"
>
</el-table-column>
<el-table-column align="center" label="附件">
<template slot-scope="scope">
......@@ -371,18 +452,34 @@
<div class="tableForth">
<div class="tableTitle">
<i class="el-icon-trophy"></i>
<span style="margin-left: 5px">发表成就奖论文情况</span>
<span style="margin-left: 5px">业务获奖情况</span>
</div>
<el-table :data="tableForthData" border>
<el-table-column align="center" fixed type="index" label="序号">
</el-table-column>
<el-table-column align="center" prop="name" label="获奖名称">
<el-table-column
align="center"
prop="awardList.awardName"
label="获奖名称"
>
</el-table-column>
<el-table-column align="center" prop="address" label="获奖时间">
<el-table-column
align="center"
prop="awardList.awardTime"
label="获奖时间"
>
</el-table-column>
<el-table-column align="center" prop="address" label="获奖等级">
<el-table-column
align="center"
prop="awardList.gradeOfAward"
label="获奖等级"
>
</el-table-column>
<el-table-column align="center" prop="address" label="发证机关">
<el-table-column
align="center"
prop="awardList.licenseIssuingAuthority"
label="发证机关"
>
</el-table-column>
<el-table-column align="center" label="附件">
<template slot-scope="scope">
......@@ -418,11 +515,14 @@ import {
fileSubReview, //教师档案提交审核
fileSubApproved, //教师档案提交通过
fileSubRejected, //教师档案提交驳回
getGradeTnfo, //级部列表查询
} from "@/api/smartSchool/teacherFiles/teacherElectronicFile";
export default {
name: "gradeElectronicRecord",
data() {
return {
completedCount: "", //填写
confirmedCount: "", //确认
listTeacherInfo: [],
// 遮罩层
loading: true,
......@@ -432,7 +532,7 @@ export default {
pageSize: 10,
pageNum: 1,
noticeName: "",
name: "",
teacherName: "",
},
tableData: [],
dialogVisible: false,
......@@ -457,8 +557,6 @@ export default {
};
},
mounted() {
// console.log("id", this.$route.query.id);
// console.log("status", this.status);
this.getList();
this.getListInfo();
},
......@@ -468,31 +566,44 @@ export default {
const params = {
pageNum: this.queryForm.pageNum,
pageSize: this.queryForm.pageSize,
noticeId: 2,
noticeState: 2,
};
listTeacherNotice(params).then((res) => {
console.log(res, "列表");
this.listTeacherInfo = res.rows;
console.log(this.listTeacherInfo, "this.listTeacherInfo");
const codePromise = new Promise((resolve) => {
listTeacherNotice(params).then((res) => {
this.listTeacherInfo = res.rows;
resolve();
});
});
return codePromise;
},
/** 查询信息列表 */
getList() {
async getList() {
this.loading = true;
await this.getListInfo();
const params = {
pageNum: this.queryForm.pageNum,
pageSize: this.queryForm.pageSize,
gradeTeacherId: this.$store.state.user.userId,
noticeId: 2,
noticeId: this.queryForm.noticeName,
noticeName: this.queryForm.noticeName,
name: this.queryForm.name,
teacherName: this.queryForm.teacherName,
};
getNoticeInfo(params).then((res) => {
console.log(params, "params");
console.log(res, "查询res");
getGradeTnfo(params).then((res) => {
this.tableData = res.rows;
this.total = res.total;
this.completedCount = res.rows.filter(
(item) => item.state === 3
).length;
this.confirmedCount = res.rows.filter(
(item) => item.state === 5
).length;
// console.log(this.completedCount, "this.completedCount");
// console.log(this.confirmedCount, "this.confirmedCount");
});
},
// 搜索按钮
handleQuery() {
this.queryForm.pageNum = 1;
......@@ -503,45 +614,123 @@ export default {
this.queryForm = {
pageNum: 1,
pageSize: 10,
level: "",
noticeName: "",
name: "",
region: "",
};
this.handleQuery();
},
//多选
handleSelectionChange(row) {
console.log("row", row);
this.ids = row.map((item) => item.id);
console.log("this.ids", this.ids);
},
//是否可勾选
selectable(row, index) {
if (row.schoolYear == "已填写,未确认") {
if (row.state !== "5") {
return true;
}
},
//多选提交
handleMutiSubmit() {},
handleMutiSubmit(row) {
const ids = row.id || this.ids;
this.$modal
.confirm("是否提交该活动?")
.then(function () {
return fileSubApproved(ids);
console.log(row, "提交按钮");
})
.then(() => {
this.getList();
this.$modal.msgSuccess("任务已提交");
})
.catch((err) => {
console.error(err);
});
},
//查看按钮
handleCheck(row) {
handleCheck(row, column, event) {
this.check = true;
this.title = "基本信息查看";
this.dialogVisible = true;
this.dialogForm = { ...row }; //Vue深拷贝
},
//修改按钮
handleEdit(row) {
this.check = false;
this.title = "基本信息修改";
this.dialogVisible = true;
// this.dialogForm = row;
this.dialogForm = JSON.parse(JSON.stringify(row));
},
//提交按钮
handleSubmit(row) {},
handleSubmit(row) {
const ids = row.id || this.ids;
this.$modal
.confirm("是否提交该活动?")
.then(function () {
return fileSubRejected(ids);
console.log(row, "提交按钮");
})
.then(() => {
this.getList();
this.$modal.msgSuccess("任务已提交");
})
.catch((err) => {
console.error(err);
});
},
//驳回按钮
handleReject(row) {},
handleReject(row) {
const ids = row.id || this.ids;
this.$modal
.confirm("是否提交该活动?")
.then(function () {
return fileSubApproved(ids);
console.log(row, "提交按钮");
})
.then(() => {
this.getList();
this.$modal.msgSuccess("任务已提交");
})
.catch((err) => {
console.error(err);
});
},
// 提取 `
handleExtract() {
const id = this.form.id;
syncNotice(id).then((res) => {
this.tableFirstData = res;
this.tableSecondData = res;
this.tableThirdData = res;
this.tableForthData = res;
});
},
//弹窗确定按钮
confirmDialog() {
this.dialogVisible = false;
const params = {
id: this.dialogForm.id,
sex: this.dialogForm.sex,
age: this.dialogForm.age,
title: this.dialogForm.title,
education: this.dialogForm.education,
appearance: this.dialogForm.appearance,
courseName: this.dialogForm.courseName,
className: this.dialogForm.className,
bzrClassName: this.dialogForm.bzrClassName,
fbzrClassName: this.dialogForm.fbzrClassName,
isTeachingGroupLeader: this.dialogForm.isTeachingGroupLeader,
isResearchGroupLeader: this.dialogForm.isResearchGroupLeader,
classHour: this.dialogForm.classHour,
classTeacherDetails: this.dialogForm.classTeacherDetails,
state: this.dialogForm.state,
};
updateInfo(params).then((res) => {
this.form = res;
this.getList();
});
},
},
};
......
......@@ -254,6 +254,7 @@ export default {
},
// 同意
handleAgree(row) {
console.log(row, "同意row");
this.$confirm("确定同意吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......
......@@ -594,7 +594,7 @@ export default {
getList() {
this.loading = true;
// const userName = this.$store.state.user;
const userId = this.$store.state.user.userId;
// const userId = this.$store.state.user.userId;
// queryForm.noticeName
const params = {
userId: this.$store.state.user.userId,
......@@ -607,9 +607,9 @@ export default {
// };
getTeacherTnfo(params).then((res) => {
this.tableData = res.rows;
// console.log(params, "params");
console.log(params, "params");
console.log(res, "res");
// this.total = res.total;
this.total = res.total;
});
},
// 提取 `
......
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