Commit 8163dabb authored by zhengke's avatar zhengke

增加全选

parent 0d1f5c29
...@@ -145,10 +145,13 @@ ...@@ -145,10 +145,13 @@
</div> </div>
</div> </div>
<div class="row wrap"> <div class="row wrap">
<div class="col-6"> <div class="col-6" style="display:flex;align-items:center;">
<q-select filled v-model="SaleIdsArray" multiple @filter="filterEmployee" use-input <q-select filled v-model="SaleIdsArray" style="width:290px;" multiple @filter="filterEmployee" use-input
class="col-6 q-pb-lg q-pr-lg" :options="myEmployeeList" label="适用人员" option-label="EmployeeName" class="q-pb-lg" :options="myEmployeeList" label="适用人员" option-label="EmployeeName"
option-value="Id" emit-value map-options /> option-value="Id" emit-value map-options />
<div class="q-gutter-sm q-pb-lg">
<q-checkbox v-model="isCheckAll" label="全选" @input='getAllEmployee'/>
</div>
</div> </div>
<div class="col-6"> <div class="col-6">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.MonthGoalMoney" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.MonthGoalMoney"
...@@ -239,6 +242,7 @@ ...@@ -239,6 +242,7 @@
CourseList: [], //关联课程下拉数据 CourseList: [], //关联课程下拉数据
saveLoading: false, saveLoading: false,
optionTitle: '', optionTitle: '',
isCheckAll: false
} }
}, },
created() { created() {
...@@ -249,6 +253,17 @@ ...@@ -249,6 +253,17 @@
this.initObj() this.initObj()
}, },
methods: { methods: {
//点击适用人员全选
getAllEmployee(){
if(this.isCheckAll){
this.SaleIdsArray = [];
this.employeeList.forEach(x=>{
this.SaleIdsArray.push(x.Id);
})
}else{
this.SaleIdsArray = [];
}
},
//新增 //新增
addCourse() { addCourse() {
let obj = { let obj = {
......
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