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