瀏覽代碼

数据图表版本

zhengjinyi 1 年之前
父節點
當前提交
c3fc7c042a

+ 4 - 0
src/main/resources/static/js/supplier-center/encyclopedia/charts.js

@@ -14,6 +14,7 @@ const chartContent = new Vue({
         summarize1:'',
         summarize2:'',
         isLoading:false,
+        isPreview:true,
         queryParams:{
             type:2,
             shopId:'',
@@ -87,6 +88,9 @@ const chartContent = new Vue({
         this.queryParams.shopId = getUrlParam("shopId");
         this.queryParams.marketReportId = getUrlParam("marketReportId") ? getUrlParam("marketReportId") : '';
         this.queryParams.type = getUrlParam("type") ? getUrlParam("type") : '';
+        if(this.queryParams.type*1 === 1){
+            this.isPreview = false
+        }
         this.openFullScreen2()
     }
 });

+ 1 - 1
src/main/resources/templates/supplier-center/encyclopedia/charts.html

@@ -31,7 +31,7 @@
                     <p>营销数据看板</p>
                     <p class="small">({{shopInfo.chartTitle}})</p>
                 </div>
-                <div class="header-time">
+                <div class="header-time" v-if="isPreview">
                     <el-date-picker
                             class="time"
                             v-model="queryParams.startTime"