Commit 94f07920 authored by zhengke's avatar zhengke

修改

parent 1a29f945
...@@ -633,3 +633,14 @@ export function BatchUpdateClassPlan(data) { ...@@ -633,3 +633,14 @@ export function BatchUpdateClassPlan(data) {
data data
}); });
} }
/**
* 忽略上课调整
*/
export function IgnoreClassPlan(data) {
return request({
url: '/Class/IgnoreClassPlan',
method: 'post',
data
});
}
\ No newline at end of file
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<q-card-section class="q-pt-none scroll" style="max-height: 70vh"> <q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<q-table :pagination="showMsg" :loading="loading" no-data-label="暂无相关数据" selection="multiple" flat <q-table :pagination="showMsg" :loading="loading" no-data-label="暂无相关数据" selection="multiple" flat
:selected.sync="selectedAll" class="sticky-column-table sticky-header-column-table" separator="none" :selected.sync="selectedAll" class="sticky-column-table sticky-header-column-table" separator="none"
style="max-height: 450px" :data="dataList" :columns="columns" row-key="ClassPlanId" hide-bottom> style="max-height: 400px" :data="dataList" :columns="columns" row-key="ClassPlanId" hide-bottom>
<template v-slot:top="props"> <template v-slot:top="props">
<div class="text-caption q-my-lg q-px-md text-grey-6 col"> <div class="text-caption q-my-lg q-px-md text-grey-6 col">
变更内容 注意:需要对变更的内容进行打钩 变更内容 注意:需要对变更的内容进行打钩
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
<div style="display:flex;justify-content:flex-end;margin-bottom:20px;"> <div style="display:flex;justify-content:flex-end;margin-bottom:20px;">
<q-btn @click="addStepOne(postMsg)" size="10px" round color="primary" icon="iconfont icon-img_haha" /> <q-btn @click="addStepOne(postMsg)" size="10px" round color="primary" icon="iconfont icon-img_haha" />
</div> </div>
<div class="row wrap" style="position:relative;" v-for="(subItem,subIndex) in postMsg.TimeList" <div class="row wrap" style="position:relative;" v-for="(subItem,subIndex) in postMsg.PlanTimeList"
:key="subIndex"> :key="subIndex">
<div class="col-4"> <div class="col-4">
<q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" placeholder="开始时间" <q-input filled v-model="subItem.StartTime" class="col-6 q-pr-lg q-pb-lg" placeholder="开始时间"
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
<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="closeCourseForm" /> <q-btn label="忽略冲突" flat color="grey-10" style="font-weight:400 !important" @click="IgnoreClass" />
<q-btn label="提交调整" color="accent q-px-md" style="font-weight:400 !important" :loading="saveLoading" <q-btn label="提交调整" color="accent q-px-md" style="font-weight:400 !important" :loading="saveLoading"
@click="saveClass"> @click="saveClass">
</q-btn> </q-btn>
...@@ -263,7 +263,8 @@ ...@@ -263,7 +263,8 @@
getTeacherDropDownList, getTeacherDropDownList,
queryClassRoomList, queryClassRoomList,
UpdateClassPlanSingle, UpdateClassPlanSingle,
BatchUpdateClassPlan BatchUpdateClassPlan,
IgnoreClassPlan
} from "../../api/school/index"; } from "../../api/school/index";
export default { export default {
props: { props: {
...@@ -399,10 +400,17 @@ ...@@ -399,10 +400,17 @@
} }
return tName; return tName;
}, },
//关闭弹窗 //忽略上课调整
closeCourseForm() { IgnoreClass() {
this.$emit('close'); IgnoreClassPlan({
this.persistent = false; ClassId: this.ClassId
}).then(res => {
this.loading = false;
if (res.Code == 1) {
this.$emit('success');
this.$emit('close');
}
})
}, },
//获取冲突的数据列表 //获取冲突的数据列表
getList() { getList() {
......
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