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
<template>
<el-dialog center :title="title" :visible.sync="visible" :width="width">
<div>
<div v-if="columns">
<el-table-self
ref="table"
:table-data="tableData"
:columns="columns"
:list-loading="listLoading"
:max-height="maxHeight"
:current-page="pageIndex"
:total-count="total"
:page-sizes="pageSizes"
:page-size="pageSize"
@pageSizeChange="handleSizeChange"
@currentPageChange="handleCurrentChange"
/>
</div>
</div>
</el-dialog>
</template>
<script>
import elTableSelf from "@/components/TabComponents/index"
import paginationMixin from "@/components/TabComponents/mixin"
export default {
name: "dialogTable",
components: {
elTableSelf,
},
mixins: [paginationMixin],
data() {
return {
visible: false,
loading: false,
listLoading: false,
}
},
props: {
columns: Array,
tableData: Array,
maxHeight: Number,
width: {
type: String,
default: "365px",
},
title: {
type: String,
default: "系统提示",
},
},
methods: {
open() {
this.visible = true
},
close() {
this.visible = false
},
},
}
</script>
<style lang="scss">
.headerClass {
th {
background-color: #eef5fd !important;
color: #586276;
font-weight: normal;
}
}
.img-avatar {
border-radius: 50%;
border: 0;
cursor: pointer;
}
.describe {
margin-top: 10px;
.des {
text-align: center;
color: red;
}
.el-form {
margin-top: 10px;
.el-form-item__label {
text-align: left;
padding: 0;
}
}
}
</style>