Browse Source

无法打包问题修复

chenpeiqing 4 months ago
parent
commit
b8d9237c50

+ 23 - 0
src/assets/home/conversionRate.svg

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve">
+<style type="text/css">
+	.st0{fill:#5350E3;}
+</style>
+<g>
+	<g>
+		<path class="st0" d="M200,100c0,26.6-10.3,51.7-29.2,70.6s-44,29.4-70.7,29.4C44.9,200,0,155.1,0,100S44.9,0,100,0
+			c11.5,0,22.8,1.9,33.4,5.7c1.7,0.6,3,1.8,3.7,3.5c0.7,1.6,0.8,3.4,0.2,5c-1.2,3.4-4.9,5.1-8.3,4c-9.2-3.3-19-5-29-5
+			c-47.8,0-86.7,38.9-86.7,86.7s38.9,86.7,86.7,86.7s86.7-38.9,86.7-86.7c0.1-19.5-6.6-38.7-18.8-53.9c-1.1-1.3-1.6-3-1.4-4.8
+			c0.2-1.8,1.1-3.4,2.5-4.5c1.3-1.1,3-1.6,4.8-1.4c1.8,0.2,3.4,1.1,4.5,2.5C192.4,55.4,200.1,77.5,200,100z"/>
+	</g>
+	<g>
+		<path class="st0" d="M152.9,87.6c0,1.7-0.7,3.4-2,4.6c-1.2,1.2-2.9,1.9-4.7,1.9H47.1c-3.7,0-6.6-3-6.6-6.6s3-6.6,6.6-6.6h83.2
+			l-12.7-12.7c-1.3-1.4-1.9-3.1-1.9-4.9c0.1-1.7,0.8-3.3,2.1-4.5c2.5-2.5,6.5-2.5,9.1,0l24,24C152.2,84.1,152.9,85.8,152.9,87.6z"/>
+		<path class="st0" d="M152.7,112.4c0,3.7-3,6.6-6.6,6.6H63l12.7,12.7c1.3,1.3,2,3,2,4.8s-0.7,3.4-2,4.6c-1.2,1.2-2.8,1.8-4.7,1.8
+			c-1.8,0-3.5-0.7-4.6-1.9l-24-24c-1.3-1.3-2-3-2-4.8c0-1.7,0.7-3.4,2-4.6c1.2-1.2,2.9-1.9,4.6-1.9h99.1
+			C149.8,105.8,152.7,108.7,152.7,112.4z"/>
+	</g>
+</g>
+</svg>

+ 22 - 0
src/assets/home/enquiryNum.svg

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve">
+<style type="text/css">
+	.st0{fill:#E5B566;}
+</style>
+<title>询盘数</title>
+<desc>Created with Sketch.</desc>
+<g id="页面-1">
+	<g id="询盘数">
+		<path id="形状" class="st0" d="M181.4,173.1H59c-10.2,0-18.3-8.3-18.3-18.3V83.5c0-10.2,8.3-18.3,18.3-18.3h122.4
+			c10.2,0,18.3,8.3,18.3,18.3v71.3C199.7,164.7,191.6,173.1,181.4,173.1z M59,75.4c-4.3,0-7.8,3.5-7.8,7.8v71.3
+			c0,4.3,3.5,7.8,7.8,7.8h122.4c4.3,0,7.8-3.5,7.8-7.8v-71c0-4.3-3.5-7.8-7.8-7.8L59,75.4z"/>
+		<path id="路径" class="st0" d="M120.3,124.4c-1.1,0-1.9-0.3-2.7-0.8l-48.4-31c-2.4-1.6-3.2-4.8-1.6-7.3c1.6-2.4,4.8-3.2,7.3-1.6
+			l45.5,29.1l45.5-29.1c2.4-1.6,5.7-0.8,7.3,1.6s0.8,5.7-1.6,7.3L123,123.5C122.2,124.1,121.1,124.4,120.3,124.4L120.3,124.4z"/>
+		<path id="路径_1_" class="st0" d="M18.9,134.8c-10.2,0-18.6-8.3-18.6-18.3V45.2c0-10.2,8.3-18.3,18.3-18.3H141
+			c10.2,0,18.3,8.3,18.3,18.3c0,3-2.4,5.4-5.4,5.4s-5.4-2.4-5.4-5.4c0-4.3-3.5-7.8-7.8-7.8H18.9c-4.3,0-7.8,3.5-7.8,7.8v71.3
+			c0,4.3,3.5,7.8,7.8,7.8c3,0,5.4,2.4,5.4,5.4C24.3,132.7,21.8,134.8,18.9,134.8z"/>
+	</g>
+</g>
+</svg>

+ 31 - 0
src/assets/home/unReadEnquiryNum.svg

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve">
+<style type="text/css">
+	.st0{fill:#7BC8AA;}
+</style>
+<g>
+	<g>
+		<path class="st0" d="M151.9,191.4c-1.1,0-2.3-0.4-3.2-1.2l-32.8-27.4H4.9c-2.7,0-4.9-2.2-4.9-4.9V28.1c0-2.7,2.2-4.9,4.9-4.9
+			h176.8c2.7,0,4.9,2.2,4.9,4.9v129.8c0,2.7-2.2,4.9-4.9,4.9h-21.4l-3.6,24.4c-0.3,1.8-1.5,3.3-3.1,3.9
+			C153,191.2,152.4,191.4,151.9,191.4z M9.9,152.9h107.8c1.2,0,2.3,0.4,3.2,1.2l27.4,22.9l3-19.9c0.4-2.4,2.4-4.2,4.9-4.2h20.7V33
+			H9.9V152.9z"/>
+	</g>
+	<g>
+		<g>
+			<path class="st0" d="M50,93.1H28.3c-2.7,0-4.9-2.2-4.9-4.9s2.2-4.9,4.9-4.9H50c2.7,0,4.9,2.2,4.9,4.9C55,90.9,52.8,93.1,50,93.1z
+				"/>
+		</g>
+		<g>
+			<path class="st0" d="M102.1,93.1h-26c-2.7,0-4.9-2.2-4.9-4.9s2.2-4.9,4.9-4.9h26c2.7,0,4.9,2.2,4.9,4.9S104.8,93.1,102.1,93.1z"
+				/>
+		</g>
+		<g>
+			<path class="st0" d="M149.9,93.1h-21.7c-2.7,0-4.9-2.2-4.9-4.9s2.2-4.9,4.9-4.9h21.7c2.7,0,4.9,2.2,4.9,4.9
+				C154.8,90.9,152.6,93.1,149.9,93.1z"/>
+		</g>
+	</g>
+	<circle class="st0" cx="179.8" cy="28.8" r="20.2"/>
+</g>
+</svg>

+ 0 - 16
src/views/adweb/data/dailyData.vue

@@ -84,28 +84,14 @@
   import '/@/assets/less/common.less';
   import { getAction } from '/@/api/manage/manage';
   import { JeecgListMixin } from '/@/hooks/component/JeecgListMixin';
-  import enquiryTrack from '/@/views/adweb/enquiry/modules/enquiryTrack.vue';
-  import enquiryGenzong from '/@/views/adweb/enquiry/modules/enquiryTrackRecord.vue';
-  import enquiryDetail from '/@/views/adweb/enquiry/modules/enquiryDetail.vue';
-  import XpRecycleBinModal from '/@/views/adweb/system/modules/XpRecycleBinModal.vue';
-  import blackList from '/@/views/adweb/enquiry/modules/blackList.vue';
   import moment from 'moment';
-  import dashChart from './chart/DashChartDemo.vue';
   import areaChart from './chart/areaChart.vue';
-  import MapAdweb from '@/components/chart/mapAdweb.vue';
   import selectSite from '/@/components/adweb/selectSite.vue';
 
   export default {
     name: 'DailyData',
     components: {
-      enquiryTrack,
-      enquiryGenzong,
-      XpRecycleBinModal,
-      enquiryDetail,
-      blackList,
       areaChart,
-      dashChart,
-      MapAdweb,
       selectSite,
     },
     mixins: [JeecgListMixin],
@@ -462,8 +448,6 @@
     font-size: 18px;
     color: #000;
   }
-
-  @import '../../dashboard/less/home2-7.less';
 </style>
 <style lang="less">
   .pop-wrap {

+ 3 - 18
src/views/adweb/data/enquiryAnalysis.vue

@@ -39,7 +39,7 @@
     <a-spin :spinning="loading" tips="加载中...">
       <a-row class="r2">
         <a-col :span="8">
-          <p class="t1"><img src="@/assets/home/enquiryNum.svg" />询盘数</p>
+          <p class="t1"><img src="../../../assets/home/enquiryNum.svg" />询盘数</p>
           <router-link
             :to="{
               path: '/inquiry/list',
@@ -50,7 +50,7 @@
           </router-link>
         </a-col>
         <a-col :span="8">
-          <p class="t1"><img src="@/assets/home/unReadEnquiryNum.svg" />未读询盘数</p>
+          <p class="t1"><img src="../../../assets/home/unReadEnquiryNum.svg" />未读询盘数</p>
           <router-link
             :to="{
               path: '/inquiry/list',
@@ -61,7 +61,7 @@
           </router-link>
         </a-col>
         <a-col :span="8">
-          <p class="t1"><img src="@/assets/home/conversionRate.svg" />UV到询盘的转化率</p>
+          <p class="t1"><img src="../../../assets/home/conversionRate.svg" />UV到询盘的转化率</p>
           <p class="t3">{{ enquiryIndexNumber.conversionRate }}</p>
         </a-col>
       </a-row>
@@ -139,13 +139,7 @@
   import '/@/assets/less/common.less';
   import { getAction } from '/@/api/manage/manage';
   import { JeecgListMixin } from '/@/hooks/component/JeecgListMixin';
-  import enquiryTrack from '/@/views/adweb/enquiry/modules/enquiryTrack.vue';
-  import enquiryGenzong from '/@/views/adweb/enquiry/modules/enquiryTrackRecord.vue';
-  import enquiryDetail from '/@/views/adweb/enquiry/modules/enquiryDetail.vue';
-  import XpRecycleBinModal from '/@/views/adweb/system/modules/XpRecycleBinModal.vue';
-  import blackList from '/@/views/adweb/enquiry/modules/blackList.vue';
   import moment from 'moment';
-  import dashChart from './chart/DashChartDemo.vue';
   import areaChart from './chart/areaChart.vue';
   import MapAdweb from '/@/components/chart/mapAdweb.vue';
   import selectSite from '/@/components/adweb/selectSite.vue';
@@ -153,13 +147,7 @@
   export default {
     name: 'EnquiryAnalysis',
     components: {
-      enquiryTrack,
-      enquiryGenzong,
-      XpRecycleBinModal,
-      enquiryDetail,
-      blackList,
       areaChart,
-      dashChart,
       MapAdweb,
       selectSite,
     },
@@ -543,9 +531,6 @@
     font-size: 18px;
     color: #000;
   }
-
-  @import '../../dashboard/less/home2-7.less';
-  @import '../../../assets/less/flags.css';
 </style>
 <style lang="less">
   .pop-wrap {

+ 379 - 387
src/views/dashboard/Analysis/homePage/adweb3Home.vue

@@ -17,13 +17,11 @@
           <a-spin :spinning="baseInfoLoading">
             <div class="wrap">
               <p class="mb"
-              >交付状态:<span class="big">{{ filter_Null_format(baseInfo.deliveryProgress) }}</span>
-              </p
-              >
+                >交付状态:<span class="big">{{ filter_Null_format(baseInfo.deliveryProgress) }}</span>
+              </p>
               <p
-              >运行状态:<span v-if="baseInfo.runStatus == 0">创建失败</span><span
-                v-if="baseInfo.runStatus == 1">正常运行</span
-              ><span v-if="baseInfo.runStatus == 2">运行异常</span>
+                >运行状态:<span v-if="baseInfo.runStatus == 0">创建失败</span><span v-if="baseInfo.runStatus == 1">正常运行</span
+                ><span v-if="baseInfo.runStatus == 2">运行异常</span>
                 <span v-if="baseInfo.runStatus == 3">站点停止</span>
               </p>
               <p>网站运行:{{ filter_Null_format(baseInfo.runDays) }}天</p>
@@ -179,21 +177,15 @@
 
             <a-row class="r5-1">
               <div class="fl">
-                <a-button :type="timeChooseIndex == 7 ? 'primary' : ''" @click="changeTime(7)">
-                  最近7天
-                </a-button>
-                <a-button :type="timeChooseIndex == 30 ? 'primary' : ''" @click="changeTime(30)">
-                  最近30天
-                </a-button>
-                <a-button :type="timeChooseIndex == 180 ? 'primary' : ''"
-                          @click="changeTime(180)">最近六个月
-                </a-button>
+                <a-button :type="timeChooseIndex == 7 ? 'primary' : ''" @click="changeTime(7)"> 最近7天 </a-button>
+                <a-button :type="timeChooseIndex == 30 ? 'primary' : ''" @click="changeTime(30)"> 最近30天 </a-button>
+                <a-button :type="timeChooseIndex == 180 ? 'primary' : ''" @click="changeTime(180)">最近六个月 </a-button>
               </div>
               <a-col :span="24">
                 <div class="fr" v-if="coreDataChart.x.length > 0">
-                  <span><i style="background: #544BEB;"></i>访客数(UV)</span>
-                  <span><i style="background: #F0B358;"></i>浏览量(PV)</span>
-                  <span><i style="background: #58CCA8;"></i>询盘数</span>
+                  <span><i style="background: #544beb"></i>访客数(UV)</span>
+                  <span><i style="background: #f0b358"></i>浏览量(PV)</span>
+                  <span><i style="background: #58cca8"></i>询盘数</span>
                 </div>
                 <a-spin :spinning="chartsLoading" style="float: left; width: 100%">
                   <area-chart v-if="coreDataChart.x.length > 0" :dataSource="coreDataChart" />
@@ -256,420 +248,420 @@
 </template>
 
 <script lang="ts" setup name="Adweb3Home">
-import areaChart from "../../../adweb/data/chart/areaChart.vue";
-import { getAction } from "/@/api/manage/manage";
-import { useUserStore } from "/@/store/modules/user";
-import selectSite from "/@/components/Adweb/selectSite.vue";
-import "/@/assets/less/home.less";
-import { useMessage } from "/@/hooks/web/useMessage";
-import { onMounted, reactive, ref } from "vue";
-
-const { createMessage } = useMessage();
-
-const columns = [
-  {
-    title: "指标",
-    dataIndex: "targetName"
-  },
-  {
-    title: "今日",
-    dataIndex: "todayCount"
-  },
-  {
-    title: "昨日",
-    dataIndex: "yesterdayCount",
-    scopedSlots: { customRender: "yesterdayCount" }
-  },
-  {
-    title: "本周",
-    dataIndex: "currentWeekCount",
-    scopedSlots: { customRender: "currentWeekCount" }
-  },
-  {
-    title: "上周",
-    dataIndex: "lastWeekCount"
-  },
-  {
-    title: "本月",
-    dataIndex: "currentMonthCount"
-  },
-  {
-    title: "上月",
-    dataIndex: "lastMonthCount"
-  },
-  {
-    title: "全部",
-    dataIndex: "totalCount"
-  }
-];
-
-const userRole = ref("");
-const timeChooseIndex = ref(7);
-//网站概况
-
-let selectSiteInfo = reactive<any>({});
-const siteCode = ref("");
-const siteStatus = ref(0);
-let baseInfo = reactive<any>({});
-const baseInfoLoading = ref(false);
-
-//物料完成情况
-// TODO
-
-//核心数据
-const coreInfoLoading = ref(false);
-const coreDetailLoading = ref(false);
-const chartsLoading = ref(false);
-const achievePercent = ref(0);
-const appointWordCount = ref(0);
-const currentAchieveCount = ref(0);
-const currentMonthEnquiryCount = ref(0);
-const currentWeekEnquiryCount = ref(0);
-const totalEnquiryCount = ref(0);
-let flowIndicator = ref({});
-let coreDataTable = ref([]);
-const coreDataChart = ref({
-  x: [],
-  uv: [],
-  pv: [],
-  enquiry: []
-});
-const averageVisit = ref(0);
-const averageVisitDuration = ref(0);
-const averageVisitPage = ref(0);
-const bounceRate = ref(0);
-const conversionRate = ref(0);
-
-const isShow = ref(false);
-
-onMounted(() => {
-  userRole.value = useUserStore().roleList;
-});
-
-//改变站点
-function changeUser(selectedParamSiteInfo: any) {
-  siteCode.value = selectedParamSiteInfo.code;
-
-  siteStatus.value = selectedParamSiteInfo.status;
-
-  getAllInfo();
-}
-
-function filter_Null_format(value) {
-  if (value === "" || value === null || value === undefined) {
-    return "--";
-  } else {
-    return value;
+  import areaChart from '/@/views/adweb/data/chart/areaChart.vue';
+  import { getAction } from '/@/api/manage/manage';
+  import { useUserStore } from '/@/store/modules/user';
+  import selectSite from '/@/components/Adweb/selectSite.vue';
+  import '/@/assets/less/home.less';
+  import { useMessage } from '/@/hooks/web/useMessage';
+  import { onMounted, reactive, ref } from 'vue';
+
+  const { createMessage } = useMessage();
+
+  const columns = [
+    {
+      title: '指标',
+      dataIndex: 'targetName',
+    },
+    {
+      title: '今日',
+      dataIndex: 'todayCount',
+    },
+    {
+      title: '昨日',
+      dataIndex: 'yesterdayCount',
+      scopedSlots: { customRender: 'yesterdayCount' },
+    },
+    {
+      title: '本周',
+      dataIndex: 'currentWeekCount',
+      scopedSlots: { customRender: 'currentWeekCount' },
+    },
+    {
+      title: '上周',
+      dataIndex: 'lastWeekCount',
+    },
+    {
+      title: '本月',
+      dataIndex: 'currentMonthCount',
+    },
+    {
+      title: '上月',
+      dataIndex: 'lastMonthCount',
+    },
+    {
+      title: '全部',
+      dataIndex: 'totalCount',
+    },
+  ];
+
+  const userRole = ref('');
+  const timeChooseIndex = ref(7);
+  //网站概况
+
+  let selectSiteInfo = reactive<any>({});
+  const siteCode = ref('');
+  const siteStatus = ref(0);
+  let baseInfo = reactive<any>({});
+  const baseInfoLoading = ref(false);
+
+  //物料完成情况
+  // TODO
+
+  //核心数据
+  const coreInfoLoading = ref(false);
+  const coreDetailLoading = ref(false);
+  const chartsLoading = ref(false);
+  const achievePercent = ref(0);
+  const appointWordCount = ref(0);
+  const currentAchieveCount = ref(0);
+  const currentMonthEnquiryCount = ref(0);
+  const currentWeekEnquiryCount = ref(0);
+  const totalEnquiryCount = ref(0);
+  let flowIndicator = ref({});
+  let coreDataTable = ref([]);
+  const coreDataChart = ref({
+    x: [],
+    uv: [],
+    pv: [],
+    enquiry: [],
+  });
+  const averageVisit = ref(0);
+  const averageVisitDuration = ref(0);
+  const averageVisitPage = ref(0);
+  const bounceRate = ref(0);
+  const conversionRate = ref(0);
+
+  const isShow = ref(false);
+
+  onMounted(() => {
+    userRole.value = useUserStore().roleList;
+  });
+
+  //改变站点
+  function changeUser(selectedParamSiteInfo: any) {
+    siteCode.value = selectedParamSiteInfo.code;
+
+    siteStatus.value = selectedParamSiteInfo.status;
+
+    getAllInfo();
   }
-}
-
-//保证先获取到站点列表,获取到siteCode及siteId后再进行此方法
-function getAllInfo() {
-  getBaseInfo();
-  getCoreData();
-  getCoreDataChart();
-}
-
-//获取基础信息
-function getBaseInfo() {
-  let d = {
-    siteCode: siteCode.value
-  };
-  baseInfoLoading.value = true;
-  getAction("/adweb/adwebSiteManage/siteBasicInfo", d).then(function(res) {
-    baseInfoLoading.value = false;
-    if (res.code == 200) {
-      baseInfo = res.result;
-      isShow.value = true;
+
+  function filter_Null_format(value) {
+    if (value === '' || value === null || value === undefined) {
+      return '--';
     } else {
-      createMessage.error("获取站点基础信息失败,请刷新重试");
+      return value;
     }
-  });
-}
-
-const yesterdayData = ref({});
-const todayData = ref({});
-const thisWeekData = ref({});
-const lastWeekData = ref({});
-const thisMonthData = ref({});
-const lastMonthData = ref({});
-const allTimeData = ref({});
-
-//获取核心数据
-function getCoreData() {
-  let d = {
-    siteCode: siteCode.value
-  };
-  coreInfoLoading.value = true;
-  getAction("/dmp-data/site-periodic/stats", d).then(function(res) {
-    coreInfoLoading.value = false;
+  }
+
+  //保证先获取到站点列表,获取到siteCode及siteId后再进行此方法
+  function getAllInfo() {
+    getBaseInfo();
+    getCoreData();
+    getCoreDataChart();
+  }
+
+  //获取基础信息
+  function getBaseInfo() {
+    let d = {
+      siteCode: siteCode.value,
+    };
+    baseInfoLoading.value = true;
+    getAction('/adweb/adwebSiteManage/siteBasicInfo', d).then(function (res) {
+      baseInfoLoading.value = false;
+      if (res.code == 200) {
+        baseInfo = res.result;
+        isShow.value = true;
+      } else {
+        createMessage.error('获取站点基础信息失败,请刷新重试');
+      }
+    });
+  }
+
+  const yesterdayData = ref({});
+  const todayData = ref({});
+  const thisWeekData = ref({});
+  const lastWeekData = ref({});
+  const thisMonthData = ref({});
+  const lastMonthData = ref({});
+  const allTimeData = ref({});
+
+  //获取核心数据
+  function getCoreData() {
+    let d = {
+      siteCode: siteCode.value,
+    };
+    coreInfoLoading.value = true;
+    getAction('/dmp-data/site-periodic/stats', d).then(function (res) {
+      coreInfoLoading.value = false;
+      if (res.code == 200) {
+        yesterdayData.value = res.result.yesterday;
+        todayData.value = res.result.today;
+        thisWeekData.value = res.result.thisWeek;
+        lastWeekData.value = res.result.lastWeek;
+        thisMonthData.value = res.result.thisMonth;
+        lastMonthData.value = res.result.lastMonth;
+        allTimeData.value = res.result.allTime;
+        // achievePercent.value = res.data.achievePercent;
+        // appointWordCount.value = res.data.appointWordCount;
+        // currentAchieveCount.value = res.data.currentAchieveCount;
+        // currentMonthEnquiryCount.value = res.data.currentMonthEnquiryCount;
+        // currentWeekEnquiryCount.value = res.data.currentWeekEnquiryCount;
+        // totalEnquiryCount.value = res.data.totalEnquiryCount;
+        // flowIndicator = res.data.flowIndicator;
+        currentWeekEnquiryCount.value = thisWeekData.value.enquires;
+        currentMonthEnquiryCount.value = thisMonthData.value.enquires;
+        totalEnquiryCount.value = allTimeData.value.enquires;
+        coreDataTable.value = [];
+        coreDataTable.value.push(
+          {
+            targetName: '访客数(UV)',
+            todayCount: todayData.value.totalUsers,
+            yesterdayCount: yesterdayData.value.totalUsers,
+            currentWeekCount: thisWeekData.value.totalUsers,
+            lastWeekCount: lastWeekData.value.totalUsers,
+            currentMonthCount: thisMonthData.value.totalUsers,
+            lastMonthCount: lastMonthData.value.totalUsers,
+            totalCount: allTimeData.value.totalUsers,
+          },
+          {
+            targetName: '访问量(PV)',
+            todayCount: todayData.value.pageViews,
+            yesterdayCount: yesterdayData.value.pageViews,
+            currentWeekCount: thisWeekData.value.pageViews,
+            lastWeekCount: lastWeekData.value.pageViews,
+            currentMonthCount: thisMonthData.value.pageViews,
+            lastMonthCount: lastMonthData.value.pageViews,
+            totalCount: allTimeData.value.pageViews,
+          },
+          {
+            targetName: '询盘数',
+            todayCount: todayData.value.enquires,
+            yesterdayCount: yesterdayData.value.enquires,
+            currentWeekCount: thisWeekData.value.enquires,
+            lastWeekCount: lastWeekData.value.enquires,
+            currentMonthCount: thisMonthData.value.enquires,
+            lastMonthCount: lastMonthData.value.enquires,
+            totalCount: allTimeData.value.enquires,
+          },
+          {
+            targetName: '询盘转化率',
+            todayCount: todayData.value.enquiryConversionRate,
+            yesterdayCount: yesterdayData.value.enquiryConversionRate,
+            currentWeekCount: thisWeekData.value.enquiryConversionRate,
+            lastWeekCount: lastWeekData.value.enquiryConversionRate,
+            currentMonthCount: thisMonthData.value.enquiryConversionRate,
+            lastMonthCount: lastMonthData.value.enquiryConversionRate,
+            totalCount: allTimeData.value.enquiryConversionRate,
+          }
+        );
+      } else {
+        createMessage.error('获取核心数据信息失败,请刷新重试');
+      }
+    });
+  }
+
+  //改变图表的时间维度
+  function changeTime(time) {
+    console.log(time);
+    timeChooseIndex.value = time;
+    getCoreDataChart();
+  }
+
+  //核心数据的面积图
+  const getCoreDataChart = async () => {
+    let d = {
+      siteCode: siteCode.value,
+      dateType: timeChooseIndex.value,
+    };
+    chartsLoading.value = true;
+    const res = await getAction('/dmp-data/site-overview/stats', d);
     if (res.code == 200) {
-      yesterdayData.value = res.result.yesterday;
-      todayData.value = res.result.today;
-      thisWeekData.value = res.result.thisWeek;
-      lastWeekData.value = res.result.lastWeek;
-      thisMonthData.value = res.result.thisMonth;
-      lastMonthData.value = res.result.lastMonth;
-      allTimeData.value = res.result.allTime;
-      // achievePercent.value = res.data.achievePercent;
-      // appointWordCount.value = res.data.appointWordCount;
-      // currentAchieveCount.value = res.data.currentAchieveCount;
-      // currentMonthEnquiryCount.value = res.data.currentMonthEnquiryCount;
-      // currentWeekEnquiryCount.value = res.data.currentWeekEnquiryCount;
-      // totalEnquiryCount.value = res.data.totalEnquiryCount;
-      // flowIndicator = res.data.flowIndicator;
-      currentWeekEnquiryCount.value = thisWeekData.value.enquires;
-      currentMonthEnquiryCount.value = thisMonthData.value.enquires;
-      totalEnquiryCount.value = allTimeData.value.enquires;
-      coreDataTable.value = [];
-      coreDataTable.value.push(
-        {
-          targetName: "访客数(UV)",
-          todayCount: todayData.value.totalUsers,
-          yesterdayCount: yesterdayData.value.totalUsers,
-          currentWeekCount: thisWeekData.value.totalUsers,
-          lastWeekCount: lastWeekData.value.totalUsers,
-          currentMonthCount: thisMonthData.value.totalUsers,
-          lastMonthCount: lastMonthData.value.totalUsers,
-          totalCount: allTimeData.value.totalUsers
-        },
-        {
-          targetName: "访问量(PV)",
-          todayCount: todayData.value.pageViews,
-          yesterdayCount: yesterdayData.value.pageViews,
-          currentWeekCount: thisWeekData.value.pageViews,
-          lastWeekCount: lastWeekData.value.pageViews,
-          currentMonthCount: thisMonthData.value.pageViews,
-          lastMonthCount: lastMonthData.value.pageViews,
-          totalCount: allTimeData.value.pageViews
-        },
-        {
-          targetName: "询盘数",
-          todayCount: todayData.value.enquires,
-          yesterdayCount: yesterdayData.value.enquires,
-          currentWeekCount: thisWeekData.value.enquires,
-          lastWeekCount: lastWeekData.value.enquires,
-          currentMonthCount: thisMonthData.value.enquires,
-          lastMonthCount: lastMonthData.value.enquires,
-          totalCount: allTimeData.value.enquires
-        },
-        {
-          targetName: "询盘转化率",
-          todayCount: todayData.value.enquiryConversionRate,
-          yesterdayCount: yesterdayData.value.enquiryConversionRate,
-          currentWeekCount: thisWeekData.value.enquiryConversionRate,
-          lastWeekCount: lastWeekData.value.enquiryConversionRate,
-          currentMonthCount: thisMonthData.value.enquiryConversionRate,
-          lastMonthCount: lastMonthData.value.enquiryConversionRate,
-          totalCount: allTimeData.value.enquiryConversionRate
+      let r = res.result == null ? {} : res.result;
+      averageVisit.value = r.dailyTotalUsers == null ? '0' : r.dailyTotalUsers;
+      averageVisitDuration.value = r.avgTimeOnPage == null ? '0' : r.avgTimeOnPage;
+      averageVisitPage.value = r.pageViewsPerSession == null ? '0' : r.pageViewsPerSession;
+      bounceRate.value = r.bounceRate == null ? '0' : r.bounceRate;
+      conversionRate.value = r.enquiryConversionRate == null ? '0' : r.enquiryConversionRate;
+      let x = [],
+        pv = [],
+        uv = [],
+        enquiry = [];
+      if (r.dailyStats != null && r.dailyStats.length > 0) {
+        for (let i in r.dailyStats) {
+          x.push(r.dailyStats[i].date);
+          pv.push(r.dailyStats[i].pageViews);
+          uv.push(r.dailyStats[i].totalUsers);
+          enquiry.push(r.dailyStats[i].enquires);
         }
-      );
+      }
+      coreDataChart.value.x = x;
+      coreDataChart.value.pv = pv;
+      coreDataChart.value.uv = uv;
+      coreDataChart.value.enquiry = enquiry;
     } else {
-      createMessage.error("获取核心数据信息失败,请刷新重试");
+      averageVisit.value = 0;
+      averageVisitDuration.value = 0;
+      averageVisitPage.value = 0;
+      bounceRate.value = 0;
+      coreDataChart.value.x = [];
+      coreDataChart.value.pv = [];
+      coreDataChart.value.uv = [];
+      coreDataChart.value.enquiry = [];
+      createMessage.error('获取核心数据图表信息失败,请刷新重试');
     }
-  });
-}
-
-//改变图表的时间维度
-function changeTime(time) {
-  console.log(time);
-  timeChooseIndex.value = time;
-  getCoreDataChart();
-}
-
-//核心数据的面积图
-const getCoreDataChart = async () => {
-  let d = {
-    siteCode: siteCode.value,
-    dateType: timeChooseIndex.value
+    chartsLoading.value = false;
   };
-  chartsLoading.value = true;
-  const res = await getAction("/dmp-data/site-overview/stats", d);
-  if (res.code == 200) {
-    let r = res.result == null ? {} : res.result;
-    averageVisit.value = r.dailyTotalUsers == null ? "0" : r.dailyTotalUsers;
-    averageVisitDuration.value = r.avgTimeOnPage == null ? "0" : r.avgTimeOnPage;
-    averageVisitPage.value = r.pageViewsPerSession == null ? "0" : r.pageViewsPerSession;
-    bounceRate.value = r.bounceRate == null ? "0" : r.bounceRate;
-    conversionRate.value = r.enquiryConversionRate == null ? "0" : r.enquiryConversionRate;
-    let x = [],
-      pv = [],
-      uv = [],
-      enquiry = [];
-    if (r.dailyStats != null && r.dailyStats.length > 0) {
-      for (let i in r.dailyStats) {
-        x.push(r.dailyStats[i].date);
-        pv.push(r.dailyStats[i].pageViews);
-        uv.push(r.dailyStats[i].totalUsers);
-        enquiry.push(r.dailyStats[i].enquires);
-      }
-    }
-    coreDataChart.value.x = x;
-    coreDataChart.value.pv = pv;
-    coreDataChart.value.uv = uv;
-    coreDataChart.value.enquiry = enquiry;
-  } else {
-    averageVisit.value = 0;
-    averageVisitDuration.value = 0;
-    averageVisitPage.value = 0;
-    bounceRate.value = 0;
-    coreDataChart.value.x = [];
-    coreDataChart.value.pv = [];
-    coreDataChart.value.uv = [];
-    coreDataChart.value.enquiry = [];
-    createMessage.error("获取核心数据图表信息失败,请刷新重试");
-  }
-  chartsLoading.value = false;
-};
 </script>
 
 <style lang="less">
-.home {
-  .ant-select {
-    color: #fff;
+  .home {
+    .ant-select {
+      color: #fff;
 
-    .ant-select-selection {
-      background-color: transparent;
-    }
+      .ant-select-selection {
+        background-color: transparent;
+      }
 
-    .ant-select-arrow {
-      color: #fff;
+      .ant-select-arrow {
+        color: #fff;
+      }
     }
   }
-}
 </style>
 
 <style scoped lang="less">
-p,
-span {
-  color: #000;
-  margin: 0;
-}
-
-.theme-color {
-  color: @primary-color;
-}
-
-.title {
-  font-size: 18px;
-  color: #000;
-}
+  p,
+  span {
+    color: #000;
+    margin: 0;
+  }
+
+  .theme-color {
+    color: @primary-color;
+  }
+
+  .title {
+    font-size: 18px;
+    color: #000;
+  }
 </style>
 
 <style lang="less">
-.pop-wrap {
-  .ant-popover-inner-content {
-    padding: 0;
-  }
+  .pop-wrap {
+    .ant-popover-inner-content {
+      padding: 0;
+    }
 
-  .wrap {
-    width: 400px;
-    padding: 20px 20px;
-    background: url('../../../../assets/home/pop-bg.svg') no-repeat;
-    background-position: bottom right;
+    .wrap {
+      width: 400px;
+      padding: 20px 20px;
+      background: url('../../../../assets/home/pop-bg.svg') no-repeat;
+      background-position: bottom right;
 
-    p {
-      line-height: 1.8;
+      p {
+        line-height: 1.8;
 
-      i {
-        color: @primary-color;
-        margin-right: 10px;
+        i {
+          color: @primary-color;
+          margin-right: 10px;
+        }
       }
-    }
 
-    .name {
-      font-size: 18px;
-      margin-bottom: 20px;
-    }
+      .name {
+        font-size: 18px;
+        margin-bottom: 20px;
+      }
 
-    .job {
-      font-size: 15px;
-      color: #9f9f9f;
-    }
+      .job {
+        font-size: 15px;
+        color: #9f9f9f;
+      }
 
-    .ant-col-8 {
-      text-align: right;
+      .ant-col-8 {
+        text-align: right;
+      }
     }
   }
-}
 
-.faban {
-  .ant-modal {
-    .ant-modal-content {
-      background-color: transparent;
-      box-shadow: none;
+  .faban {
+    .ant-modal {
+      .ant-modal-content {
+        background-color: transparent;
+        box-shadow: none;
 
-      .ant-modal-close {
-        top: 70px;
-        right: -10px;
+        .ant-modal-close {
+          top: 70px;
+          right: -10px;
 
-        .ant-modal-close-x {
-          width: auto;
-          height: auto;
-        }
-      }
-
-      .self-close {
-        i {
-          color: #fff;
-          border: 1px solid #fff;
-          width: 25px;
-          height: 25px;
-          display: block;
-          line-height: 25px;
+          .ant-modal-close-x {
+            width: auto;
+            height: auto;
+          }
         }
-      }
 
-      .ant-modal-body {
-        .top-bg {
-          background: url('../../../../assets/home/faban/topbg.png') no-repeat;
-          min-height: 242px;
-          background-size: 100% 100%;
-          display: flex;
-          justify-content: center;
-          align-items: flex-end;
-          font-size: 38px;
-          padding-bottom: 60px;
-
-          p {
+        .self-close {
+          i {
             color: #fff;
+            border: 1px solid #fff;
+            width: 25px;
+            height: 25px;
+            display: block;
+            line-height: 25px;
           }
         }
 
-        .info-wrap {
-          background: #fff;
-          padding: 0 40px;
-          overflow: hidden;
-          border-bottom-left-radius: 15px;
-          border-bottom-right-radius: 15px;
-          margin-top: -1px;
-
-          p {
-            position: relative;
-            padding-left: 30px;
-            margin-bottom: 5px;
-            letter-spacing: 1px;
-
-            &:before {
-              content: '';
-              position: absolute;
-              left: 0;
-              width: 15px;
-              height: 15px;
-              background: url('../../../../assets/home/faban/dot.svg');
-              background-repeat: no-repeat;
-              top: 3px;
+        .ant-modal-body {
+          .top-bg {
+            background: url('../../../../assets/home/faban/topbg.png') no-repeat;
+            min-height: 242px;
+            background-size: 100% 100%;
+            display: flex;
+            justify-content: center;
+            align-items: flex-end;
+            font-size: 38px;
+            padding-bottom: 60px;
+
+            p {
+              color: #fff;
             }
           }
 
-          img {
-            width: 70px;
-            float: right;
-            padding: 40px 0;
+          .info-wrap {
+            background: #fff;
+            padding: 0 40px;
+            overflow: hidden;
+            border-bottom-left-radius: 15px;
+            border-bottom-right-radius: 15px;
+            margin-top: -1px;
+
+            p {
+              position: relative;
+              padding-left: 30px;
+              margin-bottom: 5px;
+              letter-spacing: 1px;
+
+              &:before {
+                content: '';
+                position: absolute;
+                left: 0;
+                width: 15px;
+                height: 15px;
+                background: url('../../../../assets/home/faban/dot.svg');
+                background-repeat: no-repeat;
+                top: 3px;
+              }
+            }
+
+            img {
+              width: 70px;
+              float: right;
+              padding: 40px 0;
+            }
           }
         }
       }
     }
   }
-}
 </style>