소스 검색

考场管理座位

娄底高职分支
yxq 1 개월 전
부모
커밋
c7c8facd8b
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. +7
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormSeat.cshtml

+ 7
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamRoom/FormSeat.cshtml 파일 보기

@@ -12,14 +12,13 @@
<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" :key="index" :style="{width:width,float:'left',padding:'36px 10px',height:'58px',textAlign:'center',color:item.ECEnabled?'#409EFF':'#E6A23C'}">
<li v-for="(item,index) in SeatList" :ECEnabled="item.ECEnabled" :key="item.ECOrder" :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>
@@ -29,6 +28,7 @@
data() {
return {
SeatList: [],
SeatList_:[],
dataOne: {},
StuListColumns: [],
width: '10%',
@@ -56,6 +56,7 @@
console.log(res, "data")
if (res.code == 200) {
let SeatList = res.data.Exam_ExamRoomDetailData || []
this.SeatList_ = JSON.parse(JSON.stringify(SeatList))
this.dataOne = res.data.Exam_ExamRoomData || {}
if (!SeatList.length) {
this.isEmpty = true
@@ -97,13 +98,15 @@
itemClick(ECOrder) {
//保存接口
//传参学年学期,考场编号+名称 +list(ECorder,EcEnbaled)空就是fasle 允许有人就是true
let obj = this.SeatList.find(e => e.ECOrder == ECOrder)
let obj = this.SeatList_.find(e => e.ECOrder == ECOrder)
obj.ECEnabled = !obj.ECEnabled
let obj1 = this.SeatList.find(e => e.ECOrder == ECOrder)
obj1.ECEnabled = !obj1.ECEnabled
},
submit(callBack) {
var postData = {
ClassRoomNo: request('ClassRoomNo'), AcademicYearNo: request('AcademicYearNo'), Semester: Number(request('Semester')),
list: this.SeatList
list: this.SeatList_
};
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/Exam_ExamRoom/SaveDetailForm?keyValue=' + request('keyValue'), postData, function (res) {
// 保存成功后才回调


불러오는 중...
취소
저장