Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
3df60889
Commit
3df60889
authored
Nov 03, 2023
by
Cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zd 教师电子档案
parent
264ec640
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
35 deletions
+8
-35
ruoyi-ui/src/api/smartSchool/teacherFiles/teacherElectronicFile.js
+2
-1
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/electronicRecord/dataReceiver.vue
+6
-34
No files found.
ruoyi-ui/src/api/smartSchool/teacherFiles/teacherElectronicFile.js
View file @
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
ruoyi-ui/src/views/smartSchool/teachAffairAdministration/electronicRecord/dataReceiver.vue
View file @
3df60889
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment