Parcourir la source

修改历史考勤显示样式

lex-xin il y a 5 ans
Parent
commit
205cbc67d5

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/css/Attendance.aeb485f4.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/css/Attendance.d349339d.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/index.html


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/js/Attendance.a4d7695f.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/js/Attendance.b1ef70c2.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/js/app.8ffac125.js


+ 7 - 2
src/views/teacher/Attendance.vue

@@ -35,12 +35,16 @@
                     finished-text="我是有底线的"
                     @load="statisticsList">
             <div class="stu_info" v-for="(item, index) in dataList" :key="index">
-                <van-cell :center="true" title-class="truant">
+                <van-cell :center="true">
                     <template slot="icon">
                         <img class="logo" src="@/assets/images/default_head_img.png" alt="">
                     </template>
                     <template slot="default">到课(天):{{ item.normalDay }}<br/>旷课(天):{{ item.truantDay }}<br/>请假(天):{{ item.leaveDay }}</template>
-                    <template slot="title">{{ item.studentName }}<van-tag v-if="item.truant" type="danger" size="medium">连续旷课</van-tag></template>
+                    <template slot="title">
+                        <div :class="item.truant ? 'truant' : ''">
+                            {{ item.studentName }}<van-tag v-if="item.truant" type="danger" size="medium">连续旷课</van-tag>
+                        </div>
+                    </template>
                     <template slot="label">{{ item.subjectName | joinArray }}</template>
                 </van-cell>
                 <div class="stu-detail">
@@ -209,6 +213,7 @@ export default {
     font-size: .16rem;
     font-weight: bold;
     color: @mFontColor;
+    flex-basis: 15%;
     &.truant {
         color: @redColor;
     }

+ 2 - 2
vue.config.js

@@ -1,5 +1,5 @@
-// let targetUrl = 'http://47.99.212.176:8000'
-let targetUrl = 'http://192.168.3.27:8000'
+let targetUrl = 'http://mteadev.dayaedu.com'
+// let targetUrl = 'http://192.168.3.27:8000'
 // let targetUrl = 'https://online.dayaedu.com'
 // let targetUrl = 'http://testadm.dayaedu.com/'
 // let targetUrl = 'http://192.168.3.48:8080'

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff