-
-
-
联系电话:
-
133****8989
-
-
+
+
-
+
+
+
+
+
+
+
资源类型:
+
{{ typeList[type] }}
+
+
-
+
+
单位名称:
+
{{ detail.unitName }}
+
+
+
分类:
+
{{ detail.typeName }}
+
+
+
服务事项:
+
{{ detail.serviceMatterNameList ? detail.serviceMatterNameList.join('、') : '' }}
+
+
+
联系人:
+
{{ detail.contact }}
+
+
+
联系电话:
+
{{ detail.contactMobile }}
+
+
+
+
地理位置:
+
{{ detail.address }}
+
+
+
-
-
所在位置:
-
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
-
-
派单
+
+
组织名称:
+
{{ detail.organizationName }}
+
+
+
分类:
+
{{ detail.categoryName }}
+
+
+
服务事项:
+
{{ detail.serviceItem }}
+
+
+
联系人:
+
{{ detail.principalName }}
+
+
+
联系电话:
+
{{ detail.principalPhone }}
+
+
+
+
地理位置:
+
{{ detail.address }}
+
+
+
+
+
+
+
姓名:
+
{{ detail.name }}
+
+
+
+
联系电话:
+
{{ detail.mobile }}
+
+
+
+
+
年龄:
+
{{ detail.birthday?getAgeByDateOfBirth(detail.birthday):'未知' }}
+
+
+
学历:
+
{{ education?education.cultureLevelName:'' }}
+
+
+
+
+
+
所在位置:
+
{{ detail.houseInfo.homeName }}
+
+
+
兴趣爱好:
+
{{ hobby?hobby.hobbyRemark:'' }}
+
+
+
+ 派单
+
-
-
+
+
+
@@ -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 || {};
+ })
+ },
}
}
+