|
|
|
@ -1,4 +1,5 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="dialog-small"> |
|
|
|
|
|
|
|
<el-dialog |
|
|
|
@ -6,7 +7,6 @@ |
|
|
|
:modal="true" |
|
|
|
:modal-append-to-body="false" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
class="dissatisfied-detail" |
|
|
|
title="" |
|
|
|
width="416px" |
|
|
|
> |
|
|
|
@ -16,34 +16,109 @@ |
|
|
|
<div class="content"> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">资源类型:</div> |
|
|
|
<div class="value">网格员</div> |
|
|
|
<div class="value">{{ typeList[type] }}</div> |
|
|
|
</div> |
|
|
|
<template v-if="type === 2"> |
|
|
|
|
|
|
|
<div class="items"> |
|
|
|
<div class="label">单位名称:</div> |
|
|
|
<div class="value">{{ detail.unitName }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">分类:</div> |
|
|
|
<div class="value">{{ detail.typeName }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">服务事项:</div> |
|
|
|
<div class="value">{{ detail.serviceMatterNameList ? detail.serviceMatterNameList.join('、') : '' }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">联系人:</div> |
|
|
|
<div class="value">{{ detail.contact }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">联系电话:</div> |
|
|
|
<div class="value">133****8989</div> |
|
|
|
<div class="value">{{ detail.contactMobile }}</div> |
|
|
|
<CallPhone icon="el-icon-phone"/> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">地理位置:</div> |
|
|
|
<div class="value">{{ detail.address }}</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template v-if="type === 3"> |
|
|
|
|
|
|
|
<div class="items"> |
|
|
|
<div class="label">组织名称:</div> |
|
|
|
<div class="value">{{ detail.organizationName }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">分类:</div> |
|
|
|
<div class="value">{{ detail.categoryName }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">服务事项:</div> |
|
|
|
<div class="value">{{ detail.serviceItem }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">联系人:</div> |
|
|
|
<div class="value">王军</div> |
|
|
|
<div class="value">{{ detail.principalName }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">联系电话:</div> |
|
|
|
<div class="value">{{ detail.principalPhone }}</div> |
|
|
|
<CallPhone icon="el-icon-phone"/> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">地理位置:</div> |
|
|
|
<div class="value">{{ detail.address }}</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-if="type === 4 || type === 5 || type === 1"> |
|
|
|
|
|
|
|
<div class="items"> |
|
|
|
<div class="label">姓名:</div> |
|
|
|
<div class="value">{{ detail.name }}</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="items"> |
|
|
|
<div class="label">联系电话:</div> |
|
|
|
<div class="value">{{ detail.mobile }}</div> |
|
|
|
<CallPhone icon="el-icon-phone"/> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="items"> |
|
|
|
<div class="label">年龄:</div> |
|
|
|
<div class="value">{{ detail.birthday?getAgeByDateOfBirth(detail.birthday):'未知' }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">学历:</div> |
|
|
|
<div class="value">{{ education?education.cultureLevelName:'' }}</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- <div class="items"> |
|
|
|
<div class="label">状态:</div> |
|
|
|
<div class="value">巡查中</div> |
|
|
|
</div> |
|
|
|
</div>--> |
|
|
|
|
|
|
|
<div class="items"> |
|
|
|
<div class="label">所在位置:</div> |
|
|
|
<div class="value">xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div> |
|
|
|
<div class="value">{{ detail.houseInfo.homeName }}</div> |
|
|
|
</div> |
|
|
|
<div class="items"> |
|
|
|
<div class="label">兴趣爱好:</div> |
|
|
|
<div class="value">{{ hobby?hobby.hobbyRemark:'' }}</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<div class="btn-group"> |
|
|
|
<el-button class="sure" plain round type="warning" @click="handleSure">派单</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
@ -51,33 +126,117 @@ import Title from "@/views/dataBoard/satisfactionEval/components/Title"; |
|
|
|
import CallPhone from "@/views/dataBoard/cpts/CallPhone"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "Supervision", |
|
|
|
name: "MapResourceInfo", |
|
|
|
components: {Title, CallPhone}, |
|
|
|
props: { |
|
|
|
currentLevelData: { |
|
|
|
type: Object, |
|
|
|
default: () => {} |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
dialogVisible: false, |
|
|
|
explain: "" |
|
|
|
explain: "", |
|
|
|
id: '', |
|
|
|
detail: '', |
|
|
|
type: '', |
|
|
|
typeList: { |
|
|
|
1: '志愿者', |
|
|
|
2: '联建单位', |
|
|
|
3: '社区自组织', |
|
|
|
4: '网格员', |
|
|
|
5: '公益岗' |
|
|
|
}, |
|
|
|
education: '', |
|
|
|
hobby: '', |
|
|
|
rowData: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getAgeByDateOfBirth(dateOfBirth) { |
|
|
|
let birthDate = this.$moment(dateOfBirth); |
|
|
|
let age = this.$moment().diff(birthDate, 'years'); |
|
|
|
return age; |
|
|
|
}, |
|
|
|
handleClose(done) { |
|
|
|
this.dialogVisible = false; |
|
|
|
}, |
|
|
|
open(id) { |
|
|
|
open(id, type,rowData) { |
|
|
|
console.log(id, type) |
|
|
|
//type 1志愿者、2联建单位、3社区自组织、4网格员、5公益岗 |
|
|
|
this.dialogVisible = true; |
|
|
|
this.id = id |
|
|
|
this.type = type |
|
|
|
this.getData(type) |
|
|
|
this.rowData = rowData |
|
|
|
}, |
|
|
|
handleSure() { |
|
|
|
|
|
|
|
this.$emit('ok',this.rowData) |
|
|
|
}, |
|
|
|
getData(type) { |
|
|
|
if (type === 1) { |
|
|
|
this.getVolunteer() |
|
|
|
} |
|
|
|
if (type === 2) { |
|
|
|
this.getCompany() |
|
|
|
} |
|
|
|
if (type === 3) { |
|
|
|
this.getCommunity() |
|
|
|
} |
|
|
|
if (type === 4) { |
|
|
|
this.getGridOperator() |
|
|
|
} |
|
|
|
if (type === 5) { |
|
|
|
this.getVolunteer() |
|
|
|
} |
|
|
|
}, |
|
|
|
// 联建单位详情使用:/actual/base/icpartyunit/detail |
|
|
|
|
|
|
|
// 社区自组织详情使用:/actual/base/iccommunityselforganization/community-self-org-detail/{id} |
|
|
|
|
|
|
|
// 志愿者详情:即居民详情 /actual/base/residentBaseInfo/detail/{resi-id} + |
|
|
|
// 教育信息/actual/base/residentEduInfo/detail/{resi-id} + |
|
|
|
// 兴趣爱好信息/actual/base/residentHobbyInfo/detail/{resi-id} |
|
|
|
|
|
|
|
// 网格员详情:即工作人员详情:/data/aggregator/org/staffdetailv2 见apifox |
|
|
|
|
|
|
|
// 公益岗详情:同志愿者详情,也是查居民 |
|
|
|
getVolunteer() { |
|
|
|
this.$http.post('/actual/base/residentBaseInfo/detail/' + this.id).then(({data: {data}}) => { |
|
|
|
this.detail = data || {}; |
|
|
|
}) |
|
|
|
this.$http.get('/actual/base/residentEduInfo/detail/' + this.id).then(({data: {data}}) => { |
|
|
|
this.education = data || {}; |
|
|
|
}) |
|
|
|
this.$http.get('/actual/base/residentHobbyInfo/detail/' + this.id).then(({data: {data}}) => { |
|
|
|
this.hobby = data || {}; |
|
|
|
}) |
|
|
|
}, |
|
|
|
getCompany() { |
|
|
|
this.$http.post('/actual/base/icpartyunit/detail?id=' + this.id, {id: this.id}).then(({data: {data}}) => { |
|
|
|
this.detail = data || {}; |
|
|
|
}) |
|
|
|
}, |
|
|
|
getCommunity() { |
|
|
|
this.$http.post('/actual/base/iccommunityselforganization/community-self-org-detail/' + this.id).then(({data: {data}}) => { |
|
|
|
this.detail = data || {}; |
|
|
|
}) |
|
|
|
}, |
|
|
|
getGridOperator() { |
|
|
|
this.$http.post('/data/aggregator/org/staffdetailv2?staffId=' + this.id,{staffId: this.id}).then(({data: {data}}) => { |
|
|
|
this.detail = data || {}; |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped src="@/assets/scss/dataBoard/dialog-small.scss"></style> |
|
|
|
<style lang="scss" scoped> |
|
|
|
@import "~@/assets/scss/dataBoard/dialog-small.scss"; |
|
|
|
|
|
|
|
.content { |
|
|
|
padding: 0 25px; |
|
|
|
@ -91,6 +250,7 @@ export default { |
|
|
|
|
|
|
|
.label { |
|
|
|
color: #9CB4D3; |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
|
|
|
|
.value { |
|
|
|
@ -99,12 +259,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/deep/ .el-textarea__inner { |
|
|
|
color: #fff; |
|
|
|
border: 1px solid #0E3978; |
|
|
|
border-radius: 2px; |
|
|
|
background: rgba(0, 23, 66, 0.72); |
|
|
|
} |
|
|
|
|
|
|
|
.btn-group { |
|
|
|
display: flex; |
|
|
|
|