Commit 23e12f74 authored by zhengke's avatar zhengke

1

parent 2474dc99
<template> <template>
<div class="b2bcustomer"> <div class="b2bcustomer">
<q-table <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-tow-column-table"
:pagination="msg" separator="none" :data="dataList" :columns="columns" row-key="Id">
:loading="loading"
no-data-label="暂无相关数据"
flat
class="sticky-tow-column-table"
separator="none"
:data="list"
:columns="columns"
row-key="Id"
>
<!-- <template v-slot:body-cell-StuSex="props"> <!-- <template v-slot:body-cell-StuSex="props">
<q-td :props="props"> <q-td :props="props">
<q-badge <q-badge
...@@ -20,116 +11,132 @@ ...@@ -20,116 +11,132 @@
</q-td> </q-td>
</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>
</div> </div>
</template> </template>
<script> <script>
// import { getStudentPage } from "../../../api/school"; import {
// import { getCustomerStuStageStatistics } from "../../../api/sale/peemanagement"; getAllCustomer
// import stuDetail from "../../../components/school/student/studentRight-form"; } from "../../../api/sale/peemanagement";
export default { export default {
props: { props: {
Id: { Id: {
type: Number, type: Number,
default: 0 default: 0
} }
}, },
data() { data() {
return { return {
loading: false, loading: false,
list: [], dataList: [],
pageCount: 0, pageCount: 0,
columns: [ columns: [{
{ name: "CustomerName",
name: "CustomerName", label: "联系人名称",
label: "联系人名称", field: "CustomerName",
field: "CustomerName", align: "left"
align: "left" },
}, {
{ name: "CustomerTypeName",
name: "CustomerTypeName", label: "类型",
label: "类型", field: "CustomerTypeName",
field: "CustomerTypeName", align: "left"
align: "left" },
}, {
{ name: "CategoryName",
name: "CategoryName", label: "同业名称",
label: "同业名称", field: "CategoryName",
field: "CategoryName", align: "left"
align: "left" },
}, {
{ name: "ContactNumber",
name: "ContactNumber", label: "电话",
label: "电话", field: "ContactNumber",
field: "ContactNumber", align: "left"
align: "left" },
}, {
{ name: "StuStageName",
name: "StuStageName", label: "客户阶段",
label: "客户阶段", field: "StuStageName",
field: "StuStageName", align: "left"
align: "left" },
{
name: "QQ",
label: "QQ号",
field: "QQ",
align: "left"
}
],
msg: {
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
CustomerName: "", //客户名称
ContactNumber: "", //联系电话
ApproveState: "", //审核状态
QCustomerState: "", //账号状态
CategoryName: "", //同业名称
CategoryId:0
}, },
{ };
name: "QQ",
label: "QQ号",
field: "QQ",
align: "left"
}
],
msg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
StuName: "",
StuTel: "",
Status: "-1",
School_Id: 0,
CustomerId: 0,
StuStage: 0
},
};
},
methods: {
changePage(val) {
this.msg.pageIndex = val;
// this.getStudent();
}, },
closeStuForm() { methods: {
this.isShowStuRight = false; changePage(val) {
this.msg.pageIndex = val;
this.getList();
},
closeStuForm() {
this.isShowStuRight = false;
},
//获取分页数据
getList() {
this.loading = true;
this.dataList = [];
this.msg.QCustomerState = this.tabCheck;
getAllCustomer(this.msg)
.then(res => {
this.dataList = res.Data.PageData;
this.loading = false;
this.pageCount = res.Data.PageCount;
})
.catch(() => {
this.loading = false;
});
}
}, },
}, mounted() {
mounted() { this.msg.CategoryId = this.Id;
} this.getList();
}; }
};
</script> </script>
<style lang="scss"> <style lang="scss">
.b2bcustomer ::-webkit-scrollbar { .b2bcustomer ::-webkit-scrollbar {
width: 5px; width: 5px;
height: 5px; height: 5px;
} }
.b2bcustomer ::-webkit-scrollbar-track {
background: #fff; .b2bcustomer ::-webkit-scrollbar-track {
border-radius: 2px; background: #fff;
} border-radius: 2px;
.b2bcustomer ::-webkit-scrollbar-thumb { }
background: #444;
border-radius: 10px; .b2bcustomer ::-webkit-scrollbar-thumb {
} background: #444;
.b2bcustomer ::-webkit-scrollbar-thumb:hover { border-radius: 10px;
background: #999; }
}
.b2bcustomer ::-webkit-scrollbar-corner { .b2bcustomer ::-webkit-scrollbar-thumb:hover {
background: #204754; background: #999;
} }
.b2bcustomer ::-webkit-scrollbar-corner {
background: #204754;
}
</style> </style>
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