diff --git a/src/components/formTable/index.vue b/src/components/formTable/index.vue index 47c9b8a..f3b8d2c 100644 --- a/src/components/formTable/index.vue +++ b/src/components/formTable/index.vue @@ -137,6 +137,7 @@ const unWatch2 = watch( ) // 从表单数据里提取表单所需的model const forEachGetFormModel = (list: FormList[], obj: any) => { + //console.log(list) list.forEach((item: any) => { if (['table', 'flex'].includes(item.type)) { obj[item.name] = jsonParseStringify(item.tableData) diff --git a/src/components/lowCode/assistant/uploadPage.vue b/src/components/lowCode/assistant/uploadPage.vue index f688832..8240320 100644 --- a/src/components/lowCode/assistant/uploadPage.vue +++ b/src/components/lowCode/assistant/uploadPage.vue @@ -15,6 +15,8 @@ import { constGetControlByName } from '@/api/lowCode/utils'; +import { computed } from 'vue'; + const props = withDefaults( defineProps<{ modelValue?: string @@ -137,11 +139,37 @@ const uploadSuccess = (response: any, uploadFile: any, uploadFiles: any) => { // console.log("uploadSuccess===>",control.value) // console.log("uploadSuccess=fileList==>",fileList) } + +const imgAry = computed({ + get: () => { + if ( + props.imgList != "" && + props.imgList != null && + props.imgList != undefined && + props.imgList != "undefined" + ) { + // let zj = props.imgList + // let img = zj.Split(","); + let arr = props.imgList.match(/[^,]+/g); + console.log("文件列表", arr); + return arr; + } else { + return []; + } + }, +}); + +function openUrl1(url:string) { + + window.open(url, '_blank') + +} +
+ +
+ + + +
+ + {{ item.url }} + +
+
+
\ No newline at end of file