unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
5a30420eae
Modificáronse 4 ficheiros con 54 adicións e 51 borrados
  1. 2 1
      html/schedule.html
  2. 45 42
      html/teacherscard.html
  3. 6 6
      log/Requests_URL.log
  4. 1 2
      static/js/api/vueSchedule.js

+ 2 - 1
html/schedule.html

@@ -79,7 +79,7 @@
                                 <div class="tab-content">
                                     <div class="tab-pane active col-md-3" id="pills-4" v-for='group in scheduleForDay'>
                                         <table class="table table-bordered table-hover">
-                                            <thead  >
+                                            <thead >
                                                 <tr >
                                                     <th colspan="4" height="50px" style="font-size: 20pt"><center>${group.Group}</center></th>
                                                 </tr>
@@ -162,6 +162,7 @@
 
             <script src="https://unpkg.com/vue"></script>
             <script type="text/javascript" src="../static/js/vendor/maskedinput/jquery.maskedinput.min.js"></script>
+            <script type="text/javascript" src="../static/js/api/vueSchedule.js"></script>
             <!-- THIS PAGE SCRIPTS -->
             <script type="text/javascript" src="../static/js/vendor/bootstrap-select/bootstrap-select.js"></script>
             <script type="text/javascript" src="../static/js/vendor/select2/select2.full.min.js"></script>

+ 45 - 42
html/teacherscard.html

@@ -89,48 +89,7 @@
                                     </table>
                                 </div>
                             
-                            <!--<div class="table-responsive">
-                                <h1>Карточка преподавателя</h1>
-                                <table class="table table-striped table-bordered">
-                                    <tr>
-                                        <th rowspan="2">Наименование предмета *</th>
-                                        <th colspan="2">Распр. по семестр</th>
-                                        <th rowspan="2">Максимальная нагрузка</th>
-                                        <th rowspan="2">ВСP</th>
-                                        <th rowspan="2">Кол-во часов по плану</th>
-                                        <th rowspan="2">Снятие празд. часы</th>
-                                        <th rowspan="2">Кол-во часов к выдаче *</th>
-                                        <th colspan="4">ЛПЗ</th>
-                                        <th colspan="5">1 семестр</th>
-                                        <th colspan="5">2 семестр</th>
-                                        <th colspan="2">К-во часов на экзамен</th>
-                                        <th rowspan="2">ВСР к оплате</th>
-                                        <th rowspan="2">консультации</th>
-                                        <th rowspan="2">Итого</th>
-                                        <th rowspan="2">группа *</th>
-                                    </tr>
-                                    <tr>
-                                        <th>Экзам. зачеты, диф. зач. *</th>
-                                        <th>КП</th>
-                                        <th>1-ая подгруппа</th>
-                                        <th>2-ая подгруппа</th>
-                                        <th>КП 1-ая подгрупп.</th>
-                                        <th>КП 2-ая подгрупп.</th>
-                                        <th>по плану</th>
-                                        <th>снятие часов</th>
-                                        <th>к выдаче</th>
-                                        <th>к-во недель *</th>
-                                        <th>нед. сет.</th>
-                                        <th>по плану</th>
-                                        <th>снятие часов</th>
-                                        <th>к выдаче</th>
-                                        <th>к-во недель</th>
-                                        <th>нед. сет. *</th>
-                                        <th>Э</th>
-                                        <th>ЭК</th>
-                                    </tr>
-                                </table>
-                                </div> -->
+                            
                     <div class="modal fade" id="modal-default" tabindex="-1" role="dialog" aria-labelledby="modal-default-header">
                         <div class="modal-dialog modal-lg" role="document">
                             <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" class="icon-cross"></span></button>
@@ -375,3 +334,47 @@
             <!-- END APP SCRIPTS -->
         </body>
     </html>
+
+
+<!--<div class="table-responsive">
+                                <h1>Карточка преподавателя</h1>
+                                <table class="table table-striped table-bordered">
+                                    <tr>
+                                        <th rowspan="2">Наименование предмета *</th>
+                                        <th colspan="2">Распр. по семестр</th>
+                                        <th rowspan="2">Максимальная нагрузка</th>
+                                        <th rowspan="2">ВСP</th>
+                                        <th rowspan="2">Кол-во часов по плану</th>
+                                        <th rowspan="2">Снятие празд. часы</th>
+                                        <th rowspan="2">Кол-во часов к выдаче *</th>
+                                        <th colspan="4">ЛПЗ</th>
+                                        <th colspan="5">1 семестр</th>
+                                        <th colspan="5">2 семестр</th>
+                                        <th colspan="2">К-во часов на экзамен</th>
+                                        <th rowspan="2">ВСР к оплате</th>
+                                        <th rowspan="2">консультации</th>
+                                        <th rowspan="2">Итого</th>
+                                        <th rowspan="2">группа *</th>
+                                    </tr>
+                                    <tr>
+                                        <th>Экзам. зачеты, диф. зач. *</th>
+                                        <th>КП</th>
+                                        <th>1-ая подгруппа</th>
+                                        <th>2-ая подгруппа</th>
+                                        <th>КП 1-ая подгрупп.</th>
+                                        <th>КП 2-ая подгрупп.</th>
+                                        <th>по плану</th>
+                                        <th>снятие часов</th>
+                                        <th>к выдаче</th>
+                                        <th>к-во недель *</th>
+                                        <th>нед. сет.</th>
+                                        <th>по плану</th>
+                                        <th>снятие часов</th>
+                                        <th>к выдаче</th>
+                                        <th>к-во недель</th>
+                                        <th>нед. сет. *</th>
+                                        <th>Э</th>
+                                        <th>ЭК</th>
+                                    </tr>
+                                </table>
+                                </div> -->  

+ 6 - 6
log/Requests_URL.log

@@ -1,6 +1,6 @@
-[12:37] Request from 127.0.0.1:50487 to /
-[12:37] Request from 127.0.0.1:50486 to /
-[12:37] Request from 127.0.0.1:50486 to /plan/
-[12:37] Request from 127.0.0.1:50490 to /plan/
-[12:37] Request from 127.0.0.1:50490 to /group/
-[12:37] Request from 127.0.0.1:50490 to /group/
+[19:49] Request from 127.0.0.1:51088 to /
+[19:49] Request from 127.0.0.1:51088 to /
+[19:49] Request from 127.0.0.1:51088 to /plan/
+[19:49] Request from 127.0.0.1:51090 to /plan/
+[19:49] Request from 127.0.0.1:51090 to /schedule/
+[19:49] Request from 127.0.0.1:51090 to /schedule/

+ 1 - 2
static/js/api/vueSchedule.js

@@ -1,5 +1,5 @@
 const requestFunc = async(url, method = "GET", data = null, token = null) => {
-	apihost = 'http://schedule.tomtit.tomsk.ru/api'
+	apihost = 'http://127.0.0.1/api'
 	method = method.toLocaleUpperCase()
 	let fullurl = `${apihost}${url}`;
 	let options = {
@@ -38,7 +38,6 @@ var vueApp = new Vue({
             		if(scheduleDay[0].Day === day) {
             			this.scheduleForDay = scheduleDay
             			console.log(scheduleDay)
-
             		}
             	}
             },