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
12835f40
Commit
12835f40
authored
Sep 20, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
期数课程bug
parent
e87874e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
userList.vue
src/components/class/userList.vue
+1
-1
dialog.vue
src/components/lesson/dialog.vue
+4
-3
No files found.
src/components/class/userList.vue
View file @
12835f40
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
v-if=
"!$store.state.readonly"
width=
"300"
>
<el-table-column
label=
"操作"
v-if=
"!$store.state.readonly"
width=
"300"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"warning"
size=
"mini"
@
click=
"editComment(scope.row.
user_
id, scope.row.desc)"
v-if=
"!$store.state.readonly"
>
编辑备注
</el-button>
<el-button
type=
"warning"
size=
"mini"
@
click=
"editComment(scope.row.id, scope.row.desc)"
v-if=
"!$store.state.readonly"
>
编辑备注
</el-button>
<el-button
type=
"warning"
size=
"mini"
@
click=
"changeUser(scope.row)"
v-if=
"!$store.state.readonly"
>
更改看课权限
</el-button>
<el-button
type=
"warning"
size=
"mini"
@
click=
"changeUser(scope.row)"
v-if=
"!$store.state.readonly"
>
更改看课权限
</el-button>
<el-button
type=
"danger"
size=
"mini"
@
click=
"onDel(scope.row)"
v-if=
"$store.state.deletePermission && !$store.state.readonly"
>
删除
</el-button>
<el-button
type=
"danger"
size=
"mini"
@
click=
"onDel(scope.row)"
v-if=
"$store.state.deletePermission && !$store.state.readonly"
>
删除
</el-button>
</
template
>
</
template
>
...
...
src/components/lesson/dialog.vue
View file @
12835f40
...
@@ -227,7 +227,6 @@
...
@@ -227,7 +227,6 @@
// });
// });
break
;
break
;
case
0
:
case
0
:
console
.
log
(
this
.
form
);
// this.$refs['form'].validate((valid) => {
// this.$refs['form'].validate((valid) => {
// if(valid){
// if(valid){
addLessonApi
(
json
).
then
(
res
=>
{
addLessonApi
(
json
).
then
(
res
=>
{
...
@@ -288,7 +287,10 @@
...
@@ -288,7 +287,10 @@
});
});
}
else
if
(
resL
.
type
===
1
){
}
else
if
(
resL
.
type
===
1
){
resL
.
detail
[
'1'
].
forEach
(
t
=>
{
resL
.
detail
[
'1'
].
forEach
(
t
=>
{
let
x
=
this
.
showLessonList
.
find
(
i
=>
{
return
i
.
children
.
find
(
j
=>
{
return
j
.
id
===
t
.
pid
})})
let
x
=
this
.
showLessonList
.
find
(
i
=>
{
i
.
children
=
i
.
children
||
[];
return
i
.
children
.
find
(
j
=>
{
return
j
.
id
===
t
.
pid
})
})
this
.
selectLesson
([
x
.
id
,
t
.
pid
,
t
.
id
])
this
.
selectLesson
([
x
.
id
,
t
.
pid
,
t
.
id
])
})
})
}
}
...
@@ -342,7 +344,6 @@
...
@@ -342,7 +344,6 @@
this
.
selectedBoxList
.
splice
(
second
,
1
,
oFirst
);
this
.
selectedBoxList
.
splice
(
second
,
1
,
oFirst
);
},
},
moveItem
(
first
,
second
){
moveItem
(
first
,
second
){
console
.
log
(
'moveItem'
,
first
,
second
);
let
list
=
this
.
selectedLessonList
;
let
list
=
this
.
selectedLessonList
;
let
oFirst
=
list
[
first
];
let
oFirst
=
list
[
first
];
let
oSecond
=
list
[
second
];
let
oSecond
=
list
[
second
];
...
...
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