|
|
|
@ -36,7 +36,8 @@ |
|
|
|
<el-table-column label="资源类型" min-width="120" prop="personnelType"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
{{ |
|
|
|
row.personnelType ? data[0].children.filter(item => item.value === row.personnelType)[0].label : '' |
|
|
|
(row.personnelType ? |
|
|
|
data[0].children.filter(item => item.value === row.personnelType)[0].label : '') || peopleTypeLabel |
|
|
|
}} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
@ -65,7 +66,7 @@ |
|
|
|
<el-table-column v-if="peopleType === '5'" label="联系人" min-width="120" prop="contact"/> |
|
|
|
<el-table-column v-if="peopleType === '5'" label="联系电话" min-width="120" prop="contactMobile"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ $sensitive(scope.row.mobile, 3, 7) }} |
|
|
|
{{ $sensitive(scope.row.contactMobile, 3, 7) }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
@ -78,12 +79,20 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<Pagination |
|
|
|
v-if="peopleType === '5' || peopleType === '4'" |
|
|
|
v-show="total > 0" |
|
|
|
:limit.sync="queryParams.pageSize" |
|
|
|
:page.sync="queryParams.pageNo" |
|
|
|
:total="total" |
|
|
|
@pagination="pageChange" |
|
|
|
/> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<ResourceInfo ref="ResourceInfo" @ok="handleHandle" :currentLevelData="currentLevelData"/> |
|
|
|
<ResourceInfo ref="ResourceInfo" :currentLevelData="currentLevelData" @ok="handleHandle"/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -91,10 +100,11 @@ |
|
|
|
import Title from "@/views/dataBoard/satisfactionEval/components/Title"; |
|
|
|
import CallPhone from "@/views/dataBoard/cpts/CallPhone"; |
|
|
|
import ResourceInfo from "@/views/dataBoard/overview/components/ResourceInfo.vue"; |
|
|
|
import Pagination from "@/views/dataBoard/satisfactionEval/components/Pagination"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "ResourceScheduling", |
|
|
|
components: {Title, CallPhone, ResourceInfo}, |
|
|
|
components: {Title, CallPhone, ResourceInfo, Pagination}, |
|
|
|
props: { |
|
|
|
currentLevelData: { |
|
|
|
type: Object, |
|
|
|
@ -105,8 +115,13 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
loading: false, |
|
|
|
total: 0, |
|
|
|
dialogVisible: false, |
|
|
|
list: [], |
|
|
|
queryParams: { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 20 |
|
|
|
}, |
|
|
|
peopleType: "staffGrid", |
|
|
|
data: [ |
|
|
|
{ |
|
|
|
@ -145,7 +160,8 @@ export default { |
|
|
|
defaultProps: { |
|
|
|
children: 'children', |
|
|
|
label: 'label' |
|
|
|
} |
|
|
|
}, |
|
|
|
peopleTypeLabel: '' |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -190,6 +206,17 @@ export default { |
|
|
|
this.total = res.data.data.total; |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
pageChange() { |
|
|
|
this.list = [] |
|
|
|
if (this.peopleType === '4') { |
|
|
|
this.getZzzList(); |
|
|
|
} else if (this.peopleType === '5') { |
|
|
|
this.getLjdwList(); |
|
|
|
} else { |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
}, |
|
|
|
handleViews(data) { |
|
|
|
// 1志愿者、2联建单位、3社区自组织、4网格员、5公益岗 |
|
|
|
let type = this.peopleType === 'volunteer' ? 1 : |
|
|
|
@ -197,7 +224,7 @@ export default { |
|
|
|
this.peopleType === '4' ? 3 : |
|
|
|
this.peopleType === 'staffGrid' ? 4 : |
|
|
|
this.peopleType === 'publicWelfareNum' ? 5 : '' |
|
|
|
this.$refs.ResourceInfo.open(type === 3 ? data.agencyId : data.id, type,data) |
|
|
|
this.$refs.ResourceInfo.open(type === 3 ? data.agencyId : data.id, type, data) |
|
|
|
}, |
|
|
|
/* handleViews() { |
|
|
|
this.$refs.ResourceInfo.open() |
|
|
|
@ -205,6 +232,8 @@ export default { |
|
|
|
handleNodeClick(data) { |
|
|
|
console.log(data.value) |
|
|
|
if (data.value) { |
|
|
|
this.list = [] |
|
|
|
this.peopleTypeLabel = data.label |
|
|
|
this.peopleType = data.value; |
|
|
|
console.log(data); |
|
|
|
if (this.peopleType === '4') { |
|
|
|
|