Browse Source

考场管理座位表

娄底高职分支
yxq 1 month ago
parent
commit
edfc8009c1
1 changed files with 7 additions and 5 deletions
  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 View File

@@ -12,13 +12,14 @@
<span>考试时间:{{dataOne.EaxmStartTime}}{{dataOne.EaxmEndTime}}</span> <span>考试时间:{{dataOne.EaxmStartTime}}{{dataOne.EaxmEndTime}}</span>
</div>*@ </div>*@
<ul class="SeatList" style="overflow:scroll;height:600px"> <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}} {{item.ECOrder}}
</div> </div>
</li> </li>
</ul> </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 style="color:#333;font-size:14px;text-align:center;line-height:80px" v-if="isEmpty">暂无数据</div>
</div> </div>
<script> <script>
@@ -93,10 +94,11 @@
} }
}) })
}, },
itemClick(index) {
itemClick(ECOrder) {
//保存接口 //保存接口
//传参学年学期,考场编号+名称 +list(ECorder,EcEnbaled)空就是fasle 允许有人就是true //传参学年学期,考场编号+名称 +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) { submit(callBack) {
var postData = { var postData = {


Loading…
Cancel
Save