|
@ -4,7 +4,14 @@ |
|
|
<div class="resi-row-btn"> |
|
|
<div class="resi-row-btn"> |
|
|
<el-form :inline="true" :model="form" class="demo-form-inline"> |
|
|
<el-form :inline="true" :model="form" class="demo-form-inline"> |
|
|
<el-form-item label="需求分类"> |
|
|
<el-form-item label="需求分类"> |
|
|
<el-input v-model="form.categoryName" placeholder="需求分类" clearable=""></el-input> |
|
|
<el-select v-model="form.firstCategoryCode" filterable placeholder="请选择" clearable> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in demandOptions" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value"> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" @click="handleSearch">查询</el-button> |
|
|
<el-button type="primary" @click="handleSearch">查询</el-button> |
|
@ -128,7 +135,6 @@ export default { |
|
|
currentPage: 1, |
|
|
currentPage: 1, |
|
|
pageSize: 20, |
|
|
pageSize: 20, |
|
|
total: null, |
|
|
total: null, |
|
|
conditions: [], |
|
|
|
|
|
tableData: [], |
|
|
tableData: [], |
|
|
addLevel: '1', |
|
|
addLevel: '1', |
|
|
addType: 'add', |
|
|
addType: 'add', |
|
@ -142,6 +148,7 @@ export default { |
|
|
value: 2 |
|
|
value: 2 |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
demandOptions: [], |
|
|
tableHeader: [ |
|
|
tableHeader: [ |
|
|
{ |
|
|
{ |
|
|
label: '分类名称', |
|
|
label: '分类名称', |
|
@ -162,6 +169,7 @@ export default { |
|
|
], |
|
|
], |
|
|
customerId: '', |
|
|
customerId: '', |
|
|
form: { |
|
|
form: { |
|
|
|
|
|
firstCategoryCode: '', |
|
|
categoryName: '', |
|
|
categoryName: '', |
|
|
awardPoint: '', |
|
|
awardPoint: '', |
|
|
usableFlag: false |
|
|
usableFlag: false |
|
@ -174,6 +182,7 @@ export default { |
|
|
async created() { |
|
|
async created() { |
|
|
this.customerId = localStorage.getItem('customerId') |
|
|
this.customerId = localStorage.getItem('customerId') |
|
|
this.getTableData() |
|
|
this.getTableData() |
|
|
|
|
|
this.getOptions() |
|
|
this.pageLoading = true |
|
|
this.pageLoading = true |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -201,7 +210,6 @@ export default { |
|
|
handleSearch(val) { |
|
|
handleSearch(val) { |
|
|
console.log('searchhh--', val) |
|
|
console.log('searchhh--', val) |
|
|
this.currentPage = 1 |
|
|
this.currentPage = 1 |
|
|
this.conditions = val |
|
|
|
|
|
this.getTableData() |
|
|
this.getTableData() |
|
|
}, |
|
|
}, |
|
|
handleAdd(type, addType, row) { |
|
|
handleAdd(type, addType, row) { |
|
@ -363,6 +371,23 @@ export default { |
|
|
return this.$message.error('网络错误') |
|
|
return this.$message.error('网络错误') |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
async getOptions() { |
|
|
|
|
|
const params = { |
|
|
|
|
|
parentCategoryCode: 0 |
|
|
|
|
|
} |
|
|
|
|
|
this.$http |
|
|
|
|
|
.post('/heart/icresidemanddict/subcodelist', params) |
|
|
|
|
|
.then(({ data: res }) => { |
|
|
|
|
|
if (res.code !== 0) { |
|
|
|
|
|
return this.$message.error(res.msg) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.demandOptions = res.data |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
return this.$message.error('网络错误') |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
async getTableData() { |
|
|
async getTableData() { |
|
|
this.tableLoading = true |
|
|
this.tableLoading = true |
|
|
let params = { |
|
|
let params = { |
|
@ -370,7 +395,7 @@ export default { |
|
|
customerId: localStorage.getItem('customerId'), |
|
|
customerId: localStorage.getItem('customerId'), |
|
|
pageNo: this.currentPage, |
|
|
pageNo: this.currentPage, |
|
|
pageSize: this.pageSize, |
|
|
pageSize: this.pageSize, |
|
|
firstCategoryCode: '' |
|
|
firstCategoryCode: this.form.firstCategoryCode |
|
|
} |
|
|
} |
|
|
await this.$http |
|
|
await this.$http |
|
|
.post('/heart/icresidemanddict/pagelist', params) |
|
|
.post('/heart/icresidemanddict/pagelist', params) |
|
|