Parcourir la source

考场管理座位表

娄底高职分支
yxq il y a 1 mois
Parent
révision
edfc8009c1
1 fichiers modifiés avec 7 ajouts et 5 suppressions
  1. +7
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormSeat.cshtml

+ 7
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormSeat.cshtml Voir le fichier

@@ -12,13 +12,14 @@
<span>考试时间:{{dataOne.EaxmStartTime}}{{dataOne.EaxmEndTime}}</span>
</div>*@
<ul class="SeatList" style="overflow:scroll;height:600px">
<li v-for="(item,index) in SeatList" :ECEnabled="item.ECEnabled" v-on:click="itemClick(index)" :key="index" :style="{width:width,float:'left',padding:'36px 10px',height:'58px',textAlign:'center',color:item.ECEnabled?'#E6A23C':'#409EFF'}">
<div class="content" style="border:1px solid #ccc;padding:6px;">
<div>{{item.ECEnabled?'禁用':'正常'}}</div>
<li v-for="(item,index) in SeatList" :ECEnabled="item.ECEnabled" :key="index" :style="{width:width,float:'left',padding:'36px 10px',height:'58px',textAlign:'center',color:item.ECEnabled?'#409EFF':'#E6A23C'}">
<div class="content" v-on:click="itemClick(item.ECOrder)" style="border:1px solid #ccc;padding:6px;cursor:pointer">
<div>{{item.ECEnabled?'正常':'禁用'}}</div>
{{item.ECOrder}}
</div>
</li>
</ul>
<div v-on:click="submit">222</div>
<div style="color:#333;font-size:14px;text-align:center;line-height:80px" v-if="isEmpty">暂无数据</div>
</div>
<script>
@@ -93,10 +94,11 @@
}
})
},
itemClick(index) {
itemClick(ECOrder) {
//保存接口
//传参学年学期,考场编号+名称 +list(ECorder,EcEnbaled)空就是fasle 允许有人就是true
this.SeatList[index].ECEnabled = !this.SeatList[index].ECEnabled
let obj = this.SeatList.find(e => e.ECOrder == ECOrder)
obj.ECEnabled = !obj.ECEnabled
},
submit(callBack) {
var postData = {


Chargement…
Annuler
Enregistrer