duy 1 тиждень тому
батько
коміт
22129c03f0

+ 3 - 2
src/views/archives/manage/FileInsertModal.vue

@@ -97,11 +97,11 @@
 </template>
 
 <script setup>
-import { arrToId, deepClone, getArrValue } from 'js-fast-way'
+import { arrToId, getArrValue } from 'js-fast-way'
 import { onMounted, reactive, ref, watch } from 'vue'
 import tuningApi from '~api/archiveConfig/tuning.js'
 import { useAppStore } from '~src/store'
-
+const emits = defineEmits(['close'])
 const useAppState = useAppStore()
 const projectId = ref(useAppState.getProjectId)
 const contractId = ref(useAppState.getContractId)
@@ -304,6 +304,7 @@ const insertDialogClose = () => {
   tableData.value = []
   insertDialog.value = false
   resetForm()
+  emits('close')
 }
 
 // 表单验证方法

+ 5 - 1
src/views/archives/manage/tuning.vue

@@ -509,7 +509,7 @@
 
         <!-- 插卷弹窗 -->     
        
-        <FileInsertModal ref="fileInsertModalRef" />
+        <FileInsertModal ref="fileInsertModalRef" @close="closeFileModal" />
     </hc-body>
 </template>
 
@@ -1702,6 +1702,10 @@ fileInsertModalRef.value?.openInsertDialog(intableCheckedKeys.value, searchForm.
 }
 
 const fileInsertModalRef = ref(null)
+const closeFileModal = ()=>{
+    tableFileRef.value?.clearSelection()
+
+}
 </script>
 
 <style lang="scss" scoped>