This commit is contained in:
sjl
2025-02-24 08:54:22 +08:00
parent 034b31ba47
commit 942c28d3bd

View File

@@ -24,7 +24,7 @@
<el-button type='primary' v-auth.plan="'edit'" link :icon='EditPen' @click="openDialog('edit',scope.row)">编辑</el-button>
<el-button type='primary' v-auth.plan="'delete'" link :icon='Delete' @click='handleDelete(scope.row)'>删除</el-button>
<!-- <el-button type='primary' link :icon='List' @click='showDeviceOpen(scope.row)'>设备绑定</el-button> -->
<el-button type='primary' v-auth.plan="'analysis'" link :icon='List' v-if="scope.row.testState != '2'" @click='statisticalAnalysis(scope.row)'>统计分析</el-button>
<el-button type='primary' v-auth.plan="'analysis'" link :icon='List' v-if="scope.row.testState == '2'" @click='statisticalAnalysis(scope.row)'>统计分析</el-button>
</template>
</ProTable>
</div>
@@ -409,6 +409,7 @@ const statisticalAnalysisMore = async (ids: string[], rows: Plan.ReqPlan[]) => {
type: 'error',
message: '存在检测状态不为检测完成的计划,无法进行统计分析。',
});
proTable.value?.clearSelection()
return;
}
useDownload(staticsAnalyse,'分析结果', ids, false,'.xlsx')