123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311 |
- <template>
- <view class="sheduling">
- <!-- 添加排班 -->
- <u-popup v-model="teacher_show" mode="center" border-radius="19">
- <view class="pop_wrap">
- <view class="pop_top">
- <text class="title">请您确认排班时间</text>
- </view>
- <view class="pop_center">
- <text>上课日期:{{now_date}}</text>
- <text>上课时间:{{time.start_time}}-{{time.end_time}}</text>
- </view>
- <view class="pop_bootom">
- <button type="default" @click="sure_choose">确认</button>
- </view>
- </view>
- </u-popup>
- <!-- 取消排班 -->
- <u-popup v-model="cancel_show" mode="center" border-radius="19">
- <view class="pop_wrap">
- <view class="pop_top">
- <text class="title">您确定要取消如下排班吗</text>
- </view>
- <view class="pop_center">
- <text>上课日期:{{cancel_detail.day}}</text>
- <text>上课时间:{{cancel_detail.start_time}}-{{cancel_detail.end_time}}</text>
- </view>
- <view class="pop_bootom">
- <button type="default" @click="sure_cancel">确定取消</button>
- </view>
- </view>
- </u-popup>
- <u-popup v-model="stu_show" mode="center" border-radius="42" width="85%">
- <view class="student-show">
- <view class="stu-title">
- 预约学生基本信息
- </view>
- <view class="stu-mess">
- <image :src="stu_detail.student ? stu_detail.student.headimg : '../../static/images/avator.png'"
- mode="">
- </image>
- <view class="right">
- <view class="stu-text">
- 姓名:{{stu_detail.student?stu_detail.student.truename:'--'}}
- </view>
- <view class="stu-text">
- 学号:{{stu_detail.student?stu_detail.student.account:'--'}}
- </view>
- <view class="stu-text">
- 班级:{{stu_detail.student ? stu_detail.student.class :'--'}}
- </view>
- <view class="stu-text">
- 手机号:{{stu_detail.student ? stu_detail.student.mobile :'--'}}
- </view>
- </view>
- </view>
- <view class="e-mail">
- <u-icon name="email"></u-icon>:{{stu_detail.student ? stu_detail.student.email :'--'}}
- </view>
- <view class="remark-title">
- {{stu_detail.student?stu_detail.student.sex==2?"她":"他":'--'}}的备注
- </view>
- <view class="remark">
- {{stu_detail.remark?stu_detail.remark:'暂无'}}
- </view>
- </view>
- </u-popup>
- <view class="sheduling-top" v-if="notice.length>0">
- <image src="../../static/images/nock.png" mode=""></image>
- <view class="title">
- <u-notice-bar :volume-icon="false" type='none' color='#2B9155' :speed="120" :list="notice">
- </u-notice-bar>
- </view>
- </view>
- <view class="tab">
- <view v-for="(item,index) in tab_list" :key='index' :class="current_tab==index ? 'active-item' : 'item'"
- @click="changTab(index)">
- <view class="week">
- {{item}}
- </view>
- <text class="line" v-if="current_tab==index">
- </text>
- </view>
- </view>
- <view class="content">
- <view class="top">
- <view :class="current_date==index ? 'active-item':'item'" v-for="(item,index) in table_week"
- :key='index' @click="changeDate(index,item)">
- <view class="week">
- {{item.week}}
- </view>
- <view class="date">
- {{getDay(item.day)}}
- </view>
- </view>
- </view>
- <view class="shedule">
- <view class="left">
- <view class="left_1">
- <view :class="current_time==-1 ? 'active-item':'item'" @click="changeTime(-1)">
- <image class="all" v-if="current_time==-1" src="../../static/images/all.png" mode="">
- </image>
- 全部时间
- <image class="jian" v-if="current_time==-1" src="../../static/images/01.png" mode="">
- </image>
- </view>
- <view :class="current_time==index? 'active-item':'item'" v-for="(item,index) in time_list"
- :key='index' @click="changeTime(item,index)">
- {{item.start_time}}-{{item.end_time}}
- <image v-if="current_time==index" class="jian" src="../../static/images/01.png" mode="">
- <!-- <image v-if="current_time==item.id" class="jian" src="../../static/images/01.png" mode=""> -->
- </image>
- </view>
- </view>
- </view>
- <view class="right">
- <view class="" v-for="(item,index) in shedule_list" :key='index'>
- <view class="item"
- v-if="item.scheduling && index==current_time && index!=-1 && item.scheduling.type==1">
- <view class="item-left">
- <view class="image"
- :style="{backgroundImage:'url('+ (item.scheduling && item.scheduling.teacher? item.scheduling.teacher.headimg :'../../static/images/add.png') +')'}">
- </view>
- <!-- <image
- :src="item.scheduling ? item.scheduling.teacher.headimg :'../../static/images/add.png'"
- mode=""></image> -->
- <view class="name">
- {{item.scheduling && item.scheduling.teacher? item.scheduling.teacher.truename : ''}}
- </view>
- </view>
- <!-- {{item}} -->
- <view class="item-right">
- <view class="text">
- <view class="tips" v-if="item.scheduling.student"
- @click="stuDetail(item.scheduling)">
- 查看学生
- </view>
- <image src="../../static/images/icon-1.png" mode=""></image>
- <view class="time">
- {{item.scheduling.start_time}}-{{item.scheduling.end_time}}
- </view>
- </view>
- <view class="text">
- <image src="../../static/images/icon-2.png" mode=""></image>
- <view class="time">
- {{item.scheduling.day}}
- </view>
- </view>
- <view class="text">
- <image src="../../static/images/icon-3.png" mode=""></image>
- <view class="time">
- {{item.scheduling.student ? '有预约' :'无预约' }}
- </view>
- </view>
- </view>
- <view class="cancel" @click="cancelShedule(item)"
- v-if="item.is_del==true && item.is_me==true">
- 取消
- </view>
- <view class="" v-if="!item.scheduling">
- {{ item.is_scheduling == false ? '已过期' : '立即排班' }}
- </view>
- </view>
- <view class="item"
- v-if="item.scheduling && index==current_time && index!=-1 && item.scheduling.type==2">
- <view class="item-left">
- <view class="image"
- :style="{backgroundImage:'url('+ (item.scheduling && item.scheduling.student? item.scheduling.student.headimg :'../../static/images/add.png') +')'}">
- </view>
- <!-- <image
- :src="item.scheduling ? item.scheduling.teacher.headimg :'../../static/images/add.png'"
- mode=""></image> -->
- </view>
- <!-- {{item}} -->
- <view class="item-right">
- <view class="text">
- <view class="tips" v-if="!item.scheduling.teacher"
- @click="jieshou(item.scheduling)">
- 接收需求
- </view>
- </view>
- <view class="text">
- <view class="time">
- 学生姓名:{{item.scheduling && item.scheduling.student? item.scheduling.student.truename : ''}}
- </view>
- </view>
- <view class="text">
- <view class="time">
- 需求类型:{{item.scheduling.remark}}
- </view>
- </view>
- <view class="text">
- <view class="time">
- 接收老师:{{item.scheduling.teacher ? item.scheduling.teacher.truename : '--'}}
- </view>
- </view>
- </view>
- <view class="" v-if="!item.scheduling">
- {{ item.is_scheduling == false ? '已过期' : '立即排班' }}
- </view>
- </view>
- <!-- 当时间未全部index==0 -->
- <view class="item" v-if="item.scheduling && current_time==-1 && item.scheduling.type==1">
- <view class="item-left">
- <view class="image"
- :style="{backgroundImage:'url('+ (item.scheduling && item.scheduling.teacher ? item.scheduling.teacher.headimg :'../../static/images/add.png') +')'}">
- </view>
- <!-- <image
- :src="item.scheduling ? item.scheduling.teacher.headimg :'../../static/images/add.png'"
- mode=""></image> -->
- <view class="name">
- {{item.scheduling&&item.scheduling.teacher ? item.scheduling.teacher.truename : ''}}
- </view>
- </view>
- <!-- {{item}} -->
- <view class="item-right">
- <view class="text">
- <view class="tips" v-if="item.scheduling.student"
- @click="stuDetail(item.scheduling)">
- 查看学生
- </view>
- <image src="../../static/images/icon-1.png" mode=""></image>
- <view class="time">
- {{item.scheduling.start_time}}-{{item.scheduling.end_time}}
- </view>
- </view>
- <view class="text">
- <image src="../../static/images/icon-2.png" mode=""></image>
- <view class="time">
- {{item.scheduling.day}}
- </view>
- </view>
- <view class="text">
- <image src="../../static/images/icon-3.png" mode=""></image>
- <view class="time">
- {{item.scheduling.student ? '有预约' :'无预约' }}
- </view>
- </view>
- </view>
- <view class="cancel" @click="cancelShedule(item)"
- v-if="item.is_del==true && item.is_me==true">
- 取消
- </view>
- <view class="" v-if="!item.scheduling">
- {{ item.is_scheduling == false ? '已过期' : '立即排班' }}
- </view>
- </view>
- <view class="item" v-if="item.scheduling && current_time==-1 && item.scheduling.type==2">
- <view class="item-left">
- <view class="image"
- :style="{backgroundImage:'url('+ (item.scheduling && item.scheduling.student? item.scheduling.student.headimg :'../../static/images/add.png') +')'}">
- </view>
- <!-- <image
- :src="item.scheduling ? item.scheduling.teacher.headimg :'../../static/images/add.png'"
- mode=""></image> -->
- </view>
- <!-- {{item}} -->
- <view class="item-right">
- <view class="text">
- <view class="tips" v-if="!item.scheduling.teacher"
- @click="jieshou(item.scheduling)">
- 接收需求
- </view>
- </view>
- <view class="text">
- <view class="time">
- 学生姓名:{{item.scheduling && item.scheduling.student? item.scheduling.student.truename : ''}}
- </view>
- </view>
- <view class="text">
- <view class="time">
- 需求类型:{{item.scheduling.remark}}
- </view>
- </view>
- <view class="text">
- <view class="time">
- 接收老师:{{item.scheduling.teacher ? item.scheduling.teacher.truename : '--'}}
- </view>
- </view>
- </view>
- <view class="" v-if="!item.scheduling">
- {{ item.is_scheduling == false ? '已过期' : '立即排班' }}
- </view>
- </view>
- <view class="add add1" v-if=" item.is_scheduling == true && index == current_time">
- <image src="../../static/images/pass1.png" mode="widthFix"></image>
- <view class="add-buttom" v-if="current_time != -1" @click="teacher_show = true">
- <!-- <image src="../../static/images/add_duty.png" mode=""></image> -->
- 添加排班
- </view>
- </view>
- <view class="add"
- v-if="!item.scheduling &&item.is_scheduling == false && index == current_time ">
- <image src="../../static/images/pass1.png" mode="widthFix"></image>
- <view class="add-text">
- 已截止
- </view>
- </view>
- </view>
- <view class="add" v-if="getEmpty && current_time==-1">
- <image src="../../static/images/pass1.png" mode="widthFix"></image>
- <view class="add-text">
- 暂无排班
- </view>
- </view>
- </view>
- </view>
- <view class="table">
- <view class="title">
- 工作排班信息
- </view>
- <view class="table_1">
- <view class="table-week">
- <view class="table-item" v-for="(item,index) in table_week" :key='index'>
- <view>{{ item.week ? item.week.slice(1) : '--'}}</view>
- <view>{{getDay(item.day)}}</view>
- </view>
- </view>
- <view class="table-tr">
- <view class="table-time" v-for="(item1,index1) in table_list" :key='index1'>
- <view v-for="(item,index) in item1" :key='index'
- :class="item.scheduling && item.is_me==false ? 'active-time-item' :item.scheduling&&item.is_me==true ? 'me-item' : 'time-item'">
- <view class="" v-if="item.scheduling">
- <view class="teacher">
- {{getName(item.scheduling.teacher)}}
- </view>
- <view class="stu">
- {{getName(item.scheduling.student)}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="tips">
- <view class="tip-item">
- <span class="yellow">*</span>第一行上面显示的是导师
- </view>
- <view class="tip-item">
- <span class="yellow">*</span>第二行下方显示的是学生
- </view>
- </view>
- </view>
- </view>
- <tab-bar :current="1"></tab-bar>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- teacher_show: false,
- time_detail: '', //预约时间弹框
- stu_show: false, //学生信息弹框
- stu_detail: '', //查看学生详情
- date: [1, 1, 1, 1, 1, 1, 1],
- time_list: [1, 1, 1, 1, 1, 1],
- current_time: 0, //当前时间
- current_date: 0,
- current_tab: 0, //本周下周
- tab_list: ['本周', '下周'],
- table_week: 7,
- time_list: [],
- current_item: 0, //当前周索引
- now_date: '', //今天日期日期
- shedule_list: [], //排班列表
- teacher_id: '',
- time: '', //当前选中的时间段的内容--传参添加页面使用
- table_list: [], //表格列数
- day: '', //当天日期
- notice: '', //通知公告
- now_time: '',
- now_list: [],
- cancel_detail: '',
- cancel_show: false, //取消排班
- }
- },
- async onShow() {
- await this.getNowDate()
- await this.getSheuling()
- //await this.getList()
- },
- onLoad() {
- if (this.is_weixin()) {
- this.navTitle()
- }
- this.notice = []
- this.teacher_id = this.$store.state.vuex_user.type_id
- this.getNotice()
- },
- computed: {
- getEmpty() {
- let a = true
- for (let i in this.shedule_list) {
- console.log(i, this.shedule_list[i].scheduling, 'YYYYYYYY')
- // console.log(this.shedule_list[i-1], 'YYTTTTTTTT')
- if (this.shedule_list[i].scheduling != null) {
- a = false
- break
- }
- }
- return a
- },
- },
- methods: {
- //判断是否是微信
- is_weixin() {
- let ua = navigator.userAgent.toLowerCase();
- return ua.indexOf('micromessenger') != -1;
- },
- navTitle() {
- let navTitle = document.getElementsByTagName('uni-page-head');
- navTitle[0].style.display = 'none'
- },
- //取消排班
- cancelShedule(item) {
- console.log(item.scheduling, 'ppp')
- this.cancel_detail = item.scheduling
- this.cancel_show = true
- },
- sure_cancel() {
- let id = this.cancel_detail.id
- this.$u.delete('/mentor/scheduling/' + id).then(res => {
- console.log(res, 'ppp')
- if (res.code == 200) {
- uni.showToast({
- title: '取消排班成功',
- icon: 'none'
- })
- }
- this.cancel_show = false
- this.getSheuling()
- })
- },
- jieshou(item) {
- //接收学生
- var data = {
- teacher_id: this.teacher_id,
- scheduling_id: item.id
- }
- var that = this;
- uni.showModal({
- title: '接收需求',
- content: '你确定要接收当前需求吗?',
- success(res) {
- if (res.confirm) {
- that.$u.post('mentor/scheduling/receive-student', data).then(res => {
- console.log(res)
- that.getSheuling()
- })
- }
- }
- })
- },
- //获取通知公告
- getNotice() {
- this.$u.get('/notice').then(res => {
- console.log(res, 'pppppp')
- if (res.data.notice) {
- this.notice.push(res.data.notice)
- }
- })
- },
- //姓名截取 获取前三个字
- getName(name) {
- if (name) {
- return name.truename.substr(0, 3)
- } else {
- return '--'
- }
- },
- //日期截取
- getDay(day) {
- if (day) {
- return day.slice(5)
- }
- },
- //查看学生信息
- stuDetail(item) {
- console.log(item, 'item')
- this.stu_show = true
- this.stu_detail = item
- },
- //获取值班列表
- // async getList() {
- // console.log(this.current_tab, '当前时间')
- // if (this.current_tab == 1) {
- // if (this.current_date != 0) {
- // } else {
- // this.now_date = this.table_week[0].day
- // this.current_date = 0
- // }
- // }
- // console.log(this.now_date, '当前时间')
- // let data = {
- // day: this.now_date,
- // time_id: this.current_time == 0 ? '' : this.current_time,
- // }
- // await this.$u.get('/mentor/scheduling', data).then(res => {
- // console.log(res, '我的值班信息')
- // this.shedule_list = res.data.list
- // })
- // },
- //获取排班信息
- async getSheuling() {
- await this.$u.get('/mentor/scheduling-calendar', {
- type: this.current_tab
- }).then(res => {
- console.log(res, '排班信息')
- this.time_list = res.data.times
- this.table_list = res.data.list
- let table_week = res.data.days
- table_week.map((item, index) => {
- // if (this.current_tab == 0) {
- // this.now_date = this.day
- // }
- // this.now_date = this.table_week[this.current_date].day
- if (this.now_date == item.day) {
- this.current_date = index
- console.log(this.now_date, 'this.now_date---------')
- }
- console.log(this.current_date, 'this.now_date---------')
- switch (item.week) {
- case 0:
- item.week = '周日'
- break
- case 1:
- item.week = '周一'
- break
- case 2:
- item.week = '周二'
- break
- case 3:
- item.week = '周三'
- break
- case 4:
- item.week = '周四'
- break
- case 5:
- item.week = '周五'
- break
- case 6:
- item.week = '周六'
- break
- }
- return item
- })
- this.table_week = table_week
- this.now_date = this.table_week[this.current_date].day
- let data = res.data.list
- this.shedule_list = data[this.current_date]
- console.log(this.current_date, 'YYYYYYYYYYY')
- })
- },
- //获取当前年月日
- getNowDate() {
- //获取当前年月日
- let nowDate = new Date()
- let year = nowDate.getFullYear()
- let month = nowDate.getMonth() + 1
- let date = nowDate.getDate()
- month = month >= 10 ? month : '0' + month
- date = date >= 10 ? date : '0' + date
- this.day = this.now_date = year + '-' + month + '-' + date
- console.log(this.now_date, '09--25')
- },
- //选择日期
- changeDate(index, item) {
- console.log(index, 'index----')
- console.log(item, 'index----')
- this.current_date = index
- this.now_date = item.day
- this.getSheuling()
- },
- //选择时间段
- changeTime(item, index) {
- console.log(item, 'llllllll')
- if (item.id) {
- this.current_time = index
- this.time = item
- } else {
- this.current_time = item
- }
- },
- //选择本周还是下周
- async changTab(index) {
- this.current_tab = index
- if (index == 0) {
- this.now_date = this.day
- }
- if (index == 1) {
- this.current_date = 0
- this.now_date = this.table_week[0].day
- console.log(this.now_date, 'pppp')
- }
- console.log(this.now_date, 'pppp')
- this.getSheuling();
- },
- // //添加排班
- // add() {
- // uni.navigateTo({
- // url: './add?time_id=' + this.current_time + '&day=' + this.now_date +
- // '&start_time=' + this
- // .time.start_time + '&end_time=' + this.time.end_time
- // })
- // },
- //确认添加排班
- sure_choose() {
- let data = {
- status: 1,
- teacher_id: this.$store.state.vuex_user.type_id,
- day: this.now_date,
- time_ids: this.time.id
- }
- this.$u.post('/mentor/scheduling', data).then(res => {
- console.log(res, '添加排班')
- if (res.code == 200) {
- uni.showToast({
- title: '添加成功',
- icon: 'none'
- })
- this.teacher_show = false
- this.getSheuling()
- } else {
- }
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .sheduling {
- padding-bottom: 70px;
- //添加排班弹框
- .pop_wrap {
- width: 290px;
- height: 250px;
- display: flex;
- flex-direction: column;
- align-items: center;
- .pop_top {
- margin-top: 32px;
- text {
- display: block;
- font-size: 13px;
- color: rgba(40, 40, 40, 0.5);
- text-align: center;
- line-height: 18px;
- }
- .title {
- font-size: 18px;
- font-weight: bold;
- color: #282828;
- line-height: 25px;
- margin-bottom: 2px;
- }
- }
- .pop_center {
- margin-top: 22px;
- text {
- font-size: 16px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #353535;
- opacity: 0.79;
- display: block;
- margin-bottom: 6px;
- }
- }
- .pop_bootom {
- margin-top: 30px;
- button {
- border: 1px solid #FF5A26;
- width: 98px;
- // height: 36px;
- padding: 0 5px;
- line-height: 36px;
- background-color: #fff;
- color: #FF5A26;
- }
- }
- }
- //查看学生信息弹框
- .student-show {
- padding-bottom: 5px;
- .stu-title {
- font-size: 20px;
- font-family: PingFang SC;
- font-weight: bold;
- line-height: 20px;
- color: #282828;
- opacity: 1;
- text-align: center;
- padding: 20px 0 30px;
- }
- .stu-mess {
- display: flex;
- padding: 0 22px;
- image {
- height: 75px;
- width: 75px;
- margin-right: 14px;
- border-radius: 9px;
- }
- .right {
- flex: 1;
- .stu-text {
- font-size: 13px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #282828;
- overflow: hidden;
- display: -webkit-box; //将对象作为弹性伸缩盒子模型显示;
- text-overflow: ellipsis; //溢出部分用省略号代替
- -webkit-line-clamp: 2; //设置文本显示两行
- -webkit-box-orient: vertical; //从上到下排列子元素;
- white-space: normal;
- }
- }
- }
- .e-mail {
- margin: 18px 22px 10px;
- height: 36px;
- line-height: 36px;
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: bold;
- color: rgba(40, 40, 40, .78);
- border-bottom: 1px solid rgba(112, 112, 112, .06);
- }
- .remark-title {
- margin: 10px 22px 0px;
- padding: 5px;
- font-size: 13px;
- font-family: PingFang SC;
- font-weight: bold;
- line-height: 20px;
- color: #282828;
- opacity: 0.61;
- }
- .remark {
- margin: 0px 22px 22px;
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #282828;
- opacity: 0.54;
- padding: 5px;
- overflow: hidden;
- display: -webkit-box; //将对象作为弹性伸缩盒子模型显示;
- text-overflow: ellipsis; //溢出部分用省略号代替
- -webkit-line-clamp: 3; //设置文本显示两行
- -webkit-box-orient: vertical; //从上到下排列子元素;
- white-space: normal;
- // border-bottom: 1px solid rgba(112, 112, 112, .06);
- }
- }
- .sheduling-top {
- display: flex;
- align-items: center;
- justify-items: center;
- height: 46px;
- background-color: #E6FFF0;
- padding: 0 30px;
- font-size: 13px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #2B9155;
- image {
- height: 20px;
- width: 20px;
- margin-right: 9px;
- }
- .title {
- flex: 1;
- white-space: nowrap;
- /*设置不换行*/
- overflow: hidden;
- /*设置隐藏*/
- text-overflow: ellipsis;
- /*设置隐藏部分为省略号*/
- }
- }
- .tab {
- display: flex;
- align-items: center;
- width: 50%;
- margin: 0 auto;
- // background-color: #18B566;
- .item,
- .active-item {
- margin-top: 17px;
- view {
- display: block;
- }
- font-size: 18px;
- font-family: PingFang SC;
- font-weight: bold;
- line-height: 20px;
- color: rgba(113, 113, 113, .43);
- opacity: 0.43;
- opacity: 1;
- flex: 1;
- text-align: center;
- .week {
- padding-bottom: 12px;
- }
- .line {
- width: 25px;
- height: 4px;
- background: #3B7653;
- opacity: 1;
- border-radius: 1px;
- display: block;
- margin: 0 auto;
- }
- }
- .active-item {
- font-size: 18px;
- font-family: PingFang SC;
- font-weight: bold;
- line-height: 20px;
- color: #3B7653;
- .week {
- padding-bottom: 8px;
- }
- }
- }
- .content {
- padding: 17px;
- .top {
- display: flex;
- align-items: center;
- justify-items: center;
- background: rgba(238, 238, 238, .46);
- border-radius: 12px 12px 0 0;
- overflow: hidden;
- .item,
- .active-item {
- padding: 9px 0;
- flex: 1;
- text-align: center;
- .week {
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: 500;
- line-height: 20px;
- color: #282828;
- opacity: 1;
- }
- .date {
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #282828;
- opacity: 0.6;
- }
- }
- .active-item {
- background-color: rgba(59, 118, 83, 1);
- .week,
- .date {
- color: #fff;
- }
- }
- }
- .shedule {
- display: flex;
- position: relative;
- .add {
- display: flex;
- text-align: center;
- align-items: center;
- flex-direction: column;
- color: #FFFFFF;
- opacity: 1;
- image {
- width: 60%;
- margin-top: 25%;
- }
- .add-buttom {
- font-size: 14px;
- color: #292929;
- padding: 10px 20px;
- background-color: #3E7855;
- color: #fff;
- margin-top: 30px;
- border-radius: 10px;
- }
- .add-text {
- color: #3E7855;
- font-size: 14px;
- margin-top: 40px;
- }
- }
- .left {
- flex: 0 0 100px;
- height: 425px;
- opacity: 1;
- overflow-y: auto;
- border-radius: 0px 0px 0px 12px;
- .left_1 {
- height: 100%;
- width: 92px;
- background: #F7F7F7;
- }
- .item,
- .active-item {
- font-size: 13px;
- padding: 15px 0;
- text-align: center;
- display: flex;
- justify-content: center;
- align-items: center;
- position: relative;
- .all {
- height: 13px;
- width: 13px;
- margin-right: 6px;
- }
- .jian {
- position: absolute;
- height: 14px;
- width: 8px;
- right: -8px;
- }
- }
- .active-item {
- background-color: rgba(59, 118, 83, 1);
- color: #FFFFFF;
- }
- }
- .right {
- flex: 1;
- margin-left: 3px;
- height: 425px;
- overflow-y: scroll;
- .item {
- display: flex;
- position: relative;
- align-items: center;
- padding: 10px;
- margin-top: 12px;
- font-size: 13px;
- background: rgba(234, 237, 242, .28);
- border-radius: 7px;
- .tips {
- position: absolute;
- width: 57px;
- height: 20px;
- background: #C1915A;
- line-height: 20px;
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #FFFFFF;
- opacity: 1;
- opacity: 1;
- right: 12px;
- z-index: 2;
- top: 0;
- text-align: center;
- border-radius: 0px 0px 6px 6px;
- }
- .item-left {
- margin-right: 10px;
- .image {
- height: 42px;
- width: 42px;
- border: solid 1px;
- border-radius: 50%;
- background-position: center;
- background-repeat: no-repeat;
- background-size: cover;
- }
- .name {
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 400;
- text-align: center;
- line-height: 20px;
- color: #292929;
- opacity: 1;
- width: 50px;
- /*指定宽度*/
- word-break: keep-all;
- /* 不换行 */
- white-space: nowrap;
- /* 强制在同一行内显示所有文本,直到文本结束或者遭遇 br 对象。不换行 */
- overflow: hidden;
- /* 内容超出宽度时隐藏超出部分的内容 */
- text-overflow: ellipsis;
- /* IE 专有属性,当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
- }
- }
- .item-right {
- flex: 1;
- .text {
- line-height: 17px;
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #282828;
- opacity: 1;
- image {
- height: 13px;
- width: 13px;
- display: inline-block;
- margin-right: 4px;
- }
- .time {
- font-family: PingFang SC;
- font-weight: 400;
- color: #282828;
- opacity: 1;
- display: inline-block;
- margin-top: 4px;
- }
- }
- }
- .cancel {
- width: 58px;
- height: 23px;
- line-height: 23px;
- border: 1px solid rgba(193, 145, 90, 0.44);
- border-radius: 12px;
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: 500;
- line-height: 20px;
- color: #C1915A;
- opacity: 1;
- text-align: center;
- }
- }
- }
- }
- .table {
- .tips {
- display: flex;
- margin-top: 25px;
- .tip-item {
- flex: 1;
- font-size: 11px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: rgba(40, 40, 40, .56);
- opacity: 1;
- .yellow {
- color: #3E7855;
- }
- }
- }
- .title {
- font-size: 18px;
- font-family: PingFang SC;
- font-weight: bold;
- line-height: 20px;
- color: #282828;
- opacity: 1;
- margin: 30px 0
- }
- .table_1 {
- background-color: rgba(249, 250, 252, 1);
- .table-week {
- display: flex;
- align-items: center;
- justify-content: center;
- .table-item {
- display: flex;
- justify-content: center;
- flex-direction: column;
- height: 53px;
- // line-height: 53px;
- text-align: center;
- flex: 1;
- border-right: solid 1px rgba(112, 112, 112, .08);
- view:last-child {
- font-size: 10px;
- }
- }
- }
- .table-tr {
- display: flex;
- .table-time {
- flex: 1;
- .time-item {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-flow: column;
- height: 53px;
- border-top: solid 1px rgba(112, 112, 112, .08);
- border-right: solid 1px rgba(112, 112, 112, .08);
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #333;
- opacity: 1;
- }
- .active-time-item {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-flow: column;
- height: 53px;
- border-top: solid 1px rgba(255, 255, 255, .08);
- border-right: solid 1px rgba(255, 255, 255, .08);
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #333;
- opacity: 1;
- background-color: rgba(62, 120, 85, 1);
- .teacher {
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 500;
- line-height: 20px;
- color: #FFFFFF;
- opacity: 1;
- text-align: center;
- white-space: nowrap;
- /*设置不换行*/
- overflow: hidden;
- opacity: 1;
- }
- .stu {
- text-align: center;
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #FEEF7E;
- opacity: 1;
- }
- }
- .me-item {
- display: flex;
- justify-content: center;
- align-items: center;
- flex-flow: column;
- height: 53px;
- border-top: solid 1px rgba(255, 255, 255, .08);
- border-right: solid 1px rgba(255, 255, 255, .08);
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #333;
- opacity: 1;
- background-color: rgba(193, 145, 90, 1);
- .teacher {
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 500;
- line-height: 20px;
- color: #FFFFFF;
- opacity: 1;
- }
- .stu {
- font-size: 10px;
- font-family: PingFang SC;
- font-weight: 400;
- line-height: 20px;
- color: #FEEF7E;
- opacity: 1;
- text-align: center;
- }
- }
- }
- }
- }
- }
- }
- }
- </style>
|