|
|
@@ -35,28 +35,41 @@ |
|
|
|
<view class="tSec2List"> |
|
|
|
<view v-if="items.lessonData.length <= 0" class="tSec2ListLi"><view class="noHtml">该时间段没有课表</view></view> |
|
|
|
<view v-if="items.lessonData.length > 0"> |
|
|
|
<view class="tSec2ListLi" v-for="(k, j) in items.lessonData" :key="j" @click="classTap(k)"> |
|
|
|
<view class="tSec2ListL">第 {{ k.sectionTime }} 节</view> |
|
|
|
<view class="tSec2ListR"> |
|
|
|
<view class="tSec2ListBox"> |
|
|
|
<view class="tSec2ListT">{{ k.LessonName }}</view> |
|
|
|
<view class="tSec2ListTxt">{{ k.ClassName }}</view> |
|
|
|
<view class="tSec2ListTxt"> |
|
|
|
<text class="text-xxl cuIcon cuIcon-profile"></text> |
|
|
|
{{ k.EmpName }} |
|
|
|
<view class="tSec2ListLi" v-for="(k, j) in items.lessonData" :key="j"> |
|
|
|
<div style="overflow: hidden;" @click="classTap(k)"> |
|
|
|
<view class="tSec2ListL">第 {{ k.sectionTime }} 节</view> |
|
|
|
<view class="tSec2ListR"> |
|
|
|
<view class="tSec2ListBox"> |
|
|
|
<view class="tSec2ListT">{{ k.LessonName }}</view> |
|
|
|
<view class="tSec2ListTxt">{{ k.ClassName }}</view> |
|
|
|
<view class="tSec2ListTxt"> |
|
|
|
<text class="text-xxl cuIcon cuIcon-profile"></text> |
|
|
|
{{ k.EmpName }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="tSec2Location"> |
|
|
|
<view class="tSec2ListTxt"> |
|
|
|
<text class="text-xxl cuIcon cuIcon-location"></text> |
|
|
|
{{ k.ClassroomName }} |
|
|
|
</view> |
|
|
|
<view class="tSec2ListTxt"> |
|
|
|
<view v-if="k.Sort == '准时' " class="text-blue">{{ k.Sort }}</view> |
|
|
|
<view v-if="k.Sort == '迟到' " class="text-green">{{ k.Sort }}</view> |
|
|
|
<view v-if="k.Sort == '请假' " class="text-yellow">{{ k.Sort }}</view> |
|
|
|
<view class="tSec2Location"> |
|
|
|
<view class="tSec2ListTxt"> |
|
|
|
<text class="text-xxl cuIcon cuIcon-location"></text> |
|
|
|
{{ k.ClassroomName }} |
|
|
|
</view> |
|
|
|
<view class="tSec2ListTxt"> |
|
|
|
<view v-if="k.Sort == '准时' " class="text-blue">{{ k.Sort }}</view> |
|
|
|
<view v-if="k.Sort == '迟到' " class="text-green">{{ k.Sort }}</view> |
|
|
|
<view v-if="k.Sort == '请假' " class="text-yellow">{{ k.Sort }}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</div> |
|
|
|
<view v-if="k.AIsOut" class="AisOutBox pageBox customlist-item"> |
|
|
|
<view> |
|
|
|
<text>地址:</text> |
|
|
|
{{ k.ClockPlace }} |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text>备注:</text> |
|
|
|
{{ k.ARemark }} |
|
|
|
</view> |
|
|
|
<uploadImage :value="k.ADPhoto" readonly title="照片:"/> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@@ -69,7 +82,11 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import common from '@/common/js/common.js' |
|
|
|
import uploadImage from '@/components/uploadImage.vue' |
|
|
|
export default { |
|
|
|
components:{ |
|
|
|
uploadImage |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
timeValue:'', |
|
|
@@ -166,13 +183,19 @@ export default { |
|
|
|
this.timeValue = obj.startdate + '~' + obj.enddate |
|
|
|
} |
|
|
|
let param = { StartDate: this.timeValue.split('~')[0], EndDate: this.timeValue.split('~')[1] }; |
|
|
|
_this.HTTP_GET('learun/adms/timetable/list', param, '加载数据时出错').then(res => { |
|
|
|
_this.HTTP_GET('learun/adms/timetable/list', param, '加载数据时出错').then(async (res) => { |
|
|
|
this.HIDE_LOADING(); |
|
|
|
for (let s in res) { |
|
|
|
if(res[s].AIsOut){ |
|
|
|
res[s].ADPhoto = await this.uploadCo(res[s].ADPhoto) |
|
|
|
console.log(res[s].ADPhoto) |
|
|
|
} |
|
|
|
} |
|
|
|
_this.ProcessingData(res); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
ProcessingData(data) { |
|
|
|
async ProcessingData(data) { |
|
|
|
let dataM = [ |
|
|
|
{ |
|
|
|
weekTime: 1, |
|
|
@@ -244,6 +267,26 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
async uploadCo(val){ |
|
|
|
if (!val) { return [] } |
|
|
|
const uidList_ = val.split(',') |
|
|
|
const fileList_ = [] |
|
|
|
|
|
|
|
for (const uid of uidList_ || []) { |
|
|
|
const fileInfo = await this.FETCH_FILEINFO(uid) |
|
|
|
if (!fileInfo) { continue } |
|
|
|
|
|
|
|
const fileType = fileInfo.F_FileType |
|
|
|
const fileSize = fileInfo.F_FileSize |
|
|
|
const fileName = fileInfo.F_FileName |
|
|
|
|
|
|
|
const path = this.API + 'learun/adms/annexes/wxdown?' + this.URL_QUERY(uid, true) |
|
|
|
|
|
|
|
fileList_.push({ path, type: fileType, uid, size: fileSize, name:fileName }) |
|
|
|
} |
|
|
|
return fileList_ |
|
|
|
|
|
|
|
}, |
|
|
|
onfun(obj){ |
|
|
|
this.init(obj); |
|
|
|
}, |
|
|
@@ -368,7 +411,7 @@ export default { |
|
|
|
.tSec2ListLi { |
|
|
|
border-bottom: 1px solid #d5eaf7; |
|
|
|
overflow: hidden; |
|
|
|
height: 64px; |
|
|
|
// height: 64px; |
|
|
|
} |
|
|
|
.tSec2ListL { |
|
|
|
float: left; |
|
|
@@ -377,7 +420,7 @@ export default { |
|
|
|
width: 25%; |
|
|
|
text-align: center; |
|
|
|
line-height: 36px; |
|
|
|
padding: 11px 0; |
|
|
|
padding: 16px 0; |
|
|
|
font-size: 14px; |
|
|
|
color: #646464; |
|
|
|
} |
|
|
@@ -425,4 +468,13 @@ export default { |
|
|
|
width: calc(100% - 80px); |
|
|
|
margin: 0 auto; |
|
|
|
} |
|
|
|
|
|
|
|
.AisOutBox{ |
|
|
|
padding: 4px; |
|
|
|
} |
|
|
|
|
|
|
|
/deep/.cu-form-group{ |
|
|
|
padding-left: 0; |
|
|
|
min-height: unset; |
|
|
|
} |
|
|
|
</style> |