联调检测脚本
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
</el-tabs>
|
||||
</div>
|
||||
|
||||
<SetValueTable ref="setValueTableRef" />
|
||||
<!-- <SetValueTable ref="setValueTableRef" v-if="showSetValueTable" /> -->
|
||||
|
||||
<template #footer>
|
||||
<div>
|
||||
@@ -144,6 +144,13 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<SetValueTable
|
||||
ref="setValueTableRef"
|
||||
:activeName="props.activeName"
|
||||
:formContent="props.formContent"
|
||||
:form="form"
|
||||
v-if="showSetValueTable"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -158,7 +165,7 @@ import TestScriptInHarmTab from '@/views/machine/testScript/components/testScrip
|
||||
import TestScriptFlickerTab from '@/views/machine/testScript/components/testScriptFlickerTab.vue'
|
||||
import TestScriptDipTab from '@/views/machine/testScript/components/testScriptDipTab.vue'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import { addScriptDtls, scriptDtlsCheckDataList } from '@/api/device/testScript'
|
||||
import { addScriptDtls, } from '@/api/device/testScript'
|
||||
import scriptForm from './scriptForm'
|
||||
|
||||
const emit = defineEmits(['addTab', 'close'])
|
||||
@@ -183,6 +190,7 @@ const props = defineProps({
|
||||
})
|
||||
const key = ref(0)
|
||||
// let valueType
|
||||
const showSetValueTable = ref(false)
|
||||
const form: any = ref(JSON.parse(JSON.stringify(scriptForm)))
|
||||
const childForm: any = ref([])
|
||||
const ScriptValueType = ref('')
|
||||
@@ -335,10 +343,12 @@ const copyRow = (index: number) => {
|
||||
// 打开 drawer(新增、编辑)
|
||||
const openDialog = () => {
|
||||
let copyForm = JSON.parse(JSON.stringify(form.value))
|
||||
scriptDtlsCheckDataList({ ...copyForm, scriptId: props.formContent?.id, scriptType: props.activeName }).then(
|
||||
res => {}
|
||||
)
|
||||
showSetValueTable.value = true
|
||||
|
||||
// setValueTableRef.value?.open()
|
||||
setTimeout(() => {
|
||||
setValueTableRef.value?.open(props.formContent)
|
||||
}, 100)
|
||||
}
|
||||
|
||||
// 对外映射
|
||||
|
||||
Reference in New Issue
Block a user