Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
a3f04251
Commit
a3f04251
authored
Dec 25, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云集添加备注,扫码备注
parent
d2998d1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
userList.vue
src/components/class/userList.vue
+18
-16
No files found.
src/components/class/userList.vue
View file @
a3f04251
...
...
@@ -579,25 +579,22 @@
this
.
changeClassObj
.
periods_list
=
res
.
list
}
);
this
.
changeClassObj
.
show
=
true
;
this
.
defaultClass
();
}
}
,
defaultClass
(){
// console.log(this.userObj.periods_id,this.userObj.classId)
// // this.goods_id =this.userObj.periods_id;
// this.changeClassObj.selectedGoods = [parseInt(this.userObj.periods_id),parseInt(this.userObj.classId)];
// console.log(this.changeClassObj.selectedGoods[0])
// getClassListApi(
{
goods_id
:
this
.
changeClassObj
.
selectedGoods
[
0
]
}
).
then
(
res
=>
{
// res.list.forEach(i=>
{
i
.
name
=
i
.
title
}
);
// res.list.forEach(i=>
{
// i.title = i.class_name
//
}
);
// console.log(res.list)
// // console.log( this.changeClassObj.periods_list)
// // this.changeClassObj.periods_list.find(i=>
{
return
i
.
id
===
this
.
changeClassObj
.
selectedGoods
[
0
]
}
).
children
=
res
.
list
// // let nowGoods = this.changeClassObj.periods_list.find(i=>
{
return
i
.
id
===
this
.
changeClassObj
.
selectedGoods
[
0
]
}
);
// // this.periods = nowGoods.children.find(i=>
{
return
i
.
id
===
this
.
changeClassObj
.
selectedGoods
[
1
]
}
);
//
}
)
this
.
changeClassObj
.
selectedGoods
=
[
parseInt
(
this
.
userObj
.
periods_id
),
parseInt
(
this
.
userObj
.
classId
)];
console
.
log
(
this
.
changeClassObj
.
selectedGoods
[
0
])
getClassListApi
(
this
.
changeClassObj
.
selectedGoods
[
0
]).
then
(
res
=>
{
res
.
list
.
forEach
(
i
=>
{
i
.
name
=
i
.
title
}
);
res
.
list
.
forEach
(
i
=>
{
i
.
title
=
i
.
class_name
}
);
this
.
changeClassObj
.
periods_list
.
find
(
i
=>
{
return
i
.
id
===
this
.
changeClassObj
.
selectedGoods
[
0
]
}
).
children
=
res
.
list
let
nowGoods
=
this
.
changeClassObj
.
periods_list
.
find
(
i
=>
{
return
i
.
id
===
this
.
changeClassObj
.
selectedGoods
[
0
]
}
);
this
.
periods
=
nowGoods
.
children
.
find
(
i
=>
{
return
i
.
id
===
this
.
changeClassObj
.
selectedGoods
[
1
]
}
);
this
.
changeClassObj
.
new_class_id
=
this
.
userObj
.
classId
;
this
.
changeClassObj
.
new_periods_id
=
this
.
userObj
.
periods_id
;
}
)
}
,
handleSelectionChange123
(
a
){
...
...
@@ -942,6 +939,11 @@
watch
:{
'userObj'
(){
this
.
initPage
()
}
,
"changeClassObj.show"
(
val
){
if
(
val
){
this
.
defaultClass
()
}
}
}
}
...
...
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