Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
516d0b07
Commit
516d0b07
authored
Dec 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8500d838
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
160 additions
and
16 deletions
+160
-16
customerstudent.js
src/api/customerstudent/customerstudent.js
+25
-0
student-hetong.vue
src/components/school/student/student-hetong.vue
+60
-12
student-order.vue
src/components/school/student/student-order.vue
+75
-4
No files found.
src/api/customerstudent/customerstudent.js
View file @
516d0b07
...
...
@@ -157,4 +157,29 @@ export function queryStudentLogPage(data) {
method
:
'post'
,
data
})
}
/**
* 获取学员订单分页列表
* @param {JSON参数} data
*/
export
function
queryStuOrderPage
(
data
)
{
return
request
({
url
:
'/CustomerStudent/GetStuOrderPage'
,
method
:
'post'
,
data
})
}
/**
* 获取学员合同分页列表
* @param {JSON参数} data
*/
export
function
queryStuContractPage
(
data
)
{
return
request
({
url
:
'/CustomerStudent/GetStuContractPage'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/school/student/student-hetong.vue
View file @
516d0b07
<
style
>
</
style
>
<
template
>
<div>
合同
<template
v-for=
"(item,index) in contractList"
>
<div
:key=
"index"
>
订单编号:
{{
item
.
OrderId
}}
<br
/>
班级名称:
{{
item
.
ClassName
}}
<br
/>
班级编号:
{{
item
.
ClassNo
}}
<br
/>
总课时:
{{
item
.
TotalHours
}}
<br
/>
完成课时:
{{
item
.
CompleteHours
}}
<br
/>
学员名称:
{{
item
.
GuestName
}}
<br
/>
课程名称:
{{
item
.
CourseName
}}
<br
/>
合同编号:
{{
item
.
ContractNo
}}
{{
item
.
ContractId
}}
<br
/>
</div>
</
template
>
</div>
</template>
<
script
>
import
{
queryStuContractPage
,
//学员订单合同分页列表
}
from
'../../../api/customerstudent/customerstudent'
;
export
default
{
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
}
},
meta
:
{
title
:
""
},
components
:
{
},
props
:
{
},
data
()
{
return
{
customMsg
:
{
pageIndex
:
1
,
pageSize
:
10
,
StuId
:
0
,
},
pageCount
:
0
,
//合同列表
contractList
:
[],
}
},
created
()
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
StuId
>
0
)
{
this
.
customMsg
.
StuId
=
this
.
saveObj
.
StuId
;
}
},
mounted
()
{},
mounted
()
{
this
.
getStuContractPage
();
},
methods
:
{
getStuContractPage
()
{
queryStuContractPage
(
this
.
customMsg
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
if
(
res
.
Code
==
1
)
{
this
.
contractList
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
}
});
},
changePage
(
val
)
{
this
.
customMsg
.
pageIndex
=
val
;
this
.
getStuContractPage
();
}
},
}
</
script
>
</
script
>
\ No newline at end of file
src/components/school/student/student-order.vue
View file @
516d0b07
<
template
>
<div>
订单
</div>
</
template
>
\ No newline at end of file
<div>
<template
v-for=
"(item,index) in orderList"
>
<div
:key=
"index"
>
订单编号:
{{
item
.
OrderId
}}
<br
/>
班级名称:
{{
item
.
ClassName
}}
<br
/>
班级编号:
{{
item
.
ClassNo
}}
<br
/>
总课时:
{{
item
.
TotalHours
}}
<br
/>
完成课时:
{{
item
.
CompleteHours
}}
<br
/>
学员名称:
{{
item
.
GuestName
}}
<br
/>
课程名称:
{{
item
.
CourseName
}}
<br
/>
</div>
</
template
>
</div>
</template>
<
script
>
import
{
queryStuOrderPage
,
//学员订单分页列表
}
from
'../../../api/customerstudent/customerstudent'
;
export
default
{
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
}
},
meta
:
{
title
:
""
},
components
:
{
},
data
()
{
return
{
customMsg
:
{
pageIndex
:
1
,
pageSize
:
10
,
StuId
:
0
,
},
pageCount
:
0
,
//订单列表
orderList
:
[],
}
},
created
()
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
StuId
>
0
)
{
this
.
customMsg
.
StuId
=
this
.
saveObj
.
StuId
;
}
},
mounted
()
{
this
.
getStuOrderPage
();
},
methods
:
{
getStuOrderPage
()
{
queryStuOrderPage
(
this
.
customMsg
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
if
(
res
.
Code
==
1
)
{
this
.
orderList
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
}
});
},
changePage
(
val
)
{
this
.
customMsg
.
pageIndex
=
val
;
this
.
getStuOrderPage
();
}
},
}
</
script
>
\ No newline at end of file
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