This commit is contained in:
sjl
2025-03-05 11:19:16 +08:00
parent be2f40715a
commit 2377916f29
4 changed files with 25 additions and 17 deletions

View File

@@ -187,9 +187,11 @@
v-if="showDialog"
/>
<!-- 查看 -->
<viewRow ref="viewRowRef"
<ViewRow ref="viewRowRef"
:activeName="activeName"
:formContent="props.formContent"
@close="viewDialog = false"
v-if="viewDialog"
/>
</div>
</template>
@@ -208,7 +210,7 @@ import { dlsDetails, deleteDtls, updateDtls, addScriptDtls, checkDataList } from
import { useDictStore } from '@/stores/modules/dict'
import { useHandleData } from '@/hooks/useHandleData'
import { scriptDtlsCheckDataList } from '@/api/device/testScript/index'
import viewRow from './viewRow.vue'
import ViewRow from '@/views/machine/testScript/components/viewRow.vue'
interface TabOption {
label?: string
name?: string
@@ -230,6 +232,7 @@ const props = defineProps({
}
})
const showDialog = ref(false)
const viewDialog = ref(false)
const dictStore = useDictStore()
const activeName = ref('')
const childActiveName = ref('')
@@ -397,8 +400,11 @@ const view = (row: Partial<TestScript.ResTestScript> = {}) => {
})
}
})
console.log(tabData.value)
viewRowRef.value?.open(row,communicationList.value,parentTabName,childrenTabName.value)
viewDialog.value = true
setTimeout(() => {
viewRowRef.value?.open(row, communicationList.value, parentTabName, childrenTabName.value)
}, 0)
}
// 删除
const deleteRow = async (row: any) => {