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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
| <template>
| <div class="databaseMonitoring_box">
| <My-bread :list="['运维管理', '数据库监控']"></My-bread>
| <el-divider />
| <div class="table_box">
| <p class="title_box">服务列表</p>
| <el-table
| ref="multipleTable"
| stripe
| :data="tableData"
| tooltip-effect="dark"
| style="width: 100%"
| @selection-change="handleSelectionChange"
| >
| <el-table-column type="selection" width="55"> </el-table-column>
| <el-table-column prop="name" label="服务名称"> </el-table-column>
| <el-table-column prop="name" label="服务目录"> </el-table-column>
| <el-table-column prop="address" label="访问次数" show-overflow-tooltip>
| </el-table-column>
| <el-table-column prop="address" label="创建时间" show-overflow-tooltip>
| </el-table-column>
| <el-table-column prop="name" fixed="right" label="运行状态" width="280">
| </el-table-column>
| </el-table>
| <div style="margin-top: 40px" class="pagination_box">
| <el-pagination background layout="prev, pager, next" :total="10" />
| </div>
| </div>
| <div class="chart_box">
| <iframe
| src="https://element.eleme.cn/#/zh-CN/component/pagination"
| frameborder="0"
| height="100%"
| style="width: 100%"
| ></iframe>
| </div>
| </div>
| </template>
|
| <script>
| import MyBread from "../../components/MyBread.vue";
| export default {
| //import引入的组件需要注入到对象中才能使用
| components: {
| MyBread,
| },
| data() {
| //这里存放数据
| return {
| currentPage4: 4,
| tableData: [
| {
| date: "2016-05-03",
| name: "王小虎",
| address: "上海市普陀区金沙江路 1518 弄",
| },
| {
| date: "2016-05-02",
| name: "王小虎",
| address: "上海市普陀区金沙江路 1518 弄",
| },
| {
| date: "2016-05-04",
| name: "王小虎",
| address: "上海市普陀区金沙江路 1518 弄",
| },
| {
| date: "2016-05-01",
| name: "王小虎",
| address: "上海市普陀区金沙江路 1518 弄",
| },
| ],
| };
| },
| //方法集合
| methods: {
| handleSelectionChange() {},
| },
| created() {},
| mounted() {},
| };
| </script>
| <style lang="less" scoped>
| //@import url(); 引入公共css类
| .databaseMonitoring_box {
| background: rgb(240, 242, 245);
| border-radius: 10px;
| height: 100%;
| padding: 10px;
| box-sizing: border-box;
| .table_box {
| height: 40%;
| padding: 10px;
| background: #fff;
| border-radius: 5px;
| border: 1px solid rgb(202, 201, 204);
| overflow: auto;
| }
| .title_box {
| font-weight: 800;
| }
| .pagination_box {
| text-align: center;
| }
| .chart_box {
| height: calc(60% - 100px);
| margin-top: 20px;
| display: flex;
| justify-content: space-between;
| background: #fff;
| border-radius: 5px;
| padding: 10px;
| box-sizing: border-box;
| border: 1px solid rgb(202, 201, 204);
| }
| }
| </style>
|
|