|
@@ -78,11 +78,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {},
|
|
|
- computed: {
|
|
|
- query() {
|
|
|
- return this.$route.query.rwbsm;
|
|
|
- },
|
|
|
- },
|
|
|
+ computed: {},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
changeData(name, updata) {
|
|
@@ -108,13 +104,18 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- query(newVal, oldVal) {
|
|
|
- if (newVal) {
|
|
|
- this.rwBsm = newVal;
|
|
|
- this.$refs.xzjg.reset();
|
|
|
- this.activeTabs = "xzjg";
|
|
|
- this.$refs.xzjg.GetXzjg();
|
|
|
- }
|
|
|
+ "$route.query.rwbsm": {
|
|
|
+ immediate: true,
|
|
|
+ handler(newVal, oldVal) {
|
|
|
+ if (newVal) {
|
|
|
+ this.rwBsm = newVal;
|
|
|
+ this.activeTabs = "xzjg";
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.xzjg.reset();
|
|
|
+ this.$refs.xzjg.GetXzjg();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
};
|