瀏覽代碼

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/MTP2.0_WEB

marymelisa 4 年之前
父節點
當前提交
fc8710be16
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 2 0
      src/views/report/components/filter/index.vue
  2. 2 1
      src/views/report/setup.ts

+ 2 - 0
src/views/report/components/filter/index.vue

@@ -60,6 +60,8 @@ export default defineComponent({
         const userList = ref<SelectOption[]>([]);
         const { queryTable } = handlerManagerList(loading, 2);
         initData(() => {
+            // 处理刷新
+            selectedUser.value.key = getUserId();
             queryTable().then((res) => {
                 userList.value.length = 0;
                 userList.value.push({ value: getUserId(), lable: getUserName() });

+ 2 - 1
src/views/report/setup.ts

@@ -30,7 +30,8 @@ export function handleReprotType(context: SetupContext) {
     ])
     // 初始化时间
     function getInitTime() {
-        return moment(new Date(), dateFormat.value)
+        const yesterday = moment().add(-1, 'days')
+        return moment(yesterday, dateFormat.value)
     }
     function getFomateType(): reportCyleTimeType {
         const { key } = selectedReportType.value