1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
<el-dialog v-dialogDrag style="font-size: 10px;" width='650px'
@close="close"
@opened="createSDNCInit"
:title="$t('SDNCDeviceDialog.controllerManagementDeviceList')"
:visible.sync="dialog_showDemoList">
<el-table
header-row-class-name="table-header"
cell-class-name="table-cell"
ref="singleTable"
:data="serverShowList"
height="250"
highlight-current-row
stripe
tooltip-effect="dark"
>
<el-table-column
prop="deviceName"
:label="$t('SDNCDeviceDialog.deviceName')"
align="center"
:show-overflow-tooltip="true"
width="200"
style="font-size: 10px;">
</el-table-column>
<el-table-column
width="200"
:show-overflow-tooltip="true"
prop="uuid"
align="center"
:label="$t('SDNCDeviceDialog.UUID')">
</el-table-column>
<el-table-column
width="200"
:show-overflow-tooltip="true"
prop="ipAddress"
align="center"
:label="$t('SDNCDeviceDialog.deviceIP')">
</el-table-column>
</el-table>
</el-dialog>
</template>
<script>
import ServerService from "../../../domain/services/ServerService";
export default {
name: "SDNCDeviceDialog",
props: ['command'],
data:function(){
return {
dialog_showDemoList:false,
serverObj: this.command.target,
serverShowList:[],
}
},
methods:{
createSDNCInit:function(){
let _this=this;
ServerService.getDevicesUnderServer(_this.serverObj.serverKey).then(result=>{
_this.serverShowList=Object.values(result);
}).catch(err=>{
});
},
close:function(){
this.command.done();
},
},
mounted() {
this.dialog_showDemoList = true;
},
}
</script>
<style scoped>
</style>