Commit 0445a800 authored by 黄奎's avatar 黄奎

页面修改

parent b39a9ed8
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</q-input> </q-input>
<q-select filled stack-label option-value="SId" option-label="SName" v-model="objOption.School_Id" <q-select filled stack-label option-value="SId" option-label="SName" v-model="objOption.School_Id"
ref="School_Id" :options="schoolList" label="所属校区" :dense="false" class="col-6 q-pb-lg" emit-value ref="School_Id" :options="schoolList" label="所属校区" :dense="false" class="col-6 q-pb-lg" emit-value
map-options :rules="[val => !!val || '请选择所属校区']" /> map-options :rules="[val => !!val || '请选择所属校区']" @input="getDutyFrequencyList()" />
</div> </div>
<div class="row wrap" style="margin:20px 0;"> <div class="row wrap" style="margin:20px 0;">
<div class="col-6"> <div class="col-6">
...@@ -28,8 +28,17 @@ ...@@ -28,8 +28,17 @@
</div> </div>
<div class="row wrap" v-for="(item,index) in objOption.PlanDetails" :key="index"> <div class="row wrap" v-for="(item,index) in objOption.PlanDetails" :key="index">
<div class="col-6"> <div class="col-6">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="item.Shift" :options="ClassList" <q-select filled stack-label option-value="Id" option-label="Name" v-model="item.Shift" :options="batchList"
label="班次" class="col-6 q-pr-lg q-pb-lg" emit-value map-options /> label="班次" class="col-6 q-pr-lg q-pb-lg" emit-value map-options>
<template v-slot:option="{ itemProps, itemEvents, opt, selected, toggleOption }">
<q-item v-bind="itemProps" v-on="itemEvents">
<q-item-section>
<q-item-label>{{opt.Name}}{{opt.StartTime}}-{{opt.EndTime}}</q-item-label>
</q-item-section>
</q-item>
</template>
</q-select>
</div> </div>
<div class="col-6" style="position:relative;"> <div class="col-6" style="position:relative;">
<q-select filled stack-label option-value="Id" option-label="EmployeeName" v-model="item.DutyMan" <q-select filled stack-label option-value="Id" option-label="EmployeeName" v-model="item.DutyMan"
...@@ -80,20 +89,13 @@ ...@@ -80,20 +89,13 @@
}, },
optionTitle: "", optionTitle: "",
schoolList: [], schoolList: [],
ClassList: [{ //班次数据 batchList: [], //班次列表
Id: 1,
Name: '早班'
}, {
Id: 2,
Name: '午班'
}],
EmployeeList: [], //员工数据 EmployeeList: [], //员工数据
} }
}, },
created() { created() {
this.getSchool(); this.getSchool();
this.Employee(); this.Employee();
this.getDutyFrequencyList();
}, },
mounted() { mounted() {
this.initObj() this.initObj()
...@@ -112,6 +114,7 @@ ...@@ -112,6 +114,7 @@
if (tempData.PlanDetails && tempData.PlanDetails.length > 0) { if (tempData.PlanDetails && tempData.PlanDetails.length > 0) {
this.objOption.PlanDetails = tempData.PlanDetails; this.objOption.PlanDetails = tempData.PlanDetails;
} }
this.getDutyFrequencyList();
} }
}); });
} else { } else {
...@@ -172,8 +175,13 @@ ...@@ -172,8 +175,13 @@
}, },
//获取班次信息 //获取班次信息
getDutyFrequencyList() { getDutyFrequencyList() {
queryDutyFrequencyBySchoolIds().then(res => { queryDutyFrequencyBySchoolIds({
console.log(res, '数据来也'); SchoolIds: this.objOption.School_Id
}).then(res => {
if (res.Code == 1) {
this.batchList = res.Data;
}
console.log("batchList", this.batchList);
}) })
}, },
//获取员工列表 //获取员工列表
......
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