检测计划统计功能
This commit is contained in:
@@ -99,6 +99,16 @@
|
||||
被检设备
|
||||
</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="PieChart"
|
||||
v-if="scope.row.testState == '2' && modeStore.currentMode != '比对式'"
|
||||
@click="openStatistics(scope.row)"
|
||||
>
|
||||
统计
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
v-auth.plan="'analysis'"
|
||||
@@ -136,6 +146,7 @@
|
||||
|
||||
<ImportExcel ref="planImportExcel" />
|
||||
<ImportZip ref="planImportZip" @result="importResult" />
|
||||
<PlanStatisticsPopup ref="planStatisticsPopupRef" />
|
||||
|
||||
<ChildrenPlan
|
||||
:refresh-table="refreshTable"
|
||||
@@ -163,6 +174,7 @@ import { computed, onMounted, reactive, ref, watch } from 'vue'
|
||||
import type { Plan } from '@/api/plan/interface'
|
||||
import PlanPopup from '@/views/plan/planList/components/planPopup.vue' // 导入子组件
|
||||
import ChildrenPlan from '@/views/plan/planList/components/childrenPlan.vue'
|
||||
import PlanStatisticsPopup from '@/views/plan/planList/components/planStatisticsPopup.vue'
|
||||
import { useViewSize } from '@/hooks/useViewSize'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
@@ -187,6 +199,7 @@ const proTable = ref<ProTableInstance>()
|
||||
const errorStandardPopup = ref()
|
||||
const testSourcePopup = ref()
|
||||
const planPopup = ref()
|
||||
const planStatisticsPopupRef = ref<InstanceType<typeof PlanStatisticsPopup> | null>(null)
|
||||
|
||||
const modeStore = useModeStore()
|
||||
const tableData = ref<any[]>([])
|
||||
@@ -530,7 +543,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
|
||||
isShow: modeStore.currentMode == '比对式'
|
||||
},
|
||||
|
||||
{ prop: 'operation', label: '操作', fixed: 'right', minWidth: 250 }
|
||||
{ prop: 'operation', label: '操作', fixed: 'right', minWidth: 320 }
|
||||
])
|
||||
|
||||
function isVisible(row: Plan.ReqPlan) {
|
||||
@@ -654,6 +667,10 @@ const statisticalAnalysis = async (row: Partial<Plan.ReqPlan> = {}) => {
|
||||
useDownload(staticsAnalyse, '分析结果', [row.id], false, '.xlsx')
|
||||
}
|
||||
|
||||
const openStatistics = (row: Partial<Plan.ReqPlan> = {}) => {
|
||||
planStatisticsPopupRef.value?.open(row)
|
||||
}
|
||||
|
||||
const importSubClick = () => {
|
||||
const params = {
|
||||
title: '导入检测计划',
|
||||
@@ -671,4 +688,4 @@ const importResult = async (success: boolean | undefined) => {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user