Commit 80375acf authored by 黄奎's avatar 黄奎

页面修改

parent 23e12f74
...@@ -80,8 +80,6 @@ ...@@ -80,8 +80,6 @@
dialog: false, dialog: false,
data: {}, data: {},
loading: false, loading: false,
dateList: [], //报名时间
dateList2: [], //开班时间
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 8, pageSize: 8,
...@@ -108,7 +106,6 @@ ...@@ -108,7 +106,6 @@
//订单状态 //订单状态
OrderStateList: [], OrderStateList: [],
pageCount: 0, pageCount: 0,
CourseList: [], //关联课程下拉数据
classObjOption: null, classObjOption: null,
isShowClassInfo: false, //是否显示课程信息 isShowClassInfo: false, //是否显示课程信息
showone: false, showone: false,
...@@ -152,7 +149,6 @@ ...@@ -152,7 +149,6 @@
msg.OrderId = 0; msg.OrderId = 0;
} }
this.loading = true; this.loading = true;
console.log("msg",msg);
getMyOrderStatisticsPageList(msg) getMyOrderStatisticsPageList(msg)
.then(res => { .then(res => {
this.data = res.Data.PageData; this.data = res.Data.PageData;
......
...@@ -18,28 +18,12 @@ ...@@ -18,28 +18,12 @@
<span>{{ data.UnSettlementMoney }}</span> <span>{{ data.UnSettlementMoney }}</span>
</div> </div>
</div> </div>
<q-tabs <q-tabs v-model="tabs" active-color="primary" align="left" style="width:180px;" class="q-my-xs">
v-model="tabs"
active-color="primary"
align="left"
style="width:180px;"
class="q-my-xs"
>
<q-tab :name="1" label="返佣明细" /> <q-tab :name="1" label="返佣明细" />
<q-tab :name="2" label="提现记录" /> <q-tab :name="2" label="提现记录" />
</q-tabs> </q-tabs>
<q-table <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
:pagination="msg" separator="none" :data="dataList" :columns="columns" row-key="name" v-if="tabs==1">
:loading="loading"
no-data-label="暂无相关数据"
flat
class="sticky-column-table"
separator="none"
:data="dataList"
:columns="columns"
row-key="name"
v-if="tabs==1"
>
<template v-slot:body-cell-Status="props"> <template v-slot:body-cell-Status="props">
<q-td :props="props" style="padding-right: 0px"> <q-td :props="props" style="padding-right: 0px">
<span v-if="props.row.Status==-1">不返佣</span> <span v-if="props.row.Status==-1">不返佣</span>
...@@ -56,31 +40,25 @@ ...@@ -56,31 +40,25 @@
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
class="full-width justify-end" :input="true" @input="changePage" />
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
</template> </template>
</q-table> </q-table>
<withdraw v-if="tabs==2" :Type="1" :Id="Id"></withdraw> <withdraw v-if="tabs==2" :Type="1" :Id="Id"></withdraw>
</div> </div>
</template> </template>
<script> <script>
import { import {
getCustomerCommissionPassbook, getCustomerCommissionPassbook,
getCustomerCommissionStat, getCustomerCommissionStat,
GetCustomerBalanceDetailPage GetCustomerBalanceDetailPage
} from "../../../api/sale/peemanagement"; } from "../../../api/sale/peemanagement";
import { import {
getCommissionStatistics, getCommissionStatistics,
} from '../../../api/finance/index' } from '../../../api/finance/index'
import withdraw from './withdraw' import withdraw from './withdraw'
export default { export default {
components:{ components: {
withdraw withdraw
}, },
props: { props: {
...@@ -98,21 +76,20 @@ export default { ...@@ -98,21 +76,20 @@ export default {
pageSize: 10, pageSize: 10,
rowsPerPage: 10, rowsPerPage: 10,
BatchId:0, BatchId: 0,
SchoolId:'-1', SchoolId: '-1',
Status:'-2', Status: '-2',
OrderSourceType:0, OrderSourceType: 0,
OrderSourceId:0, OrderSourceId: 0,
Q_SelectNormal:0, Q_SelectNormal: 0,
CommissionType:1, CommissionType: 1,
ClassId:0, ClassId: 0,
OrderId:'', OrderId: '',
}, },
pageCount: 0, pageCount: 0,
data: {}, data: {},
dataList: [], dataList: [],
columns: [ columns: [{
{
name: "SchoolName", name: "SchoolName",
label: "校区", label: "校区",
field: "SchoolName", field: "SchoolName",
...@@ -179,7 +156,7 @@ export default { ...@@ -179,7 +156,7 @@ export default {
align: "left" align: "left"
} }
], ],
tabs:1 tabs: 1
}; };
}, },
mounted() { mounted() {
...@@ -189,8 +166,8 @@ export default { ...@@ -189,8 +166,8 @@ export default {
methods: { methods: {
getData() { getData() {
const msg = { const msg = {
OrderSourceType:2, OrderSourceType: 2,
OrderSourceId: this.Id, CategoryId: this.Id,
CommissionType: 1, CommissionType: 1,
}; };
getCustomerCommissionStat(msg).then(res => { getCustomerCommissionStat(msg).then(res => {
...@@ -199,7 +176,7 @@ export default { ...@@ -199,7 +176,7 @@ export default {
}, },
//获取数据 //获取数据
getList() { getList() {
this.msg.OrderSourceId=this.Id this.msg.CategoryId = this.Id
this.loading = true; this.loading = true;
getCommissionStatistics(this.msg) getCommissionStatistics(this.msg)
.then(res => { .then(res => {
...@@ -218,28 +195,33 @@ export default { ...@@ -218,28 +195,33 @@ export default {
this.getList(); this.getList();
} }
} }
}; };
</script> </script>
<style> <style>
.passbook ::-webkit-scrollbar { .passbook ::-webkit-scrollbar {
width: 5px; width: 5px;
height: 5px; height: 5px;
} }
.passbook ::-webkit-scrollbar-track {
.passbook ::-webkit-scrollbar-track {
background: #fff; background: #fff;
border-radius: 2px; border-radius: 2px;
} }
.passbook ::-webkit-scrollbar-thumb {
.passbook ::-webkit-scrollbar-thumb {
background: #444; background: #444;
border-radius: 10px; border-radius: 10px;
} }
.passbook ::-webkit-scrollbar-thumb:hover {
.passbook ::-webkit-scrollbar-thumb:hover {
background: #999; background: #999;
} }
.passbook ::-webkit-scrollbar-corner {
.passbook ::-webkit-scrollbar-corner {
background: #204754; background: #204754;
} }
.passbook .stics {
.passbook .stics {
padding: 5px 10px; padding: 5px 10px;
background: #dddee0; background: #dddee0;
border-radius: 4px; border-radius: 4px;
...@@ -247,10 +229,11 @@ export default { ...@@ -247,10 +229,11 @@ export default {
color: #000000; color: #000000;
font-weight: bold; font-weight: bold;
white-space: nowrap; white-space: nowrap;
} }
.passbook .stics-name {
.passbook .stics-name {
color: #2d2d2d; color: #2d2d2d;
font-weight: 600; font-weight: 600;
margin-right: 10px; margin-right: 10px;
} }
</style> </style>
\ 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