调整开始检测接口
This commit is contained in:
@@ -69,6 +69,8 @@ import CompareDataCheckRawDataTable from './compareDataCheckRawDataTable.vue'
|
||||
import {CheckData} from "@/api/check/interface";
|
||||
import {useCheckStore} from "@/stores/modules/check";
|
||||
import {Histogram, Postcard} from "@element-plus/icons-vue";
|
||||
import {getPqErrSysList} from '@/api/plan/plan'
|
||||
import { getFormData} from "@/api/check/test";
|
||||
|
||||
const {appendToBody} = withDefaults(defineProps<{
|
||||
appendToBody: boolean
|
||||
@@ -83,6 +85,8 @@ const searchValue = ref<string>('')
|
||||
const pqErrorList = reactive<{ id: string; name: string; }[]>([])
|
||||
const activeTab = ref('resultTab')
|
||||
const currentCheckItem = ref<any>()
|
||||
let deviceId: string = ''
|
||||
let scriptType: string | null = null
|
||||
|
||||
watch(searchValue, (val) => {
|
||||
treeRef.value!.filter(val)
|
||||
@@ -112,7 +116,8 @@ const rawTableData = reactive<CheckData.RawDataItem[]>([])
|
||||
|
||||
const open = async (_deviceId: string, chnNum: string, _scriptType: string | null) => {
|
||||
visible.value = true;
|
||||
|
||||
deviceId = _deviceId
|
||||
scriptType = null
|
||||
// 设置默认选中第一个选项
|
||||
if (options.length > 0) {
|
||||
const firstOption = options[0];
|
||||
@@ -124,6 +129,19 @@ const open = async (_deviceId: string, chnNum: string, _scriptType: string | nul
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
formContent.errorSysId = checkStore.plan.errorSysId
|
||||
|
||||
pqErrorList.length = 0
|
||||
let {data: resPqErrorList} = await getPqErrSysList()
|
||||
Object.assign(pqErrorList, resPqErrorList)
|
||||
}
|
||||
|
||||
const close = () => {
|
||||
visible.value = false;
|
||||
// 可以在这里添加其他清理逻辑
|
||||
}
|
||||
|
||||
const options = [
|
||||
|
||||
Reference in New Issue
Block a user