Commit 18a23dab authored by 罗超's avatar 罗超

2

parent d6d85367
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
color="accent" color="accent"
size="xs" size="xs"
label="确认" label="确认"
v-if="saveObj.AppointState == 1&&saveObj.GuestList.length>=saveObj.ScrollMinNum" v-if="saveObj.AppointState == 1&&saveObj.GuestList.length>=saveObj.ScrollMinNum&&auth.IsEdit"
@click="confirmSub" @click="confirmSub"
class="q-ml-md" class="q-ml-md"
/> />
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
v-if="saveObj.ClassType == 3" v-if="saveObj.ClassType == 3"
> >
<template v-slot:control> <template v-slot:control>
<div v-if="saveObj.AppointState == 1"> <div v-if="saveObj.AppointState == 1&&auth.IsEdit">
<div class="q-mt-sm flex justify-start"> <div class="q-mt-sm flex justify-start">
<q-btn <q-btn
color="accent" color="accent"
...@@ -179,6 +179,14 @@ export default { ...@@ -179,6 +179,14 @@ export default {
saveObj: { saveObj: {
type: Object, type: Object,
default: null default: null
},
auth:{
type:Object,
default:()=>{
return {
IsEdit:false
}
}
} }
}, },
data() { data() {
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<Detail <Detail
:dateObj="dateObj" :dateObj="dateObj"
:saveObj="saveObj" :saveObj="saveObj"
:auth="auth"
@success="detailSuccessHandle" @success="detailSuccessHandle"
@close="detailCloseHandle" @close="detailCloseHandle"
/> />
...@@ -134,7 +135,7 @@ ...@@ -134,7 +135,7 @@
</q-field> </q-field>
<div <div
class="row col" class="row col"
v-show="(editType == 1 || saveObj.ClassType == 3) && showAddStu()" v-show="(editType == 1 || saveObj.ClassType == 3)&&auth.IsEdit"
> >
<div class="col-10"> <div class="col-10">
<q-select <q-select
...@@ -231,10 +232,20 @@ export default { ...@@ -231,10 +232,20 @@ export default {
teacherList: { teacherList: {
type: Array, type: Array,
default: () => [] default: () => []
},
auth:{
type:Object,
default:()=>{
return {
IsEdit:false
}
}
} }
}, },
watch: { watch: {
show(val) { show(val) {
console.log(1111111)
this.addLoading = false
if (val) { if (val) {
this.stuInfo = ""; this.stuInfo = "";
this.teaClassMsg.CourseId = 0; this.teaClassMsg.CourseId = 0;
...@@ -350,6 +361,7 @@ export default { ...@@ -350,6 +361,7 @@ export default {
this.teacherTimeList = res.Data; this.teacherTimeList = res.Data;
}); });
}, },
//获取学生列表
getStu() { getStu() {
this.stuMsg.CourseId = this.teaClassMsg.CourseId || 0; this.stuMsg.CourseId = this.teaClassMsg.CourseId || 0;
this.stuMsg.CourseGradeId = this.stuMsg.CourseGradeId =
...@@ -361,7 +373,7 @@ export default { ...@@ -361,7 +373,7 @@ export default {
this.allStuList = JSON.parse(JSON.stringify(res.Data)); this.allStuList = JSON.parse(JSON.stringify(res.Data));
}); });
}, },
//筛选学 //筛选学
filterStu(val, update) { filterStu(val, update) {
update(() => { update(() => {
if (val === "") { if (val === "") {
...@@ -518,17 +530,6 @@ export default { ...@@ -518,17 +530,6 @@ export default {
this.addLoading = false; this.addLoading = false;
}); });
}, },
showAddStu() {
if (
new Date(this.dateObj.date).getTime() <
new Date(QCalendar.today()).getTime()
) {
return false;
} else {
return true;
}
},
detailSuccessHandle() { detailSuccessHandle() {
this.getStu(); this.getStu();
this.$emit("success"); this.$emit("success");
......
This diff is collapsed.
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