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
5a8a6516
Commit
5a8a6516
authored
Sep 26, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班级管理老师编辑默认选项
parent
fd41a59d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
dialog.vue
src/components/class/dialog.vue
+13
-3
index.vue
src/components/class/index.vue
+1
-0
index.vue
src/components/refund/index.vue
+5
-9
No files found.
src/components/class/dialog.vue
View file @
5a8a6516
...
...
@@ -69,7 +69,16 @@
this
.
exitTeacherList
=
this
.
dialogObj
.
teacherList
.
length
>
0
?
this
.
dialogObj
.
teacherList
:
[];
getTeacherListApi
().
then
(
res
=>
{
if
(
this
.
exitTeacherList
.
length
>
0
)
{
this
.
teacherList
=
this
.
findDifferentArray
(
res
.
list
,
this
.
exitTeacherList
)
this
.
teacherList
=
this
.
findDifferentArray
(
res
.
list
,
this
.
exitTeacherList
);
if
(
this
.
form
.
teacher_id
){
let
_index
=
this
.
teacherList
.
findIndex
((
ts
)
=>
{
return
ts
.
id
==
this
.
form
.
teacher_id
})
if
(
_index
===
-
1
)
{
let
obj
=
res
.
list
.
find
((
item
)
=>
{
return
item
.
id
==
this
.
form
.
teacher_id
})
this
.
teacherList
.
push
(
obj
)
}
}
}
else
{
this
.
teacherList
=
res
.
list
}
...
...
@@ -90,7 +99,6 @@
},
initPage
(){
this
.
periods
=
this
.
dialogObj
.
periods
this
.
getTeacher
();
switch
(
this
.
dialogObj
.
type
)
{
case
0
:
if
(
!
this
.
dialogObj
.
periodsId
){
...
...
@@ -100,13 +108,15 @@
teacher_id
:
''
,
max_join_num
:
''
};
this
.
getTeacher
();
break
;
case
1
:
getClassDetailApi
(
this
.
dialogObj
.
id
).
then
(
res
=>
{
this
.
form
=
{
teacher_id
:
res
.
teacher_id
,
teacher_id
:
parseInt
(
res
.
teacher_id
)
,
max_join_num
:
res
.
max_join_num
};
this
.
getTeacher
();
})
}
},
...
...
src/components/class/index.vue
View file @
5a8a6516
...
...
@@ -259,6 +259,7 @@
});
},
onAdd
(){
console
.
log
(
'onAdd'
,
this
.
periods
)
this
.
dialogObj
=
{
show
:
true
,
title
:
'添加班级'
,
...
...
src/components/refund/index.vue
View file @
5a8a6516
...
...
@@ -22,14 +22,14 @@
<el-table
:data=
"list"
style=
"width: 100%"
>
<el-table-column
prop=
"out_trade_no"
label=
"订单号"
>
</el-table-column>
<el-table-column
prop=
"refund_no"
label=
"退款编号"
>
</el-table-column>
<el-table-column
prop=
"out_trade_no"
label=
"订单号"
>
</el-table-column>
<el-table-column
label=
"用户信息"
min-width=
"140"
...
...
@@ -56,11 +56,7 @@
</el-table-column>
<el-table-column
prop=
"desc"
label=
"退款原因"
>
</el-table-column>
<el-table-column
prop=
"callback"
label=
"微信回调"
>
label=
"备注"
>
</el-table-column>
<el-table-column
label=
"退款状态"
>
...
...
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