fix: bug#15871、#16254、#16317
This commit is contained in:
parent
8240776b24
commit
d1bbdef021
|
@ -4,7 +4,7 @@
|
|||
:type='type'
|
||||
:request='(data) => saveSearchHistory(data, target)'
|
||||
:historyRequest='() => getSearchHistory(target)'
|
||||
:deleteRequest='deleteSearchHistory'
|
||||
:deleteRequest='(_target: string, id: string) => deleteSearchHistory(target, id)'
|
||||
:columns='columns'
|
||||
:class='props.class'
|
||||
style='padding-top: 18px; padding-bottom: 18px;'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<j-spin :spinning="loading" v-if="_metadata.length">
|
||||
<j-spin :spinning="loading" v-if="_metadata?.length">
|
||||
<j-card :bordered="false">
|
||||
<template #title>
|
||||
<TitleComponent data="点位映射"></TitleComponent>
|
||||
|
|
|
@ -146,7 +146,7 @@ const selectChange = (e: any) => {
|
|||
visible.value = true;
|
||||
}
|
||||
const item = productList.value.filter((i: any) => i.id === e)[0];
|
||||
const array = JSON.parse(item.metadata || [])?.properties?.map(
|
||||
const array = JSON.parse(item.metadata || '{}')?.properties?.map(
|
||||
(i: any) => ({
|
||||
metadataType: 'property',
|
||||
metadataName: `${i.name}(${i.id})`,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<j-spin :spinning="loading" v-if="metadata.properties.length">
|
||||
<j-spin :spinning="loading" v-if="metadata.properties?.length">
|
||||
<j-card :bordered="false" style="padding: 0">
|
||||
<template #extra>
|
||||
<j-space>
|
||||
|
@ -263,7 +263,7 @@ const channelList = ref<any[]>([]);
|
|||
|
||||
const _properties = computed(() => {
|
||||
const _cur = current.value >= 1 ? current.value : 1;
|
||||
return metadata.properties.slice((_cur - 1) * 10, _cur * 10);
|
||||
return metadata.properties?.slice((_cur - 1) * 10, _cur * 10) || [];
|
||||
});
|
||||
|
||||
const modelRef = reactive<{
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<j-row type="flex">
|
||||
<j-col flex="180px">
|
||||
<j-form-item name="photoUrl">
|
||||
<JProUpload accept="image/jpeg,image/png" v-model="modelRef.photoUrl" />
|
||||
<JProUpload accept="image/jpeg,image/png" v-model="modelRef.photoUrl" :size="4"/>
|
||||
</j-form-item>
|
||||
</j-col>
|
||||
<j-col flex="auto">
|
||||
|
|
Loading…
Reference in New Issue