From 18a0d5fc30bb203b5dcaca81df263072d46afadc Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Tue, 4 Nov 2025 13:11:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=A1=A8=E9=BB=98=E8=AE=A4=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=80=E8=A1=8C=E8=AE=BE=E7=BD=AE=E5=8F=8A=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/lowCode/tablePage.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/components/lowCode/tablePage.vue b/src/components/lowCode/tablePage.vue index 2668e81..31a8ab3 100644 --- a/src/components/lowCode/tablePage.vue +++ b/src/components/lowCode/tablePage.vue @@ -9,6 +9,7 @@ import { } from '@/api/lowCode/utils'; import { jsonParseStringify } from '@/utils/lowCode/item/index' import { SCOPE } from 'element-plus' +import { onMounted,ref } from 'vue'; import SvgIcon from '@/components/svgIcon/index.vue' const props = withDefaults( defineProps<{ @@ -39,6 +40,21 @@ const type = computed(() => { const editDisabled = computed(() => { return formProps.value.type === 2 && props.data.config?.editDisabled }) +const defaultOneFlag = ref(true) +if(type.value==1 && props.data.control.defaultOne==2){ + defaultOneFlag.value = false +} +onMounted(()=>{ + /* alert(type.value) + alert(props.data.control.defaultOne) */ + setTimeout(()=>{ + if(defaultOneFlag){ + addColumn() + } + },200) + +}) + const addColumn = () => { console.log("如果编辑页禁用时--------->",tableDataNew.value) const temp: any = {}