Commit 00875952 by zhaopanyu

Merge branch 'master' of 49.232.152.146:qangqi/dd_school

parents 67bf214d 3df60889
......@@ -178,7 +178,7 @@ export function getTeaList(tId) {
//添加老师
export function addTeachaer(ids) {
return request({
url: `/teacherFiles/files/teacherAdd/${ids}` ,
url: '/teacherFiles/files/teacherAdd/' +ids,
method: "get",
});
}
\ No newline at end of file
......@@ -157,7 +157,7 @@
<img
v-for="(item, index) in form.file"
:key="index"
:src="item"
:src="pev + item"
class="avatar"
/>
</div>
......
......@@ -209,34 +209,13 @@ export default {
},
//弹窗确定按钮
// confirmDialog() {
// const params = {
// id: this.dialogTableData.id,
// userId: this.$store.state.user.userId,
// tid: this.dialogTableData.tid,
// gid: this.dialogTableData.gid,
// gruoName: this.dialogTableData.gruoName,
// userName: this.dialogTableData.userName,
// };
// console.log(params, "params");
// // addTeachaer(this.selectedRows).then((res) => {});
// this.dialogVisible = false;
// },
confirmDialog() {
const params = {
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),
};
// const ids = this.selectedRows.map((row) => row.id);
let data = [];
data.push(params);
addTeachaer(data).then((res) => {
console.log(res, "ressss");
const ids = this.selectedRows.map((row) => parseInt(row.id));
// dialogVisible = false
addTeachaer(ids).then((res) => {
this.$message.success("修改成功");
this.dialogVisible = false;
this.getList();
});
},
......@@ -275,13 +254,6 @@ export default {
this.dialogVisible = true;
this.handleSecher();
},
//多选按钮
// handleSelectionChange(selection) {
// this.selectedRows = selection.map((item) => item.id);
// this.single = selection.length !== 1;
// this.multiple = !selection.length;
// },
handleSelectionChange(selection) {
if (selection.length > 0) {
this.selectedRows = selection.map((item) => item.id);
......
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