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
<template>
<div>
<a-button type="primary" icon="plus" style="float: right" @click="downloadExcel">新增</a-button>
<a-button type="primary" icon="download" style="float: right" @click="downloadExcel">导出Excel</a-button>
<a-button type="primary" class="search_btn" icon="search" @click="searchList">搜索</a-button>
<a-button style="margin-left: 10px" icon="close" @click="restSearchForm">清空</a-button>
</div>
</template>
<script>
export default {
name: "commonCode",
methods: {
searchList() {
//确认提示框
this.$confirm({
title: 'Do you Want to delete these items?',
content: "",
onOk() {
console.log('OK');
},
onCancel() {
console.log('Cancel');
},
class: 'test',
});
this.$message.success('This is a success message');
this.$message.error('This is an error message');
this.$message.warning('This is a warning message');
},
downloadExcel() {
},
restSearchForm() {
}
}
}
</script>
<style scoped>
</style>