ZaiZai 1 жил өмнө
parent
commit
aa9d012eae

+ 1 - 1
src/views/tentative/detect/components/ListItem.vue

@@ -220,7 +220,7 @@
 
     <!-- 关联设备数据 -->
     <hc-new-dialog v-model="isLinkAcquisition" is-footer-center is-table title="关联设备数据" widths="80%" @close="linksAcquisitionClose">
-        <LinkAcquisition v-model="linkAcquisitionItem.loadDataId" />
+        <LinkAcquisition v-if="isLinkAcquisition" v-model="linkAcquisitionItem.loadDataId" />
         <template #footer>
             <el-button @click="linksAcquisitionClose">取消</el-button>
             <el-button hc-btn type="primary" @click="linksAcquisitionClick">确定</el-button>

+ 2 - 2
src/views/tentative/detect/components/linkAcquisition.vue

@@ -58,7 +58,7 @@
 </template>
 
 <script setup>
-import { onActivated, ref, watch } from 'vue'
+import { onMounted, ref, watch } from 'vue'
 import { useAppStore } from '~src/store'
 import { getErtractInfo } from '~api/other'
 import { getArrValue } from 'js-fast-way'
@@ -72,7 +72,7 @@ const projectId = ref(store.getProjectId)
 const contractId = ref(store.getContractId)
 
 //渲染完成
-onActivated(() => {
+onMounted(() => {
     getTestDataType()
     getContractData()
 })