#872 ping详情页调整-增加表格字段采集器id collectorId #3
Showing
4 changed files
with
8 additions
and
109 deletions
@@ -131,10 +131,3 @@ | @@ -131,10 +131,3 @@ | ||
131 | </div> | 131 | </div> |
132 | </div> | 132 | </div> |
133 | 133 | ||
134 | -<!--弹框--> | ||
135 | -<cm-dialog :title="dialog.title" width="60%" :showDialogVisible="dialog.show" @hidedialog="hideDialog" :showFooter="false"> | ||
136 | - <template v-slot> | ||
137 | - <pingDetail :detail="dialog.detail" /> | ||
138 | - </template> | ||
139 | -</cm-dialog> | ||
140 | - |
1 | export default { | 1 | export default { |
2 | name: 'pingIndex', | 2 | name: 'pingIndex', |
3 | template: '', | 3 | template: '', |
4 | - components: { | ||
5 | - 'pingDetail': Vue.defineAsyncComponent( | ||
6 | - () => myImport('views/ping/pingDetail/index') | ||
7 | - ) | ||
8 | - }, | 4 | + components: {}, |
9 | props: [], | 5 | props: [], |
10 | setup(props, {attrs, slots, emit}) { | 6 | setup(props, {attrs, slots, emit}) { |
11 | const {proxy} = Vue.getCurrentInstance(); | 7 | const {proxy} = Vue.getCurrentInstance(); |
@@ -95,6 +91,13 @@ export default { | @@ -95,6 +91,13 @@ export default { | ||
95 | align: 'center', | 91 | align: 'center', |
96 | width: '200' | 92 | width: '200' |
97 | }, | 93 | }, |
94 | + { | ||
95 | + prop: 'collectorId', | ||
96 | + label: '采集器id', | ||
97 | + sortable: true, | ||
98 | + align: 'center', | ||
99 | + width: '200' | ||
100 | + }, | ||
98 | ] | 101 | ] |
99 | }) | 102 | }) |
100 | let resTypeArr = Vue.ref([]); | 103 | let resTypeArr = Vue.ref([]); |
hg-monitor-web-base/src/main/resources/static/vue3/src/views/ping/pingDetail/index.html
deleted
100644 → 0
1 | -<div class="esData-detail-container"> | ||
2 | - <el-descriptions | ||
3 | - class="" | ||
4 | - title="日志信息" | ||
5 | - :column="2" | ||
6 | - :size="size" | ||
7 | - border | ||
8 | - > | ||
9 | - <el-descriptions-item> | ||
10 | - <template #label> | ||
11 | - <div class="cell-item"> | ||
12 | - 资源名称 | ||
13 | - </div> | ||
14 | - </template> | ||
15 | - {{detail.resName}} | ||
16 | - </el-descriptions-item> | ||
17 | - <el-descriptions-item> | ||
18 | - <template #label> | ||
19 | - <div class="cell-item"> | ||
20 | - IP地址 | ||
21 | - </div> | ||
22 | - </template> | ||
23 | - {{detail.host}} | ||
24 | - </el-descriptions-item> | ||
25 | - <el-descriptions-item> | ||
26 | - <template #label> | ||
27 | - <div class="cell-item"> | ||
28 | - 资源类型 | ||
29 | - </div> | ||
30 | - </template> | ||
31 | - {{detail.resTypeName}} | ||
32 | - </el-descriptions-item> | ||
33 | - <el-descriptions-item> | ||
34 | - <template #label> | ||
35 | - <div class="cell-item"> | ||
36 | - 日志来源 | ||
37 | - </div> | ||
38 | - </template> | ||
39 | - {{detail.type}} | ||
40 | - </el-descriptions-item> | ||
41 | - <el-descriptions-item> | ||
42 | - <template #label> | ||
43 | - <div class="cell-item"> | ||
44 | - 日志类型 | ||
45 | - </div> | ||
46 | - </template> | ||
47 | - {{detail.program}} | ||
48 | - </el-descriptions-item> | ||
49 | - <el-descriptions-item> | ||
50 | - <template #label> | ||
51 | - <div class="cell-item"> | ||
52 | - 采集时间 | ||
53 | - </div> | ||
54 | - </template> | ||
55 | - {{detail.dbTimeStr}} | ||
56 | - </el-descriptions-item> | ||
57 | - <el-descriptions-item> | ||
58 | - <template #label> | ||
59 | - <div class="cell-item"> | ||
60 | - 日志时间 | ||
61 | - </div> | ||
62 | - </template> | ||
63 | - {{detail.logDate}} | ||
64 | - </el-descriptions-item> | ||
65 | - </el-descriptions> | ||
66 | - <div class="info-title"> | ||
67 | - <span style="font-weight:bold">日志内容</span> | ||
68 | - </div> | ||
69 | - <div class="esData-detail-info-content" v-html="detail.message"> | ||
70 | - </div> | ||
71 | -</div> |
hg-monitor-web-base/src/main/resources/static/vue3/src/views/ping/pingDetail/index.js
deleted
100644 → 0
1 | -export default { | ||
2 | - name: 'esDataDetail', | ||
3 | - template: '', | ||
4 | - components: { | ||
5 | - | ||
6 | - }, | ||
7 | - props: { | ||
8 | - detail:{ | ||
9 | - type:Object, | ||
10 | - default: {} | ||
11 | - } | ||
12 | - }, | ||
13 | - setup(props, {attrs, slots, emit}) { | ||
14 | - const {proxy} = Vue.getCurrentInstance(); | ||
15 | - | ||
16 | - // 挂载完 | ||
17 | - Vue.onMounted(() => { | ||
18 | - }) | ||
19 | - | ||
20 | - | ||
21 | - return { | ||
22 | - | ||
23 | - } | ||
24 | - } | ||
25 | - | ||
26 | -} |
-
Please register or login to post a comment