@@ -180,10 +180,10 @@ export default {
default:
break;
}
- this.$emit("updateParent", "activeTabs", next);
if (this.$props.type != "hgxfx") {
this.$emit("updateParent", "rwBsm", item.bsm);
+ this.$emit("updateParent", "activeTabs", next);
},
checkRz(item) {
this.$emit("updateParent", "nowObj", item);
@@ -200,7 +200,7 @@ export default {
};
mounted() {
- this.GetXzjg();
+ // this.GetXzjg();
methods: {
GetXzjg() {
@@ -526,6 +526,10 @@ export default {
return parseInt(a.yxfa) - parseInt(b.yxfa);
});
+ reset() {
+ viewer.entities.removeAll();
+ viewer.dataSources.removeAll();
+ },
beforeResolve(to, from, next) {
console.log(to, from, next, "to, from, next");
@@ -40,7 +40,6 @@
:loading="loading"
:rwBsm="rwBsm"
:rzMc="nowObj.xmmc"
- v-if="activeTabs == 'xzjg'"
ref="xzjg"
></XZJG>
</div>
@@ -97,15 +96,22 @@ export default {
activeTabs(newValue) {
if (newValue != "fzxz") this.$refs.fzxz.reset();
if (newValue != "lsju") this.$refs.lsju.reset();
+ if (newValue != "xzjg") this.$refs.xzjg.reset();
if (newValue == "lsju") {
this.$refs.lsju.reset();
this.$refs.lsju.changeForm();
+ if (newValue == "xzjg") {
+ this.$nextTick(() => {
+ this.$refs.xzjg.GetXzjg();
+ });
+ }
query(newVal, oldVal) {
if (newVal) {
this.rwBsm = newVal;
+ this.$refs.xzjg.reset();
this.activeTabs = "xzjg";
this.$refs.xzjg.GetXzjg();