Lijy 3 kuukautta sitten
vanhempi
commit
83f595277e

+ 10 - 1
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/analysis/index.vue

@@ -23,6 +23,7 @@ import {
 const dataAnalysisFlag = userInfo?.moduleList?.filter((item: any) => item.path == '/analysis') || []
 const isExistBusiness = sessionStorage.getItem("isExistBusiness");
 const businessLabel = isExistBusiness === "1" ? "商机" : "项目"; 
+const isSimple = sessionStorage.getItem("isSimple");
 const permissionOptions = dataAnalysisFlag.length > 0 ? [
   {
     label: '仅本人',
@@ -103,7 +104,12 @@ const requestData = reactive<{
 const chartOptions: EChartsOption = reactive({
   grid: { top: 0, bottom: 20, left: 60 },
   yAxis: {
-    type: 'category'
+    type: 'category',
+    axisLabel: {
+      formatter: (value: string) => {
+        return value.replace(/(.{4})/g, "$1\n");
+      },
+    },
   },
   xAxis: {
     type: 'value'
@@ -252,6 +258,7 @@ watchEffect(() => {
               :selectVal="bulletinPrompt"
               :number="requestData?.bulletin?.contacts.contactsCount"
               :compare="requestData?.bulletin?.contacts.contactsPromote"
+              v-if="isSimple != '1'"
             />
             <TrendCard
               :title="`新增${businessLabel}`"
@@ -266,6 +273,7 @@ watchEffect(() => {
               :selectVal="bulletinPrompt"
               :number="requestData?.bulletin?.salesOrder.salesOrderCount"
               :compare="requestData?.bulletin?.salesOrder.salesOrderPromote"
+              v-if="isSimple != '1'"
             />
             <TrendCard
               title="销售订单金额"
@@ -273,6 +281,7 @@ watchEffect(() => {
               :selectVal="bulletinPrompt"
               :number="requestData?.bulletin?.salesOrdersPrice.salesOrdersPrice"
               :compare="requestData?.bulletin?.salesOrdersPrice.salesOrderPricePromote"
+              v-if="isSimple != '1'"
             />
             <TrendCard
               :title="`${businessLabel}金额`"