|
@@ -426,7 +426,7 @@
|
|
|
import {ref, nextTick, onMounted, watch} from "vue";
|
|
|
import {useAppStore} from "~src/store";
|
|
|
import MetaTable from "../transfer/components/meta-table.vue"
|
|
|
-import {getArrValue, arrIndex, isArrIndex} from "js-fast-way"
|
|
|
+import {getArrValue, arrIndex, isArrIndex, isString} from "js-fast-way"
|
|
|
import archiveQueryApi from "~api/using/query.js";
|
|
|
import tuningApi from "~api/archiveConfig/tuning.js";
|
|
|
import imageViewGui from "~src/assets/view/gui.png";
|
|
@@ -855,7 +855,7 @@ const searchFileClick = (type) => {
|
|
|
//按案卷查询
|
|
|
const searchCaseClick = (type) => {
|
|
|
filteringShow.value = ''
|
|
|
- searchForm.value.searchType=type
|
|
|
+ searchForm.value.searchType = type
|
|
|
getTableData()
|
|
|
}
|
|
|
|
|
@@ -1548,7 +1548,12 @@ const transcribeApi = async (file) => {
|
|
|
let formData = new FormData();
|
|
|
formData.append("file", file);
|
|
|
const { error, code, data } = await archiveQueryApi.micSearchInfo(formData)
|
|
|
- console.log(data)
|
|
|
+ const str = isString(data) ? data : ''
|
|
|
+ if (!error && code === 200 && str) {
|
|
|
+ searchForm.value.searchType = 1
|
|
|
+ searchInput.value = str
|
|
|
+ getTableData().then()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//获取录音权限
|