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