|
@@ -0,0 +1,90 @@
|
|
1
|
+
|
|
2
|
+<template>
|
|
3
|
+ <div class="root">
|
|
4
|
+ <el-form :inline="true" :model="listQuery" class="form-listQuery">
|
|
5
|
+ <el-form-item>
|
|
6
|
+ <el-button type="primary">下载模板</el-button>
|
|
7
|
+ <el-button type="warning">上传文件</el-button>
|
|
8
|
+ <el-button type="danger">上传服务器</el-button>
|
|
9
|
+ </el-form-item>
|
|
10
|
+ </el-form>
|
|
11
|
+ <el-table
|
|
12
|
+ ref="multipleTable"
|
|
13
|
+ :data="tableData3"
|
|
14
|
+ border
|
|
15
|
+ tooltip-effect="dark"
|
|
16
|
+ style="width: 100%; margin-top: 20px;"
|
|
17
|
+ @selection-change="handleSelectionChange">
|
|
18
|
+ <el-table-column type="selection" width="55"/>
|
|
19
|
+ <el-table-column label="日期" width="120">
|
|
20
|
+ <template slot-scope="scope">{{ scope.row.date }}</template>
|
|
21
|
+ </el-table-column>
|
|
22
|
+ <el-table-column prop="name" label="姓名" width="120" />
|
|
23
|
+ <el-table-column prop="address" label="地址" show-overflow-tooltip />
|
|
24
|
+ </el-table>
|
|
25
|
+ <div class="block">
|
|
26
|
+ <el-pagination
|
|
27
|
+ :current-page="currentPage4"
|
|
28
|
+ :page-sizes="[100, 200, 300, 400]"
|
|
29
|
+ :page-size="100"
|
|
30
|
+ :total="400"
|
|
31
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
32
|
+ @size-change="handleSizeChange"
|
|
33
|
+ @current-change="handleCurrentChange"/>
|
|
34
|
+ </div>
|
|
35
|
+ </div>
|
|
36
|
+</template>
|
|
37
|
+
|
|
38
|
+<script>
|
|
39
|
+export default {
|
|
40
|
+ data() {
|
|
41
|
+ return {
|
|
42
|
+ listQuery: {},
|
|
43
|
+ tableData3: [{
|
|
44
|
+ date: '2016-05-03',
|
|
45
|
+ name: '王小虎',
|
|
46
|
+ address: '上海市普陀区金沙江路 1518 弄'
|
|
47
|
+ }, {
|
|
48
|
+ date: '2016-05-02',
|
|
49
|
+ name: '王小虎',
|
|
50
|
+ address: '上海市普陀区金沙江路 1518 弄'
|
|
51
|
+ }],
|
|
52
|
+ currentPage4: 4
|
|
53
|
+ }
|
|
54
|
+ },
|
|
55
|
+ methods: {
|
|
56
|
+ handleSizeChange(val) {
|
|
57
|
+ console.log(`每页 ${val} 条`)
|
|
58
|
+ },
|
|
59
|
+ handleCurrentChange(val) {
|
|
60
|
+ console.log(`当前页: ${val}`)
|
|
61
|
+ },
|
|
62
|
+ dialogBatchImport(){
|
|
63
|
+ this.$router.push({ name: 'batch-import'})
|
|
64
|
+ }
|
|
65
|
+ }
|
|
66
|
+}
|
|
67
|
+</script>
|
|
68
|
+
|
|
69
|
+<style scoped>
|
|
70
|
+.root{
|
|
71
|
+ display: flex;
|
|
72
|
+ flex-flow: column;
|
|
73
|
+}
|
|
74
|
+.form-listQuery{
|
|
75
|
+ margin-top: 20px;
|
|
76
|
+ margin-left: 30px;
|
|
77
|
+}
|
|
78
|
+.operation{
|
|
79
|
+ display: flex;
|
|
80
|
+ justify-content: space-between;
|
|
81
|
+ margin-left: 20px;
|
|
82
|
+ margin-right: 20px;
|
|
83
|
+}
|
|
84
|
+.block{
|
|
85
|
+ display: flex;
|
|
86
|
+ justify-content: flex-end;
|
|
87
|
+ margin-top: 10px;
|
|
88
|
+}
|
|
89
|
+</style>
|
|
90
|
+
|