Browse Source

下拉选择框为多选时,关联选项设置编辑规则

lwx_v23
liwenxuan 7 months ago
parent
commit
25b85e9eb2
  1. 10
      src/components/DesignForm/formControlPropertiNew.vue

10
src/components/DesignForm/formControlPropertiNew.vue

@ -1131,7 +1131,6 @@ const controlChange = (obj: any, val: any) => {
// select
switch (obj.eventName) {
case "selectMultiple":
//
if (val) {
//
controlData.value.control.modelValue = [];
@ -2028,16 +2027,15 @@ watch(
// start
// console.log(controlData.value.name)
resDataForGlxxszExceptself1 = JSON.parse(JSON.stringify(resDataForGlxxszExceptself));
console.log(resDataForGlxxszExceptself1)
// console.log(resDataForGlxxszExceptself1)
for (let i = 0; i < resDataForGlxxszExceptself1.length; i++) {
let strArr: [string] = resDataForGlxxszExceptself1[i].id.split(":");
console.log(strArr)
// console.log(strArr)
let str = strArr[strArr.length - 1];
console.log(str)
console.log(newVal)
/* console.log(str)
console.log(newVal) */
if (str == newVal) {
resDataForGlxxszExceptself1.splice(i, 1); // 使1
i--; //
}

Loading…
Cancel
Save