Commit c9d607c2 by Cat

zd 社团 教师电子档案

parent 0ef44e50
......@@ -93,11 +93,12 @@ export function getNoticeInfo(query) {
}
//老师查看列表
export function getTeacherTnfo(query) {
export function getTeacherTnfo(userId,query) {
return request({
url: '/teacherFiles/files/getTeachList',
url: `/teacherFiles/files/getTeachList/${userId}`,
// url: `/teacherFiles/files/getTeachList/${userId}`,
method: 'get',
params: query
params:query
})
}
......
......@@ -64,7 +64,6 @@
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="序号" align="center" prop="id" width="80" /> -->
<el-table-column label="序号" align="center" type="index" width="80" />
<el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="性别" align="center" prop="sex">
......@@ -173,60 +172,6 @@
@getStudentList="getStudentList"
@setStudentInfo="setStudentInfo"
></StudentInfoSelect>
<!-- 学生选择
<el-dialog title="学生选择" :visible="dialogVisible" width="45%">
<el-form ref="formStu" :model="formStu" :rules="rules" label-width="68px">
<el-row>
<el-col :span="12">
<el-form-item label="姓名:" prop="name">
<el-input v-model="formStu.name" placeholder="请选择学生姓名" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>
搜索
</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">
重置
</el-button>
</el-form-item>
</el-col>
</el-row>
<el-table
ref="tableStu"
:data="atuList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="35" align="center" />
<el-table-column
label="序号"
align="center"
type="index"
width="80"
/>
<el-table-column label="姓名" align="center" prop="name" />
<el-table-column label="性别" align="center" prop="name" />
<el-table-column label="级部" align="center" prop="name" />
<el-table-column label="班级" align="center" prop="name" />
<el-table-column label="身份证号" align="center" prop="name" />
</el-table>
</el-form>
<div slot="footer" class="dialog-footer" center>
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog> -->
</div>
</template>
......@@ -319,6 +264,8 @@ export default {
},
/** 设置学生信息 */
setStudentInfo(item) {
this.form.ids = item.id;
console.log(this.form.ids, "this.form.ids11111");
console.log(item, "item");
this.$set(this.form, "name", item.studentName);
this.$set(this.form, "sex", item.sex);
......@@ -397,7 +344,7 @@ export default {
if (this.form.id != null) {
// 修改
const paramsedit = {
id: this.form.id,
id: this.form.ids,
name: this.form.name,
sex: this.form.sex,
cardid: this.form.cardid,
......@@ -418,7 +365,7 @@ export default {
} else {
// 新增
// 获取当前登录人userId
const userName = this.$store.state.user.userId;
// const userName = this.$store.state.user.userId;
const params = {
cid: this.$route.query.id,
orgName: this.form.orgName,
......@@ -429,7 +376,7 @@ export default {
classes: this.form.classes,
orgPosition: this.form.orgPosition,
phone: this.form.phone,
userId: userName,
userId: this.form.ids,
};
addMemberInfo(params)
.then((response) => {
......
......@@ -593,11 +593,11 @@ export default {
/** 查询信息列表 */
getList() {
this.loading = true;
// const userName = this.$store.state.user;
// const userId = this.$store.state.user.userId;
// const noticeName = this.queryForm.noticeName;
const userId = this.$store.state.user.userId;
// queryForm.noticeName
const params = {
userId: this.$store.state.user.userId,
// userId: this.$store.state.user.userId,
noticeName: this.queryForm.noticeName,
};
// const params = {
......@@ -605,20 +605,11 @@ export default {
// pageSize: this.queryForm.pageSize,
// teacherId: this.$store.state.user.userId,
// };
getTeacherTnfo(params).then((res) => {
getTeacherTnfo(userId, params).then((res) => {
this.tableData = res.rows;
console.log(params, "params");
console.log(res, "res");
this.total = res.total;
// =======
// const userId = this.$store.state.user.userId;
// const noticeName = this.queryForm.noticeName;
// console.log(userId, 'userId');
// console.log(noticeName, 'noticeName');
// getTeacherTnfo(userId, noticeName).then((res) => {
// this.tableData = res.rows;
// console.log(res, "res");
// >>>>>>> 026f530da388d11c389acb34cb726a7be3a375cf
});
},
......
......@@ -610,11 +610,26 @@ export default {
syncNotice(id).then((res) => {
console.log(id, "id");
console.log("res提取", res);
this.tableFirstData = res;
this.tableSecondData = res;
this.tableThirdData = res;
this.tableForthData = res;
this.$modal.msgSuccess("提取成功");
// this.tableFirstData = res;
// this.tableSecondData = res;
// this.tableThirdData = res;
// this.tableForthData = res;
});
// const id = this.form.id;
// this.$modal
// .confirm("是否提取信息?")
// .then(function () {
// return syncNotice(id);
// })
// .then(() => {
// this.$modal.msgSuccess("提取成功");
// this.tableFirstData = res;
// this.tableSecondData = res;
// this.tableThirdData = res;
// this.tableForthData = res;
// })
// .catch(() => {});
},
//修改按钮
handleEdit(row) {
......
......@@ -225,26 +225,17 @@ export default {
confirmDialog() {
const params = {
ids: this.selectedRows.map((row) => row.id),
// userId: this.selectedRows.map((row) => row.userId),
// tid: this.selectedRows.map((row) => row.tid),
// gid: this.selectedRows.map((row) => row.gid),
// gruoName: this.selectedRows.map((row) => row.gruoName),
// userName: this.selectedRows.map((row) => row.userName),
ids: this.selectedRows.map((row) => row.id), //查看数据的id
userId: this.selectedRows.map((row) => row.userId),
tid: this.selectedRows.map((row) => row.tid),
gid: this.selectedRows.map((row) => row.gid),
gruoName: this.selectedRows.map((row) => row.gruoName),
userName: this.selectedRows.map((row) => row.userName),
};
// this.$refs["tab"].validate((valid) => {
// if (valid) {
// addTeachaer(params)
// .then((response) => {
// this.getList();
// this.$message.success("新增成功");
// this.tableadd = false;
// })
// .catch((err) => {});
// }
// });
// const ids = this.selectedRows.map((row) => row.id);
addTeachaer(params).then((res) => {
let data = [];
data.push(params);
addTeachaer(data).then((res) => {
console.log(res, "ressss");
});
},
......
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