This commit is contained in:
parent
2056413f58
commit
56477f87b5
|
|
@ -55,8 +55,8 @@
|
||||||
<el-table-column label="到期时间" prop="expTime"></el-table-column>
|
<el-table-column label="到期时间" prop="expTime"></el-table-column>
|
||||||
<el-table-column label="状态" prop="status">
|
<el-table-column label="状态" prop="status">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<el-tag :type="statusList.find(item => item.value == scope.row.status).type">{{
|
<el-tag :type="statusList.find(item => item.value === scope.row.status).type">{{
|
||||||
statusList.find(item => item.value == scope.row.status).label }}</el-tag>
|
statusList.find(item => item.value === scope.row.status).label }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="120">
|
<el-table-column label="操作" width="120">
|
||||||
|
|
@ -93,6 +93,11 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
statusList: [
|
statusList: [
|
||||||
|
{
|
||||||
|
value: '',
|
||||||
|
label: '全部',
|
||||||
|
type: 'warning'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
label: '已取完',
|
label: '已取完',
|
||||||
|
|
@ -102,12 +107,17 @@ export default {
|
||||||
value: 1,
|
value: 1,
|
||||||
label: '存储中',
|
label: '存储中',
|
||||||
type: 'primary'
|
type: 'primary'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 2,
|
||||||
|
label: '已过期',
|
||||||
|
type: 'info'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
query: {
|
query: {
|
||||||
name: "",
|
name: "",
|
||||||
telphone: "",
|
telphone: "",
|
||||||
status: 1
|
status: ''
|
||||||
},
|
},
|
||||||
tableData: {
|
tableData: {
|
||||||
data: [],
|
data: [],
|
||||||
|
|
@ -127,7 +137,7 @@ export default {
|
||||||
this.tableData.page = 0
|
this.tableData.page = 0
|
||||||
this.query.name = ''
|
this.query.name = ''
|
||||||
this.query.telphone = ''
|
this.query.telphone = ''
|
||||||
this.query.status = 1
|
this.query.status = ''
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
// 分页回调
|
// 分页回调
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue