Commit 5222be6c by Cat

zd 教师电子档案

parent 55c32ca8
...@@ -54,6 +54,14 @@ export function getDepInfo(query) { ...@@ -54,6 +54,14 @@ export function getDepInfo(query) {
params: query params: query
}) })
} }
//查看档案详情
export function getFileTnfo(id) {
return request({
url: '/teacherFiles/files/'+id,
method: 'get',
})
}
// 同步档案 // 同步档案
export function syncNotice(id) { export function syncNotice(id) {
return request({ return request({
......
...@@ -231,6 +231,7 @@ ...@@ -231,6 +231,7 @@
type="success" type="success"
size="mini" size="mini"
style="float: right; margin-right: 50px; margin-top: 10px" style="float: right; margin-right: 50px; margin-top: 10px"
@click="handleExtract"
>提 取 >提 取
</el-button> </el-button>
</div> </div>
...@@ -333,7 +334,8 @@ ...@@ -333,7 +334,8 @@
<script> <script>
import { import {
getteacherNotice, // 通知下档案查看|数据维护 getteacherNotice, // 通知下档案查看|数据维护
getNoticeInfo, //查看档案详情//查看档案详情 getNoticeInfo, //查看档案详情
getFileTnfo, //查看档案详情
getDepInfo, //级部查询列表 getDepInfo, //级部查询列表
syncNotice, // 同步档案 syncNotice, // 同步档案
} from "@/api/smartSchool/teacherFiles/teacherElectronicFile"; } from "@/api/smartSchool/teacherFiles/teacherElectronicFile";
...@@ -350,6 +352,7 @@ export default { ...@@ -350,6 +352,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
courseName: "", courseName: "",
filesSemester: "",
gradeName: "", gradeName: "",
teacherName: "", teacherName: "",
}, },
...@@ -388,24 +391,21 @@ export default { ...@@ -388,24 +391,21 @@ export default {
}; };
}, },
mounted() { mounted() {
console.log("id", this.$route.query.noticeId); // console.log("id", this.$route.query.noticeId);
console.log("status", this.$route.query.noticeState); // console.log("status", this.$route.query.noticeState);
this.getList(); this.getList();
}, },
methods: { methods: {
/** 查询信息列表 */ /** 查询信息列表 */
getList() { getList() {
// this.loading = true;
const params = { const params = {
pageNum: this.queryForm.pageNum,
pageSize: this.queryForm.pageSize,
noticeId: this.$route.query.noticeId, noticeId: this.$route.query.noticeId,
pageNum: this.$route.query.pageNum,
pageSize: this.$route.query.pageSize,
}; };
getteacherNotice(params).then((res) => { getteacherNotice(params).then((res) => {
this.tableData = res.rows; this.tableData = res.rows;
this.total = res.total; this.total = res.total;
console.log(this.total, "total");
console.log(res, "getList");
}); });
}, },
// 搜索按钮 // 搜索按钮
...@@ -426,23 +426,23 @@ export default { ...@@ -426,23 +426,23 @@ export default {
}, },
//查看按钮 //查看按钮
handleCheck(row) { handleCheck(row) {
const params = { const id = row.id;
pageNum: this.queryForm.pageNum, getFileTnfo(id).then((res) => {
pageSize: this.queryForm.pageSize, this.dialogForm = res.rows;
teacherId: row.teacherId, // this.tableFirstData = res.rows;
// noticeId: row.noticeId, // this.tableSecondData = res.rows;
}; // this.tableThirdData = res.rows;
getNoticeInfo(params).then((res) => { // this.tableForthData = res.rows;
// this.dialogForm = res.rows;
this.dialogForm = res.rows[0];
console.log(this.dialogForm, "弹窗数据");
// console.log(res, "res");
this.check = true; this.check = true;
this.title = "基本信息查看"; this.title = "基本信息查看";
this.dialogVisible = true; this.dialogVisible = true;
}); });
}, },
// 提取
handleExtract() {
// syncNotice().then(() => {});
},
//修改按钮 //修改按钮
handleEdit(row) { handleEdit(row) {
this.check = false; this.check = false;
......
...@@ -426,7 +426,6 @@ export default { ...@@ -426,7 +426,6 @@ export default {
}, },
// 数据维护按钮 // 数据维护按钮
dataMaintenance(row) { dataMaintenance(row) {
console.log("数据维护按钮row", row);
const noticeId = row.id; const noticeId = row.id;
const pageNum = this.queryForm.pageNum; const pageNum = this.queryForm.pageNum;
const pageSize = this.queryForm.pageSize; const pageSize = this.queryForm.pageSize;
......
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