-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAllButton.vue
More file actions
63 lines (60 loc) · 1.22 KB
/
Copy pathAllButton.vue
File metadata and controls
63 lines (60 loc) · 1.22 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
57
58
59
60
61
62
63
<template>
<div>
<el-upload
class="upload-demo"
action="https://jsonplaceholder.typicode.com/posts/"
:on-change="handleChange"
:file-list="fileList"
>
<div class="updata">
<el-button type="primary">上传<i class="el-icon-upload el-icon--right"></i></el-button>
</div>
</el-upload>
<div class="search">
<el-button type="primary" icon="el-icon-search" name="first" @click="querySort">修改</el-button>
</div>
<div class="file">
<el-button type="primary" icon="el-icon-message" name="second" @click="file">文件</el-button>
</div>
</div>
</template>
<script>
export default {
data() {
return {
fileList: [],
}
},
methods: {
handleChange(file, fileList) {
this.fileList = fileList.slice(-3)
},
querySort() {
this.$router.push({ path: '/MyUpdate/' })
},
file() {
this.$router.push({ path: '/ShowData/' })
},
},
}
</script>
<style>
.button {
width: 80px;
height: 500px;
border-color: black;
}
.updata {
margin-left: -700px;
margin-top: 150px;
}
.search {
position: relative;
margin-left: -700px;
margin-top: 40px;
}
.file {
margin-top: 35px;
margin-left: -700px;
}
</style>