Commit 3e065318 authored by zhengke's avatar zhengke

修改

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