|
|
|
@ -27,6 +27,13 @@ import emitter from '@/utils/mitt'
|
|
|
|
|
import { getFilterList } from '@/api/home/main'
|
|
|
|
|
import { useKeydown } from '@/hooks/event/useKeydown'
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
contentRef: {
|
|
|
|
|
type: Object,
|
|
|
|
|
required: true,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
const configStore = useConfig()
|
|
|
|
|
|
|
|
|
|
// 所有左侧模块的值
|
|
|
|
@ -279,6 +286,18 @@ function updateComponent(key, e) {
|
|
|
|
|
customObjRef.value = tempobj
|
|
|
|
|
// asideValue = Object.assign({}, asideValue, tempobj);
|
|
|
|
|
console.log('asideValue跟新值', tempobj)
|
|
|
|
|
console.log('表格数据-----------',props. contentRef.listData)
|
|
|
|
|
console.log('图片名字-------------',tempobj.izupload)
|
|
|
|
|
if(tempobj.izupload){
|
|
|
|
|
props. contentRef.listData.map((item)=>{
|
|
|
|
|
const index = item.thumburl.lastIndexOf('/') + 1; // 获取最后一个 '/' 的位置并加1
|
|
|
|
|
const result = item.thumburl.substring(index);
|
|
|
|
|
if(tempobj.izupload==result){
|
|
|
|
|
tempobj.izupload=item.pictureid
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
configStore.setAsideValue(tempobj)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -342,6 +361,7 @@ useKeydown('s', () => setShowSearch(true))
|
|
|
|
|
:key="item.key"
|
|
|
|
|
v-model:value="asideValue[item.key]"
|
|
|
|
|
:label="item.config?.label"
|
|
|
|
|
|
|
|
|
|
@update:value="(e) => updateComponent(item.key, e)"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|