Kaynağa Gözat

无数据提示

hbchen 5 ay önce
ebeveyn
işleme
ef57730848

+ 4 - 0
src/lang/commonLang.js

@@ -308,6 +308,10 @@ export default {
       en: 'No files available for download.',
       zh: '暂无下载文件'
     },
+    no_data_date_msg:{
+      en: 'No data available for this date.',
+      zh: '该日期暂无数据'
+    },
   },
   Common: {
     category: {

+ 5 - 11
src/views/toolBox_manage/CcfDevice.vue

@@ -23,7 +23,7 @@
         </div>
         <div class="table-box">
             <div class="sheet-wrap"  v-if="sheetDetail" v-html="sheetDetail"></div>
-            <tableNoData text="该日期暂无数据" v-else/>
+            <tableNoData :text="$t('MsgPrompt.no_data_date_msg')" v-else/>
         </div>
     </div>
 </template>
@@ -36,9 +36,7 @@ export default {
         return {
             sheetDetail:'',
             selectDate:'',
-            tempDate:'',
             selectedVariety:'',
-            tempVariety:'',
             classifyList:[]
         };
     },
@@ -57,16 +55,12 @@ export default {
                 TableDate: this.selectDate,
                 ClassifyId:this.selectedVariety
             }).then(res=>{
-                if(res.Ret!==200){
-                    this.selectDate=this.tempDate
-                    this.selectedVariety=this.tempVariety
-                    return
-                } 
+                if(res.Ret!==200) return
                 let tableInfo = res.Data||{};
-                this.selectDate = tableInfo.ExcelDate
-                this.tempDate = tableInfo.ExcelDate
-                this.tempVariety = this.selectedVariety
                 this.sheetDetail = tableInfo.ExcelContent
+                if(this.sheetDetail){
+                    this.selectDate = tableInfo.ExcelDate
+                }
             })
         },
         // 对[#,;]转义

+ 1 - 1
src/views/toolBox_manage/FederalReserveWatch.vue

@@ -14,7 +14,7 @@
             <div class="sheet-wrap">
                 <div id="sheet-container" v-if="this.sheetDetailInfo.MeetingInfoId">
                 </div>
-                <tableNoData text="该日期暂无数据" v-else/>
+                <tableNoData :text="$t('MsgPrompt.no_data_date_msg')" v-else/>
                 
             </div>