Commit d4f736f3 authored by 黄奎's avatar 黄奎

页面修改

parent 7d0123d5
......@@ -57,12 +57,10 @@
管理员:
</div>
<div class="col-3">
<q-select v-model="msg.AdminiIds" :options="EmployeeListOption" color="primary" stack-label filled multiple clearable
label="" option-label="EmployeeName" option-value="Id" ref="AdminiIds" emit-value map-options
/>
<q-select v-model="msg.AdminList" :options="EmployeeListOption" color="primary" stack-label filled multiple
clearable label="" option-label="EmployeeName" option-value="Id" ref="AdminList" emit-value map-options />
</div>
<div class="col-3" style="padding:18px 0 0 10px;color:gray">
</div>
</div>
<div class="col row wrap">
......@@ -166,7 +164,8 @@
BasicClassNum: '', //基础带班人数
BasicMinutes: '', //课时分钟数
BasicHours: 0, //基础课时
AdminiIds:[],//管理员
AdminList: [],
AdminiIds: "", //管理员
},
columns: [{
name: 'CTypeName',
......@@ -211,7 +210,6 @@
CTypeName: '', //类型名称
AddHourFee: '', //课时费加价
DefaultClassNum: '', //默认班级人数
},
//列表数据参数
tabeMsg: {
......@@ -233,7 +231,11 @@
methods: {
//保存基础数据
saveInfo() {
this.msg.AdminiIds=this.msg.AdminiIds.join(',');
if (this.msg.AdminList && this.msg.AdminList.length > 0) {
this.msg.AdminiIds = this.msg.AdminList.join(',')
} else {
this.msg.AdminiIds = "";
}
SetClassConfig(this.msg).then(res => {
if (res.Code == 1) {
this.$q.notify({
......@@ -257,12 +259,15 @@
this.msg.BasicClassNum = res.Data.BasicClassNum;
this.msg.BasicMinutes = res.Data.BasicMinutes;
this.msg.BasicHours = res.Data.BasicHours;
let arr=res.Data.AdminiIds.split(",");
this.msg.AdminiIds= arr.map(e=>{
return e=parseInt(e)
this.msg.AdminiIds = res.Data.AdminiIds;
if (res.Data.AdminiIds && res.Data.AdminiIds != '') {
let arr = res.Data.AdminiIds.split(",");
this.msg.AdminList = arr.map(e => {
return e = parseInt(e)
})
}
}
}
})
},
//保存班级类型
......
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