Browse Source

子表默认添加一行设置及效果实现

lwx_v12
liwenxuan 3 weeks ago
parent
commit
18a0d5fc30
  1. 16
      src/components/lowCode/tablePage.vue

16
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 = {}

Loading…
Cancel
Save