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
e2e8dbdd
Commit
e2e8dbdd
authored
Sep 11, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of git.singsingenglish.com:new-sing/admin into dev
parents
e2e5c6d3
728de33c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
508 additions
and
2 deletions
+508
-2
index.vue
src/components/growthRecord/index.vue
+419
-0
index.vue
src/components/userDetail/index.vue
+72
-2
api.js
src/service/api.js
+6
-0
menuList.js
src/util/menuList.js
+11
-0
No files found.
src/components/growthRecord/index.vue
0 → 100644
View file @
e2e8dbdd
This diff is collapsed.
Click to expand it.
src/components/userDetail/index.vue
View file @
e2e8dbdd
...
@@ -359,6 +359,54 @@
...
@@ -359,6 +359,54 @@
</el-table-column> -->
</el-table-column> -->
</el-table>
</el-table>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"成长记录"
name=
"growthRecord"
>
<el-table
:data=
"growthRecordList"
>
<el-table-column
prop=
"element_title"
width=
"200"
label=
"歌曲名"
>
</el-table-column>
<el-table-column
prop=
"category_name"
width=
"200"
label=
"课程"
>
</el-table-column>
<el-table-column
prop=
"interest"
width=
"100"
label=
"兴趣度"
>
</el-table-column>
<el-table-column
prop=
"concent"
width=
"100"
label=
"专注度"
>
</el-table-column>
<el-table-column
prop=
"parent_child"
width=
"100"
label=
"亲子互动"
>
</el-table-column>
<el-table-column
prop=
"growth_record"
label=
"成长记录"
>
<
template
slot-scope=
"scope"
>
<el-popover
placement=
"top-start"
width=
"200"
trigger=
"hover"
:content=
"scope.row.growth_record"
>
<el-button
slot=
"reference"
>
{{
scope
.
row
.
growth_record
}}
</el-button>
</el-popover>
</
template
>
</el-table-column>
<el-table-column
prop=
"created_at"
width=
"200"
label=
"提交时间"
>
</el-table-column>
</el-table>
<page
:total=
"total"
:limit=
"limit"
@
pageChange=
"onRecordPageChange"
@
sizeChange=
"onRecordSizeChange"
/>
</el-tab-pane>
</el-tabs>
</el-tabs>
<teacher-dialog
:dialogObj=
"dialogObj"
@
reflash=
"getDetail"
></teacher-dialog>
<teacher-dialog
:dialogObj=
"dialogObj"
@
reflash=
"getDetail"
></teacher-dialog>
<user-list
:userObj=
"userObj"
/>
<user-list
:userObj=
"userObj"
/>
...
@@ -515,7 +563,8 @@
...
@@ -515,7 +563,8 @@
getyunjiApi
,
getyunjiApi
,
fetchAddressListApi
,
fetchAddressListApi
,
getSubAccountInfoApi
,
getSubAccountInfoApi
,
getUserSubAccountListApi
getUserSubAccountListApi
,
getGrowthRecordApi
}
from
"../../service/api"
;
}
from
"../../service/api"
;
import
page
from
'../framework/page'
import
page
from
'../framework/page'
import
sourceDialog
from
'../order/sourceDialog'
import
sourceDialog
from
'../order/sourceDialog'
...
@@ -644,7 +693,8 @@
...
@@ -644,7 +693,8 @@
}
}
],
],
sourceByDateDialogJson
:
{
}
,
sourceByDateDialogJson
:
{
}
,
deliverRecordList
:
[]
deliverRecordList
:
[],
growthRecordList
:[]
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -675,6 +725,10 @@
...
@@ -675,6 +725,10 @@
if
(
value
===
'deliverRecord'
)
{
if
(
value
===
'deliverRecord'
)
{
this
.
getDeliverRecordList
()
this
.
getDeliverRecordList
()
}
}
if
(
value
===
'growthRecord'
)
{
this
.
getGrowthRecordList
()
}
}
}
}
,
}
,
...
@@ -713,6 +767,13 @@
...
@@ -713,6 +767,13 @@
console
.
log
(
this
.
deliverRecordList
)
console
.
log
(
this
.
deliverRecordList
)
}
)
}
)
}
,
}
,
getGrowthRecordList
()
{
getGrowthRecordApi
({
user_id
:
this
.
id
,
page
:
this
.
recordPage
,
limit
:
this
.
limit
}
).
then
(
res
=>
{
this
.
growthRecordList
=
res
.
list
this
.
total
=
res
.
total
console
.
log
(
this
.
growthRecordList
)
}
)
}
,
onUpdateAddress
()
{
onUpdateAddress
()
{
this
.
dialogObj
.
show
=
false
;
this
.
dialogObj
.
show
=
false
;
this
.
getAddressList
();
this
.
getAddressList
();
...
@@ -857,6 +918,15 @@
...
@@ -857,6 +918,15 @@
this
.
limit
=
val
;
this
.
limit
=
val
;
this
.
getUser
();
this
.
getUser
();
}
,
}
,
onRecordPageChange
(
val
)
{
this
.
recordPage
=
val
;
this
.
getGrowthRecordList
();
}
,
onRecordSizeChange
(
val
)
{
this
.
recordPage
=
1
;
this
.
limit
=
val
;
this
.
getGrowthRecordList
();
}
,
getUser
()
{
getUser
()
{
let
json
=
{
let
json
=
{
user_id
:
this
.
id
,
user_id
:
this
.
id
,
...
...
src/service/api.js
View file @
e2e8dbdd
...
@@ -1497,3 +1497,9 @@ export const getHourSingleApi = function (json) {
...
@@ -1497,3 +1497,9 @@ export const getHourSingleApi = function (json) {
export
const
getHourTimeApi
=
function
(
json
)
{
export
const
getHourTimeApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/teacher/timeslotrecordlist`
,
json
)
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/teacher/timeslotrecordlist`
,
json
)
};
};
// 成长记录
export
const
getGrowthRecordApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/user/growth/list`
,
json
)
};
src/util/menuList.js
View file @
e2e8dbdd
...
@@ -233,6 +233,17 @@ export default [
...
@@ -233,6 +233,17 @@ export default [
value
:
'用户管理'
,
value
:
'用户管理'
,
icon
:
'icon-yonghu'
,
icon
:
'icon-yonghu'
,
list
:
[
list
:
[
{
value
:
'成长记录'
,
routerName
:
'growthRecord'
,
path
:
'/growthRecord'
,
cover
:
'3-8'
,
router
:
{
path
:
'/growthRecord'
,
name
:
'growthRecord'
,
component
:
e
=>
require
([
'@/components/growthRecord'
],
e
),
}
},
{
{
value
:
'用户列表'
,
value
:
'用户列表'
,
routerName
:
'user'
,
routerName
:
'user'
,
...
...
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