|
|
|
@ -1282,7 +1282,7 @@ const delSelectOption = (index: number, type?: string) => { |
|
|
|
//liwenxuan 20240508 checkbox 删除选项时提醒 start |
|
|
|
let delflag = true |
|
|
|
let breakFlag = 0 |
|
|
|
if(controlData.value.type === 'checkbox'&& controlData.value.config.optionsType==0){ |
|
|
|
if((controlData.value.type === 'checkbox'||controlData.value.type === 'radio'||controlData.value.type === 'select')&& controlData.value.config.optionsType==0){ |
|
|
|
//多选删除时,当前index并不是索引而是value,需找出选择的多选框实际的索引作为index liwenxuan 多选选择框选项拖动功能 20240815 start |
|
|
|
for(let i = 0;i<controlData.value.options.length;i++){ |
|
|
|
if(controlData.value.options[i].value==index){ |
|
|
|
@ -1291,6 +1291,7 @@ const delSelectOption = (index: number, type?: string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
//多选删除时,当前index并不是索引而是value,需找出选择的多选框实际的索引作为index liwenxuan 多选选择框选项拖动功能 20240815 end |
|
|
|
if(controlData.value.type === 'checkbox'){ |
|
|
|
for(var i = 0;i < controlData.value.control.glxxszForCheckBox.length;i ++){ |
|
|
|
if(breakFlag>0){ |
|
|
|
break |
|
|
|
@ -1312,6 +1313,8 @@ const delSelectOption = (index: number, type?: string) => { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if(delflag === true){ |
|
|
|
//删除相关关联选项设置 |
|
|
|
if(controlData.value.type === 'checkbox'){ |
|
|
|
@ -3973,7 +3976,7 @@ const radioChangeSet = (val:any) => { |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<template v-if="controlData.config.optionsType === 0"> |
|
|
|
<div v-if="controlData.type !== 'cascader'&&controlData.type !== 'checkbox'"> |
|
|
|
<div v-if="controlData.type !== 'cascader'&&controlData.type !== 'checkbox'&&controlData.type !== 'radio'&&controlData.type !== 'select'"> |
|
|
|
<el-form-item |
|
|
|
v-for="(item, index) in controlData.options" |
|
|
|
:key="index" |
|
|
|
@ -3995,7 +3998,7 @@ const radioChangeSet = (val:any) => { |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
<!-- 多选选择框选项拖动功能 liwenxuan 20240815 start --> |
|
|
|
<div v-if="controlData.type !== 'cascader'&&controlData.type == 'checkbox'"> |
|
|
|
<div v-if="controlData.type !== 'cascader'&&(controlData.type == 'checkbox'||controlData.type == 'radio'||controlData.type == 'select')"> |
|
|
|
<draggable |
|
|
|
:list="controlData.options" |
|
|
|
:force-fallback="true" |
|
|
|
|