mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 04:08:43 +08:00 
			
		
		
		
	项目结构调整 x 11 : 修改前端项目为 yudao-admin-ui
This commit is contained in:
		
							
								
								
									
										26
									
								
								yudao-admin-ui/src/views/infra/skywalking/index.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								yudao-admin-ui/src/views/infra/skywalking/index.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div v-loading="loading" :style="'height:'+ height">
 | 
			
		||||
    <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: "SkyWalking",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      src: "http://skywalking.shop.iocoder.cn/trace", // TODO 芋艿,后续改成配置读取
 | 
			
		||||
      height: document.documentElement.clientHeight - 94.5 + "px;",
 | 
			
		||||
      loading: true
 | 
			
		||||
    };
 | 
			
		||||
  },
 | 
			
		||||
  mounted: function() {
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
      this.loading = false;
 | 
			
		||||
    }, 230);
 | 
			
		||||
    const that = this;
 | 
			
		||||
    window.onresize = function temp() {
 | 
			
		||||
      that.height = document.documentElement.clientHeight - 94.5 + "px;";
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
							
								
								
									
										26
									
								
								yudao-admin-ui/src/views/infra/skywalking/log.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								yudao-admin-ui/src/views/infra/skywalking/log.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div v-loading="loading" :style="'height:'+ height">
 | 
			
		||||
    <iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: "SkyWalking-Log",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      src: "http://skywalking.shop.iocoder.cn/log", // TODO 芋艿,后续改成配置读取
 | 
			
		||||
      height: document.documentElement.clientHeight - 94.5 + "px;",
 | 
			
		||||
      loading: true
 | 
			
		||||
    };
 | 
			
		||||
  },
 | 
			
		||||
  mounted: function() {
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
      this.loading = false;
 | 
			
		||||
    }, 230);
 | 
			
		||||
    const that = this;
 | 
			
		||||
    window.onresize = function temp() {
 | 
			
		||||
      that.height = document.documentElement.clientHeight - 94.5 + "px;";
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
		Reference in New Issue
	
	Block a user