Commit 667ad243 authored by 罗超's avatar 罗超

1

parent 58e60727
...@@ -12,7 +12,7 @@ export default { ...@@ -12,7 +12,7 @@ export default {
<style> <style>
@import url('~assets/css/font.css'); @import url('~assets/css/font.css');
@import url('//at.alicdn.com/t/font_2077629_56b72l69rc3.css'); @import url('//at.alicdn.com/t/font_2077629_wxr0r4jnp3.css');
html, html,
body, body,
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
<div class="classroom-box"> <div class="classroom-box">
<div v-for="(_item,_index) in item.RoomList" :key="item.RoomId" > <div v-for="(_item,_index) in item.RoomList" :key="item.RoomId" >
<div class="classroom-item q-mr-lg q-mb-lg" :class="{'classroom-item-noUse':_item.UserRate===1}" > <div class="classroom-item q-mr-lg q-mb-lg" :class="{'classroom-item-noUse':_item.UserRate===1}" >
<div @click="goUrl"> <div @click="goUrl(item,_item)">
<el-image class="classroom-img" :src="_item.RoomPicList[0]" fit="contain" > <el-image class="classroom-img" :src="_item.RoomPicList[0]" fit="contain" >
<div slot="error" class="image-slot"> <div slot="error" class="image-slot">
<i class="el-icon-picture-outline"></i> <img src="../../assets/images/classroom/bg-img.jpg" alt="" srcset="" style=" opacity: 0.8;">
</div> </div>
</el-image> </el-image>
</div> </div>
<div class="classroom-name" >{{_item.RoomName}} <div class="classroom-name" >{{_item.RoomName}}
...@@ -99,12 +99,12 @@ import { ...@@ -99,12 +99,12 @@ import {
this.getList(); this.getList();
}, },
methods:{ methods:{
goUrl(){ goUrl(x,y){
console.log('tag', '1111')
this.$router.push({ this.$router.push({
path:"/classroom/useRecord", path:"/classroom/useRecord",
query:{ query:{
key:x.Key,
roomId:y.RoomId
} }
}) })
}, },
...@@ -130,6 +130,7 @@ import { ...@@ -130,6 +130,7 @@ import {
<style lang="scss" scoped> <style lang="scss" scoped>
.school-item{ .school-item{
margin-bottom: 10px; margin-bottom: 10px;
.school-name{ .school-name{
font-size: 16px; font-size: 16px;
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
......
...@@ -249,6 +249,9 @@ ...@@ -249,6 +249,9 @@
<div class="col scroll schScroll"> <div class="col scroll schScroll">
<schedulHead :dataList="dataList"></schedulHead> <schedulHead :dataList="dataList"></schedulHead>
<div class="Sche_Bottom"> <div class="Sche_Bottom">
<div>
</div>
<schedulVisit :tabledata="dataList.GuestList"></schedulVisit> <schedulVisit :tabledata="dataList.GuestList"></schedulVisit>
</div> </div>
</div> </div>
...@@ -280,7 +283,7 @@ ...@@ -280,7 +283,7 @@
methods: { methods: {
getdata(){ getdata(){
getTimeDetail({id:this.id}).then(res=>{ getTimeDetail({ID:this.id}).then(res=>{
if(res.Code===1){ if(res.Code===1){
this.dataList=res.Data this.dataList=res.Data
} }
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
schoolId:0, schoolId:0,
navData:[], navData:[],
msg:{ msg:{
RoomId:0, RoomId:0,
SchoolId:0, SchoolId:0,
...@@ -54,7 +53,10 @@ ...@@ -54,7 +53,10 @@
}; };
}, },
created(){ created(){
let d=new Date(); this.msg.SchoolId=this.$route.query.key
this.msg.RoomId=this.$route.query.roomId
console.log(this.$route.query,this.msg)
let d=new Date();
let year =d.getFullYear(); let year =d.getFullYear();
let month=d.getMonth()+1; let month=d.getMonth()+1;
month=month<10?'0'+month:month; month=month<10?'0'+month:month;
...@@ -89,8 +91,8 @@ ...@@ -89,8 +91,8 @@
getSchoolAndRoomNav({}).then(res => { getSchoolAndRoomNav({}).then(res => {
if(res.Code===1){ if(res.Code===1){
this.navData=res.Data this.navData=res.Data
this.msg.SchoolId=res.Data[0].Key // this.msg.SchoolId=res.Data[0].Key
this.msg.RoomId=res.Data[0].RoomList[0].RoomId // this.msg.RoomId=res.Data[0].RoomList[0].RoomId
that.getClassRoomTimeList() that.getClassRoomTimeList()
} }
}).catch(() => { }).catch(() => {
...@@ -110,8 +112,9 @@ ...@@ -110,8 +112,9 @@
}, },
//选择校区教室导航 //选择校区教室导航
successNav(val){ successNav(val){
console.log(114,val)
this.msg.RoomId=val.RoomId this.msg.RoomId=val.RoomId
this.msg.SchoolId=val.SchoolId this.msg.SchoolId=val.schoolId
this.getClassRoomTimeList(); this.getClassRoomTimeList();
this.$forceUpdate() this.$forceUpdate()
}, },
......
...@@ -38,18 +38,18 @@ ...@@ -38,18 +38,18 @@
</template> </template>
<template v-slot:body-cell-TeacherName="props"> <template v-slot:body-cell-TeacherName="props">
<q-td :props="props"> <q-td :props="props">
<div class="text-blue cursor-pointer">{{props.value}}</div> <div class="text-blue cursor-pointer">{{props.row.value}}</div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-time="props"> <template v-slot:body-cell-time="props">
<q-td :props="props"> <q-td :props="props">
<div class="text-blue cursor-pointer">{{props.StartTime}}/{{props.EndTime}}</div> <div class="text-blue cursor-pointer" >{{props.row.StartTime}}<span v-if="props.row.EndTime">/</span>{{props.row.EndTime}}</div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-AssistIcon="props"> <template v-slot:body-cell-AssistIcon="props">
<q-td auto-width :props="props"> <q-td auto-width :props="props">
<q-avatar size="md" v-if="props.value"> <q-avatar size="md" v-if="props.value">
<img :src="props.value" /> <img :src="props.row.value" />
</q-avatar> </q-avatar>
<q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value"> <q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value">
{{props.row.AssistName}}</q-avatar> {{props.row.AssistName}}</q-avatar>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
currentUrl: "", currentUrl: "",
columns: [{ columns: [{
name: 'RoomName', name: 'RoomName',
label: '教名称', label: '教名称',
align: 'left', align: 'left',
field: 'RoomName', field: 'RoomName',
}, },
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
}, },
{ {
name: 'time', name: 'time',
label: '排班开始/结束时间', label: '排课时间范围',
align: 'left', align: 'left',
field: 'time' field: 'time'
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment