|
@@ -558,7 +558,7 @@ export default {
|
|
|
`klRuleByIdSub[${val}].subMinOperator`
|
|
|
]);
|
|
|
}
|
|
|
- this.setScrollRight()
|
|
|
+ this.setScrollRight();
|
|
|
},
|
|
|
minChange(e, val, type) {
|
|
|
if (
|
|
@@ -580,7 +580,7 @@ export default {
|
|
|
`klRuleByIdSub[${val}].subMaxValue`
|
|
|
]);
|
|
|
}
|
|
|
- this.setScrollRight()
|
|
|
+ this.setScrollRight();
|
|
|
},
|
|
|
addGroup(scope) {
|
|
|
this.$emit("addGroup", null, { groupId: scope.row.groupId });
|
|
@@ -805,47 +805,46 @@ export default {
|
|
|
beforeUpdate() {
|
|
|
this.getSpanArr(this.klRuleByIdSub);
|
|
|
},
|
|
|
- mounted() {},
|
|
|
- // beforeUpdate() {
|
|
|
- // this.getSpanArr(this.klRuleByIdSub);
|
|
|
- // console.log("boxxxxxxx", this.box);
|
|
|
- // // if (this.box) {
|
|
|
- // // this.box.removeEventListener("scroll");
|
|
|
- // // }
|
|
|
- // // console.log(box);
|
|
|
- // // if (!this.box) {
|
|
|
- // this.box = document.querySelector(".el-table__body-wrapper");
|
|
|
- // // }
|
|
|
|
|
|
- // let that = this;
|
|
|
- // this.box.addEventListener("scroll", function (e) {
|
|
|
- // console.log(that.klRuleByIdSub.length);
|
|
|
- // console.log('subType',that.$refs[`klRuleByIdSub[1].subType`]);
|
|
|
- // that.klRuleByIdSub.forEach((ite, index) => {
|
|
|
- // // console.log(
|
|
|
- // // that.$refs[`klRuleByIdSub[${index}].subType`],
|
|
|
- // // that.$refs[`klRuleByIdSub[${index}].subLenCode`],
|
|
|
- // // that.$refs[`klRuleByIdSub[${index}].subConceptId`],
|
|
|
- // // that.$refs[`klRuleByIdSub[${index}].subMaxOperator`],
|
|
|
- // // that.$refs[`klRuleByIdSub[${index}].subMinOperator`],
|
|
|
- // // that.$refs[`klRuleByIdSub[${index}].subMinOperator`]
|
|
|
- // // );
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subType`] &&
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subType`].blur();
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subLenCode`] &&
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subLenCode`].blur();
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subConceptId`] &&
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subConceptId`].blur();
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].dataType`] &&
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].dataType`].blur();
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subMaxOperator`] &&
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subMaxOperator`].blur();
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subMinOperator`] &&
|
|
|
- // that.$refs[`klRuleByIdSub[${index}].subMinOperator`].blur();
|
|
|
- // that.$refs[`klRuleByIdSub[${index}]subMinOperator`] &&
|
|
|
- // that.$refs[`klRuleByIdSub[${index}]subMinOperator`].blur();
|
|
|
- // });
|
|
|
- // });
|
|
|
+ // watch: {
|
|
|
+ // klRuleByIdSub: {
|
|
|
+ // handler() {
|
|
|
+ // let that = this;
|
|
|
+ // // let box = document.querySelector(".el-table__body-wrapper");
|
|
|
+ // this.$refs.table.bodyWrapper.addEventListener("scroll", function (e) {
|
|
|
+ // // console.log(that.klRuleByIdSub.length);
|
|
|
+ // // console.log('subType',that.$refs[`klRuleByIdSub[1].subType`]);
|
|
|
+ // that.$nextTick(() => {
|
|
|
+ // that.klRuleByIdSub.forEach((ite, index) => {
|
|
|
+ // console.log(index);
|
|
|
+ // console.log(
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subType`],
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subLenCode`],
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subConceptId`],
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subMaxOperator`],
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subMinOperator`],
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subMinOperator`]
|
|
|
+ // );
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subType`] &&
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subType`].blur();
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subLenCode`] &&
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subLenCode`].blur();
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subConceptId`] &&
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subConceptId`].blur();
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].dataType`] &&
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].dataType`].blur();
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subMaxOperator`] &&
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subMaxOperator`].blur();
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subMinOperator`] &&
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}].subMinOperator`].blur();
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}]subMinOperator`] &&
|
|
|
+ // that.$refs[`klRuleByIdSub[${index}]subMinOperator`].blur();
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+ // deep: true
|
|
|
+ // }
|
|
|
// },
|
|
|
updated() {},
|
|
|
props: {
|