myClssList.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  1. <template>
  2. <view class="box u-skeleton">
  3. <u-skeleton :loading="loading" :animation="true"></u-skeleton>
  4. <view class="table-list" v-if="list.length>0">
  5. <view class="table-item complete" v-for="(item,index) in list" :key="index" @click="details(item.id)">
  6. <!-- <view class="item-border">
  7. </view> -->
  8. <view class="" style="width: 100%;">
  9. <view class="room-name">
  10. <text>上课时间:{{item.day}} · 第{{item.week}}周 · {{item.week_index}} · {{item.time_id.name}}节</text>
  11. <text style="color:red;" v-if="item.status == 2">停课</text>
  12. <text style="color:#FFAD33 ;" v-if="item.status == 3">调课</text>
  13. <text style="color:#13ce66 ;" v-if="item.status == 1 && item.migrate_id!=0">补课</text>
  14. <text style="color:#1890ff ;" v-if="item.status == 1 && item.migrate_id==0">正常</text>
  15. </view>
  16. <view class="teacher">
  17. <text>上课班级:{{item.grade.name}}</text>
  18. <text>课程名称:{{item.lesson == null ? '未知' : item.lesson.name}}({{item.teacher ?item.teacher.name :'未知'}})</text>
  19. <text>上课人数:{{item.student_nums}}人</text>
  20. <!-- <text>上课时间:{{item.day}} · 第{{item.week}}周 · {{item.week_index}} · {{item.time_id.name}}节</text> -->
  21. <text v-if="item.type == 2">调整后时间:{{item.day}} · 第{{item.week}}周 · {{item.week_index}} · {{item.time_id.name}}节</text>
  22. </view>
  23. <view class="right">
  24. <view @click="showPop(item)" v-if="item.status==1" style="background: #3665FF;"><text>停调课</text></view>
  25. <view @click="showLesson(item)" v-if="item.status==2" style="background: red;"><text>补课</text></view>
  26. </view>
  27. </view>
  28. </view>
  29. <u-loadmore :status="statuss " :load-text="loadText" icon="true" />
  30. <!-- 停调可弹框 -->
  31. <u-popup v-model="showFalse" mode="center" border-radius="24" width="90%" z-index="10076" :mask-close-able="false">
  32. <view class="prop-content">
  33. <!-- <image src="../../static/image/index/icon_6.png" mode="" class="prop-image"></image> -->
  34. <view class="prop-title">
  35. {{ detail.lesson ? detail.lesson.name : "--" }}
  36. </view>
  37. <view style="width: 100%">
  38. <!-- <scroll-view scroll-y="true" style="height: 200px;"> -->
  39. <view class="content-item">
  40. <view class="prop-label"> 停调课类型: </view>
  41. <view class="prop-text">
  42. <u-radio-group v-model="type" @change="radioGroupChange">
  43. <u-radio @change="radioChange" v-for="(item, index) in list_sel" :key="index"
  44. :name="item.id">
  45. {{ item.name }}
  46. </u-radio>
  47. </u-radio-group>
  48. </view>
  49. </view>
  50. <view class="content-item" v-if="type == 2">
  51. <view class="prop-label"> 调课时间: </view>
  52. <view class="prop-text">
  53. <view class="change-time" @click="chaneTime"> 选择时间 </view>
  54. </view>
  55. </view>
  56. <view class="content-item" v-if="migrate_data.length > 0 && type == 2">
  57. <view class="prop-text">
  58. <view class="table-title">
  59. <view class="title-item"> 实验室 </view>
  60. <view class="title-item"> 日期 </view>
  61. <view class="title-item"> 节次 </view>
  62. </view>
  63. <view class="table-title" v-for="(item, index) in migrate_data" :key="index">
  64. <view class="title-item">
  65. {{ item.room_name }}
  66. </view>
  67. <view class="title-item">
  68. {{ item.day }} · 第{{ item.week }}周 · 星期{{
  69. $transformWeek(item.week_index)
  70. }}
  71. </view>
  72. <view class="title-item">
  73. {{ getTime(item.time_id) }}
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="content-item">
  79. <view class="prop-label"> 停调课原因: </view>
  80. </view>
  81. <view class="content-item">
  82. <view class="prop-text">
  83. <textarea v-model="body" rows="2" placeholder="请输入停调课原因"></textarea>
  84. <!-- <u-input v-model="body" type="textarea" border height="150" auto-height /> -->
  85. </view>
  86. </view>
  87. </view>
  88. <!-- </scroll-view> -->
  89. <view class="pop-btn">
  90. <view @click="cancelHandle" style="
  91. opacity: 1;
  92. background: #f5f5f5;
  93. color: #333333;
  94. margin-right: 10px;
  95. ">
  96. <text>取消</text>
  97. </view>
  98. <view style="background: #3665ff; color: #fff" @click="sureHandle">
  99. <text>确定</text>
  100. </view>
  101. </view>
  102. </view>
  103. </u-popup>
  104. <!-- 选择时间弹框 -->
  105. <view class="change-time-prop" v-if="simpleShow" @touchmove.stop.prevent="disabledScroll">
  106. <view style="font-size: #333333; font-weight: 550; font-size: 17px;padding-left: 10px;">
  107. 第{{ simple_week }}周
  108. </view>
  109. <view class="table_1">
  110. <u-tabs :list="roomList" :current="simple_currentRoom" @change="simpleChangeRoom"></u-tabs>
  111. <view class="table-border">
  112. <view class="jie">
  113. <view class="jie-item" style="height: 55px; line-height: 20px">
  114. </view>
  115. <view class="jie-item" v-for="(item, index) in simple_left" :key="index">
  116. {{ item.name }}
  117. </view>
  118. </view>
  119. <view class="day">
  120. <view v-for="(item, index) in simple_weekList" :key="index" class="day-item"
  121. :class="[checkOld(item.day) ? 'day-item-1' : '']">
  122. <view class="time" :class="checkToday(item.day) ? 'today' : ''"
  123. style="height: 55px; line-height: 20px">
  124. <view style="padding-top: 8px">{{ item.week }}</view>
  125. <view>{{ item.day }}</view>
  126. </view>
  127. <view v-for="(course, index1) in simple_calendar[index].lists" :key="index1"
  128. class="jie-item">
  129. <!-- 时间段已过期 -->
  130. <view v-if="checkOld(item.day)"></view>
  131. <view v-else class="course" @click="selectTime(simple_calendar[index], index1)">
  132. <view v-if="!course.is_lesson" class="course kong" :class="
  133. checkIselect(
  134. simple_calendar[index].week_index,
  135. simple_jieList[index1].id
  136. )
  137. ? 'xuan'
  138. : ''
  139. ">
  140. <view>{{
  141. checkIselect(
  142. simple_calendar[index].week_index,
  143. simple_jieList[index1].id
  144. )
  145. ? "已选"
  146. : "可选"
  147. }}</view>
  148. </view>
  149. <view v-if="
  150. current_course.week == simple_week &&
  151. current_course.room_id == simple_room_id &&
  152. simple_calendar[index].week_index ==
  153. current_course.week_index &&
  154. current_course.time_id == simple_jieList[index1].id
  155. " class="course current-course">
  156. 当前课程
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. <view class="simple-week">
  164. <view :class="simple_week == 1 ? 'disable-buttom' : 'change-buttom'" @click="simpleLastWeek">
  165. 上一周
  166. </view>
  167. <view :class="simple_week == maxWeek ? 'disable-buttom' : 'change-buttom'" @click="simpleNextWeek">
  168. 下一周
  169. </view>
  170. </view>
  171. <view class="sure-buttom">
  172. <view class="cancel" @click="cancelSelectTime"> 取消 </view>
  173. <view class="sure" @click="sureSelectTime"> 确定 </view>
  174. </view>
  175. </view>
  176. </view>
  177. <!-- 补课弹框 -->
  178. <u-popup v-model="makeLesson" mode="center" border-radius="24" width="90%" z-index="10076" :mask-close-able="false">
  179. <view class="prop-content">
  180. <!-- <image src="../../static/image/index/icon_6.png" mode="" class="prop-image"></image> -->
  181. <view class="prop-title">
  182. {{ detail.lesson ? detail.lesson.name : "--" }}
  183. </view>
  184. <view style="width: 100%">
  185. <!-- <scroll-view scroll-y="true" style="height: 200px;"> -->
  186. <view class="content-item" style="align-items: center;">
  187. <view class="prop-label"> 补课时间: </view>
  188. <view class="prop-text">
  189. <view class="change-time" @click="chaneTime"> 选择时间 </view>
  190. </view>
  191. </view>
  192. <view class="content-item" v-if="migrate_data.length > 0">
  193. <view class="prop-text">
  194. <view class="table-title">
  195. <view class="title-item"> 实验室 </view>
  196. <view class="title-item"> 日期 </view>
  197. <view class="title-item"> 节次 </view>
  198. </view>
  199. <view class="table-title" v-for="(item, index) in migrate_data" :key="index">
  200. <view class="title-item">
  201. {{ item.room_name }}
  202. </view>
  203. <view class="title-item">
  204. {{ item.day }} · 第{{ item.week }}周 · 星期{{
  205. $transformWeek(item.week_index)
  206. }}
  207. </view>
  208. <view class="title-item">
  209. {{ getTime(item.time_id) }}
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. <view class="content-item">
  215. <view class="prop-label"> 停调课原因: </view>
  216. </view>
  217. <view class="content-item">
  218. <view class="prop-text">
  219. <textarea v-model="body" rows="2" placeholder="请输入停调课原因"></textarea>
  220. <!-- <u-input v-model="body" type="textarea" border height="150" auto-height /> -->
  221. </view>
  222. </view>
  223. </view>
  224. <!-- </scroll-view> -->
  225. <view class="pop-btn">
  226. <view @click="makeLesson = false , totalCourse = []" style="
  227. opacity: 1;
  228. background: #f5f5f5;
  229. color: #333333;
  230. margin-right: 10px;
  231. ">
  232. <text>取消</text>
  233. </view>
  234. <view style="background: #3665ff; color: #fff" @click="make_les">
  235. <text>确定</text>
  236. </view>
  237. </view>
  238. </view>
  239. </u-popup>
  240. </view>
  241. <view class="empty" v-if="list.length==0" style="padding-top: 110px;">
  242. <u-empty text="暂无记录~" mode="favor"></u-empty>
  243. </view>
  244. </view>
  245. </template>
  246. <script>
  247. var app = getApp();
  248. export default {
  249. data() {
  250. return {
  251. list: '',
  252. statuss: 'loadmore',
  253. loadText: {
  254. loadmore: '轻轻上拉',
  255. loading: '努力加载中',
  256. nomore: '实在没有了'
  257. },
  258. page: 1,
  259. meta: '',
  260. loading: true,
  261. showFalse:false,
  262. list_sel: [{
  263. id: 1,
  264. name: "停课",
  265. },
  266. {
  267. id: 2,
  268. name: "调课",
  269. },
  270. ],
  271. type: "", //停调课类型、1停课,2调课
  272. detail:'',
  273. simple_week: 0,
  274. simple_currentRoom: 0,
  275. simpleShow:false,
  276. room_id: 18,
  277. week: 0,
  278. currentRoom: 0,
  279. migrate_data: [],
  280. simple_weekList:[],
  281. today: "", //今日日期
  282. selected: [], //已选择
  283. jieList: [],
  284. roomList:[],
  285. simple_left:[],
  286. makeLesson:false,
  287. body:'',
  288. maxWeek:0
  289. }
  290. },
  291. onLoad() {
  292. // this.$u.get('/school/schedule').then(res => {
  293. // console.log(res)
  294. // this.list = res.data.list;
  295. // this.loading = false;
  296. // })
  297. this.lists();
  298. this.maxWeek = Number(this.vuex_term_weeks);
  299. this.getRoomList();
  300. console.log(this.roomList, "---");
  301. this.user_id = this.vuex_user.id;
  302. },
  303. onPullDownRefresh() {
  304. this.lists()
  305. this.page = 1;
  306. uni.stopPullDownRefresh()
  307. },
  308. onReachBottom() {
  309. this.statuss = 'loading';
  310. var page = this.page;
  311. if (page >= this.meta.total_pages) {
  312. this.statuss = 'nomore';
  313. } else {
  314. this.$u.get('/school/schedule?page=' + Number(page + 1)).then(res => {
  315. console.log(res)
  316. this.list = this.list.concat(this.foreach(res.data.list));
  317. this.page = ++page;
  318. })
  319. this.statuss = 'loadmore';
  320. }
  321. },
  322. methods: {
  323. details(id){
  324. console.log(id)
  325. // uni.navigateTo({
  326. // url:'/pages/record/tutorialDetail?id='+id
  327. // })
  328. },
  329. //获取实验室列表
  330. async getRoomList() {
  331. await this.$u
  332. .get("/school/room-select-options", {
  333. status: 1,
  334. })
  335. .then((res) => {
  336. this.roomList = res.data;
  337. this.room_id = res.data[this.currentRoom].id;
  338. this.simple_room_id = res.data[this.currentRoom].id;
  339. });
  340. },
  341. //获取时间选择列表
  342. getChangeTime() {
  343. this.$u
  344. .post("/school/schedule/calendar-simple", {
  345. room_id: this.simple_room_id,
  346. week: this.simple_week,
  347. })
  348. .then((res) => {
  349. this.simple_jieList = res.data.times;
  350. var head = res.data.headers;
  351. var xingqi = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"];
  352. for (var i = 0; i < head.length; i++) {
  353. head[i].week = xingqi[i];
  354. head[i].day = head[i].day.slice(5, 11).replace("-", "/");
  355. }
  356. this.simple_weekList = head;
  357. this.simple_calendar = res.data.calendar;
  358. this.simple_week = res.data.week;
  359. this.simple_left = res.data.times;
  360. // console.log(this.simple_jieList)
  361. });
  362. },
  363. //选择时间切换实验室
  364. simpleChangeRoom(item) {
  365. this.simple_currentRoom = item;
  366. this.simple_room_id = this.roomList[item].id;
  367. this.getChangeTime();
  368. },
  369. //点击选择时间
  370. chaneTime() {
  371. this.simpleShow = true;
  372. this.simple_room_id = this.room_id;
  373. this.simple_week = this.week;
  374. this.simple_currentRoom = this.currentRoom;
  375. this.getChangeTime();
  376. },
  377. //匹配节次
  378. getTime(time) {
  379. console.log(time)
  380. var time1 = "";
  381. this.simple_jieList.map((item) => {
  382. if (item.id == time) {
  383. time1 = item.name;
  384. }
  385. });
  386. return time1;
  387. },
  388. //判断是否已选择
  389. checkIselect(week_index, time_id) {
  390. var status = false;
  391. if (this.selected.length == 0) return false;
  392. this.selected.map((item) => {
  393. if (
  394. this.simple_week == item.week &&
  395. this.simple_room_id == item.room_id &&
  396. week_index == item.week_index &&
  397. time_id == item.time_id
  398. ) {
  399. status = true;
  400. }
  401. });
  402. return status;
  403. },
  404. //选择时间点
  405. selectTime(row, index1) {
  406. this.selected = [];
  407. this.migrate_data = [];
  408. let id =
  409. row.week_index.toString() +
  410. this.simple_jieList[index1].id.toString() +
  411. this.simple_room_id.toString();
  412. let index = false;
  413. this.migrate_data.map((item) => {
  414. if (item.id == id) index = true;
  415. });
  416. console.log(index, "000", id);
  417. if (!index) {
  418. let arr1 = [{
  419. id: id,
  420. week: row.week,
  421. day: row.day,
  422. week_index: row.week_index,
  423. time_id: this.simple_jieList[index1].id,
  424. time_name: this.simple_jieList[index1].name,
  425. room_id: this.simple_room_id,
  426. room_name: this.roomList[this.simple_currentRoom].name,
  427. }, ];
  428. this.migrate_data = this.migrate_data.concat(arr1);
  429. let arr = [{
  430. id: row.week_index.toString() +
  431. this.simple_jieList[index1].id.toString() +
  432. this.simple_room_id.toString(),
  433. time_id: this.simple_jieList[index1].id,
  434. week_index: row.week_index,
  435. week: row.week,
  436. room_id: this.simple_room_id,
  437. }, ];
  438. // this.selected = this.selected.concat(arr) //开放预约可多选
  439. this.selected = arr;
  440. // this.$forceUpdate()
  441. // this.$set(this.selected, this.selected.concat(arr))
  442. } else {
  443. this.selected = this.selected.filter((item) => {
  444. return item.id !== id;
  445. });
  446. this.migrate_data = this.migrate_data.filter((item) => {
  447. return item.id !== id;
  448. });
  449. }
  450. },
  451. disabledScroll() {
  452. return;
  453. },
  454. lists() {
  455. //数据列表 请求方法
  456. this.$u.get('/school/schedule').then(res => {
  457. console.log(res)
  458. this.meta = res.data.meta.pagination;
  459. if (res.data.list.length < 10) {
  460. this.statuss = 'nomore'
  461. }
  462. this.list = this.foreach(res.data.list);
  463. this.loading = false;
  464. })
  465. },
  466. foreach(lesson) {
  467. for (var i = 0; i < lesson.length; i++) {
  468. if (lesson[i].week_index == 0) {
  469. lesson[i].week_index = '星期一'
  470. }
  471. if (lesson[i].week_index == 1) {
  472. lesson[i].week_index = '星期二'
  473. }
  474. if (lesson[i].week_index == 2) {
  475. lesson[i].week_index = '星期三'
  476. }
  477. if (lesson[i].week_index == 3) {
  478. lesson[i].week_index = '星期四'
  479. }
  480. if (lesson[i].week_index == 4) {
  481. lesson[i].week_index = '星期五'
  482. }
  483. if (lesson[i].week_index == 5) {
  484. lesson[i].week_index = '星期六'
  485. }
  486. if (lesson[i].week_index == 6) {
  487. lesson[i].week_index = '星期日'
  488. }
  489. }
  490. return lesson;
  491. },
  492. radioGroupChange(e) {
  493. console.log(e);
  494. },
  495. radioChange(e) {
  496. //单选按钮事件
  497. },
  498. showPop(item){
  499. //显示停调课弹窗
  500. console.log(item)
  501. // this.detail = item;
  502. // this.showFalse = true;
  503. uni.navigateTo({
  504. url:'/pages/record/StoTtransfer?detail='+JSON.stringify(item)+'&type=1'
  505. })
  506. },
  507. showLesson(item){
  508. uni.navigateTo({
  509. url:'/pages/record/StoTtransfer?detail='+JSON.stringify(item)+'&type=2'
  510. })
  511. // this.detail = item;
  512. // this.makeLesson = true;
  513. },
  514. //判断是否为当天日期
  515. checkToday(tableDay) {
  516. var nowDay = Number(this.today.replace(/-/g, ""));
  517. //表格日期
  518. var day2 = Number(tableDay.replace(/-/g, ""));
  519. if (nowDay == day2) {
  520. return true;
  521. } else {
  522. return false;
  523. }
  524. },
  525. //选择时间上一周
  526. simpleLastWeek() {
  527. if (this.simple_week > 1) {
  528. this.simple_week--;
  529. this.getChangeTime();
  530. }
  531. },
  532. //选择时间下一周
  533. simpleNextWeek() {
  534. if (this.simple_week < this.maxWeek) {
  535. this.simple_week++;
  536. this.getChangeTime();
  537. }
  538. },
  539. //判断课程是否过期
  540. checkOld(tableDay) {
  541. var nowDay = Number(this.today.replace(/-/g, ""));
  542. //表格日期
  543. var day2 = Number(tableDay.replace(/-/g, ""));
  544. if (nowDay > day2) {
  545. return true;
  546. } else {
  547. return false;
  548. }
  549. },
  550. //取消选择时间
  551. cancelSelectTime() {
  552. (this.selected = []), (this.migrate_data = []);
  553. this.simpleShow = false;
  554. },
  555. //确定选择
  556. sureSelectTime() {
  557. this.simpleShow = false;
  558. },
  559. // 补课申请
  560. make_les(){
  561. if (this.migrate_data.length == 0) {
  562. uni.showToast({
  563. title: "请选择补课时间",
  564. icon: "none",
  565. })
  566. }else{
  567. let data = {
  568. type: 3,
  569. body: this.body,
  570. id: this.detail.id,
  571. migrate_data: this.migrate_data[0],
  572. };
  573. this.$u.post("/school/schedule/change", data).then((res) => {
  574. this.show = false;
  575. this.makeLesson = false;
  576. // this.handleClear();
  577. uni.showToast({
  578. title: "提交成功,请等待管理员审核!",
  579. icon: "none",
  580. });
  581. });
  582. }
  583. },
  584. //确定停调课
  585. sureHandle() {
  586. if (!this.type) {
  587. uni.showToast({
  588. title: "请选择类型",
  589. icon: "none",
  590. });
  591. return;
  592. }
  593. if (this.type == 2 && this.migrate_data.length == 0) {
  594. uni.showToast({
  595. title: "请选择调课时间",
  596. icon: "none",
  597. });
  598. return;
  599. }
  600. if (!this.body) {
  601. uni.showToast({
  602. title: "请输入停调课原因",
  603. icon: "none",
  604. });
  605. return;
  606. }
  607. let data = {
  608. type: this.type,
  609. body: this.body,
  610. id: this.detail.id,
  611. migrate_data: this.migrate_data[0],
  612. };
  613. this.$u.post("/school/schedule/change", data).then((res) => {
  614. this.show = false;
  615. this.showFalse = false;
  616. this.handleClear();
  617. uni.showToast({
  618. title: "提交成功,请等待管理员审核!",
  619. icon: "none",
  620. });
  621. });
  622. }, //取消停调可
  623. cancelHandle() {
  624. this.showFalse = false;
  625. this.totalCourse = [];
  626. this.handleClear();
  627. },
  628. //清除表单信息
  629. handleClear() {
  630. this.selected = [];
  631. this.migrate_data = [];
  632. this.type = "";
  633. this.body = "";
  634. },
  635. }
  636. }
  637. </script>
  638. <style scoped lang="scss">
  639. .table-item {
  640. padding: 15px 12px;
  641. border-top: solid 1px #F2F2F2;
  642. display: flex;
  643. width: 100%;
  644. box-sizing: border-box;
  645. // .item-border {
  646. // width: 4px;
  647. // background-color: #30D143;
  648. // border-radius: 2px;
  649. // margin-right: 8px;
  650. // }
  651. .room-name {
  652. display: flex;
  653. align-items: center;
  654. justify-content: space-between;
  655. color: #333333;
  656. font-size: 13px;
  657. font-weight: 800;
  658. }
  659. .teacher {
  660. display: flex;
  661. flex-wrap: wrap;
  662. color: #333;
  663. width: 100%;
  664. font-size: 13px;
  665. // word-wrap: break-word;
  666. // white-space: nowrap;
  667. // overflow: hidden;
  668. // text-overflow: ellipsis;
  669. text {
  670. width: 100%;
  671. display: -webkit-box;
  672. -webkit-box-orient: vertical;
  673. -webkit-line-clamp: 1;
  674. overflow: hidden;
  675. padding-top: 5px;
  676. }
  677. }
  678. .right {
  679. display: flex;
  680. justify-content: flex-end;
  681. align-items: center;
  682. view {
  683. width: 64px;
  684. height: 28px;
  685. border-radius: 14px;
  686. opacity: 1;
  687. display: flex;
  688. align-items: center;
  689. justify-content: center;
  690. font-size: 12px;
  691. color: #FFFFFF;
  692. font-weight: 400;
  693. }
  694. }
  695. }
  696. .prop-content {
  697. padding: 15px;
  698. display: flex;
  699. flex-direction: column;
  700. align-items: center;
  701. .prop-title {
  702. text-align: center;
  703. font-size: 18px;
  704. margin-bottom: 5px;
  705. font-weight: bold;
  706. color: #333333;
  707. margin-top: 30px;
  708. }
  709. .content-item {
  710. display: flex;
  711. color: #333333;
  712. margin-top: 8px;
  713. width: 100%;
  714. .prop-label {
  715. flex: 0 0 90px;
  716. font-size: 15px;
  717. font-weight: 550;
  718. }
  719. .prop-text {
  720. flex: 1;
  721. .change-time {
  722. display: inline-block;
  723. padding: 0 8px;
  724. line-height: 30px;
  725. height: 30px;
  726. font-size: 12px;
  727. color: #ffffff;
  728. background-color: #3665ff;
  729. border-radius: 5px;
  730. }
  731. .table-title {
  732. display: flex;
  733. border-left: solid 1px#b3b3b3;
  734. .title-item {
  735. flex: 1;
  736. padding: 5px 0;
  737. text-align: center;
  738. border-right: solid 1px #b3b3b3;
  739. border-bottom: solid 1px#b3b3b3;
  740. }
  741. }
  742. .table-title:first-child {
  743. background-color: #e3e3e3;
  744. border-top: solid 1px #b3b3b3;
  745. }
  746. textarea {
  747. border: solid 1px #b3b3b3;
  748. width: auto;
  749. border-radius: 8px;
  750. padding: 8px;
  751. height: 100px;
  752. }
  753. }
  754. .prop-content {
  755. font-size: 15px;
  756. }
  757. }
  758. .prop-srue {
  759. width: 279px;
  760. height: 44px;
  761. background: #3665ff;
  762. text-align: center;
  763. margin-top: 30px;
  764. line-height: 44px;
  765. color: #ffffff;
  766. border-radius: 22px 22px 22px 22px;
  767. font-size: 16px;
  768. margin-bottom: 5px;
  769. }
  770. .pop-btn {
  771. margin-top: 40px;
  772. width: 84%;
  773. display: flex;
  774. align-items: center;
  775. justify-content: center;
  776. view {
  777. display: flex;
  778. align-items: center;
  779. justify-content: center;
  780. width: 130px;
  781. height: 44px;
  782. font-size: 16px;
  783. font-weight: bold;
  784. border-radius: 22px 22px 22px 22px;
  785. opacity: 1;
  786. }
  787. }
  788. }
  789. //时间选择弹框
  790. .change-time-prop {
  791. // height: 100%;
  792. height: 100vh;
  793. width: 100%;
  794. background-color: #fff;
  795. position: fixed;
  796. top: 0;
  797. left: 0;
  798. z-index: 99999999999;
  799. overflow-y: auto;
  800. .table_1 {
  801. .simple-week {
  802. text-align: right;
  803. padding: 10px;
  804. background-color: #fff;
  805. border-bottom: solid 1px #dddcdc;
  806. .change-buttom,
  807. .disable-buttom {
  808. display: inline-block;
  809. padding: 8px 30px;
  810. background-color: #3665ff;
  811. color: #ffffff;
  812. // margin-left: 10px;
  813. border-radius: 18px;
  814. }
  815. .week-text {
  816. display: inline-block;
  817. font-size: 15px;
  818. margin: 0 10px;
  819. font-weight: bold;
  820. }
  821. .disable-buttom {
  822. background-color: #dddcdc;
  823. color: #7c7b7b;
  824. }
  825. }
  826. .sure-buttom {
  827. text-align: center;
  828. margin-top: 20px;
  829. .cancel {
  830. display: inline-block;
  831. width: 150px;
  832. height: 45px;
  833. line-height: 45px;
  834. border: solid 1px #3665ff;
  835. color: #3665ff;
  836. border-radius: 22px;
  837. }
  838. .sure {
  839. display: inline-block;
  840. width: 150px;
  841. height: 45px;
  842. line-height: 45px;
  843. background-color: #3665ff;
  844. color: #ffffff;
  845. margin-left: 10px;
  846. border-radius: 22px;
  847. }
  848. }
  849. .table-border {
  850. display: flex;
  851. .week {
  852. display: flex;
  853. padding: 8px;
  854. color: #333333;
  855. font-size: 12px;
  856. border-bottom: solid 1px #f2f2f2;
  857. border-top: solid 1px #f2f2f2;
  858. background-color: #fbfcff;
  859. .week-item {
  860. flex: 1;
  861. text-align: center;
  862. .week-day {
  863. margin-top: 3px;
  864. }
  865. }
  866. }
  867. .jie {
  868. text-align: center;
  869. background-color: #fbfcff;
  870. }
  871. .jie-item:first-child {
  872. background-color: #fbfcff;
  873. display: flex;
  874. align-items: center;
  875. justify-content: center;
  876. }
  877. .jie-item {
  878. flex: 1;
  879. display: flex;
  880. align-items: center;
  881. justify-content: center;
  882. border: 1px dashed #f2f2f2;
  883. border-right: none;
  884. border-top: none;
  885. height: 50px;
  886. border-left: none;
  887. text-align: center;
  888. }
  889. .kong {
  890. text-align: center;
  891. // background-color: #0077ff;
  892. color: #0077ff;
  893. cursor: pointer;
  894. // border-bottom: solid 1px #fff;
  895. }
  896. .course {
  897. flex: 1;
  898. display: flex;
  899. align-items: center;
  900. justify-content: center;
  901. height: 50px;
  902. border-left: none;
  903. text-align: center;
  904. width: 100%;
  905. }
  906. .current-course {
  907. text-align: center;
  908. background-color: #0077ff;
  909. color: #fff;
  910. display: flex;
  911. align-items: center;
  912. justify-content: center;
  913. }
  914. .xuan {
  915. text-align: center;
  916. background-color: #00b315;
  917. color: #fff;
  918. display: flex;
  919. align-items: center;
  920. justify-content: center;
  921. }
  922. .jie-item:last-child {
  923. border-bottom: none;
  924. }
  925. .day {
  926. flex: 1;
  927. display: flex;
  928. text-align: center;
  929. .day-item {
  930. flex: 1;
  931. .time {
  932. border-bottom: 1px dashed #f2f2f2;
  933. background-color: #fbfcff;
  934. }
  935. .today {
  936. color: #df4d76;
  937. }
  938. background-color: #fff;
  939. border: 1px dashed #f2f2f2;
  940. }
  941. .day-item-1 {
  942. background-color: #cdced0;
  943. }
  944. }
  945. }
  946. }
  947. }
  948. </style>