|
@@ -90,6 +90,7 @@ export default {
|
|
|
// 活跃应用
|
|
|
hyyy: [],
|
|
|
toDay: '',
|
|
|
+ serveTime: true,
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
@@ -99,9 +100,12 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.channel();
|
|
|
+ if (this.serveTime) {
|
|
|
+ this.searchNode();
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
- ...topmessage(['query', 'fetch', 'update', 'create', 'delete']),
|
|
|
+ ...topmessage(['query', 'querytwo']),
|
|
|
async search({ skip = 0, limit = 300, ...info } = {}) {
|
|
|
let res = await this.query({ skip, limit, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -109,6 +113,10 @@ export default {
|
|
|
this.$set(this, `hyyy`, res.data.reverse());
|
|
|
}
|
|
|
},
|
|
|
+ async searchNode() {
|
|
|
+ let res = await this.querytwo();
|
|
|
+ this.searchNode = false;
|
|
|
+ },
|
|
|
channel() {
|
|
|
this.$stomp({
|
|
|
[`/exchange/service_count/nodes`]: this.onMessage,
|