Ver Fonte

去除官方无效导出报告的功能

zhuliu há 1 ano atrás
pai
commit
ec94bb7cf3

+ 1 - 1
src/views/report/components/view/card.vue

@@ -17,7 +17,7 @@
                 </span>
                 <el-dropdown-menu slot="dropdown" class="text-align_center">
                   <el-dropdown-item command="0">分享</el-dropdown-item>
-                  <el-dropdown-item command="1" v-if="[2,3].includes(item.status)">导出报告</el-dropdown-item>
+                  <el-dropdown-item command="1" v-if="[2,3].includes(item.status) && item.reportType != 7">导出报告</el-dropdown-item>
                   <el-dropdown-item command="2" v-if="[2,3].includes(item.status)">报告文档</el-dropdown-item>
                   <el-dropdown-item command="16" v-if="[1,2].includes(item.reportType)">检索记录</el-dropdown-item>
                   <el-dropdown-item command="3" v-if="[2].includes(item.status)&&[0,1,2,3].includes(item.reportType)">自定义字段</el-dropdown-item>

+ 1 - 1
src/views/report/components/view/table.vue

@@ -44,7 +44,7 @@
                 <span>编辑</span>
                 <el-dropdown-menu slot="dropdown" class="text-align_center">
                   <el-dropdown-item command="0">分享</el-dropdown-item>
-                  <el-dropdown-item command="1" v-if="[2,3].includes(scope.row.status)">导出报告</el-dropdown-item>
+                  <el-dropdown-item command="1" v-if="[2,3].includes(scope.row.status) && scope.row.reportType != 7">导出报告</el-dropdown-item>
                   <el-dropdown-item command="2" v-if="[2,3].includes(scope.row.status)">报告文档</el-dropdown-item>
                   <el-dropdown-item command="16" v-if="[1,2].includes(scope.row.reportType)">检索记录</el-dropdown-item>
                   <el-dropdown-item command="3" v-if="[2].includes(scope.row.status)&&[0,1,2,3].includes(scope.row.reportType)">自定义字段</el-dropdown-item>