liyongli %!s(int64=3) %!d(string=hai) anos
pai
achega
d65cef8f80
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      src/views/Activity/views/defaultComponent.vue

+ 8 - 1
src/views/Activity/views/defaultComponent.vue

@@ -129,7 +129,7 @@
           v-model="T"
           type="daterange"
           @change="change"
-          style="float: right; margin-right: 10px"
+          style="float: right; margin-right: 10px;width: 350px"
           value-format="YYYY-MM-DD"
           range-separator="-"
           size="small"
@@ -482,6 +482,8 @@ export default {
         startTime: this.T[0],
         title: this.item.realName,
       };
+      this.T[0] && (p.startTime = this.T[0] + ' 00:00:00');
+      this.T[1] && (p.endTime = this.T[1] + ' 23:59:59');
       this.select && this.select !== "全部" && (p.depName = this.select);
       guijiFagao(p).then(res => {
         const { total, data } = res;
@@ -494,6 +496,7 @@ export default {
     },
     change(v) {
       this.T = v;
+      this.getRult();
     },
   },
   beforeUnmount: function() {},
@@ -558,4 +561,8 @@ export default {
   background: #eceff5;
   color: #3b3b3b;
 }
+.defaultComponent .el-pagination .btn-prev .el-icon,
+.defaultComponent .el-pagination .btn-next .el-icon{
+    width: 100%
+}
 </style>