Browse Source

Merge branch 'master' of http://git.cc-lotus.info/new_train/train-dirtea

reloaded 4 năm trước cách đây
mục cha
commit
620eb89326
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      src/views/user/attendance.vue

+ 8 - 2
src/views/user/attendance.vue

@@ -61,7 +61,7 @@ export default {
     display: '',
     navShow: true,
     type: '1',
-    selvalue: {},
+    selvalue: '',
     typeOption: [
       { text: '按学生查看', value: '0' },
       { text: '按时间查看', value: '1' },
@@ -74,6 +74,7 @@ export default {
   }),
   created() {
     this.typeChange();
+    this.selChange();
   },
   computed: {
     ...mapState(['user', 'classid']),
@@ -94,6 +95,7 @@ export default {
           sel.value = date;
           selOption.push(sel);
         }
+        this.$set(this, `selvalue`, selOption[0].value);
         this.$set(this, `selOption`, selOption);
       } else if (this.type === '0') {
         const stuList = await this.stuQuery({ classid: this.classid });
@@ -198,7 +200,7 @@ export default {
   overflow: hidden;
 }
 .attendList {
-  border-bottom: 1px solid #f5f5f5;
+  border-bottom: 1px dashed #dcdcdc;
 }
 .attendList span {
   margin-right: 10px;
@@ -207,10 +209,14 @@ export default {
   float: right;
   margin-left: 10px;
   width: 60px;
+  text-align: center;
 }
 .attendList span:last-child {
   float: right;
   margin-left: 10px;
   width: 80px;
 }
+/deep/.van-collapse-item__content {
+  padding: 0 16px;
+}
 </style>