diff --git a/src/components/DesignForm/formControlProperties.vue b/src/components/DesignForm/formControlProperties.vue index 3ff623007..f36ee10be 100644 --- a/src/components/DesignForm/formControlProperties.vue +++ b/src/components/DesignForm/formControlProperties.vue @@ -290,7 +290,7 @@ const editFormDict = (tooltip: string) => { @ 时间: 2024-05-10 13:19:37 @ 功能: 组件属性 */ -const componentProperties = computed(()=>{ +const attrList = computed(()=>{ if (Object.keys(controlData.value).length){ const { control = {}, @@ -1243,6 +1243,29 @@ const cssIsShouw = (val:any) => { } return false; } + +/** +@ 作者: 秦东 +@ 时间: 2024-05-13 15:46:24 +@ 功能: +*/ +watch(()=>store.activeKey, (val:string) => { + console.log("监听数据编号--->", val) + if(controlData.value.type==='lowcodeCarsusel'){ + const carsuselConfigData:CarsuselConfig[] = controlData.value.control.carsuselConfigArr + carsuselConfigData.forEach(element => { + //console.log(element) + if(element.imgId==''){ + //console.log("初始化imgid") + let onlyNumber = uuidv4().replaceAll('-','').toString(); //获取唯一编码 + element.imgId = onlyNumber; + } + }); + }else if(controlData.value.type==='associatedForms'){ + controlData.value.control.fillRoles[0].id = uuidv4().replaceAll('-','').toString(); + } +}) +