Răsfoiți Sursa

联储观察默认请求有数据的那天

cxmo 1 an în urmă
părinte
comite
5d0e735f31
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      src/views/toolBox_manage/FederalReserveWatch.vue

+ 3 - 2
src/views/toolBox_manage/FederalReserveWatch.vue

@@ -34,15 +34,16 @@ export default {
     },
     methods: {
         getSheetDetail(){
+            let type
             if(!this.selectDate){
-                this.sheetDetailInfo = {}
-                return
+                type='init'
             }
             ToolBoxInterface.getSheetDetail({
                 DateTime: this.selectDate||'',
             }).then(res=>{
                 if(res.Ret!==200) return
                 this.sheetDetailInfo = res.Data||{};
+                type==='init'&&(this.selectDate = this.sheetDetailInfo.DateTime||'')
                 this.$nextTick(()=>{
                     this.sheetDetailInfo.MeetingInfoId&&this.initSheet()
                 })