婚丧嫁娶
This commit is contained in:
@@ -27,12 +27,12 @@
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input
|
||||
v-model="search.title"
|
||||
v-model="search.name"
|
||||
size="small"
|
||||
placeholder="请输入名称或电话"
|
||||
placeholder="请输入姓名"
|
||||
clearable
|
||||
@keyup.enter.native="search.current = 1, getList()"
|
||||
@clear="search.current = 1, search.title = '', getList()"
|
||||
@clear="search.current = 1, search.name = '', getList()"
|
||||
suffix-icon="iconfont iconSearch">
|
||||
</el-input>
|
||||
</template>
|
||||
@@ -73,18 +73,16 @@
|
||||
return {
|
||||
search: {
|
||||
current: 1,
|
||||
status: '',
|
||||
size: 10,
|
||||
title: ''
|
||||
name: ''
|
||||
},
|
||||
info: {},
|
||||
colConfigs: [
|
||||
{ type: 'selection' },
|
||||
{ prop: 'name', label: '事主姓名' },
|
||||
{ prop: 'createUserName', align: 'center', label: '联系电话' },
|
||||
{ prop: 'description', align: 'center', label: '类型' },
|
||||
{ prop: 'status', align: 'center', label: '状态', formart: v => v === '1' ? '已开启' : '未开启' },
|
||||
{ prop: 'description', align: 'center', label: '人员性质' },
|
||||
{ prop: 'phone', align: 'center', label: '联系电话' },
|
||||
{ prop: 'type', align: 'center', label: '类型', formart: v => this.dict.getLabel('marriageType', v) },
|
||||
{ prop: 'personType', align: 'center', label: '人员性质', formart: v => this.dict.getLabel('marriagePersonType', v) },
|
||||
{ prop: 'createTime', align: 'center', label: '发布时间' }
|
||||
],
|
||||
ids: [],
|
||||
@@ -95,8 +93,9 @@
|
||||
},
|
||||
|
||||
created () {
|
||||
this.getList()
|
||||
this.getTotalInfo()
|
||||
this.dict.load(['marriageType', 'marriagePersonType']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
|
||||
mounted () {
|
||||
@@ -120,6 +119,8 @@
|
||||
}).catch(() => {
|
||||
this.loading = false
|
||||
})
|
||||
|
||||
this.getTotalInfo()
|
||||
},
|
||||
|
||||
getTotalInfo () {
|
||||
|
||||
Reference in New Issue
Block a user