Commit 265b2379 authored by 黄奎's avatar 黄奎

页面修改

parent 724a52be
......@@ -48,12 +48,12 @@
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3" v-if="isShowFrom">
<q-select filled stack-label :disable="!isShowFrom" input-debounce="0" option-value="Id" @input="getlaiyuan"
option-label="Name" v-model="msg.OrderSourceType" :options="customFromList" label="来源" :dense="false"
option-label="Name" v-model="msg.OrderSourceType" :options="customFromList" label="来源" dense
emit-value map-options>
</q-select>
</div>
<div class="col-3" v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3">
<q-select filled stack-label clearable v-model="msg.UserDept" :dense="false" :options="DepartmentList"
<q-select filled stack-label clearable v-model="msg.UserDept" dense :options="DepartmentList"
use-input @input="getList(),getEmployeeList()" label="部门" @filter="filterEmployee" option-label="DeptName"
option-value="DeptId" emit-value map-options>
<template v-slot:no-option>
......@@ -64,7 +64,7 @@
</q-select>
</div>
<div class="col-3" v-if="msg.OrderSourceType == 1 || msg.OrderSourceType == 3">
<q-select filled stack-label clearable v-model="msg.OrderSourceId" :dense="false" :options="myEmployeeList"
<q-select filled stack-label clearable v-model="msg.OrderSourceId" dense :options="myEmployeeList"
use-input @input="getList" label="人员" @filter="filterEmployee" option-label="EmployeeName"
option-value="Id" emit-value map-options>
<template v-slot:no-option>
......@@ -75,7 +75,7 @@
</q-select>
</div>
<div class="col-3" v-if="msg.OrderSourceType == 2">
<q-select filled stack-label v-model="msg.OrderSourceId" clearable :dense="false" :options="customList"
<q-select filled stack-label v-model="msg.OrderSourceId" clearable dense :options="customList"
use-input @input="getList" label="关联同行" @filter="filterFn" option-label="CustomerName"
option-value="CustomerId" emit-value map-options>
<template v-slot:no-option>
......@@ -86,7 +86,7 @@
</q-select>
</div>
<div class="col-3" v-if="msg.OrderSourceType == 4">
<q-select filled clearable stack-label v-model="msg.OrderSourceId" :dense="false" :options="InvitationList"
<q-select filled clearable stack-label v-model="msg.OrderSourceId" dense :options="InvitationList"
use-input @input="getList" label="转介人" @filter="filterFnStudent" option-label="StuName"
option-value="StuId" emit-value map-options>
<template v-slot:no-option>
......@@ -97,8 +97,7 @@
</q-select>
</div>
<div class="col-3" style="float:right;">
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;"
@click="DownLoadCommissionUserList" label="下载" />
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:6px;" @click="DownLoadCommissionUserList" label="下载" />
</div>
</div>
</div>
......@@ -110,11 +109,7 @@
<el-table-column prop="UserDeptName" label="部门"></el-table-column>
<el-table-column prop="UserName" label="人员" :filters="UserNamelist" :filter-method="filterHandler">
</el-table-column>
<el-table-column prop="OrderSourceType" label="类型">
<template slot-scope="scope">
{{getOrderSourceType(scope.row.OrderSourceType)}}
</template>
</el-table-column>
<el-table-column prop="OrderSourceTypeName" label="类型"></el-table-column>
<el-table-column prop="StudentCount" label="学生数量" sortable :sort-method="StudentCount"></el-table-column>
<el-table-column prop="CommissionMoeny" label="提成金额" sortable :sort-method="CommissionMoeny"></el-table-column>
<el-table-column label="操作">
......@@ -274,8 +269,10 @@
} else {
this.msg.OrderSourceId = ''
}
this.getList()
this.msg.UserDept="";
this.getList();
},
//获取部门列表
queryDeptList() {
var qMsg = {};
getDeptList(qMsg).then(res => {
......@@ -297,15 +294,6 @@
}
})
},
getOrderSourceType(Id) {
let Name = ''
this.customFromList.forEach(x => {
if (x.Id == Id) {
Name = x.Name
}
})
return Name
},
//筛选转介人
filterStudent(val, update, abort) {
update(() => {
......
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