Browse Source

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

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

Loading…
Cancel
Save