fix: 修复产品跳转设备列表,查询显示错误问题

This commit is contained in:
xieyonghong 2023-05-22 16:14:01 +08:00
parent 01cf4fb82d
commit 06512ea6ea
5 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template>
<j-advanced-search
<AdvancedSearch
:target='target'
:type='type'
:request='saveSearchHistory'
@ -16,6 +16,7 @@
import { PropType } from 'vue'
import { JColumnsProps } from 'components/Table/types'
import { saveSearchHistory, getSearchHistory, deleteSearchHistory } from '@/api/comm'
import { AdvancedSearch } from 'jetlinks-ui-components'
interface Emit {
(e: 'search', data: any): void

View File

@ -81,6 +81,7 @@ watchEffect(() => {
dataIndex: `${i.id}_format`,
search: {
type: i?.valueType?.type || 'string',
rename: i.id
},
});
});

View File

@ -89,7 +89,11 @@
{{ JSON.stringify(value?.formatValue) }}
</div>
<div v-else :class="valueClass">
{{ String(value?.formatValue) }}
<div style='width: 100%;white-space: normal;'>
<j-ellipsis>
{{ String(value?.formatValue) }}
</j-ellipsis>
</div>
</div>
<ValueDetail
v-if="visible"

View File

@ -293,7 +293,7 @@ const getProtocol = async () => {
const jumpDevice = () => {
// console.log(productStore.current?.id);
const searchParams = {
column: 'productId',
column: 'productName',
termType: 'eq',
value: productStore.current?.id,
};

View File

@ -168,7 +168,6 @@ const getIsRecord = async () => {
* 开始录像
*/
const recordStart = async ({ key }: { key: string}) => {
console.log(key)
showToolLock.value = false
showTool.value = false
isRecord.value = 1;