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