Bladeren bron

消防报告文件预览http调整为https

wangtao 3 dagen geleden
bovenliggende
commit
177f90869d

+ 1 - 1
src/pages/business/mhxf/fireReport/components/detailedPath.vue

@@ -39,7 +39,7 @@ host = window.location.host;
 if (host.indexOf(config.ip) != -1) {
   viewerUrl.value = `http://${config.ip}/statics/pdf_js/web/viewer.html`;
 } else {
-  viewerUrl.value = "http://file.usky.cn/statics/pdf_js/web/viewer.html";
+  viewerUrl.value = "https://file.usky.cn/statics/pdf_js/web/viewer.html";
 }
 
 watchEffect(() => {});

+ 7 - 3
src/pages/business/mhxf/fireReport/index.vue

@@ -57,10 +57,13 @@ function reportInfoListApi() {
   reportInfoList({
     pageSize: pageSize.value,
     pageNum: pageNum.value,
-    companyId: "",
     sourceType: 2,
   }).then((res) => {
-    dataList.value = res.data.records;
+    if(pageSize.value == 20){
+      dataList.value = res.data.records;
+    }else{
+      dataList.value = dataList.value.concat(res.data.records);
+    }
     total.value = res.data.total;
   });
 }
@@ -142,7 +145,7 @@ function handleDownload(reportPath) {
  * @scrollView加载数据
  */
 function load() {
-  pageSize.value += 10;
+  pageNum.value += 1;
   reportInfoListApi();
 }
 
@@ -151,6 +154,7 @@ function load() {
  */
 function refresh() {
   pageSize.value = 20;
+  pageNum.value = 1;
   reportInfoListApi();
 }