Commit c90d34bc authored by 罗超's avatar 罗超

1

parent ff1264a8
<template> <template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale" transition-hide="scale"> <q-dialog
<q-card style="width: 800px;max-width:900px;"> v-model="persistent"
content-class="bg-grey-1"
persistent
transition-show="scale"
transition-hide="scale"
>
<q-card style="width: 800px; max-width: 900px">
<q-card-section> <q-card-section>
<div class="text-h6" v-if="this.msg.Id===0">添加事件</div> <div class="text-h6" v-if="this.msg.Id === 0">添加事件</div>
<div class="text-h6" v-if="this.msg.Id>0">修改事件</div> <div class="text-h6" v-if="this.msg.Id > 0">修改事件</div>
</q-card-section> </q-card-section>
<q-card-section class="q-pt-none"> <q-card-section class="q-pt-none">
<div class="row "> <div class="row">
<div class="col-6 q-pr-lg"> <div class="col-6 q-pr-lg">
<q-input filled v-model="msg.Title" label="标题" /> <q-input filled v-model="msg.Title" label="标题" />
</div> </div>
<div class="col-6"> <div class="col-6">
<q-select @input="" standout="bg-primary text-white" v-model="msg.EventType" class="col-6" <q-select
option-label="Name" option-value="Id" :options="typeOpts" emit-value map-options label="类型" /> @input=""
standout="bg-primary text-white"
v-model="msg.EventType"
class="col-6"
option-label="Name"
option-value="Id"
:options="typeOpts"
emit-value
map-options
label="类型"
/>
</div> </div>
</div> </div>
<q-input filled type="textarea" :rows="3" style="margin-top:20px;" stack-label maxlength="2000" <q-input
v-model="msg.EventContent" :dense="false" class="col-12 q-pb-lg" label="内容" /> filled
<div class="row wrap" style="padding-top:20px"> type="textarea"
<div style="display:flex;flex-wrap: wrap;"> :rows="3"
<div v-if="msg.EventPicList&&msg.EventPicList.length>0" v-for="(item,index) in msg.EventPicList"> style="margin-top: 20px"
stack-label
maxlength="2000"
v-model="msg.EventContent"
:dense="false"
class="col-12 q-pb-lg"
label="内容"
/>
<div class="row wrap" style="padding-top: 20px">
<div style="display: flex; flex-wrap: wrap">
<div
v-if="msg.EventPicList && msg.EventPicList.length > 0"
v-for="(item, index) in msg.EventPicList"
>
<div class="ItemImgDiv"> <div class="ItemImgDiv">
<q-img :src="item" spinner-color="white" style="height: 100%;height:100%" /> <q-img
<q-btn size="7px" @click="deleteItemImg(index)" style="position:absolute;right:-5px;top:-5px;" round :src="item"
color="red" icon="iconfont icon-guanbi1" /> spinner-color="white"
style="height: 100%; height: 100%"
/>
<q-btn
size="7px"
@click="deleteItemImg(index)"
style="position: absolute; right: -5px; top: -5px"
round
color="red"
icon="iconfont icon-guanbi1"
/>
</div> </div>
</div> </div>
<el-upload class="avatar-uploader addDutyMain" action="" :before-upload="uploadFile" <el-upload
:show-file-list="false"> class="avatar-uploader addDutyMain"
action=""
:before-upload="uploadFile"
:show-file-list="false"
>
<i class="el-icon-plus avatar-uploader-icon"></i> <i class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
</div> </div>
</div> </div>
</q-card-section> </q-card-section>
<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="closeSaveForm" /> <q-btn
<q-btn label="立即提交" color="accent q-px-md" style="font-weight:400 !important" :loading="saveLoading" label="取消"
@click="save" /> flat
color="grey-10"
style="font-weight: 400 !important"
@click="closeSaveForm"
/>
<q-btn
label="立即提交"
color="accent q-px-md"
style="font-weight: 400 !important"
:loading="saveLoading"
@click="save"
/>
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
</template> </template>
<script> <script>
import { import { UploadSelfFile } from "../../api/common/common";
UploadSelfFile, import { addEvent } from "../../api/stuMan/index.js";
} from '../../api/common/common' export default {
import { props: {
addEvent setObj: {
} from '../../api/stuMan/index.js' type: Object,
export default { default: null,
props: {
setObj: {
type: Object,
default: null
}
}, },
data() { },
return { data() {
persistent: true, return {
saveLoading: false, persistent: true,
msg: { saveLoading: false,
Id: 0, msg: {
StuId: 0, Id: 0,
School_Id: 0, StuId: 0,
EventType: 2, School_Id: 0,
EventContent: "", EventType: 2,
Title: "", EventContent: "",
EventPicList: [] Title: "",
EventPicList: [],
},
typeOpts: [
{
Name: "处分",
Id: 1,
},
{
Name: "奖励",
Id: 2,
}, },
typeOpts: [{ ],
Name: "处分", };
Id: 1, },
}, mounted() {
{ console.log(85, this.setObj);
Name: "奖励", if (this.setObj) {
Id: 2, if (this.setObj.STUID) {
}, this.msg.StuId = this.setObj.STUID;
]
} }
}, if (this.setObj.School_Id) {
mounted() { this.msg.School_Id = this.setObj.School_Id;
console.log(85, this.setObj) }
if (this.setObj) { if (this.setObj.Id > 0) {
if (this.setObj.Student_Id) { this.msg.Id = this.setObj.Id;
this.msg.StuId = this.setObj.Student_Id if (this.setObj.EventType) {
this.msg.EventType = this.setObj.EventType;
} }
if (this.setObj.School_Id) { if (this.setObj.Title) {
this.msg.School_Id = this.setObj.School_Id this.msg.Title = this.setObj.Title;
} }
if (this.setObj.Id>0) { if (this.setObj.EventContent) {
this.msg.Id = this.setObj.Id this.msg.EventContent = this.setObj.EventContent;
if (this.setObj.EventType) {
this.msg.EventType = this.setObj.EventType
}
if (this.setObj.Title) {
this.msg.Title = this.setObj.Title
}
if (this.setObj.EventContent) {
this.msg.EventContent = this.setObj.EventContent
}
if (this.setObj.EventPicList) {
this.msg.EventPicList = this.setObj.EventPicList
}
}else{
this.msg.Id =0
this.msg.EventType = 2
this.msg.Title = ""
this.msg.EventContent = ""
this.msg.EventPicList =[]
} }
if (this.setObj.EventPicList) {
}else{ this.msg.EventPicList = this.setObj.EventPicList;
this.msg.Id =0 }
this.msg.EventType = 2 } else {
this.msg.Title = "" this.msg.Id = 0;
this.msg.EventContent = "" this.msg.EventType = 2;
this.msg.EventPicList =[] this.msg.Title = "";
this.msg.EventContent = "";
this.msg.EventPicList = [];
} }
console.log(109, this.msg) } else {
this.$forceUpdate(); this.msg.Id = 0;
this.msg.EventType = 2;
this.msg.Title = "";
this.msg.EventContent = "";
this.msg.EventPicList = [];
}
console.log(109, this.msg);
this.$forceUpdate();
},
methods: {
closeSaveForm() {
this.$emit("close");
this.persistent = false;
}, },
methods: { save() {
closeSaveForm() { console.log(89, this.msg);
this.$emit('close') this.saveLoading = true;
this.persistent = false addEvent(this.msg)
}, .then((res) => {
save() { this.saveLoading = false;
console.log(89, this.msg)
this.saveLoading = true
addEvent(this.msg).then(res => {
this.saveLoading = false
if (res.Code === 1) { if (res.Code === 1) {
this.$message.success("操作成功") this.$message.success("操作成功");
this.$emit("success") this.$emit("success");
this.persistent = false this.persistent = false;
} else { } else {
this.$message.error(res.Message) this.$message.error(res.Message);
}
}).catch(err => {
this.saveLoading = false
})
},
uploadFile(files) {
UploadSelfFile('studentIcon', files, res => {
if (res.Code == 1) {
this.msg.EventPicList.push(res.FileUrl);
} }
}) })
}, .catch((err) => {
//删除图片 this.saveLoading = false;
deleteItemImg(index) { });
this.msg.EventPicList.splice(index, 1);
}
}, },
} uploadFile(files) {
UploadSelfFile("studentIcon", files, (res) => {
if (res.Code == 1) {
this.msg.EventPicList.push(res.FileUrl);
}
});
},
//删除图片
deleteItemImg(index) {
this.msg.EventPicList.splice(index, 1);
},
},
};
</script> </script>
<style> <style>
.avatar-uploader .el-upload { .avatar-uploader .el-upload {
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: #8c939d; color: #8c939d;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
.addDutyMain {
display: inline-block;
width: 118px;
height: 118px;
font-size: 70px;
border: 1px dashed #d9d9d9;
line-height: 120px;
}
.ItemImgDiv { .addDutyMain {
width: 118px; display: inline-block;
height: 118px; width: 118px;
position: relative; height: 118px;
margin: 0 10px 10px 0; font-size: 70px;
display: inline-block; border: 1px dashed #d9d9d9;
} line-height: 120px;
}
._delete_img { .ItemImgDiv {
position: absolute; width: 118px;
top: 0px; height: 118px;
height: 82px; position: relative;
width: 143px; margin: 0 10px 10px 0;
line-height: 34px; display: inline-block;
text-align: center; }
background-color: rgba(2, 2, 2, 0.6);
display: inherit;
opacity: 0;
transition: all linear .5s
}
._delete_img i.iconfont { ._delete_img {
display: inline-block; position: absolute;
width: 32px; top: 0px;
height: 32px; height: 82px;
border-radius: 50%; width: 143px;
color: #E95252 !important; line-height: 34px;
background-color: rgba(251, 251, 251, 0.9); text-align: center;
margin-top: 26px; background-color: rgba(2, 2, 2, 0.6);
} display: inherit;
opacity: 0;
transition: all linear 0.5s;
}
._upload_box ul li { ._delete_img i.iconfont {
float: left; display: inline-block;
height: 82px; width: 32px;
width: 143px; height: 32px;
padding: 0px 20px 20px 0; border-radius: 50%;
text-align: center; color: #e95252 !important;
position: relative; background-color: rgba(251, 251, 251, 0.9);
cursor: pointer; margin-top: 26px;
margin-right: 10px; }
}
._upload_box ul li img { ._upload_box ul li {
height: 82px; float: left;
width: 143px; height: 82px;
} width: 143px;
padding: 0px 20px 20px 0;
text-align: center;
position: relative;
cursor: pointer;
margin-right: 10px;
}
._upload_box ul li:hover ._delete_img { ._upload_box ul li img {
opacity: 1; height: 82px;
} width: 143px;
}
._upload_tips { ._upload_box ul li:hover ._delete_img {
font-size: 12px; opacity: 1;
position: absolute; }
top: 71%;
width: 100%;
left: 0;
text-align: center;
color: #949494;
}
._upload_tips {
font-size: 12px;
position: absolute;
top: 71%;
width: 100%;
left: 0;
text-align: center;
color: #949494;
}
</style> </style>
<style> <style>
li { li {
list-style-type: none; list-style-type: none;
} }
.stuList ul { .stuList ul {
padding: 0px; padding: 0px;
} }
.stuList li { .stuList li {
background: rgba(221, 222, 224, 0.2); background: rgba(221, 222, 224, 0.2);
border-radius: 4px; border-radius: 4px;
margin-top: 15px; margin-top: 15px;
} }
.stuList li .dline { .stuList li .dline {
display: table; display: table;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.stuList li .d1, .stuList li .d1,
.stuList li .d2, .stuList li .d2,
.stuList li .d3, .stuList li .d3,
.stuList li .d4, .stuList li .d4,
.stuList li .d5 { .stuList li .d5 {
width: 18%; width: 18%;
padding: 20px 20px 10px; padding: 20px 20px 10px;
} }
.stuList li .d7 { .stuList li .d7 {
flex: 1; flex: 1;
width: 1px; width: 1px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.stuList li .d1 .di-title { .stuList li .d1 .di-title {
font-size: 16px; font-size: 16px;
color: #111111; color: #111111;
} }
.stuList li .d1 .di-c { .stuList li .d1 .di-c {
font-size: 14px; font-size: 14px;
display: flex; display: flex;
line-height: 28px; line-height: 28px;
color: #111111; color: #111111;
} }
.stuList li .d6 { .stuList li .d6 {
padding: 10px 20px; padding: 10px 20px;
width: 100%; width: 100%;
height: inherit; height: inherit;
position: relative; position: relative;
border-top: 1px solid #dddee0; border-top: 1px solid #dddee0;
} }
.stuList li .d6 .progress { .stuList li .d6 .progress {
width: 100%; width: 100%;
height: 5px; height: 5px;
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 0; bottom: 0;
} }
.stuList li .d2 div { .stuList li .d2 div {
margin: 2px 0; margin: 2px 0;
font-size: 14px; font-size: 14px;
color: #111111; color: #111111;
} }
.stuList li .d2-n { .stuList li .d2-n {
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
margin-right: 20px; margin-right: 20px;
} }
.stuList li .d3 .d3-s { .stuList li .d3 .d3-s {
color: var(--q-color-negative); color: var(--q-color-negative);
font-weight: bold; font-weight: bold;
} }
.stuList li .d3 div { .stuList li .d3 div {
margin: 2px 0; margin: 2px 0;
font-size: 14px; font-size: 14px;
} }
.stuList li .d4 div { .stuList li .d4 div {
font-size: 14px; font-size: 14px;
color: #111111; color: #111111;
margin: 2px 0; margin: 2px 0;
} }
.stuList li .d5 div { .stuList li .d5 div {
font-size: 14px; font-size: 14px;
color: #111111; color: #111111;
margin: 2px 0; margin: 2px 0;
} }
.stuList .myCourseNName { .stuList .myCourseNName {
width: 25px; width: 25px;
height: 25px; height: 25px;
border-radius: 50%; border-radius: 50%;
color: #fff !important; color: #fff !important;
text-align: center; text-align: center;
line-height: 25px; line-height: 25px;
background-color: #004d40; background-color: #004d40;
} }
.stuList .app-image { .stuList .app-image {
background-position: center center; background-position: center center;
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius: 0%; border-radius: 0%;
float: left; float: left;
margin-right: 8px; margin-right: 8px;
} }
.Sysuser_Date .el-input { .Sysuser_Date .el-input {
width: 100%; width: 100%;
border: none; border: none;
background-color: transparent; background-color: transparent;
} }
.Sysuser_Date .el-input__inner { .Sysuser_Date .el-input__inner {
width: 100%; width: 100%;
border: none; border: none;
background-color: transparent; background-color: transparent;
} }
.Sysuser_Date .el-range-editor .el-range-input { .Sysuser_Date .el-range-editor .el-range-input {
width: 100%; width: 100%;
border: none; border: none;
background-color: transparent; background-color: transparent;
} }
.el-picker-panel { .el-picker-panel {
z-index: 99999 !important; z-index: 99999 !important;
} }
.syster_qDropdown .q-btn__wrapper { .syster_qDropdown .q-btn__wrapper {
padding: 0 3px; padding: 0 3px;
min-height: 0 !important; min-height: 0 !important;
} }
.editOrderDrawerTop {
width: 100%;
height: 50px;
display: flex;
justify-content: space-between;
background-color: #f0f5fb;
padding: 5px 10px;
align-items: center;
}
.editOrderDrawerTop {
width: 100%;
height: 50px;
display: flex;
justify-content: space-between;
background-color: #f0f5fb;
padding: 5px 10px;
align-items: center;
}
</style> </style>
<template> <template>
<div class="page-body stuList"> <div class="page-body stuList">
<div class="row q-mb-md"> <div class="row q-mb-md">
<q-space></q-space> <q-space></q-space>
<!-- <el-badge :value="11" style="float:right"> --> <!-- <el-badge :value="11" style="float:right"> -->
<div style="position:relative;"> <div style="position: relative">
<q-btn color="accent" label="高级查询" @click="IsShowQuery=true"></q-btn> <q-btn
<q-badge floating rounded color="red">{{queryNum}}</q-badge> color="accent"
label="高级查询"
@click="IsShowQuery = true"
></q-btn>
<q-badge floating rounded color="red">{{ queryNum }}</q-badge>
</div> </div>
<!-- </el-badge> --> <!-- </el-badge> -->
</div> </div>
<div class="page-search row items-center flex"> <div class="page-search row items-center flex">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3 "> <div class="col-3">
<q-select @input="changeSchool" standout="bg-primary text-white" v-model="msg.School_Id" class="col-6" <q-select
option-label="SName" option-value="SId" :options="SchoolList" emit-value map-options label="校区" /> @input="changeSchool"
standout="bg-primary text-white"
v-model="msg.School_Id"
class="col-6"
option-label="SName"
option-value="SId"
:options="SchoolList"
emit-value
map-options
label="校区"
/>
</div> </div>
<div class="col-3 "> <div class="col-3">
<q-select @input="changeCourse" standout="bg-primary text-white" v-model="msg.CourseId" class="col-6" <q-select
option-label="CourseName" option-value="CourseId" use-input :options="CourseList" @filter="filterCourse" @input="changeCourse"
emit-value map-options label="课程" clearable> standout="bg-primary text-white"
v-model="msg.CourseId"
class="col-6"
option-label="CourseName"
option-value="CourseId"
use-input
:options="CourseList"
@filter="filterCourse"
emit-value
map-options
label="课程"
clearable
>
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
<q-item-section class="text-grey"> <q-item-section class="text-grey">
...@@ -188,11 +213,31 @@ ...@@ -188,11 +213,31 @@
</template> </template>
</q-select> </q-select>
</div> </div>
<div class="col-3 "> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.ClassId" class="col-6" use-input <q-select
@filter="filterClass" option-label="ClassName" option-value="ClassId" :options="classList" emit-value @input="resetSearch"
map-options label="班级" clearable> standout="bg-primary text-white"
<template v-slot:option="{ itemProps, itemEvents, opt, selected, toggleOption }"> v-model="msg.ClassId"
class="col-6"
use-input
@filter="filterClass"
option-label="ClassName"
option-value="ClassId"
:options="classList"
emit-value
map-options
label="班级"
clearable
>
<template
v-slot:option="{
itemProps,
itemEvents,
opt,
selected,
toggleOption,
}"
>
<q-item v-bind="itemProps" v-on="itemEvents"> <q-item v-bind="itemProps" v-on="itemEvents">
<q-item-section> <q-item-section>
<q-item-label v-html="opt.ClassName"></q-item-label> <q-item-label v-html="opt.ClassName"></q-item-label>
...@@ -212,98 +257,167 @@ ...@@ -212,98 +257,167 @@
</q-select> </q-select>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="学员姓名" <q-input
@clear="resetSearch" maxlength="20" /> @input="resetSearch"
clearable
standout="bg-primary text-white"
v-model="msg.GuestName"
label="学员姓名"
@clear="resetSearch"
maxlength="20"
/>
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <q-table
class="sticky-tow-column-table sticky-right-column-table" separator="none" :data="data" :columns="columns" :pagination="msg"
row-key="name"> :loading="loading"
no-data-label="暂无相关数据"
flat
class="sticky-tow-column-table sticky-right-column-table"
separator="none"
:data="data"
:columns="columns"
row-key="name"
>
<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">学员名单</div>
</template> </template>
<template v-slot:body-cell-ContractNo="props"> <template v-slot:body-cell-ContractNo="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="seeContract(props.row)"> <div
{{props.row.ContractNo}} style="color: #f00; cursor: pointer"
@click="seeContract(props.row)"
>
{{ props.row.ContractNo }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-ClassName="props"> <template v-slot:body-cell-ClassName="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="seeClassDetail(props.row)"> <div
{{props.row.ClassName}} style="color: #f00; cursor: pointer"
@click="seeClassDetail(props.row)"
>
{{ props.row.ClassName }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-OrderId="props"> <template v-slot:body-cell-OrderId="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="showOrderDetail(props.row,1)"> <div
{{props.row.OrderId}} style="color: #f00; cursor: pointer"
@click="showOrderDetail(props.row, 1)"
>
{{ props.row.OrderId }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-Income="props"> <template v-slot:body-cell-Income="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="showOrderDetail(props.row,4)"> <div
{{props.row.Income}} style="color: #f00; cursor: pointer"
@click="showOrderDetail(props.row, 4)"
>
{{ props.row.Income }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-Refund="props"> <template v-slot:body-cell-Refund="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="showOrderDetail(props.row,4)"> <div
{{props.row.Refund}} style="color: #f00; cursor: pointer"
@click="showOrderDetail(props.row, 4)"
>
{{ props.row.Refund }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-CompleteHours="props"> <template v-slot:body-cell-CompleteHours="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="seeStudentsClassUse(props.row)"> <div
{{props.row.CompleteHours}} style="color: #f00; cursor: pointer"
@click="seeStudentsClassUse(props.row)"
>
{{ props.row.CompleteHours }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-MakeUpHours="props"> <template v-slot:body-cell-MakeUpHours="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="showList(props.row,1)"> <div
{{props.row.MakeUpHours}} style="color: #f00; cursor: pointer"
@click="showList(props.row, 1)"
>
{{ props.row.MakeUpHours }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-AbsenceNum="props"> <template v-slot:body-cell-AbsenceNum="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="showList(props.row,2)"> <div
{{props.row.AbsenceNum}} style="color: #f00; cursor: pointer"
@click="showList(props.row, 2)"
>
{{ props.row.AbsenceNum }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-LeaveNum="props" > <template v-slot:body-cell-LeaveNum="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="showList(props.row,3)"> <div
{{props.row.LeaveNum}} style="color: #f00; cursor: pointer"
@click="showList(props.row, 3)"
>
{{ props.row.LeaveNum }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-EventlogNum="props"> <template v-slot:body-cell-EventlogNum="props">
<q-td :props="props"> <q-td :props="props">
<div style="color:#f00;cursor:pointer;" @click="showEventLog(props.row)"> <div
{{props.row.EventlogNum}} style="color: #f00; cursor: pointer"
@click="showEventLog(props.row)"
>
{{ props.row.EventlogNum }}
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<div> <div>
<q-btn flat size="xs" color="accent" style="font-weight:400" label="停课" v-if="props.row.GuestState===1" <q-btn
@click="ShowStopLesson(props.row)" /> flat
<q-btn flat size="xs" color="accent" style="font-weight:400" label="转班" v-if="props.row.GuestState===1" size="xs"
@click="transferClass(props.row,1)" /> color="accent"
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;"> style="font-weight: 400"
label="停课"
v-if="props.row.GuestState === 1"
@click="ShowStopLesson(props.row)"
/>
<q-btn
flat
size="xs"
color="accent"
style="font-weight: 400"
label="转班"
v-if="props.row.GuestState === 1"
@click="transferClass(props.row, 1)"
/>
<q-btn-dropdown
flat
size="xs"
color="dark"
label="更多"
style="margin-left: 10px"
>
<q-list> <q-list>
<q-item clickable v-close-popup @click="showAddEvent(props.row)"> <q-item
clickable
v-close-popup
@click="showAddEvent(props.row)"
>
<q-item-section> <q-item-section>
<q-item-label>添加事件</q-item-label> <q-item-label>添加事件</q-item-label>
</q-item-section> </q-item-section>
...@@ -314,515 +428,565 @@ ...@@ -314,515 +428,565 @@
</q-td> </q-td>
</template> </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
:input="true" @input="changePage" /> class="full-width justify-end"
v-model="msg.pageIndex"
color="primary"
:max="pageCount"
:input="true"
@input="changePage"
/>
</template> </template>
</q-table> </q-table>
</div> </div>
<!-- 高级查询 --> <!-- 高级查询 -->
<MoreQuery v-if="IsShowQuery" :typeEnum="typeEnum" :warnEnum="warnEnum" :saveQuery="msg" @close="closeHandle" <MoreQuery
@success="morequery"> v-if="IsShowQuery"
:typeEnum="typeEnum"
:warnEnum="warnEnum"
:saveQuery="msg"
@close="closeHandle"
@success="morequery"
>
</MoreQuery> </MoreQuery>
<!-- 停课申请 --> <!-- 停课申请 -->
<StopLesson-form v-if="isShowStopLesson" :setObj="stuObj" @success="resetSearch" @close="closeHandle" /> <StopLesson-form
v-if="isShowStopLesson"
:setObj="stuObj"
@success="resetSearch"
@close="closeHandle"
/>
<!-- 转班申请 --> <!-- 转班申请 -->
<transferclass-form v-if="isShowTransferClass" :save-obj="orderObj" :ChangeType="ChangeType" @close="closeHandle" <transferclass-form
@success="resetSearch"></transferclass-form> v-if="isShowTransferClass"
:save-obj="orderObj"
:ChangeType="ChangeType"
@close="closeHandle"
@success="resetSearch"
></transferclass-form>
<!-- 添加事件 --> <!-- 添加事件 -->
<AddEvent-form v-if="isShowAddEvent" :setObj="eventObj" @success="resetSearch" @close="closeHandle" /> <AddEvent-form
v-if="isShowAddEvent"
:setObj="eventObj"
@success="resetSearch"
@close="closeHandle"
/>
<!-- 班级详情 --> <!-- 班级详情 -->
<classinfo-form v-if="isShowClassInfo" :seting-obj="eventObj" @close="closeHandle" <classinfo-form
@success="refreshPage"/> v-if="isShowClassInfo"
<!-- 订单详情 --> :seting-obj="eventObj"
<myOrder-form v-if="isShowmyorderForm" :save-obj="eventObj" @close="closeHandle"></myOrder-form> @close="closeHandle"
<!-- 可补课课时,缺勤次数,请假次数 --> @success="refreshPage"
<list v-if="isShowList" :type="showType" :set-obj="eventObj" @close="closeHandle"/> />
<!-- 事件记录 --> <!-- 订单详情 -->
<eventLog v-if="isShowEventLog" :set-obj="eventObj" @modify="modifyEvent" @close="closeHandle"/> <myOrder-form
v-if="isShowmyorderForm"
:save-obj="eventObj"
@close="closeHandle"
></myOrder-form>
<!-- 可补课课时,缺勤次数,请假次数 -->
<list
v-if="isShowList"
:type="showType"
:set-obj="eventObj"
@close="closeHandle"
/>
<!-- 事件记录 -->
<eventLog
v-if="isShowEventLog"
:set-obj="eventObj"
@modify="modifyEvent"
@close="closeHandle"
/>
</div> </div>
</template> </template>
<script> <script>
import { import {
getSchoolDropdown, getSchoolDropdown,
getClassDropDownList, getClassDropDownList,
} from '../../api/school/index' } from "../../api/school/index";
import { import { queryCourseDropdownList } from "../../api/course/index";
queryCourseDropdownList import {
} from '../../api/course/index' getStuList,
import { getEarlyWarningEnum,
getStuList, getTypeEnum,
getEarlyWarningEnum, } from "../../api/stuMan/index.js";
getTypeEnum, import MoreQuery from "../../components/stuMan/moreQuery.vue";
} from '../../api/stuMan/index.js' import StopLessonForm from "../../components/teacher/stopLessonForm";
import MoreQuery from '../../components/stuMan/moreQuery.vue' import transferclassForm from "../../components/sale/transferclass-form"; //转班信息
import StopLessonForm from '../../components/teacher/stopLessonForm' import AddEventForm from "../../components/stuMan/addEvent-form.vue"; //转班信息
import transferclassForm from '../../components/sale/transferclass-form' //转班信息 import classinfoForm from "../../components/course/classinfo-form"; //班级详情
import AddEventForm from '../../components/stuMan/addEvent-form.vue' //转班信息 import myOrderForm from "../../components/sale/myOrder-form"; //订单详情
import classinfoForm from '../../components/course/classinfo-form';//班级详情 import list from "../../components/stuMan/makeUpHours.vue"; //可补课课时,缺勤次数,请假次数
import myOrderForm from '../../components/sale/myOrder-form';//订单详情 import eventLog from "../../components/stuMan/eventRecord.vue"; //事件记录
import list from '../../components/stuMan/makeUpHours.vue';//可补课课时,缺勤次数,请假次数 export default {
import eventLog from '../../components/stuMan/eventRecord.vue';//事件记录 meta: {
export default { title: "学员名单",
meta: { },
title: "学员名单" components: {
}, MoreQuery,
components: { StopLessonForm,
MoreQuery, transferclassForm,
StopLessonForm, AddEventForm,
transferclassForm, classinfoForm,
AddEventForm, myOrderForm,
classinfoForm, list,
myOrderForm, eventLog,
list, },
eventLog, data() {
}, return {
data() { IsShowQuery: false,
return { data: [],
IsShowQuery: false, loading: false,
data: [], msg: {
loading: false, pageIndex: 1,
msg: { pageSize: 10,
pageIndex: 1, rowsPerPage: 10,
pageSize: 10, School_Id: -1, //校区
rowsPerPage: 10, CourseId: 0, //课程
School_Id: -1, //校区 ClassId: 0, //班级
CourseId: 0, //课程 GuestName: "", //学生姓名
ClassId: 0, //班级 ClassNo: "", //班号
GuestName: '', //学生姓名 OrderId: 0, //订单号
ClassNo: '', //班号 EnterID: 0, //业务员
OrderId: 0, //订单号 EffectStatus: "", //状态
EnterID: 0, //业务员 JoinType: 0, //类型
EffectStatus: "", //状态 EarlyWarning: 0, //预警
JoinType: 0, //类型 OrderTime: "", //下单时间
EarlyWarning: 0, //预警 EndOrderTime: "", //下单结束时间
OrderTime: "", //下单时间 },
EndOrderTime: "", //下单结束时间 pageCount: 0,
columns: [
{
name: "Id",
label: "编号",
field: "Id",
align: "left",
required: true,
}, },
pageCount: 0, {
columns: [{ name: "GuestName",
name: "Id", label: "姓名",
label: "编号", align: "left",
field: "Id", field: "GuestName",
align: "left", required: true,
required: true,
},
{
name: "GuestName",
label: "姓名",
align: "left",
field: "GuestName",
required: true,
},
{
name: "Mobile",
label: "电话",
align: "left",
field: "Mobile"
},
{
name: "ContractNo",
label: "合同编号",
align: "left",
field: "ContractNo",
},
{
name: "ClassName",
label: "班级",
align: "left",
field: "ClassName",
},
{
name: "CourseName",
label: "课程",
align: "left",
field: "CourseName",
},
{
name: "TeacherName",
label: "老师",
align: "left",
field: "TeacherName",
},
{
name: "OrderId",
label: "订单号",
align: "left",
field: "OrderId",
},
{
name: "OrderTime",
label: "报名时间",
align: "left",
field: "OrderTime",
},
{
name: "EnterName",
label: "业务员",
field: "EnterName",
align: "left"
},
{
name: "PreferPrice",
label: "应收金额",
field: "PreferPrice",
align: "left"
},
{
name: "Income",
label: "实收金额",
field: "Income",
align: "left"
},
{
name: "Refund",
label: "退款金额",
field: "Refund",
align: "left"
},
{
name: "TotalHours",
label: "课程总课时",
field: "TotalHours",
align: "left"
},
{
name: "ValidClassHours",
label: "有效课时",
field: "ValidClassHours",
align: "left"
},
{
name: "CompleteHours",
label: "消耗课时",
field: "CompleteHours",
align: "left"
},
{
name: "SurplusHours",
label: "剩余课时",
field: "SurplusHours",
align: "left"
},
{
name: "MakeUpHours",
label: "可补课课时",
field: "MakeUpHours",
align: "left"
},
{
name: "AbsenceNum",
label: "缺勤次数",
field: "AbsenceNum",
align: "left"
},
{
name: "LeaveNum",
label: "请假次数",
field: "LeaveNum",
align: "left"
},
{
name: "EventlogNum",
label: "事件记录",
field: "EventlogNum",
align: "left"
},
{
name: "GuestStateStr",
label: "状态",
field: "GuestStateStr",
align: "left"
},
{
name: "JoinTypeStr",
label: "类型",
field: "JoinTypeStr",
align: "left"
},
{
name: 'optioned',
label: '操作',
required: true,
align: "left"
}
],
SchoolList: [],
CourseList: [],
AllCourseList: [],
classList: [],
AllClassList: [],
queryClass: {
CourseId: 0,
IsAddDefault: 1,
SchoolId: -1,
Teacher_Id: 0,
MoreStatus: "1,2,3",
IsQuerySurplusPlan: 0
}, },
typeEnum: [], {
warnEnum: [], name: "Mobile",
queryNum: 0, //高级查询个数 label: "电话",
isShowStopLesson: false, align: "left",
stuObj: {}, //停课 field: "Mobile",
isShowTransferClass: false, //是否显示转班 },
orderObj: {}, //转班 {
ChangeType: 1, //1-转班 2-分拆 name: "ContractNo",
isShowAddEvent: false, //是否显示添加事件 label: "合同编号",
eventObj: {}, align: "left",
isShowClassInfo:false,//是否显示班级详情 field: "ContractNo",
isShowmyorderForm: false, //是否显示订单详情 },
isShowList:false,//是否显示可补课课时,缺勤次数,请假次数 {
showType:1, name: "ClassName",
isShowEventLog:false,//是否显示事件记录 label: "班级",
} align: "left",
field: "ClassName",
},
{
name: "CourseName",
label: "课程",
align: "left",
field: "CourseName",
},
{
name: "TeacherName",
label: "老师",
align: "left",
field: "TeacherName",
},
{
name: "OrderId",
label: "订单号",
align: "left",
field: "OrderId",
},
{
name: "OrderTime",
label: "报名时间",
align: "left",
field: "OrderTime",
},
{
name: "EnterName",
label: "业务员",
field: "EnterName",
align: "left",
},
{
name: "PreferPrice",
label: "应收金额",
field: "PreferPrice",
align: "left",
},
{
name: "Income",
label: "实收金额",
field: "Income",
align: "left",
},
{
name: "Refund",
label: "退款金额",
field: "Refund",
align: "left",
},
{
name: "TotalHours",
label: "课程总课时",
field: "TotalHours",
align: "left",
},
{
name: "ValidClassHours",
label: "有效课时",
field: "ValidClassHours",
align: "left",
},
{
name: "CompleteHours",
label: "消耗课时",
field: "CompleteHours",
align: "left",
},
{
name: "SurplusHours",
label: "剩余课时",
field: "SurplusHours",
align: "left",
},
{
name: "MakeUpHours",
label: "可补课课时",
field: "MakeUpHours",
align: "left",
},
{
name: "AbsenceNum",
label: "缺勤次数",
field: "AbsenceNum",
align: "left",
},
{
name: "LeaveNum",
label: "请假次数",
field: "LeaveNum",
align: "left",
},
{
name: "EventlogNum",
label: "事件记录",
field: "EventlogNum",
align: "left",
},
{
name: "GuestStateStr",
label: "状态",
field: "GuestStateStr",
align: "left",
},
{
name: "JoinTypeStr",
label: "类型",
field: "JoinTypeStr",
align: "left",
},
{
name: "optioned",
label: "操作",
required: true,
align: "left",
},
],
SchoolList: [],
CourseList: [],
AllCourseList: [],
classList: [],
AllClassList: [],
queryClass: {
CourseId: 0,
IsAddDefault: 1,
SchoolId: -1,
Teacher_Id: 0,
MoreStatus: "1,2,3",
IsQuerySurplusPlan: 0,
},
typeEnum: [],
warnEnum: [],
queryNum: 0, //高级查询个数
isShowStopLesson: false,
stuObj: {}, //停课
isShowTransferClass: false, //是否显示转班
orderObj: {}, //转班
ChangeType: 1, //1-转班 2-分拆
isShowAddEvent: false, //是否显示添加事件
eventObj: {},
isShowClassInfo: false, //是否显示班级详情
isShowmyorderForm: false, //是否显示订单详情
isShowList: false, //是否显示可补课课时,缺勤次数,请假次数
showType: 1,
isShowEventLog: false, //是否显示事件记录
};
},
mounted() {
this.getSchool();
this.getCourseList();
this.getClass();
this.getTypeEnum();
this.getEarlyWarningEnum();
this.getList();
},
methods: {
//获取校区下拉
getSchool() {
getSchoolDropdown({}).then((res) => {
if (res.Code == 1) {
this.SchoolList = res.Data;
var obj = {
SName: "不限",
SId: -1,
};
this.SchoolList.unshift(obj);
}
});
}, },
mounted() { //获取课程
this.getSchool(); getCourseList() {
this.getCourseList(); queryCourseDropdownList({}).then((res) => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
tempArray.unshift({
CourseId: 0,
CourseName: "不限",
});
this.CourseList = tempArray;
this.AllCourseList = tempArray;
}
});
},
// 筛选课程
filterCourse(val, update) {
update(() => {
if (val === "") {
this.CourseList = JSON.parse(JSON.stringify(this.AllCourseList));
} else {
const needle = val.toLowerCase();
this.CourseList = this.AllCourseList.filter(
(v) => v.CourseName.toLowerCase().indexOf(needle) > -1
);
}
});
},
//获取班级
getClass() {
getClassDropDownList(this.queryClass).then((res) => {
this.classList = [];
this.msg.ClassId = 0;
if (res.Code == 1) {
this.classList = res.Data;
this.AllClassList = res.Data;
var obj = {
ClassName: "不限",
ClassId: 0,
};
this.classList.unshift(obj);
}
});
},
//筛选班级
filterClass(val, update) {
update(() => {
if (val === "") {
this.classList = JSON.parse(JSON.stringify(this.AllClassList));
} else {
const needle = val.toLowerCase();
this.classList = this.AllClassList.filter(
(v) => v.ClassName.toLowerCase().indexOf(needle) > -1
);
}
});
},
changeSchool(val) {
this.queryClass.SchoolId = val;
this.getClass(); this.getClass();
this.getTypeEnum(); this.resetSearch();
this.getEarlyWarningEnum();
this.getList();
}, },
methods: { changeCourse(val) {
//获取校区下拉 this.queryClass.CourseId = val;
getSchool() { this.getClass();
getSchoolDropdown({}).then(res => { this.resetSearch();
if (res.Code == 1) { },
this.SchoolList = res.Data; getList() {
var obj = { this.loading = true;
SName: '不限', getStuList(this.msg)
SId: -1 .then((res) => {
} this.loading = false;
this.SchoolList.unshift(obj);
}
})
},
//获取课程
getCourseList() {
queryCourseDropdownList({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
tempArray.unshift({
CourseId: 0,
CourseName: "不限"
})
this.CourseList = tempArray;
this.AllCourseList = tempArray;
}
})
},
// 筛选课程
filterCourse(val, update) {
update(() => {
if (val === '') {
this.CourseList = JSON.parse(JSON.stringify(this.AllCourseList))
} else {
const needle = val.toLowerCase();
this.CourseList = this.AllCourseList.filter(v => v.CourseName.toLowerCase().indexOf(needle) > -1);
}
})
},
//获取班级
getClass() {
getClassDropDownList(this.queryClass).then(res => {
this.classList = [];
this.msg.ClassId = 0
if (res.Code == 1) {
this.classList = res.Data;
this.AllClassList = res.Data;
var obj = {
ClassName: '不限',
ClassId: 0
}
this.classList.unshift(obj);
}
});
},
//筛选班级
filterClass(val, update) {
update(() => {
if (val === '') {
this.classList = JSON.parse(JSON.stringify(this.AllClassList))
} else {
const needle = val.toLowerCase();
this.classList = this.AllClassList.filter(v => v.ClassName.toLowerCase().indexOf(needle) > -1);
}
})
},
changeSchool(val) {
this.queryClass.SchoolId = val
this.getClass();
this.resetSearch();
},
changeCourse(val) {
this.queryClass.CourseId = val
this.getClass();
this.resetSearch();
},
getList() {
this.loading = true;
getStuList(this.msg).then(res => {
this.loading = false
if (res.Code === 1) { if (res.Code === 1) {
this.data = res.Data.PageData this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount this.pageCount = res.Data.PageCount;
} }
}).catch(err => {
this.loading = false;
}) })
}, .catch((err) => {
//显示停课弹窗 this.loading = false;
ShowStopLesson(item) { });
this.isShowStopLesson = true; },
this.stuObj = item //显示停课弹窗
}, ShowStopLesson(item) {
this.isShowStopLesson = true;
// 高级查询 this.stuObj = item;
morequery(val) { },
this.IsShowQuery = false
this.queryNum = val.chooseNum // 高级查询
this.msg.ClassNo = val.ClassNo morequery(val) {
this.msg.OrderId = val.OrderId this.IsShowQuery = false;
this.msg.EnterID = val.EnterID this.queryNum = val.chooseNum;
this.msg.EffectStatus = val.EffectStatus this.msg.ClassNo = val.ClassNo;
this.msg.JoinType = val.JoinType this.msg.OrderId = val.OrderId;
this.msg.EarlyWarning = val.EarlyWarning this.msg.EnterID = val.EnterID;
this.msg.OrderTime = val.OrderTime this.msg.EffectStatus = val.EffectStatus;
this.msg.EndOrderTime = val.EndOrderTime this.msg.JoinType = val.JoinType;
this.resetSearch(); this.msg.EarlyWarning = val.EarlyWarning;
}, this.msg.OrderTime = val.OrderTime;
//重新查询 this.msg.EndOrderTime = val.EndOrderTime;
resetSearch() { this.resetSearch();
this.msg.pageIndex = 1; },
this.getList(); //重新查询
}, resetSearch() {
//翻页 this.msg.pageIndex = 1;
changePage(val) { this.getList();
this.msg.pageIndex = val; },
this.getList() //翻页
}, changePage(val) {
//关闭弹窗 this.msg.pageIndex = val;
closeHandle() { this.getList();
this.IsShowQuery = false; },
this.isShowStopLesson = false; //关闭弹窗
this.isShowTransferClass = false; closeHandle() {
this.isShowAddEvent = false; this.IsShowQuery = false;
this.isShowClassInfo=false; this.isShowStopLesson = false;
this.isShowmyorderForm=false; this.isShowTransferClass = false;
this.isShowList=false; this.isShowAddEvent = false;
this.isShowEventLog=false; this.isShowClassInfo = false;
this.isShowEventLog=false; this.isShowmyorderForm = false;
}, this.isShowList = false;
//刷新页面 this.isShowEventLog = false;
refreshPage() { this.isShowEventLog = false;
this.closeHandle(); },
this.getList(); //刷新页面
}, refreshPage() {
goUrl(url, item) { this.closeHandle();
if (item) { this.getList();
this.$router.push({ },
path: url, goUrl(url, item) {
query: { if (item) {
Id: item.Id
}
})
} else {
this.$router.push({
path: url,
query: {
Id: 0
}
})
}
},
goUrl1(url, item) {
this.$router.push({ this.$router.push({
path: url, path: url,
query: { query: {
Id: item.Id, Id: item.Id,
name: item.ActivityName },
} });
}) } else {
}, this.$router.push({
getTypeEnum() { path: url,
getTypeEnum({}).then(res => { query: {
if (res.Code === 1) { Id: 0,
res.Data.unshift({ },
Name: "不限", });
Id: 0
})
this.typeEnum = res.Data
}
})
},
getEarlyWarningEnum() {
getEarlyWarningEnum({}).then(res => {
if (res.Code === 1) {
this.warnEnum = res.Data
}
})
},
//转班
transferClass(item, type) {
this.orderObj = item;
this.ChangeType = type;
this.isShowTransferClass = true;
},
//显示添加事件
showAddEvent(item) {
let newitem=JSON.parse(JSON.stringify(item))
newitem.Id=0
this.eventObj = newitem
this.isShowAddEvent = true;
},
//查看合同
seeContract(item){
this.OpenNewUrl("/contractView",{ContractId:item.ContractId})
},
//查看课时消耗
seeStudentsClassUse(item){
let obj={
StudentId:item.Id,
TeacherId:item.Teacher_Id,
ClassId:item.ClassId
}
this.OpenNewUrl("/teacher/studentsClassSee",obj)
},
//查看班级详情
seeClassDetail(item){
this.eventObj=item
this.isShowClassInfo=true
},
//查看订单详情
showOrderDetail(item,tab){
item.tab = tab
this.eventObj=item
this.isShowmyorderForm=true
},
showList(item,type){
this.eventObj=item
this.showType=type
this.isShowList=true
},
showEventLog(item){
this.eventObj=item
this.isShowEventLog=true
},
// 修改事件
modifyEvent(val){
this.closeHandle();
this.eventObj=val
this.isShowAddEvent=true
} }
} },
} goUrl1(url, item) {
this.$router.push({
path: url,
query: {
Id: item.Id,
name: item.ActivityName,
},
});
},
getTypeEnum() {
getTypeEnum({}).then((res) => {
if (res.Code === 1) {
res.Data.unshift({
Name: "不限",
Id: 0,
});
this.typeEnum = res.Data;
}
});
},
getEarlyWarningEnum() {
getEarlyWarningEnum({}).then((res) => {
if (res.Code === 1) {
this.warnEnum = res.Data;
}
});
},
//转班
transferClass(item, type) {
this.orderObj = item;
this.ChangeType = type;
this.isShowTransferClass = true;
},
//显示添加事件
showAddEvent(item) {
let newitem = JSON.parse(JSON.stringify(item));
// Id和修改的Id冲突 自定义学生id=STUID
newitem.STUID = newitem.Id;
newitem.Id = 0;
this.eventObj = newitem;
this.isShowAddEvent = true;
},
//查看合同
seeContract(item) {
this.OpenNewUrl("/contractView", { ContractId: item.ContractId });
},
//查看课时消耗
seeStudentsClassUse(item) {
let obj = {
StudentId: item.Id,
TeacherId: item.Teacher_Id,
ClassId: item.ClassId,
};
this.OpenNewUrl("/teacher/studentsClassSee", obj);
},
//查看班级详情
seeClassDetail(item) {
this.eventObj = item;
this.isShowClassInfo = true;
},
//查看订单详情
showOrderDetail(item, tab) {
item.tab = tab;
this.eventObj = item;
this.isShowmyorderForm = true;
},
showList(item, type) {
this.eventObj = item;
this.showType = type;
this.isShowList = true;
},
showEventLog(item) {
this.eventObj = item;
this.isShowEventLog = true;
},
// 修改事件
modifyEvent(val) {
this.closeHandle();
this.eventObj = val;
this.isShowAddEvent = true;
},
},
};
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
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