|
@@ -425,7 +425,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, isString} from "js-fast-way"
|
|
|
+import {getArrValue, arrIndex, isArrIndex, isString, getObjValue} 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";
|
|
@@ -1576,11 +1576,15 @@ const testDownload = (blob) => {
|
|
|
//发起请求
|
|
|
const transcribeApi = async (formData) => {
|
|
|
const { error, code, data } = await archiveQueryApi.micSearchInfo(formData)
|
|
|
- const str = isString(data) ? data : ''
|
|
|
- if (!error && code === 200 && str) {
|
|
|
+ console.log(data)
|
|
|
+ if (!error && code === 200) {
|
|
|
+ const res = getObjValue(data)
|
|
|
+ searchInput.value = res.queryValue
|
|
|
searchForm.value.searchType = 1
|
|
|
searchForm.value.current = 1
|
|
|
- //searchInput.value = str
|
|
|
+ Object.keys(res).forEach(key => {
|
|
|
+ searchForm.value[key] = res[key]
|
|
|
+ })
|
|
|
getTableData().then()
|
|
|
}
|
|
|
}
|