Browse Source

修改必填选项默认值

yjf_v4
超级管理员 1 year ago
parent
commit
b2c64d8404
  1. 6
      src/components/DesignForm/formControlAttr.vue
  2. 6
      src/components/DesignForm/formControlAttr_2024024.vue
  3. 6
      src/components/DesignForm/formControlAttres.vue
  4. 12
      src/components/DesignForm/formControlPropertiNew.vue
  5. 6
      src/components/DesignForm/formControlProperties.vue

6
src/components/DesignForm/formControlAttr.vue

@ -1348,7 +1348,11 @@
//
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
return val && val.length > 0
if(val && val.length > 0){
return true
}else{
return false
}
})
//
const addRulesFast = () => {

6
src/components/DesignForm/formControlAttr_2024024.vue

@ -1148,7 +1148,11 @@ const tableColumnAdd = (val: string) => {
//
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
return val && val.length > 0
if(val && val.length > 0){
return true
}else{
return false
}
})
//
const addRulesFast = () => {

6
src/components/DesignForm/formControlAttres.vue

@ -988,7 +988,11 @@ const tableColumnAdd = (val: string) => {
//
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
return val && val.length > 0
if(val && val.length > 0){
return true
}else{
return false
}
})
//
const addRulesFast = () => {

12
src/components/DesignForm/formControlPropertiNew.vue

@ -1387,7 +1387,13 @@ const tableColumnAdd = (val: string) => {
//
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
return val && val.length > 0
console.log("校验规则必填勾选设置",val && val.length > 0)
if(val && val.length > 0){
return true
}else{
return false
}
// return val && val.length > 0
})
//
const addRulesFast = () => {
@ -3310,13 +3316,14 @@ const disabledIstrue = (val:string) => {
>
<!-- <div class="h3"><h3>校验设置</h3></div> -->
<el-divider content-position="left">校验设置</el-divider>
<el-divider content-position="left">校验1设置</el-divider>
<div v-if="showHide(['input', 'password', 'component'], true)">
<el-form-item
v-for="(item, index) in controlData.customRules"
:key="item.type"
class="form_cont"
>
<el-input v-model="item.message" placeholder="校验提示信息">
<template #prepend>
<el-select
@ -3367,6 +3374,7 @@ const disabledIstrue = (val:string) => {
</el-form-item>
</div>
<el-form-item class="form_cont" v-else>
<el-checkbox
:model-value="checkboxRequired"
@change="requiredChange"

6
src/components/DesignForm/formControlProperties.vue

@ -1285,7 +1285,11 @@ const addRules = (tooltip: string) => {
//
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
return val && val.length > 0
if(val && val.length > 0){
return true
}else{
return false
}
})
/**
@ 作者: 秦东

Loading…
Cancel
Save