Commit 3e065318 authored by zhengke's avatar zhengke

修改

parent 90f0b7d2
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
.q-field__prepend { .q-field__prepend {
padding-right: 0px !important; padding-right: 0px !important;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale"> <q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale">
...@@ -146,11 +147,11 @@ ...@@ -146,11 +147,11 @@
</div> </div>
<div class="row wrap"> <div class="row wrap">
<div class="col-6" style="display:flex;align-items:center;"> <div class="col-6" style="display:flex;align-items:center;">
<q-select filled v-model="SaleIdsArray" style="width:290px;" clearable multiple @filter="filterEmployee" use-input <q-select filled v-model="SaleIdsArray" style="width:290px;" clearable multiple @filter="filterEmployee"
class="q-pb-lg" :options="myEmployeeList" label="适用人员" option-label="EmployeeName" use-input 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"> <div class="q-gutter-sm q-pb-lg">
<q-checkbox v-model="isCheckAll" label="全选" @input='getAllEmployee'/> <q-checkbox v-model="isCheckAll" label="全选" @input='getAllEmployee' />
</div> </div>
</div> </div>
<div class="col-6"> <div class="col-6">
...@@ -254,13 +255,13 @@ ...@@ -254,13 +255,13 @@
}, },
methods: { methods: {
//点击适用人员全选 //点击适用人员全选
getAllEmployee(){ getAllEmployee() {
if(this.isCheckAll){ if (this.isCheckAll) {
this.SaleIdsArray = []; this.SaleIdsArray = [];
this.employeeList.forEach(x=>{ this.employeeList.forEach(x => {
this.SaleIdsArray.push(x.Id); this.SaleIdsArray.push(x.Id);
}) })
}else{ } else {
this.SaleIdsArray = []; this.SaleIdsArray = [];
} }
}, },
...@@ -300,10 +301,10 @@ ...@@ -300,10 +301,10 @@
queryEmployee(qMsg).then(res => { queryEmployee(qMsg).then(res => {
this.employeeList = res.Data; this.employeeList = res.Data;
this.myEmployeeList = res.Data; this.myEmployeeList = res.Data;
if(this.SaleIdsArray.length==this.employeeList.length){ if (this.SaleIdsArray.length == this.employeeList.length) {
this.isCheckAll=true; this.isCheckAll = true;
}else{ } else {
this.isCheckAll=false; this.isCheckAll = false;
} }
}) })
}, },
...@@ -335,7 +336,7 @@ ...@@ -335,7 +336,7 @@
this.objOption.NotUseCourseIds = tempData.NotUseCourseIds; this.objOption.NotUseCourseIds = tempData.NotUseCourseIds;
this.objOption.DetailList = tempData.DetailList; this.objOption.DetailList = tempData.DetailList;
this.objOption.MonthGoalMoney = tempData.MonthGoalMoney; this.objOption.MonthGoalMoney = tempData.MonthGoalMoney;
this.objOption.PlanType=tempData.PlanType; this.objOption.PlanType = tempData.PlanType;
this.SaleIdsArray = tempData.SaleIdList; this.SaleIdsArray = tempData.SaleIdList;
this.UseCourseIdsArray = tempData.UseCourseIdList; this.UseCourseIdsArray = tempData.UseCourseIdList;
this.NotUseCourseIdsArray = tempData.NotUseCourseIdList; this.NotUseCourseIdsArray = tempData.NotUseCourseIdList;
...@@ -388,4 +389,5 @@ ...@@ -388,4 +389,5 @@
} }
}, },
} }
</script> </script>
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