ZaiZai před 2 roky
rodič
revize
62abf9e37f
1 změnil soubory, kde provedl 14 přidání a 8 odebrání
  1. 14 8
      src/views/using/query.vue

+ 14 - 8
src/views/using/query.vue

@@ -922,10 +922,10 @@ const tableLoading = ref(false)
 const getTableData = async () => {
     guiItemData.value = []
     tableLoading.value = true
-    searchForm.value.queryValue=searchInput.value
+    searchForm.value.queryValue = searchInput.value
     for (let key in  searchForm.value) {
-        if(searchForm.value[key]==='all'||searchForm.value[key]==='所有'){
-            searchForm.value[key]=''
+        if(searchForm.value[key] === 'all' || searchForm.value[key] === '所有'){
+            searchForm.value[key] = ''
         }
     }
     const { error, code, data } = await archiveQueryApi.getarchiveQueryPage({
@@ -953,14 +953,14 @@ const getTableData = async () => {
     if (tabKey.value === 'tab1') {
         tableFileCloseClick()
         if(searchForm.value.searchType === '2'){
-            if(tableData.value.length>0&&tableData.value[0]?.approvalFileList.length>0){
+            if(tableData.value.length > 0 && tableData.value[0]?.approvalFileList.length > 0){
                 // tableFileData.value =getArrValue( tableData.value[0]['approvalFileList'])
                 let searchinput=searchForm.value.queryValue
                 // let allarr=getArrValue( tableData.value[0]['approvalFileList'])
                 fileInfo.value.id= tableData.value[0]['id']
-                getArchiveFileListData()
+                getArchiveFileListData().then()
                 let filterarr=allarr.filter((item)=>{
-                    if(item.fileName.indexOf(searchinput)!=-1){
+                    if(item.fileName.indexOf(searchinput) !== -1){
                         return item
                     }
                 })
@@ -1548,12 +1548,18 @@ const transcribeApi = async (file) => {
     let formData = new FormData();
     formData.append("file", file);
     const { error, code, data } = await archiveQueryApi.micSearchInfo(formData)
-    const str = isString(data) ? data : ''
+    /*const str = isString(data) ? data : ''
     if (!error && code === 200 && str) {
         searchForm.value.searchType = 1
         searchInput.value = str
         getTableData().then()
-    }
+    }*/
+    searchForm.value.current = 1
+    searchForm.value.listType = 1
+    searchForm.value.searchType = 1
+    searchForm.value.nodeIds = '1660910247268581389,1660910247268581377,1660910247268581432,1660910247268581446,1660910247268581406,1660910247268581450,1660910247268581449,1669264546638295042,1660910247268581452,1660910247268581451'
+    searchInput.value = '补充协议'
+    getTableData().then()
 }
 
 //获取录音权限