Commit d4f736f3 authored by 黄奎's avatar 黄奎

页面修改

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