|
|
@ -40,15 +40,35 @@ |
|
|
|
}} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="所属组织" min-width="180" prop="orgName"/> |
|
|
|
<el-table-column label="姓名/名称" min-width="120" prop="name"/> |
|
|
|
<el-table-column label="联系电话" min-width="120" prop="mobile"> |
|
|
|
<el-table-column v-if="peopleType !== '4' && peopleType !== '5'" label="所属组织" min-width="180" |
|
|
|
prop="orgName"/> |
|
|
|
<el-table-column v-if="peopleType !== '4' && peopleType !== '5'" label="姓名/名称" min-width="120" |
|
|
|
prop="name"/> |
|
|
|
<el-table-column v-if="peopleType !== '4' && peopleType !== '5'" label="联系电话" min-width="120" |
|
|
|
prop="mobile"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ $sensitive(scope.row.mobile, 3, 7) }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column label="状态" prop="" width="120"/>--> |
|
|
|
<!-- <el-table-column label="距离" prop="" width="120"/>--> |
|
|
|
|
|
|
|
<el-table-column v-if="peopleType === '4'" label="所属组织" min-width="180" prop="agencyName"/> |
|
|
|
<el-table-column v-if="peopleType === '4'" label="负责人" min-width="120" prop="principalName"/> |
|
|
|
<el-table-column v-if="peopleType === '4'" label="联系电话" min-width="120" prop="principalPhone"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ $sensitive(scope.row.principalPhone, 3, 7) }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column v-if="peopleType === '5'" label="所属组织" min-width="180" prop="agencyName"/> |
|
|
|
<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) }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" prop="op" width="250"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<CallPhone :mobile="scope.row.mobile" text="拨打电话"/> |
|
|
@ -63,7 +83,9 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<ResourceInfo ref="ResourceInfo"/> |
|
|
|
<MapResourceInfo ref="MapResourceInfo" :currentLevelData="currentLevelData"/> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -71,10 +93,11 @@ |
|
|
|
import Title from "@/views/dataBoard/satisfactionEval/components/Title"; |
|
|
|
import CallPhone from "@/views/dataBoard/cpts/CallPhone"; |
|
|
|
import ResourceInfo from "@/views/dataBoard/overview/components/ResourceInfo"; |
|
|
|
import MapResourceInfo from "@/views/dataBoard/overview/components/MapResourceInfo.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "ResourceScheduling", |
|
|
|
components: {Title, CallPhone, ResourceInfo}, |
|
|
|
components: {Title, CallPhone, ResourceInfo, MapResourceInfo}, |
|
|
|
props: { |
|
|
|
currentLevelData: { |
|
|
|
type: Object, |
|
|
@ -87,29 +110,34 @@ export default { |
|
|
|
loading: false, |
|
|
|
dialogVisible: false, |
|
|
|
list: [], |
|
|
|
peopleType: "staffAgency", |
|
|
|
peopleType: "staffGrid", |
|
|
|
data: [ |
|
|
|
{ |
|
|
|
label: '人资源', |
|
|
|
children: [{ |
|
|
|
label: '社区工作者', |
|
|
|
value: 'staffAgency' |
|
|
|
}, { |
|
|
|
label: '网格员', |
|
|
|
value: 'staffGrid' |
|
|
|
}, { |
|
|
|
label: '楼组/单元长', |
|
|
|
value: 'chief' |
|
|
|
}, { |
|
|
|
label: '公益岗', |
|
|
|
value: 'publicWelfareNum' |
|
|
|
}, { |
|
|
|
label: '单位/组织', |
|
|
|
value: 'staffDepartment' |
|
|
|
}, { |
|
|
|
label: '志愿者', |
|
|
|
value: 'volunteer' |
|
|
|
}] |
|
|
|
label: "网格员", |
|
|
|
value: "staffGrid", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "公益岗", |
|
|
|
value: "publicWelfareNum", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "志愿者", |
|
|
|
value: "volunteer", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "社区自组织", |
|
|
|
value: "4", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "联建单位", |
|
|
|
value: "5", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "15分钟生活圈商家", |
|
|
|
value: "6", |
|
|
|
},] |
|
|
|
}, { |
|
|
|
label: '物资源', |
|
|
|
children: [] |
|
|
@ -143,15 +171,52 @@ export default { |
|
|
|
this.list = data.personnelInfoVOList; |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleViews() { |
|
|
|
this.$refs.ResourceInfo.open() |
|
|
|
getZzzList() { |
|
|
|
this.loading = true; |
|
|
|
this.$http.post('/actual/base/iccommunityselforganization/communityselforganizationlist', { |
|
|
|
agencyId: this.currentLevelData.orgId, |
|
|
|
...this.queryParams |
|
|
|
}).then(res => { |
|
|
|
this.loading = false; |
|
|
|
this.list = res.data.data.list; |
|
|
|
this.total = res.data.data.total; |
|
|
|
}) |
|
|
|
}, |
|
|
|
getLjdwList() { |
|
|
|
this.loading = true; |
|
|
|
this.$http.post('/actual/base/icpartyunit/list', { |
|
|
|
agencyId: this.currentLevelData.orgId, |
|
|
|
...this.queryParams |
|
|
|
}).then(res => { |
|
|
|
this.loading = false; |
|
|
|
this.list = res.data.data.list; |
|
|
|
this.total = res.data.data.total; |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleViews(data) { |
|
|
|
// 1志愿者、2联建单位、3社区自组织、4网格员、5公益岗 |
|
|
|
let type = this.peopleType === 'volunteer' ? 1 : |
|
|
|
this.peopleType === '5' ? 2 : |
|
|
|
this.peopleType === '4' ? 3 : |
|
|
|
this.peopleType === 'staffGrid' ? 4 : |
|
|
|
this.peopleType === 'publicWelfareNum' ? 5 : '' |
|
|
|
this.$refs.MapResourceInfo.open(type === 3 ? data.agencyId : data.id, type) |
|
|
|
}, |
|
|
|
/* handleViews() { |
|
|
|
this.$refs.ResourceInfo.open() |
|
|
|
},*/ |
|
|
|
handleNodeClick(data) { |
|
|
|
console.log(data.value) |
|
|
|
if (data.value) { |
|
|
|
this.peopleType = data.value; |
|
|
|
console.log(data); |
|
|
|
this.getList() |
|
|
|
if (this.peopleType === '4') { |
|
|
|
this.getZzzList(); |
|
|
|
} else if (this.peopleType === '5') { |
|
|
|
this.getLjdwList(); |
|
|
|
} else { |
|
|
|
this.getList() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
handleHandle(data) { |
|
|
@ -170,14 +235,14 @@ export default { |
|
|
|
.handle { |
|
|
|
font-size: 14px; |
|
|
|
margin-left: 10px; |
|
|
|
color: #9A69EC; |
|
|
|
cursor: pointer; |
|
|
|
color: #9A69EC; |
|
|
|
} |
|
|
|
|
|
|
|
.view { |
|
|
|
font-size: 14px; |
|
|
|
margin-left: 10px; |
|
|
|
color: #007FF1; |
|
|
|
cursor: pointer; |
|
|
|
color: #007FF1; |
|
|
|
} |
|
|
|
</style> |
|
|
|