Commit c2ee14f3 by Cat

zd 教师电子档案

parent b17d2ea4
...@@ -8,7 +8,19 @@ ...@@ -8,7 +8,19 @@
class="demo-form-inline" class="demo-form-inline"
> >
<el-form-item label="姓名"> <el-form-item label="姓名">
<el-input v-model="form.name"></el-input> <el-input v-model="queryForm.name"></el-input>
</el-form-item>
<el-form-item label="任务名称">
<el-select clearable v-model="queryForm.noticeName" style="width: 100%">
<el-option
v-for="item in listTeacherInfo"
:key="item.id"
:label="item.noticeName"
:value="item.id"
>
{{ item.noticeName }}
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
...@@ -58,6 +70,12 @@ ...@@ -58,6 +70,12 @@
min-width="200" min-width="200"
/> />
<el-table-column <el-table-column
label="任务名称"
align="center"
prop="noticeName"
min-width="150"
/>
<el-table-column
label="学年学期" label="学年学期"
align="center" align="center"
prop="level" prop="level"
...@@ -405,6 +423,7 @@ export default { ...@@ -405,6 +423,7 @@ export default {
name: "gradeElectronicRecord", name: "gradeElectronicRecord",
data() { data() {
return { return {
listTeacherInfo: [],
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 总条数 // 总条数
...@@ -412,9 +431,8 @@ export default { ...@@ -412,9 +431,8 @@ export default {
queryForm: { queryForm: {
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
level: "", noticeName: "",
name: "", name: "",
region: "",
}, },
tableData: [], tableData: [],
dialogVisible: false, dialogVisible: false,
...@@ -442,20 +460,34 @@ export default { ...@@ -442,20 +460,34 @@ export default {
// console.log("id", this.$route.query.id); // console.log("id", this.$route.query.id);
// console.log("status", this.status); // console.log("status", this.status);
this.getList(); this.getList();
this.getListInfo();
}, },
methods: { methods: {
// 任务下拉框
getListInfo() {
const params = {
pageNum: this.queryForm.pageNum,
pageSize: this.queryForm.pageSize,
noticeId: 2,
};
listTeacherNotice(params).then((res) => {
console.log(res, "列表");
this.listTeacherInfo = res.rows;
console.log(this.listTeacherInfo, "this.listTeacherInfo");
});
},
/** 查询信息列表 */ /** 查询信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
const params = { const params = {
pageNum: this.queryForm.pageNum, pageNum: this.queryForm.pageNum,
pageSize: this.queryForm.pageSize, pageSize: this.queryForm.pageSize,
// gradeId: this.$store.state.user, gradeTeacherId: this.$store.state.user.userId,
// noticeId: this.$store.state.user.noticeId, noticeId: 2,
noticeName: this.queryForm.noticeName,
name: this.queryForm.name,
}; };
const gradeId = this.$store.state.user;
console.log(gradeId, "gradeId");
getNoticeInfo(params).then((res) => { getNoticeInfo(params).then((res) => {
console.log(params, "params"); console.log(params, "params");
console.log(res, "查询res"); console.log(res, "查询res");
...@@ -463,7 +495,7 @@ export default { ...@@ -463,7 +495,7 @@ export default {
}, },
// 搜索按钮 // 搜索按钮
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryForm.pageNum = 1;
this.getList(); this.getList();
}, },
// 重置按钮 // 重置按钮
......
...@@ -405,6 +405,7 @@ export default { ...@@ -405,6 +405,7 @@ export default {
classes: this.form.classes, classes: this.form.classes,
orgPosition: this.form.orgPosition, orgPosition: this.form.orgPosition,
phone: this.form.phone, phone: this.form.phone,
orgName: this.form.orgName,
}; };
editMemberInfo(paramsedit) editMemberInfo(paramsedit)
.then((response) => { .then((response) => {
......
...@@ -595,12 +595,17 @@ export default { ...@@ -595,12 +595,17 @@ export default {
this.loading = true; this.loading = true;
// const userName = this.$store.state.user; // 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,
noticeName: this.queryForm.noticeName,
};
// const params = { // const params = {
// pageNum: this.queryForm.pageNum, // pageNum: this.queryForm.pageNum,
// pageSize: this.queryForm.pageSize, // pageSize: this.queryForm.pageSize,
// teacherId: this.$store.state.user.userId, // teacherId: this.$store.state.user.userId,
// }; // };
getTeacherTnfo(userId).then((res) => { getTeacherTnfo(params).then((res) => {
this.tableData = res.rows; this.tableData = res.rows;
// console.log(params, "params"); // console.log(params, "params");
console.log(res, "res"); console.log(res, "res");
......
...@@ -568,6 +568,9 @@ export default { ...@@ -568,6 +568,9 @@ export default {
pageNum: this.queryForm.pageNum, pageNum: this.queryForm.pageNum,
pageSize: this.queryForm.pageSize, pageSize: this.queryForm.pageSize,
noticeId: this.$route.query.noticeId, noticeId: this.$route.query.noticeId,
gradeName: this.queryForm.gradeName,
teacherName: this.queryForm.teacherName,
courseName: this.queryForm.courseName,
}; };
getteacherNotice(params).then((res) => { getteacherNotice(params).then((res) => {
this.tableData = res.rows; this.tableData = res.rows;
......
...@@ -219,6 +219,7 @@ ...@@ -219,6 +219,7 @@
/> />
<!--弹窗--> <!--弹窗-->
<el-dialog <el-dialog
v-loading="loading"
:title="title" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="650px width="650px
...@@ -307,7 +308,7 @@ export default { ...@@ -307,7 +308,7 @@ export default {
return { return {
selectedIds: [], selectedIds: [],
// 遮罩层 // 遮罩层
loading: true, loading: false,
// 总条数 // 总条数
total: 0, total: 0,
queryForm: { queryForm: {
...@@ -402,6 +403,7 @@ export default { ...@@ -402,6 +403,7 @@ export default {
}, },
//弹窗确定按钮 //弹窗确定按钮
confirmDialog() { confirmDialog() {
this.loading = true;
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
......
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