Merge branch 'master' of http://192.168.1.22:3000/frontend/pqs-9100_client
This commit is contained in:
51
frontend/src/api/result/interface/index.ts
Normal file
51
frontend/src/api/result/interface/index.ts
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
|
||||||
|
export interface MonitorResult {
|
||||||
|
/**
|
||||||
|
* 监测点id
|
||||||
|
*/
|
||||||
|
monitorId: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监测点序号
|
||||||
|
*/
|
||||||
|
monitorNum: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 总检测次数
|
||||||
|
*/
|
||||||
|
totalNum: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合格检测次数
|
||||||
|
*/
|
||||||
|
qualifiedNum: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 不合格检测次数
|
||||||
|
*/
|
||||||
|
unQualifiedNum: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 误差体系名称
|
||||||
|
*/
|
||||||
|
errorSysName: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检测结果
|
||||||
|
*/
|
||||||
|
checkResult: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 哪次
|
||||||
|
*/
|
||||||
|
whichTime: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结论来源
|
||||||
|
*/
|
||||||
|
resultOrigin: string;
|
||||||
|
/**
|
||||||
|
* 来源类型
|
||||||
|
*/
|
||||||
|
resultType: string;
|
||||||
|
}
|
||||||
7
frontend/src/api/result/result.ts
Normal file
7
frontend/src/api/result/result.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import http from '@/api'
|
||||||
|
|
||||||
|
export const getMonitorResult = (devId: string) => http.post(`/result/getMonitorResult?devId=${devId}`)
|
||||||
|
export const getMonitorDataSourceResult = (monitorId: string) =>
|
||||||
|
http.get(`/result/getMonitorDataSourceResult?monitorId=${monitorId}`)
|
||||||
|
|
||||||
|
export const updateMonitorResult = (data: any) => http.post('/result/updateMonitorResult', data)
|
||||||
184
frontend/src/views/home/components/reportResultPopup.vue
Normal file
184
frontend/src/views/home/components/reportResultPopup.vue
Normal file
@@ -0,0 +1,184 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
v-model="dialogVisible"
|
||||||
|
title="报告生成"
|
||||||
|
destroy-on-close
|
||||||
|
width="900"
|
||||||
|
draggable
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
>
|
||||||
|
<el-tabs v-model="activeName" @tab-click="handleTabClick">
|
||||||
|
<el-tab-pane
|
||||||
|
v-for="(result, index) in resultData"
|
||||||
|
:key="result.monitorId"
|
||||||
|
:label="`测量回路${result.monitorNum}`"
|
||||||
|
:name="index"
|
||||||
|
>
|
||||||
|
<el-descriptions style="padding: 10px" :column="4" border>
|
||||||
|
<el-descriptions-item label="总测试次数:" label-align="right">
|
||||||
|
<el-text type="primary" tag="b">{{ result.totalNum }}</el-text>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="合格次数:" label-align="right">
|
||||||
|
<el-text type="success" tag="b">{{ result.qualifiedNum }}</el-text>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="不合格次数:" label-align="right">
|
||||||
|
<el-text type="danger" tag="b">{{ result.unQualifiedNum }}</el-text>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="测试标准:" label-align="right">
|
||||||
|
<el-text type="info">{{ result.errorSysName }}</el-text>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="检测结论:" label-align="right">
|
||||||
|
<el-tag disable-transitions v-if="result.checkResult === 1" type="success">及格</el-tag>
|
||||||
|
<el-tag disable-transitions v-else-if="result.checkResult === 2" type="danger">不及格</el-tag>
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="结论来源:" label-align="right">
|
||||||
|
<div style="display: flex; align-items: center; justify-content: space-between">
|
||||||
|
<el-text>第{{ result.whichTime }}次检测的{{ result.resultOrigin }}</el-text>
|
||||||
|
<el-button type="primary" size="small" @click="handleChooseClick">重新选择</el-button>
|
||||||
|
</div>
|
||||||
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
<template #footer>
|
||||||
|
<el-button type="primary">确认生成</el-button>
|
||||||
|
</template>
|
||||||
|
<!-- 选择检测数据源弹框-->
|
||||||
|
<el-dialog
|
||||||
|
v-model="dialogSourceVisible"
|
||||||
|
append-to-body
|
||||||
|
title="选择检测数据源"
|
||||||
|
destroy-on-close
|
||||||
|
width="400"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
>
|
||||||
|
<el-form ref="formRef" :rules="rules" :model="submitSourceData" label-width="120px" label-position="top">
|
||||||
|
<el-form-item label="选择次数:" prop="whichTime">
|
||||||
|
<el-select v-model="submitSourceData.whichTime" placeholder="请选择次数" @change="handleTimeChange">
|
||||||
|
<el-option
|
||||||
|
v-for="time in whichTimeData"
|
||||||
|
:key="time"
|
||||||
|
:label="`第${time}次`"
|
||||||
|
:value="time"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="数据源和检测结论:" prop="resultType">
|
||||||
|
<el-select
|
||||||
|
v-model="submitSourceData.resultType"
|
||||||
|
placeholder="请选择数据源和检测结论"
|
||||||
|
clearable
|
||||||
|
@change="handleSourceChange"
|
||||||
|
>
|
||||||
|
<template #label="{ label }">
|
||||||
|
<div style="display: flex; align-items: center; justify-content: space-between">
|
||||||
|
<el-text>{{ label }}</el-text>
|
||||||
|
<el-tag disable-transitions v-if="submitSourceData.checkResult === 1" type="success">
|
||||||
|
及格
|
||||||
|
</el-tag>
|
||||||
|
<el-tag disable-transitions v-if="submitSourceData.checkResult === 2" type="danger">
|
||||||
|
不及格
|
||||||
|
</el-tag>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<el-option
|
||||||
|
v-for="item in sourceData"
|
||||||
|
:key="item.dataSourceCode"
|
||||||
|
:label="item.dataSourceName"
|
||||||
|
:value="item.dataSourceCode"
|
||||||
|
>
|
||||||
|
<div style="display: flex; align-items: center; justify-content: space-between">
|
||||||
|
<el-text>{{ item.dataSourceName }}</el-text>
|
||||||
|
<el-tag v-if="item.checkResult === 1" type="success">及格</el-tag>
|
||||||
|
<el-tag v-if="item.checkResult === 2" type="danger">不及格</el-tag>
|
||||||
|
</div>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<template #footer>
|
||||||
|
<el-button @click="dialogSourceVisible = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="handleSureChoose">确认</el-button>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
<script setup lang="ts" name="reportPopup">
|
||||||
|
import { getMonitorDataSourceResult, getMonitorResult, updateMonitorResult } from '@/api/result/result'
|
||||||
|
import { type MonitorResult } from '@/api/result/interface'
|
||||||
|
|
||||||
|
const dialogVisible = ref(false)
|
||||||
|
const dialogSourceVisible = ref(false)
|
||||||
|
const devData = ref<any>()
|
||||||
|
const activeName = ref<number>(0)
|
||||||
|
const resultData = ref<MonitorResult[]>([])
|
||||||
|
const resultSourceData = ref<any>({})
|
||||||
|
const whichTimeData = ref<any>([])
|
||||||
|
const sourceData = ref<any>([])
|
||||||
|
const formRef = ref()
|
||||||
|
const submitSourceData = reactive({
|
||||||
|
monitorId: '',
|
||||||
|
whichTime: '',
|
||||||
|
resultType: '',
|
||||||
|
checkResult: -1
|
||||||
|
})
|
||||||
|
|
||||||
|
const rules = {
|
||||||
|
whichTime: [{ required: true, message: '请选择次数', trigger: 'change' }],
|
||||||
|
resultType: [{ required: true, message: '请选择数据源和检测结论', trigger: 'change' }]
|
||||||
|
}
|
||||||
|
|
||||||
|
const open = (data: any) => {
|
||||||
|
devData.value = data
|
||||||
|
getResultData()
|
||||||
|
}
|
||||||
|
const getResultData = async () => {
|
||||||
|
const res = await getMonitorResult(devData.value.id)
|
||||||
|
if (res.data && Array.isArray(res.data)) {
|
||||||
|
resultData.value = res.data
|
||||||
|
}
|
||||||
|
dialogVisible.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
const handleTabClick = (tab: any) => {
|
||||||
|
activeName.value = tab.name
|
||||||
|
}
|
||||||
|
const handleChooseClick = async () => {
|
||||||
|
const currentResult = resultData.value[activeName.value]
|
||||||
|
if (currentResult) {
|
||||||
|
submitSourceData.monitorId = currentResult.monitorId
|
||||||
|
submitSourceData.whichTime = currentResult.whichTime
|
||||||
|
submitSourceData.resultType = currentResult.resultType
|
||||||
|
submitSourceData.checkResult = currentResult.checkResult
|
||||||
|
const res = await getMonitorDataSourceResult(currentResult.monitorId)
|
||||||
|
if (res.data) {
|
||||||
|
resultSourceData.value = res.data
|
||||||
|
// 选择第几次
|
||||||
|
whichTimeData.value = Object.keys(resultSourceData.value)
|
||||||
|
sourceData.value = resultSourceData.value[currentResult.whichTime]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dialogSourceVisible.value = true
|
||||||
|
}
|
||||||
|
const handleTimeChange = (value: any) => {
|
||||||
|
sourceData.value = resultSourceData.value[value]
|
||||||
|
submitSourceData.resultType = ''
|
||||||
|
submitSourceData.checkResult = -1
|
||||||
|
}
|
||||||
|
const handleSourceChange = (value: any) => {
|
||||||
|
submitSourceData.checkResult = resultSourceData.value[submitSourceData.whichTime].find(
|
||||||
|
(item: any) => item.dataSourceCode === value
|
||||||
|
).checkResult
|
||||||
|
}
|
||||||
|
const handleSureChoose = () => {
|
||||||
|
formRef.value.validate().then(async () => {
|
||||||
|
await updateMonitorResult(submitSourceData)
|
||||||
|
await getResultData()
|
||||||
|
dialogSourceVisible.value = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
defineExpose({
|
||||||
|
open
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<style scoped lang="scss"></style>
|
||||||
@@ -77,13 +77,20 @@
|
|||||||
<el-button type="primary" icon="Search" @click="handleSearch">查询</el-button>
|
<el-button type="primary" icon="Search" @click="handleSearch">查询</el-button>
|
||||||
<el-button icon="Delete" @click="handleRefresh">重置</el-button>
|
<el-button icon="Delete" @click="handleRefresh">重置</el-button>
|
||||||
<!-- 比对模式下的通道配对功能 -->
|
<!-- 比对模式下的通道配对功能 -->
|
||||||
<el-button type="primary" icon="Clock" @click="handleTest2" v-if="modeStore.currentMode == '比对式'">手动检测</el-button>
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="Clock"
|
||||||
|
@click="handleTest2"
|
||||||
|
v-if="modeStore.currentMode == '比对式'"
|
||||||
|
>
|
||||||
|
手动检测
|
||||||
|
</el-button>
|
||||||
<!-- 设备检测模式下的操作按钮 -->
|
<!-- 设备检测模式下的操作按钮 -->
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="Clock"
|
icon="Clock"
|
||||||
@click="handleTest('手动检测')"
|
@click="handleTest('手动检测')"
|
||||||
v-if="form.activeTabs === 0 &&modeStore.currentMode == '模拟式'"
|
v-if="form.activeTabs === 0 && modeStore.currentMode == '模拟式'"
|
||||||
>
|
>
|
||||||
手动检测
|
手动检测
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -175,7 +182,7 @@
|
|||||||
<!-- 检测过程显示弹窗 -->
|
<!-- 检测过程显示弹窗 -->
|
||||||
<TestPopup ref="testPopup" @quitClicked="handleQuitClicked"></TestPopup>
|
<TestPopup ref="testPopup" @quitClicked="handleQuitClicked"></TestPopup>
|
||||||
<!-- 检测数据查询弹窗 -->
|
<!-- 检测数据查询弹窗 -->
|
||||||
<dataCheckPopup ref="dataCheckPopupRef" :append-to-body="true"/>
|
<dataCheckPopup ref="dataCheckPopupRef" :append-to-body="true" />
|
||||||
<!-- 手动检测检测项选择弹窗 -->
|
<!-- 手动检测检测项选择弹窗 -->
|
||||||
<SelectTestItemPopup ref="selectTestItemPopupRef" @openTestDialog="openTestDialog"></SelectTestItemPopup>
|
<SelectTestItemPopup ref="selectTestItemPopupRef" @openTestDialog="openTestDialog"></SelectTestItemPopup>
|
||||||
<!-- 省平台模式下的温度湿度填写弹窗 -->
|
<!-- 省平台模式下的温度湿度填写弹窗 -->
|
||||||
@@ -187,12 +194,14 @@
|
|||||||
ref="dataCheckSingleChannelSingleTestPopupRef"
|
ref="dataCheckSingleChannelSingleTestPopupRef"
|
||||||
:append-to-body="true"
|
:append-to-body="true"
|
||||||
/>
|
/>
|
||||||
|
<!-- 报告生成弹框 -->
|
||||||
|
<ReportResultPopup ref="reportPopup"></ReportResultPopup>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="tsx" name="useProTable">
|
<script setup lang="tsx" name="useProTable">
|
||||||
import { onBeforeMount, onMounted, type PropType, reactive, ref, watch } from 'vue'
|
import { onBeforeMount, onMounted, type PropType, reactive, ref, watch } from 'vue'
|
||||||
import { ElMessage, ElMessageBox, type Action } from 'element-plus'
|
import { type Action, ElMessage, ElMessageBox } from 'element-plus'
|
||||||
import TestPopup from './testPopup.vue'
|
import TestPopup from './testPopup.vue'
|
||||||
import dataCheckPopup from './dataCheckSingleChannelSingleTestPopup.vue'
|
import dataCheckPopup from './dataCheckSingleChannelSingleTestPopup.vue'
|
||||||
import CompareDataCheckSingleChannelSingleTestPopup from '@/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue'
|
import CompareDataCheckSingleChannelSingleTestPopup from '@/views/home/components/compareDataCheckSingleChannelSingleTestPopup.vue'
|
||||||
@@ -201,13 +210,12 @@ import SelectTestItemPopup from '@/views/home/components/selectTestItemPopup.vue
|
|||||||
import WriteTHPopup from '@/views/home/components/writeTHPopup.vue'
|
import WriteTHPopup from '@/views/home/components/writeTHPopup.vue'
|
||||||
import DeviceConnectionPopup from '@/views/home/components/deviceConnectionPopup.vue'
|
import DeviceConnectionPopup from '@/views/home/components/deviceConnectionPopup.vue'
|
||||||
import { type Device } from '@/api/device/interface/device'
|
import { type Device } from '@/api/device/interface/device'
|
||||||
import { type ProTableInstance, type ColumnProps } from '@/components/ProTable/interface'
|
import { type ColumnProps, type ProTableInstance } from '@/components/ProTable/interface'
|
||||||
import { type Plan } from '@/api/plan/interface'
|
import { type Plan } from '@/api/plan/interface'
|
||||||
import { type StandardDevice } from '@/api/device/interface/standardDevice'
|
import { type StandardDevice } from '@/api/device/interface/standardDevice'
|
||||||
import { generateDevReport, getBoundPqDevList } from '@/api/plan/plan'
|
import { downloadDevData, generateDevReport, getBoundPqDevList } from '@/api/plan/plan'
|
||||||
import { downloadDevData } from '@/api/plan/plan'
|
|
||||||
import { getPqDev } from '@/api/device/device'
|
import { getPqDev } from '@/api/device/device'
|
||||||
import { useModeStore, useAppSceneStore } from '@/stores/modules/mode' // 引入模式 store
|
import { useAppSceneStore, useModeStore } from '@/stores/modules/mode' // 引入模式 store
|
||||||
import { useCheckStore } from '@/stores/modules/check'
|
import { useCheckStore } from '@/stores/modules/check'
|
||||||
import { CheckData } from '@/api/check/interface'
|
import { CheckData } from '@/api/check/interface'
|
||||||
import { useAuthStore } from '@/stores/modules/auth'
|
import { useAuthStore } from '@/stores/modules/auth'
|
||||||
@@ -215,8 +223,7 @@ import { useDownload } from '@/hooks/useDownload'
|
|||||||
import { documentedPqDev } from '@/api/device/report'
|
import { documentedPqDev } from '@/api/device/report'
|
||||||
import { ResultEnum } from '@/enums/httpEnum'
|
import { ResultEnum } from '@/enums/httpEnum'
|
||||||
import { getPqMonList } from '@/api/device/monitor/index.ts'
|
import { getPqMonList } from '@/api/device/monitor/index.ts'
|
||||||
|
import ReportResultPopup from '@/views/home/components/reportResultPopup.vue'
|
||||||
|
|
||||||
|
|
||||||
const checkStore = useCheckStore()
|
const checkStore = useCheckStore()
|
||||||
let devNum = 0 //当前选取的被检设备数量
|
let devNum = 0 //当前选取的被检设备数量
|
||||||
@@ -254,6 +261,7 @@ const checkStateShow = ref(true)
|
|||||||
const factorCheckShow = ref(true)
|
const factorCheckShow = ref(true)
|
||||||
const selectionShow = ref(true)
|
const selectionShow = ref(true)
|
||||||
const testPopup = ref()
|
const testPopup = ref()
|
||||||
|
const reportPopup = ref()
|
||||||
const weiJianTab = ref(0) // 当前Tab索引,用于控制选项显示逻辑
|
const weiJianTab = ref(0) // 当前Tab索引,用于控制选项显示逻辑
|
||||||
const channelsSelection = ref<Device.ResPqDev[]>([])
|
const channelsSelection = ref<Device.ResPqDev[]>([])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -464,7 +472,7 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
|||||||
label: '检测次数',
|
label: '检测次数',
|
||||||
minWidth: 100,
|
minWidth: 100,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
isShow: modeStore.currentMode != '比对式',
|
isShow: modeStore.currentMode != '比对式'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'checkState',
|
prop: 'checkState',
|
||||||
@@ -651,9 +659,9 @@ function tableHeaderInit(val: number) {
|
|||||||
selectionShow.value = true // 显示选择框
|
selectionShow.value = true // 显示选择框
|
||||||
break
|
break
|
||||||
case 5: // 数据查询模式
|
case 5: // 数据查询模式
|
||||||
if(modeStore.currentMode === '比对式'){
|
if (modeStore.currentMode === '比对式') {
|
||||||
checkStateTable.value = [1,2, 3] // 显示检测中,检测完成和归档状态
|
checkStateTable.value = [1, 2, 3] // 显示检测中,检测完成和归档状态
|
||||||
}else{
|
} else {
|
||||||
checkStateTable.value = [2, 3] // 显示检测完成和归档状态
|
checkStateTable.value = [2, 3] // 显示检测完成和归档状态
|
||||||
}
|
}
|
||||||
columns[columns.length - 1].minWidth = 290
|
columns[columns.length - 1].minWidth = 290
|
||||||
@@ -878,7 +886,7 @@ const handleTest = async (val: string) => {
|
|||||||
if (action === 'cancel') {
|
if (action === 'cancel') {
|
||||||
ElMessage.success('全部复检')
|
ElMessage.success('全部复检')
|
||||||
checkStore.setReCheckType(1)
|
checkStore.setReCheckType(1)
|
||||||
if (appSceneStore.currentScene === '0'&& modeStore.currentMode != '比对式') {
|
if (appSceneStore.currentScene === '0' && modeStore.currentMode != '比对式') {
|
||||||
writeTHPopupRef.value?.open()
|
writeTHPopupRef.value?.open()
|
||||||
} else {
|
} else {
|
||||||
selectTestItemPopupRef.value?.open()
|
selectTestItemPopupRef.value?.open()
|
||||||
@@ -906,7 +914,7 @@ const handleTest = async (val: string) => {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
ElMessage.success('不合格项复检')
|
ElMessage.success('不合格项复检')
|
||||||
checkStore.setReCheckType(0)
|
checkStore.setReCheckType(0)
|
||||||
if (appSceneStore.currentScene === '0'&& modeStore.currentMode != '比对式') {
|
if (appSceneStore.currentScene === '0' && modeStore.currentMode != '比对式') {
|
||||||
writeTHPopupRef.value?.open()
|
writeTHPopupRef.value?.open()
|
||||||
} else {
|
} else {
|
||||||
openTestDialog(true)
|
openTestDialog(true)
|
||||||
@@ -916,7 +924,7 @@ const handleTest = async (val: string) => {
|
|||||||
if (action === 'cancel') {
|
if (action === 'cancel') {
|
||||||
ElMessage.success('全部复检')
|
ElMessage.success('全部复检')
|
||||||
checkStore.setReCheckType(1)
|
checkStore.setReCheckType(1)
|
||||||
if (appSceneStore.currentScene === '0'&& modeStore.currentMode != '比对式') {
|
if (appSceneStore.currentScene === '0' && modeStore.currentMode != '比对式') {
|
||||||
writeTHPopupRef.value?.open()
|
writeTHPopupRef.value?.open()
|
||||||
} else {
|
} else {
|
||||||
openTestDialog(true)
|
openTestDialog(true)
|
||||||
@@ -961,7 +969,7 @@ const handleTest = async (val: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const openTestDialog = (testData: any) => {
|
const openTestDialog = (testData: any) => {
|
||||||
if (appSceneStore.currentScene === '0'&& modeStore.currentMode != '比对式') {
|
if (appSceneStore.currentScene === '0' && modeStore.currentMode != '比对式') {
|
||||||
if (testData) {
|
if (testData) {
|
||||||
writeTHPopupRef.value?.open()
|
writeTHPopupRef.value?.open()
|
||||||
} else {
|
} else {
|
||||||
@@ -986,7 +994,8 @@ const openTestDialog2 = () => {
|
|||||||
const openDrawer = async (title: string, row: any) => {
|
const openDrawer = async (title: string, row: any) => {
|
||||||
// 单个设备报告生成
|
// 单个设备报告生成
|
||||||
if (title === '报告生成') {
|
if (title === '报告生成') {
|
||||||
await generateDevReport({
|
reportPopup.value?.open(row)
|
||||||
|
/*await generateDevReport({
|
||||||
planId: checkStore.plan.id,
|
planId: checkStore.plan.id,
|
||||||
devIdList: [row.id],
|
devIdList: [row.id],
|
||||||
scriptId: checkStore.plan.scriptId,
|
scriptId: checkStore.plan.scriptId,
|
||||||
@@ -995,7 +1004,7 @@ const openDrawer = async (title: string, row: any) => {
|
|||||||
pageSize: 999
|
pageSize: 999
|
||||||
})
|
})
|
||||||
emit('batchGenerateClicked') // 触发事件
|
emit('batchGenerateClicked') // 触发事件
|
||||||
ElMessage.success({ message: `报告生成成功!` })
|
ElMessage.success({ message: `报告生成成功!` })*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (title === '报告下载') {
|
if (title === '报告下载') {
|
||||||
@@ -1027,7 +1036,6 @@ const openDrawer = async (title: string, row: any) => {
|
|||||||
} else if (modeStore.currentMode == '比对式') {
|
} else if (modeStore.currentMode == '比对式') {
|
||||||
dataCheckSingleChannelSingleTestPopupRef.value?.open(row, null, row.id, 2)
|
dataCheckSingleChannelSingleTestPopupRef.value?.open(row, null, row.id, 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (title === '归档') {
|
if (title === '归档') {
|
||||||
|
|||||||
@@ -98,9 +98,8 @@
|
|||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.code || ''"
|
:value="item.code || ''"
|
||||||
:disabled="(selectByMode && planType == 0) || allDisabled">
|
:disabled="(selectByMode && planType == 0) || allDisabled"
|
||||||
</el-option>
|
></el-option>
|
||||||
/>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user