Browse Source

需求215 财务系统,业务收入金额统计表,选中未续约时,不展示导出数据按钮。

hbchen 6 months ago
parent
commit
0499da1c1e
2 changed files with 5 additions and 1 deletions
  1. 2 1
      src/views/financialStatistics/businessIncome.vue
  2. 3 0
      vite.config.js

+ 2 - 1
src/views/financialStatistics/businessIncome.vue

@@ -222,7 +222,8 @@
           start-placeholder="开始日期" end-placeholder="结束日期" style="max-width: 238px;margin:0 30px 8px 0;"
           value-format="YYYY-MM"></el-date-picker>
         </div>
-        <el-button @click="exportData" type="primary" size="large" style="width: 118px;" :loading="loading.export">导出数据</el-button>
+        <el-button @click="exportData" type="primary" size="large" style="width: 118px;" :loading="loading.export"
+        v-if="searchParams.company_type!=3">导出数据</el-button>
       </div>
       <div class="business-income-chart" v-loading="loading.list" element-loading-text="图表加载中……">
         <chart :options="chartOptions" style="width: 75%;height: 80%;"/>

+ 3 - 0
vite.config.js

@@ -10,6 +10,9 @@ import {createSvgIconsPlugin} from 'vite-plugin-svg-icons'
 const pathSrc = path.resolve(__dirname, 'src')
 
 export default defineConfig({
+  define: {
+    __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "true",
+  },
   plugins: [
     vue(),
     // 自动导入