|
|
@ -7,8 +7,14 @@ |
|
|
|
<div class="tip_title">{{ tableTitle }}</div> |
|
|
|
<div class="title_line"></div> |
|
|
|
<div class="second-select" style="position:absolute;margin-left:300px;"> |
|
|
|
<el-select v-model="type1"><el-option value="个性需求">个性需求</el-option></el-select> |
|
|
|
<el-select v-model="type2"><el-option value="政府支持">政府支持</el-option></el-select> |
|
|
|
<el-select v-model="type1" @change="getList" :clearable="true"><el-option value="个性需求">个性需求</el-option></el-select> |
|
|
|
|
|
|
|
<el-select v-model="type2" @change="getList" :clearable="true"> |
|
|
|
<el-option value="政府支撑">政府支撑</el-option> |
|
|
|
<el-option value="社会保障">社会保障</el-option> |
|
|
|
<el-option value="社区环境">社区环境</el-option> |
|
|
|
<el-option value="商家支撑">商家支撑</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<cpt-tb |
|
|
@ -57,8 +63,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
type1:"", |
|
|
|
type2:"", |
|
|
|
type1: '', |
|
|
|
type2: '', |
|
|
|
tableTitle: '需求列表', |
|
|
|
searchName: '', |
|
|
|
|
|
|
@ -154,7 +160,7 @@ type2:"", |
|
|
|
{ |
|
|
|
queryParam: { |
|
|
|
org_id, |
|
|
|
type: listType, |
|
|
|
type: this.type2, |
|
|
|
pageNo, |
|
|
|
pageSize |
|
|
|
} |
|
|
@ -168,20 +174,35 @@ type2:"", |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.srcTableData = data; |
|
|
|
console.log('this.srcTableData', this.srcTableData); |
|
|
|
|
|
|
|
// this.total = data.total; |
|
|
|
|
|
|
|
this.list = data.map((item, index) => { |
|
|
|
let a = ''; |
|
|
|
|
|
|
|
if (item.status == '已接单') { |
|
|
|
a = 'green'; |
|
|
|
} else if (item.status == '已完成') { |
|
|
|
a = 'green'; |
|
|
|
} else if (item.status == '待处理') { |
|
|
|
a = 'orange'; |
|
|
|
} |
|
|
|
let obj = { |
|
|
|
name: item.status, |
|
|
|
class: a |
|
|
|
}; |
|
|
|
|
|
|
|
return [ |
|
|
|
index + 1, |
|
|
|
item.need_type ? item.need_type : '--', |
|
|
|
item.content ? item.content : '--', |
|
|
|
item.status ? item.status : '--', |
|
|
|
item.status ? obj : '--', |
|
|
|
// item.status=="已接单"?"<span>已接2单</span>":"<span>已接单2</span>", |
|
|
|
item.date ? item.date : '--', |
|
|
|
{ type: 'operate', list: ['查看'] } |
|
|
|
]; |
|
|
|
}); |
|
|
|
|
|
|
|
console.log('this.list', this.list); |
|
|
|
this.total = this.list.length; |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|