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