TerminalInfo.vue
1.67 KB
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
<template>
<div class="terminal-info">
<el-table v-loading="loading" :data="terminalList" style="width: 100%">
<el-table-column label="终端名称" prop="terminalName" align="center" />
<el-table-column label="终端类型" align="center" prop="terminalType">
<template slot-scope="scope">
<dict-tag :options="dict.type.ddic_terminal_type" :value="scope.row.terminalType" />
</template>
</el-table-column>
<el-table-column label="网络类型" align="center" prop="networkType">
<template slot-scope="scope">
<dict-tag :options="dict.type.ddic_network_type" :value="scope.row.networkType" />
</template>
</el-table-column>
<el-table-column label="IP地址" prop="ip" align="center" />
<el-table-column label="MAC地址" prop="mac" align="center" />
<el-table-column label="序列号" prop="sn" align="center" />
<el-table-column label="备注" prop="remark" align="center" :show-overflow-tooltip="true" />
</el-table>
</div>
</template>
<script>
import { getTerminalInfo } from "@/api/resource/person";
export default {
dicts: ['ddic_terminal_type', 'ddic_network_type'],
name: "TerminalInfo",
props: {
personId: {
type: String,
required: true
}
},
data() {
return {
loading: false,
terminalList: []
};
},
created() {
this.getTerminalInfo();
},
methods: {
getTerminalInfo() {
this.loading = true;
getTerminalInfo(this.personId).then(response => {
this.terminalList = response.data;
this.loading = false;
}).catch(() => {
this.loading = false;
});
}
}
};
</script>