Prechádzať zdrojové kódy

各科室接口调用统计

1178232204@qq.com 3 rokov pred
rodič
commit
49eec6b0e3

+ 7 - 6
src/components/callRecord/CallRecordManager.vue

@@ -17,8 +17,8 @@
             style="width: 250px"
             :class="filter.recepDate === null ? 'active' : ''"
             :default-time="['00:00:00', '23:59:59']"
-            format="yyyy-MM-dd HH:mm:ss"
-            value-format="yyyy-MM-dd"
+            format="yyyy-MM-dd "
+            value-format="yyyy-MM-dd HH:mm:ss"
           >
           </el-date-picker>
         </el-form-item>
@@ -33,8 +33,8 @@
             end-placeholder="结束时间"
             style="width: 250px"
             :default-time="['00:00:00', '23:59:59']"
-            format="yyyy-MM-dd HH:mm:ss"
-            value-format="yyyy-MM-dd"
+            format="yyyy-MM-dd "
+            value-format="yyyy-MM-dd HH:mm:ss"
             unlink-panels
           >
           </el-date-picker>
@@ -447,6 +447,7 @@ export default {
     //各科室接口调用统计
     getInterface() {
       this.dialogTableVisible = true;
+      this.getSure();
     },
     closeInterface() {
       this.dialogTableVisible = false;
@@ -455,8 +456,8 @@ export default {
     },
     getSure() {
       let params = {
-        startGmtReq: this.time[0],
-        endGmtReq: this.time[1],
+        startGmtReq: this.time ? this.time[0] : "",
+        endGmtReq: this.time ? this.time[1] : "",
       };
       api
         .getStatistByDept(params)