Commit 5f535a23 authored by zhengke's avatar zhengke

1

parent e13ba75e
...@@ -149,29 +149,6 @@ ...@@ -149,29 +149,6 @@
<span :class="{'classProgress':props.row.UsePlanNum<props.row.TotalPlanNum,'blaStuStyle':props.row.UsePlanNum==props.row.TotalPlanNum}">{{props.row.UsePlanNum}}/{{props.row.TotalPlanNum}}</span> <span :class="{'classProgress':props.row.UsePlanNum<props.row.TotalPlanNum,'blaStuStyle':props.row.UsePlanNum==props.row.TotalPlanNum}">{{props.row.UsePlanNum}}/{{props.row.TotalPlanNum}}</span>
</q-td> </q-td>
</template> </template>
<!--班级状态-->
<template v-slot:body-cell-ClassStatusStr="props">
<q-td>
<span>{{props.row.ClassStatusStr}}</span>&nbsp;
<i class="iconfont icon-edit" @click.stop="getClassItem(props.row)" title="点击修改班级状态">
<q-popup-proxy>
<q-banner v-if="isShowEdit">
<div class="calenderDialog">
<div style="margin:10px 0 15px 0;">设置班级状态</div>
<q-select standout="bg-primary text-white" option-value="Id" option-label="Name"
v-model="statusMsg.ClassStatus" :options="classStatusList" emit-value map-options label="班级状态" />
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowEdit=false"
style="font-weight:400 !important" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important"
@click="setClassStatus()" />
</q-card-actions>
</div>
</q-banner>
</q-popup-proxy>
</i>
</q-td>
</template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
...@@ -210,6 +187,32 @@ ...@@ -210,6 +187,32 @@
<q-item-label>月度课耗</q-item-label> <q-item-label>月度课耗</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable v-close-popip>
<q-item-section>
<q-item-label>
<span>{{props.row.ClassStatusStr}}</span>&nbsp;
<i class="iconfont icon-edit" @click.stop="getClassItem(props.row)" title="点击修改班级状态">
<q-popup-proxy>
<q-banner v-if="isShowEdit">
<div class="calenderDialog">
<div style="margin:10px 0 15px 0;">设置班级状态</div>
<q-select filled option-value="Id" option-label="Name"
v-model="statusMsg.ClassStatus" :options="classStatusList" emit-value map-options label="班级状态" />
<q-select v-if="props.row.Teacher_Id==0" filled option-value="TId" option-label="TeacherName" style="margin-top:20px;"
v-model="statusMsg.Teacher_Id" :options="TeacherList" emit-value map-options label="带班老师" />
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" @click="isShowEdit=false"
style="font-weight:400 !important" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important"
@click="setClassStatus()" />
</q-card-actions>
</div>
</q-banner>
</q-popup-proxy>
</i>
</q-item-label>
</q-item-section>
</q-item>
</q-list> </q-list>
</q-btn-dropdown> </q-btn-dropdown>
</q-td> </q-td>
...@@ -235,7 +238,8 @@ ...@@ -235,7 +238,8 @@
//获取校区列表 //获取校区列表
import { import {
getSchoolDropdown, getSchoolDropdown,
deleteClass deleteClass,
getTeacherDropDownList
} from '../../api/school/index'; } from '../../api/school/index';
import classForm from '../../components/course/class-form'; import classForm from '../../components/course/class-form';
...@@ -312,12 +316,6 @@ ...@@ -312,12 +316,6 @@
field: 'CompleteProgress', field: 'CompleteProgress',
align: 'left' align: 'left'
}, },
{
name: 'ClassStatusStr',
label: '状态',
align: 'left',
field: 'ClassStatusStr'
},
{ {
name: 'optioned', name: 'optioned',
label: '操作', label: '操作',
...@@ -346,11 +344,13 @@ ...@@ -346,11 +344,13 @@
isShowEdit: false, isShowEdit: false,
statusMsg: { statusMsg: {
ClassId: 0, ClassId: 0,
ClassStatus: 0 ClassStatus: 0,
Teacher_Id:0
}, },
isShowClassForm: false, //是否显示新增修改弹窗 isShowClassForm: false, //是否显示新增修改弹窗
isShowClassInfo: false, //是否显示课程信息 isShowClassInfo: false, //是否显示课程信息
IsShowOtherCourse: false, //是否显示其他课程 IsShowOtherCourse: false, //是否显示其他课程
TeacherList:[]
} }
}, },
created() { created() {
...@@ -359,6 +359,7 @@ ...@@ -359,6 +359,7 @@
} }
this.getClassStatus(); this.getClassStatus();
this.getSchool(); this.getSchool();
this.GetTeacherList();
}, },
mounted() { mounted() {
this.getClassList(); this.getClassList();
...@@ -547,7 +548,20 @@ ...@@ -547,7 +548,20 @@
this.OpenNewUrl('/course/chapter' , { this.OpenNewUrl('/course/chapter' , {
CourseId: CouseId CourseId: CouseId
}); });
},
//获取教师下拉
GetTeacherList() {
getTeacherDropDownList({}).then(res => {
if (res.Code == 1) {
this.TeacherList = res.Data;
this.TeacherList.unshift({
TId: 0,
TeacherName: "不限"
})
} }
})
},
} }
} }
......
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