This commit is contained in:
shijingjing
2022-05-12 10:30:04 +08:00
parent 8bc6655ec7
commit 208b440c86

View File

@@ -6,7 +6,7 @@
<template #content> <template #content>
<ai-search-bar> <ai-search-bar>
<template #left> <template #left>
<ai-select v-model="search.status" placeholder="状态" :selectList="dict.getDict('financingDemandStatus')" <ai-select v-model="search.status" placeholder="状态" :selectList="dict.getDict('financingDemandSearchStatus')"
@change="page.current=1,getTableData()"/> @change="page.current=1,getTableData()"/>
<ai-search label="申请时间"> <ai-search label="申请时间">
<el-date-picker size="small" placeholder="请选择" type="daterange" <el-date-picker size="small" placeholder="请选择" type="daterange"
@@ -29,7 +29,7 @@
@getList="getTableData" :col-configs="colConfigs" :dict="dict"> @getList="getTableData" :col-configs="colConfigs" :dict="dict">
<el-table-column slot="options" label="状态" fixed="right" width="100" align="center"> <el-table-column slot="options" label="状态" fixed="right" width="100" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span :class="`status${row.status}`">{{ dict.getLabel('financingDemandStatus', row.status) }}</span> <span :class="`status${row.status}`">{{ dict.getLabel('financingDemandSearchStatus', row.status) }}</span>
</template> </template>
</el-table-column> </el-table-column>
</ai-table> </ai-table>
@@ -54,7 +54,7 @@ export default {
}, },
data() { data() {
return { return {
search: {status: "1"}, search: {status: ""},
page: {current: 1, size: 10, total: 0}, page: {current: 1, size: 10, total: 0},
tableData: [], tableData: [],
colConfigs: [ colConfigs: [
@@ -74,7 +74,7 @@ export default {
}, },
methods: { methods: {
getTableData() { getTableData() {
let status = this.search.status || 999 let status = this.search.status || 888
this.instance.post("/appfinancingdemand/list", null, { this.instance.post("/appfinancingdemand/list", null, {
params: {...this.page, ...this.search, status} params: {...this.page, ...this.search, status}
}).then(res => { }).then(res => {
@@ -92,7 +92,7 @@ export default {
} }
}, },
created() { created() {
this.dict.load('financingDemandStatus') this.dict.load('financingDemandSearchStatus')
this.search.areaId = this.user.info.areaId this.search.areaId = this.user.info.areaId
this.getTableData() this.getTableData()
} }