Commit 516d0b07 authored by 黄奎's avatar 黄奎

页面修改

parent 8500d838
......@@ -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
<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
<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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment