|
@@ -1303,12 +1303,12 @@ export default {
|
|
|
let isBreak = false;
|
|
|
for (let i = startIndex; i < keys.length; i++) {
|
|
|
if (isBreak) break;
|
|
|
- if (!keys[i].includes("condition")) {
|
|
|
+ if (!keys[i]?.includes("condition")) {
|
|
|
if (this.$refs[ref].list.length) {
|
|
|
if (i >= index) {
|
|
|
if (keys[i] !== "drivetype")
|
|
|
this[keys[i]] = this.$refs[ref].list[0].option[keys[i]];
|
|
|
- if (this[keys[i]].length === 1) {
|
|
|
+ if (this[keys[i]] && this[keys[i]].length === 1) {
|
|
|
if (this[type].content.where[position])
|
|
|
this[type].content.where[keys[i]] = this[keys[i]][0].value;
|
|
|
if (this.timer) clearTimeout(this.timer);
|
|
@@ -1316,12 +1316,13 @@ export default {
|
|
|
this.$refs[ref] && this.$refs[ref].listData();
|
|
|
});
|
|
|
} else if (
|
|
|
+ this[keys[i]] &&
|
|
|
this[keys[i]].length > 1 &&
|
|
|
keys[i] !== "drivetype"
|
|
|
) {
|
|
|
this[type].content.where[keys[i]] = "";
|
|
|
}
|
|
|
- if (this.$refs[ref].list[0].option[keys[i]].length > 1) {
|
|
|
+ if (this.$refs[ref].list[0].option[keys[i]] && this.$refs[ref].list[0].option[keys[i]].length > 1) {
|
|
|
isBreak = true;
|
|
|
}
|
|
|
}
|
|
@@ -1331,6 +1332,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.loading = false;
|
|
|
+ console.log(this.loading,'loading updateWhereKeys')
|
|
|
};
|
|
|
switch (type) {
|
|
|
case "guangtouParam":
|