|
|
@ -1194,7 +1194,7 @@ const delSelectOption = (index: number, type?: string) => { |
|
|
//liwenxuan 20240508 checkbox 删除选项时提醒 start |
|
|
//liwenxuan 20240508 checkbox 删除选项时提醒 start |
|
|
let delflag = true |
|
|
let delflag = true |
|
|
let breakFlag = 0 |
|
|
let breakFlag = 0 |
|
|
if(controlData.value.type === 'checkbox'){ |
|
|
if(controlData.value.type === 'checkbox'&& controlData.value.config.optionsType==0){ |
|
|
for(var i = 0;i < controlData.value.control.glxxszForCheckBox.length;i ++){ |
|
|
for(var i = 0;i < controlData.value.control.glxxszForCheckBox.length;i ++){ |
|
|
if(breakFlag>0){ |
|
|
if(breakFlag>0){ |
|
|
break |
|
|
break |
|
|
@ -2466,6 +2466,7 @@ watch(()=>controlData.value.control,(newVal) => { |
|
|
//radio,select添加选项时同步配置选项 |
|
|
//radio,select添加选项时同步配置选项 |
|
|
watch(()=>controlData.value.options, (changedOptions:any) => { |
|
|
watch(()=>controlData.value.options, (changedOptions:any) => { |
|
|
if(controlData.value.type === "radio" || controlData.value.type === "select"){ |
|
|
if(controlData.value.type === "radio" || controlData.value.type === "select"){ |
|
|
|
|
|
if(controlData.value.config.optionsType==0){ |
|
|
if(changedOptions.length===0){ |
|
|
if(changedOptions.length===0){ |
|
|
//删没了option |
|
|
//删没了option |
|
|
controlData.value.control.glxxsz = [] |
|
|
controlData.value.control.glxxsz = [] |
|
|
@ -2494,6 +2495,7 @@ watch(()=>controlData.value.options, (changedOptions:any) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
}else if(controlData.value.type === "checkbox"){ |
|
|
}else if(controlData.value.type === "checkbox"){ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
@ -2501,6 +2503,7 @@ watch(()=>controlData.value.options, (changedOptions:any) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function createRowForGlxxsz(){ |
|
|
function createRowForGlxxsz(){ |
|
|
|
|
|
if(controlData.value.config.optionsType==0){ |
|
|
controlData.value.control.glxxszForCheckBox.push( |
|
|
controlData.value.control.glxxszForCheckBox.push( |
|
|
{ |
|
|
{ |
|
|
conditionField: controlData.value.name, |
|
|
conditionField: controlData.value.name, |
|
|
@ -2510,10 +2513,13 @@ function createRowForGlxxsz(){ |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function deleteRowForGlxxsz(row: { id: any }){ |
|
|
function deleteRowForGlxxsz(row: { id: any }){ |
|
|
|
|
|
if(controlData.value.config.optionsType==0){ |
|
|
controlData.value.control.glxxszForCheckBox = controlData.value.control.glxxszForCheckBox.filter((item: { id: any }) => item.id!=row.id) |
|
|
controlData.value.control.glxxszForCheckBox = controlData.value.control.glxxszForCheckBox.filter((item: { id: any }) => item.id!=row.id) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
/* */ |
|
|
/* */ |
|
|
|
|
|
|
|
|
const optionsValue3SettingDialogOpenFlag = ref(false) |
|
|
const optionsValue3SettingDialogOpenFlag = ref(false) |
|
|
@ -2529,6 +2535,13 @@ function handleDetermineoptionsValue3(){ |
|
|
//liwenxuan20240426 单选多选下拉 关联选项设置 end |
|
|
//liwenxuan20240426 单选多选下拉 关联选项设置 end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function optionsTypeChanged(){ |
|
|
|
|
|
controlData.value.config.optionsFun = '' |
|
|
|
|
|
controlData.value.options = [] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const optionsCss = [ |
|
|
const optionsCss = [ |
|
|
@ -3150,13 +3163,13 @@ const disabledIstrue = (val:string) => { |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="showHide(['switch'],true)"> |
|
|
<div v-if="showHide(['switch'],true)&&controlData.config.optionsType==0"> |
|
|
<el-button @click="handelGlxxszDialogSwitch">关联选项设置</el-button> |
|
|
<el-button @click="handelGlxxszDialogSwitch">关联选项设置</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="showHide(['radio','select',],true)"> |
|
|
<div v-if="showHide(['radio','select',],true)&&controlData.config.optionsType==0"> |
|
|
<el-button @click="handelGlxxszDialog">关联选项设置</el-button> |
|
|
<el-button @click="handelGlxxszDialog">关联选项设置</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="showHide(['checkbox',],true)"> |
|
|
<div v-if="showHide(['checkbox',],true)&&controlData.config.optionsType==0"> |
|
|
<el-button @click="handelGlxxszDialogCheckbox">关联选项设置</el-button> |
|
|
<el-button @click="handelGlxxszDialogCheckbox">关联选项设置</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
@ -3185,7 +3198,7 @@ const disabledIstrue = (val:string) => { |
|
|
<el-form-item label="选项数据源" class="form_cont"> |
|
|
<el-form-item label="选项数据源" class="form_cont"> |
|
|
<el-select |
|
|
<el-select |
|
|
v-model="controlData.config.optionsType" |
|
|
v-model="controlData.config.optionsType" |
|
|
@change="controlData.config.optionsFun = ''" |
|
|
@change="optionsTypeChanged" |
|
|
> |
|
|
> |
|
|
<el-option :value="0" label="固定选项" /> |
|
|
<el-option :value="0" label="固定选项" /> |
|
|
<el-option :value="3" label="系统表单字段"/> |
|
|
<el-option :value="3" label="系统表单字段"/> |
|
|
|