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">
......@@ -129,14 +127,14 @@
<q-input filled stack-label :dense="false" maxlength="8" v-model="addMsg.DefaultClassNum" label="默认班级人数"
ref="DefaultClassNum" class="q-pb-lg" @keyup.native="checkInteger(addMsg,'DefaultClassNum')"
:rules="[val => !!val || '请填写默认班级人数']" />
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="persistent=false" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveClassType()" />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
......@@ -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,10 +259,13 @@
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)
})
}
}
}
})
......@@ -376,7 +381,7 @@
closeSetForm() {
this.persistent = false;
},
//获取业务员
//获取业务员
getEmployee(id) {
var qMsg = {
Dept_Id: 0
......
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