Commit 98e4b455 authored by 黄奎's avatar 黄奎

页面修改

parent 266db9d0
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
:selected.sync="selected" class="sticky-column-table" separator="none" :data="dataList" :columns="columns" :selected.sync="selected" class="sticky-column-table" separator="none" :data="dataList" :columns="columns"
row-key="ClassPlanId" hide-bottom> row-key="ClassPlanId" hide-bottom>
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title">上课计划冲突调整</div> <div class="col-2 q-table__title">上课计划冲突调整{{msg.ClassName}}{{msg.ClassNo}})】</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" @click="isShowClassForm=true" label="全部重排" /> <q-btn color="accent" size="sm" class="q-mr-md" @click="isShowClassForm=true" label="全部重排" />
...@@ -80,7 +80,9 @@ ...@@ -80,7 +80,9 @@
<tr v-for="(subItem,subIndex) in props.row.PlanRepeatList" :key="subIndex"> <tr v-for="(subItem,subIndex) in props.row.PlanRepeatList" :key="subIndex">
<td>{{subItem.ClassName}}</td> <td>{{subItem.ClassName}}</td>
<td>{{subItem.ClassDate}}</td> <td>{{subItem.ClassDate}}</td>
<td :class="{'resStyle':props.row.TeacherId==subItem.TeacherId}">{{subItem.TeacherName}}</td> <td><span :class="{'resStyle':props.row.TeacherId==subItem.TeacherId}">
{{subItem.TeacherName}}</span>
</td>
<td> <td>
<span <span
:class="{'resStyle':props.row.ClassRoomId==subItem.ClassRoomId}">{{subItem.RoomName}}</span> :class="{'resStyle':props.row.ClassRoomId==subItem.ClassRoomId}">{{subItem.RoomName}}</span>
...@@ -165,7 +167,8 @@ ...@@ -165,7 +167,8 @@
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowEdit=false" <q-btn label="取消" flat color="grey-10" @click="isShowEdit=false"
style="font-weight:400 !important" /> style="font-weight:400 !important" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" :loading="saveLoading" @click="saveSteps" /> <q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" :loading="saveLoading"
@click="saveSteps" />
</q-card-actions> </q-card-actions>
</div> </div>
</q-banner> </q-banner>
...@@ -177,7 +180,8 @@ ...@@ -177,7 +180,8 @@
</div> </div>
<class-form v-if="isShowClassForm" :save-obj="msg" @close="closeClassSaveForm" @success="refreshPage"> <class-form v-if="isShowClassForm" :save-obj="msg" @close="closeClassSaveForm" @success="refreshPage">
</class-form> </class-form>
<classcon-form v-if="isShowConForm" :save-obj="selectObj" @close="closeClassSaveForm" @success="refreshPage"></classcon-form> <classcon-form v-if="isShowConForm" :save-obj="selectObj" @close="closeClassSaveForm" @success="refreshPage">
</classcon-form>
</div> </div>
</template> </template>
<script> <script>
...@@ -202,11 +206,6 @@ ...@@ -202,11 +206,6 @@
data() { data() {
return { return {
columns: [{ columns: [{
name: "ClassName",
label: "班级",
field: "ClassName",
align: "left"
},{
name: "ClassDate", name: "ClassDate",
label: "日期", label: "日期",
field: "ClassDate", field: "ClassDate",
...@@ -243,7 +242,9 @@ ...@@ -243,7 +242,9 @@
rowsPerPage: 1000, rowsPerPage: 1000,
}, },
msg: { msg: {
ClassId: 53 ClassId: 53,
ClassName:"",
ClassNo:"",
}, },
isShowEdit: false, isShowEdit: false,
//单行修改参数 //单行修改参数
...@@ -267,14 +268,14 @@ ...@@ -267,14 +268,14 @@
TeacherList: [], //老师下拉数据 TeacherList: [], //老师下拉数据
ClassRoomList: [], //教室下拉数据 ClassRoomList: [], //教室下拉数据
saveLoading: false, saveLoading: false,
isShowClassForm:false, isShowClassForm: false,
isShowConForm:false, isShowConForm: false,
//选中传入对象 //选中传入对象
selectObj:{ selectObj: {
ClassId:53, ClassId: 53,
ChangeType:1, ChangeType: 1,
selected:[] selected: []
} }
}; };
}, },
...@@ -294,7 +295,9 @@ ...@@ -294,7 +295,9 @@
GetRepeatClassPlan(this.msg).then(res => { GetRepeatClassPlan(this.msg).then(res => {
this.loading = false; this.loading = false;
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data; this.dataList = res.Data.RepeatList;
this.msg.ClassNo=res.Data.ClassNo;
this.msg.ClassName=res.Data.ClassName;
this.selected = []; this.selected = [];
} }
}) })
...@@ -389,21 +392,21 @@ ...@@ -389,21 +392,21 @@
this.getList(); this.getList();
}, },
//点击修改教师 老师 时段 //点击修改教师 老师 时段
getCommonEdit(type){ getCommonEdit(type) {
if(this.selected.length==0){ if (this.selected.length == 0) {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
message: `请勾选需要修改的数据!` message: `请勾选需要修改的数据!`
}) })
return return
}else{ } else {
this.selectObj.selected=[]; this.selectObj.selected = [];
this.selectObj.ChangeType = type; this.selectObj.ChangeType = type;
this.selected.forEach(x=>{ this.selected.forEach(x => {
this.selectObj.selected.push(x.ClassPlanId); this.selectObj.selected.push(x.ClassPlanId);
}) })
this.isShowConForm=true; this.isShowConForm = true;
} }
} }
} }
......
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