Commit cd081268 authored by 黄奎's avatar 黄奎

页面修改

parent 7fb42d73
...@@ -3,71 +3,27 @@ ...@@ -3,71 +3,27 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input <q-input @input="resetSearch" clearable filled v-model="msg.StuName" label="昵称" maxlength="20" />
@input="resetSearch"
clearable
filled
v-model="msg.StuName"
label="昵称"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input <q-input @input="resetSearch" clearable filled v-model="msg.StuTel" label="电话" maxlength="20" />
@input="resetSearch"
clearable
filled
v-model="msg.StuTel"
label="电话"
maxlength="20"
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select <q-select @input="resetSearch" filled v-model="msg.StuStage" :options="customState" option-label="Name"
@input="resetSearch" option-value="Id" emit-value map-options label="客户状态" clearable />
filled
v-model="msg.StuStage"
:options="customState"
option-label="Name"
option-value="Id"
emit-value
map-options
label="客户状态"
clearable
/>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-field filled> <q-field filled>
<template v-slot:control> <template v-slot:control>
<el-date-picker <el-date-picker v-model="dateArray" @change="resetSearch" value-format="yyyy-MM-dd" type="daterange"
v-model="dateArray" style="border:none;" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" />
@change="resetSearch"
value-format="yyyy-MM-dd"
type="daterange"
style="border:none;"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
/>
</template> </template>
</q-field> </q-field>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select <q-select @input="resetSearch" v-model="msg.CustomerId" :options="myCustomerList" filled use-input label="同行"
@input="resetSearch" option-label="CustomerName" option-value="CustomerId" ref="CustomerName" class="col-6 q-pb-lg" emit-value
v-model="msg.CustomerId" map-options @filter="cusfilterFn">
:options="myCustomerList"
filled
use-input
label="同行"
option-label="CustomerName"
option-value="CustomerId"
ref="CustomerName"
class="col-6 q-pb-lg"
emit-value
map-options
@filter="cusfilterFn"
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
...@@ -77,38 +33,42 @@ ...@@ -77,38 +33,42 @@
</template> </template>
</q-select> </q-select>
</div> </div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" option-label="Name"
v-model="msg.BelongType" :options="BelongTypeList" emit-value map-options label="归属类型" />
</div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<stulist :dataList="data" @success="refreshPage" ref="stuList"> </stulist> <stulist :dataList="data" @success="refreshPage" ref="stuList"> </stulist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px"> <div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination <q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
v-model="msg.pageIndex" color="primary" :input="true">
:max="pageCount"
@input="changePage"
class="full-width justify-end"
color="primary"
:input="true"
>
</q-pagination> </q-pagination>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import {
getStudentPage, getStudentPage,
getSchoolDropdown, getSchoolDropdown,
deleteStudent, deleteStudent,
createStudentAccount, createStudentAccount,
queryStuStageList queryStuStageList
} from "../../api/school/index"; } from "../../api/school/index";
import { queryEmployee } from "../../api/users/user"; import {
import { resetPassword } from "../../api/users/user.js"; queryEmployee
} from "../../api/users/user";
import {
resetPassword
} from "../../api/users/user.js";
import stulist from "../../components/school/student/stulist"; import stulist from "../../components/school/student/stulist";
import { getMyCustomerList } from "../../api/sale/sale"; import {
export default { getMyCustomerList
} from "../../api/sale/sale";
export default {
meta: { meta: {
title: "客户管理" title: "客户管理"
}, },
...@@ -132,14 +92,29 @@ export default { ...@@ -132,14 +92,29 @@ export default {
StuStage: "", //客户阶段 StuStage: "", //客户阶段
StartTime: "", //开始时间 StartTime: "", //开始时间
EndTime: "", //结束时间 EndTime: "", //结束时间
CustomerId: 0 CustomerId: 0,
BelongType: 1, //归属类型
}, },
dateArray: [], //日期数组 dateArray: [], //日期数组
pageCount: 0, pageCount: 0,
//客户阶段状态列表 //客户阶段状态列表
customState: [], customState: [],
myCustomerList: [], //同行列表 myCustomerList: [], //同行列表
allCustomerList: [] //所有同行列表 allCustomerList: [], //所有同行列表
//归属类型列表
BelongTypeList: [{
Id: 1,
Name: "全部"
},
{
Id: 2,
Name: "我负责的"
},
{
Id: 3,
Name: "我协同的"
},
],
}; };
}, },
created() { created() {
...@@ -198,8 +173,8 @@ export default { ...@@ -198,8 +173,8 @@ export default {
this.myCustomerList = res.Data; this.myCustomerList = res.Data;
this.allCustomerList = res.Data; this.allCustomerList = res.Data;
this.myCustomerList.unshift({ this.myCustomerList.unshift({
CustomerName:"不限", CustomerName: "不限",
CustomerId:0, CustomerId: 0,
}) })
}); });
}, },
...@@ -218,8 +193,8 @@ export default { ...@@ -218,8 +193,8 @@ export default {
}); });
} }
} }
}; };
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</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