this.isSetTempDialog = true;
//选中的勾选上
this.$nextTick(() => {
//把所选的指标项√上
let codes = this.chosenIndex.map((el) => el.variantCode);
this.$refs.indexTree.setCheckedKeys(codes);
});
使用的是elementui的dialog弹窗,将弹窗上加上v-if就可以了