|
@@ -57,7 +57,9 @@
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<!--汉字表头-->
|
|
|
- <th class="headTip" v-for="(item,index) in daynamearr" :key="index"><span :class="{'grayRed': item == '周六' || item == '周日'}">{{item}}</span></th>
|
|
|
+ <th class="headTip" v-for="(item,index) in daynamearr" :key="index">
|
|
|
+ <span :class="{'grayRed': item == '周六' || item == '周日'}">{{item}}</span>
|
|
|
+ </th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
@@ -164,7 +166,7 @@
|
|
|
<div class="tr-secon tr-sw80" style="color:#7297FF">55</div>
|
|
|
<div class="Buttonhole" @click="detailTeacherTeam()">移除</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div class="btsnius">
|
|
|
<div class="yesBtn">确定</div>
|
|
|
<div class="closeBtn">取消</div>
|
|
@@ -173,7 +175,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 移除弹框 -->
|
|
|
- <div class="showModel" @click="allShowModel(1)" v-if="hiddenModel"></div>
|
|
|
+ <div class="showModel" @click="allShowModel(1)" v-if="hiddenModel"></div>
|
|
|
<div class="model" style="width:30%; top:30%;" v-if="hiddenModel">
|
|
|
<div class="model-text">
|
|
|
<div class="model-text-items">
|
|
@@ -185,7 +187,7 @@
|
|
|
class="model-text-items-close"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div>是否确定将{{}}老师移除?</div>
|
|
|
+ <div>是否确定将{{name}}老师移除?</div>
|
|
|
</div>
|
|
|
<div class="model-btn">
|
|
|
<div class="model-btn-items main-gay" @click="ApplyOperate()">是</div>
|
|
@@ -193,7 +195,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- 添加老师弹框 -->
|
|
|
+ <!-- 添加老师弹框 -->
|
|
|
<div class="showModel" @click="allShowModel(4)" v-if="AddTeacherModel"></div>
|
|
|
<div class="model" style="width:30%; top:10%;" v-if="AddTeacherModel">
|
|
|
<div class="model-text">
|
|
@@ -234,11 +236,19 @@
|
|
|
<div class="tr-secon tr-sw80">13%</div>
|
|
|
<div class="tr-secon tr-sw80" style="color:#7297FF">55</div>
|
|
|
<div class="Selectradius" @click="AddeacherTeam()">
|
|
|
- <img v-if="this.isSelected ==false" class='Littleicon' src="../assets/img/normal.png" />
|
|
|
- <img v-if="this.isSelected ==true" class='Littleicon' src="../assets/img/correct -hint.png" />
|
|
|
+ <img
|
|
|
+ v-if="this.isSelected ==false"
|
|
|
+ class="Littleicon"
|
|
|
+ src="../assets/img/normal.png"
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ v-if="this.isSelected ==true"
|
|
|
+ class="Littleicon"
|
|
|
+ src="../assets/img/correct -hint.png"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<div class="btsnius">
|
|
|
<div class="yesBtn">确定</div>
|
|
|
<div class="closeBtn">取消</div>
|
|
@@ -257,7 +267,7 @@ export default {
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- daynamearr: ["周一", "周二", "周三", "周四", "周五", "周六","周日"],
|
|
|
+ daynamearr: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
|
|
|
//本月的本期构成
|
|
|
dayarr: [],
|
|
|
year: new Date().getFullYear(),
|
|
@@ -269,11 +279,11 @@ export default {
|
|
|
selecttitlepag: "选年级",
|
|
|
selecttitleage: "选科目",
|
|
|
inputValue: "",
|
|
|
- isSelected:false,
|
|
|
+ isSelected: false,
|
|
|
isPigai: false,
|
|
|
isApporTeacher: false, //移除添加老师
|
|
|
- hiddenModel:false, //移除弹框
|
|
|
- AddTeacherModel:false, //添加老师弹框
|
|
|
+ hiddenModel: false, //移除弹框
|
|
|
+ AddTeacherModel: false, //添加老师弹框
|
|
|
filters: {
|
|
|
OptionsValue: "",
|
|
|
gradesValue: "",
|
|
@@ -322,7 +332,7 @@ export default {
|
|
|
},
|
|
|
watch: {},
|
|
|
computed: {
|
|
|
- ...mapGetters(["UnallotHomeworkInfo"])
|
|
|
+ ...mapGetters(["UnallotHomeworkInfo","DeleteArrangeByTeacher"])
|
|
|
},
|
|
|
methods: {
|
|
|
//关闭弹框
|
|
@@ -337,7 +347,7 @@ export default {
|
|
|
_this.isApporTeacher = false;
|
|
|
} else if (str == 4) {
|
|
|
_this.AddTeacherModel = false;
|
|
|
- _this.isApporTeacher = true;
|
|
|
+ _this.isApporTeacher = true;
|
|
|
} else if (str == 5) {
|
|
|
_this.NoAllotManagerModel = false;
|
|
|
}
|
|
@@ -346,37 +356,40 @@ export default {
|
|
|
if (!item.prevmonth && !item.nextmonth) {
|
|
|
this.NewDay = item.day;
|
|
|
this.isPigai = true;
|
|
|
- } if (item.prevmonth){
|
|
|
+ }
|
|
|
+ if (item.prevmonth) {
|
|
|
Message.error("当前月份已关闭,禁止操作!");
|
|
|
- } if (item.nextmonth){
|
|
|
+ }
|
|
|
+ if (item.nextmonth) {
|
|
|
Message.error("当前月份未开启,禁止操作!");
|
|
|
}
|
|
|
},
|
|
|
- showAddTeacherModel(){
|
|
|
+ showAddTeacherModel() {
|
|
|
this.isApporTeacher = false;
|
|
|
this.AddTeacherModel = true;
|
|
|
+ this.AddTeacherInfoList()
|
|
|
},
|
|
|
isShow() {
|
|
|
this.isApporTeacher = true;
|
|
|
},
|
|
|
- detailTeacherTeam(){
|
|
|
- this.isApporTeacher = false
|
|
|
- this.hiddenModel = true;
|
|
|
+ detailTeacherTeam() {
|
|
|
+ this.isApporTeacher = false;
|
|
|
+ this.hiddenModel = true;
|
|
|
},
|
|
|
- AddeacherTeam(){
|
|
|
+ AddeacherTeam() {
|
|
|
this.isSelected = true;
|
|
|
},
|
|
|
selectTip(item) {
|
|
|
this.filters.OptionsValue = item.str;
|
|
|
this.selecttitlepag = item.label;
|
|
|
this.gardeListDown = false;
|
|
|
- this.GetFindCalendarListInfo()
|
|
|
+ this.GetFindCalendarListInfo();
|
|
|
},
|
|
|
selectTipage(item) {
|
|
|
this.filters.gradesValue = item.str;
|
|
|
this.selecttitleage = item.label;
|
|
|
this.gardeListDownage = false;
|
|
|
- this.GetFindCalendarListInfo()
|
|
|
+ this.GetFindCalendarListInfo();
|
|
|
},
|
|
|
selectStyle1() {
|
|
|
this.gardeListDownage = true;
|
|
@@ -393,11 +406,24 @@ export default {
|
|
|
choiceclass() {
|
|
|
this.gardeListDown = true;
|
|
|
},
|
|
|
+ // 移除老师
|
|
|
+ async ApplyOperate() {
|
|
|
+ this.$store.dispatch("GetDeleteArrangeByTeacher", {
|
|
|
+ id: "",
|
|
|
+ teacherId:""
|
|
|
+ });
|
|
|
+ },
|
|
|
+ AddTeacherInfoList(){
|
|
|
+ this.$store.dispatch("GetDeleteArrangeByTeacher", {
|
|
|
+ id: "",
|
|
|
+ teacherId:""
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取校区管理员监控数据
|
|
|
async GetFindCalendarListInfo() {
|
|
|
- this.$store.dispatch("GetFindCalendarList", {
|
|
|
+ this.$store.dispatch("GetFindCalendarList", {
|
|
|
type: this.filters.OptionsValue,
|
|
|
- subject: this.filters.gradesValue
|
|
|
+ subject: this.filters.gradesValue
|
|
|
});
|
|
|
},
|
|
|
theweek: function() {
|
|
@@ -412,48 +438,48 @@ export default {
|
|
|
return _arr;
|
|
|
},
|
|
|
Datainit() {
|
|
|
- //需要知道这个月的第一天是星期几
|
|
|
- var themonth1stday = new Date(this.year, this.month - 1, 1).getDay();
|
|
|
- console.log(themonth1stday);
|
|
|
- // alert(themonth1stday)
|
|
|
- //本月有多少天,这个月的最后一天就是下个月的最后一天减去一毫秒
|
|
|
- var y = this.month == 12 ? this.year + 1 : this.year;
|
|
|
- var m = this.month == 12 ? 1 : this.month;
|
|
|
- var themonthdaysamount = new Date(new Date(y, m, 1) - 1).getDate();
|
|
|
- console.log(themonthdaysamount);
|
|
|
- //上个月有多少天
|
|
|
- var prevmonthlastday = new Date(
|
|
|
- new Date(this.year, this.month - 1, 1) - 1
|
|
|
- ).getDate();
|
|
|
- console.log(prevmonthlastday);
|
|
|
- // alert(prevmonthlastday)
|
|
|
- while (themonth1stday-- > 1) {
|
|
|
- this.dayarr.unshift({
|
|
|
- day: prevmonthlastday--,
|
|
|
- prevmonth: true
|
|
|
- });
|
|
|
- }
|
|
|
- //本月的日期
|
|
|
- var count = 0;
|
|
|
- while (themonthdaysamount--) {
|
|
|
- this.dayarr.push({
|
|
|
- day: ++count
|
|
|
- });
|
|
|
- }
|
|
|
- var c = 42 - this.dayarr.length;
|
|
|
- var count2 = 1;
|
|
|
- while (c-- > 0) {
|
|
|
- this.dayarr.push({
|
|
|
- day: count2++,
|
|
|
- nextmonth: true
|
|
|
- });
|
|
|
- }
|
|
|
+ //需要知道这个月的第一天是星期几
|
|
|
+ var themonth1stday = new Date(this.year, this.month - 1, 1).getDay();
|
|
|
+ console.log(themonth1stday);
|
|
|
+ // alert(themonth1stday)
|
|
|
+ //本月有多少天,这个月的最后一天就是下个月的最后一天减去一毫秒
|
|
|
+ var y = this.month == 12 ? this.year + 1 : this.year;
|
|
|
+ var m = this.month == 12 ? 1 : this.month;
|
|
|
+ var themonthdaysamount = new Date(new Date(y, m, 1) - 1).getDate();
|
|
|
+ console.log(themonthdaysamount);
|
|
|
+ //上个月有多少天
|
|
|
+ var prevmonthlastday = new Date(
|
|
|
+ new Date(this.year, this.month - 1, 1) - 1
|
|
|
+ ).getDate();
|
|
|
+ console.log(prevmonthlastday);
|
|
|
+ // alert(prevmonthlastday)
|
|
|
+ while (themonth1stday-- > 1) {
|
|
|
+ this.dayarr.unshift({
|
|
|
+ day: prevmonthlastday--,
|
|
|
+ prevmonth: true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ //本月的日期
|
|
|
+ var count = 0;
|
|
|
+ while (themonthdaysamount--) {
|
|
|
+ this.dayarr.push({
|
|
|
+ day: ++count
|
|
|
+ });
|
|
|
+ }
|
|
|
+ var c = 42 - this.dayarr.length;
|
|
|
+ var count2 = 1;
|
|
|
+ while (c-- > 0) {
|
|
|
+ this.dayarr.push({
|
|
|
+ day: count2++,
|
|
|
+ nextmonth: true
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
- this.Datainit()
|
|
|
- this.GetFindCalendarListInfo()
|
|
|
+ this.Datainit();
|
|
|
+ this.GetFindCalendarListInfo();
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -621,8 +647,8 @@ table.bgtable tbody tr td.gray {
|
|
|
min-width: 450px !important;
|
|
|
padding: 20px;
|
|
|
}
|
|
|
-.grayRed{
|
|
|
- color:red;
|
|
|
+.grayRed {
|
|
|
+ color: red;
|
|
|
}
|
|
|
.model-text {
|
|
|
background: rgba(255, 255, 255, 1);
|
|
@@ -786,32 +812,32 @@ table.bgtable tbody tr td.gray {
|
|
|
-webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3);
|
|
|
background-color: #bcbaba; /*滚动条的背景颜色*/
|
|
|
}
|
|
|
-.btsnius{
|
|
|
+.btsnius {
|
|
|
width: 100%;
|
|
|
height: 60px;
|
|
|
}
|
|
|
-.yesBtn{
|
|
|
- margin-right:30px;
|
|
|
+.yesBtn {
|
|
|
+ margin-right: 30px;
|
|
|
height: 40px;
|
|
|
width: 100px;
|
|
|
- background-color: #52CC60;
|
|
|
+ background-color: #52cc60;
|
|
|
border-radius: 10px;
|
|
|
- color:#fff;
|
|
|
- line-height:40px;
|
|
|
- text-align:center;
|
|
|
+ color: #fff;
|
|
|
+ line-height: 40px;
|
|
|
+ text-align: center;
|
|
|
display: inline-block;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
-.closeBtn{
|
|
|
+.closeBtn {
|
|
|
height: 40px;
|
|
|
width: 100px;
|
|
|
background-color: #fff;
|
|
|
border-radius: 10px;
|
|
|
- color:#52CC60;
|
|
|
- line-height:40px;
|
|
|
- text-align:center;
|
|
|
+ color: #52cc60;
|
|
|
+ line-height: 40px;
|
|
|
+ text-align: center;
|
|
|
display: inline-block;
|
|
|
- border: 1px solid #52CC60;
|
|
|
+ border: 1px solid #52cc60;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.model-grdeen {
|
|
@@ -850,10 +876,10 @@ table.bgtable tbody tr td.gray {
|
|
|
background: rgba(246, 247, 251, 1);
|
|
|
color: #7e7e7e;
|
|
|
}
|
|
|
-.Littleicon{
|
|
|
- height: 20px;
|
|
|
- width:20px;
|
|
|
- position:relative;
|
|
|
- top:0;
|
|
|
+.Littleicon {
|
|
|
+ height: 20px;
|
|
|
+ width: 20px;
|
|
|
+ position: relative;
|
|
|
+ top: 0;
|
|
|
}
|
|
|
</style>
|