|
@ -1,16 +1,18 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="g-wrr"> |
|
|
<div class="g-wrr"> |
|
|
<div class="g-bread"> |
|
|
<div class="g-bread" v-if="breadList.length > 1"> |
|
|
<el-breadcrumb separator-class="el-icon-arrow-right"> |
|
|
<el-breadcrumb separator-class="el-icon-arrow-right"> |
|
|
<el-breadcrumb-item v-for="item in breadList" :key="item.path" :to="{ path: item.path }"> |
|
|
<el-breadcrumb-item |
|
|
|
|
|
v-for="item in breadList" |
|
|
|
|
|
:key="item.path" |
|
|
|
|
|
:to="{ path: item.path }" |
|
|
|
|
|
> |
|
|
{{ item.meta.title }} |
|
|
{{ item.meta.title }} |
|
|
</el-breadcrumb-item> |
|
|
</el-breadcrumb-item> |
|
|
|
|
|
|
|
|
</el-breadcrumb> |
|
|
</el-breadcrumb> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="g-cpt"> |
|
|
<div class="g-cpt"> |
|
|
|
|
|
|
|
|
<div class="g-l"> |
|
|
<div class="g-l"> |
|
|
<div class="m-people"> |
|
|
<div class="m-people"> |
|
|
<cpt-card> |
|
|
<cpt-card> |
|
@ -18,11 +20,9 @@ |
|
|
<img src="@/assets/img/shuju/title-tip.png" /> |
|
|
<img src="@/assets/img/shuju/title-tip.png" /> |
|
|
<span>人员情况</span> |
|
|
<span>人员情况</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="more" |
|
|
<div class="more" @click="showedMoreInfo = true">查看更多</div> |
|
|
@click="showedMoreInfo = true">查看更多</div> |
|
|
|
|
|
<div class="ren"> |
|
|
<div class="ren"> |
|
|
<img class="pic-ren" |
|
|
<img class="pic-ren" src="@/assets/img/shuju/people/ren.png" /> |
|
|
src="@/assets/img/shuju/people/ren.png" /> |
|
|
|
|
|
<div class="ren-name"> |
|
|
<div class="ren-name"> |
|
|
<span>{{ info.name }}</span> |
|
|
<span>{{ info.name }}</span> |
|
|
<img src="@/assets/img/shuju/people/arrow.png" /> |
|
|
<img src="@/assets/img/shuju/people/arrow.png" /> |
|
@ -119,11 +119,13 @@ |
|
|
</cpt-card> |
|
|
</cpt-card> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<people-more v-show="showedMoreInfo" |
|
|
<people-more |
|
|
|
|
|
v-show="showedMoreInfo" |
|
|
v-if="userId" |
|
|
v-if="userId" |
|
|
:userId="userId" |
|
|
:userId="userId" |
|
|
:gridName="info.gridName" |
|
|
:gridName="info.gridName" |
|
|
@close="showedMoreInfo = false" /> |
|
|
@close="showedMoreInfo = false" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<div class="m-relation"> |
|
|
<div class="m-relation"> |
|
|
<cpt-card> |
|
|
<cpt-card> |
|
@ -133,95 +135,177 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="info"> |
|
|
<div class="info"> |
|
|
<div class="huzhu"> |
|
|
<div class="huzhu"> |
|
|
<img class="huzhu-bg" |
|
|
<img |
|
|
src="@/assets/img/shuju/people/huzhu.png" /> |
|
|
class="huzhu-bg" |
|
|
<img class="huzhu-ico" |
|
|
src="@/assets/img/shuju/people/huzhu.png" |
|
|
src="@/assets/img/shuju/people/huzhu-home.png" /> |
|
|
/> |
|
|
<div class="huzhu-name">{{ houseInfo&&houseInfo.ownerName?houseInfo.ownerName:'暂不清楚' }}</div> |
|
|
<img |
|
|
|
|
|
class="huzhu-ico" |
|
|
|
|
|
src="@/assets/img/shuju/people/huzhu-home.png" |
|
|
|
|
|
/> |
|
|
|
|
|
<div class="huzhu-name"> |
|
|
|
|
|
{{ |
|
|
|
|
|
houseInfo && houseInfo.ownerName |
|
|
|
|
|
? houseInfo.ownerName |
|
|
|
|
|
: "暂不清楚" |
|
|
|
|
|
}} |
|
|
|
|
|
</div> |
|
|
<p>(户主)</p> |
|
|
<p>(户主)</p> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="rel z-zuo-2" |
|
|
<div |
|
|
|
|
|
class="rel z-zuo-2" |
|
|
@click="toUserInfo(houseInfo.userList[0].userId)" |
|
|
@click="toUserInfo(houseInfo.userList[0].userId)" |
|
|
v-if="houseInfo.userList[0]"> |
|
|
v-if="houseInfo.userList[0]" |
|
|
<img class="rel-bg" |
|
|
> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" /> |
|
|
<img |
|
|
<img class="rel-line" |
|
|
class="rel-bg" |
|
|
src="@/assets/img/shuju/people/huzhu-line/zuo2.png" /> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" |
|
|
<div class="rel-text" |
|
|
/> |
|
|
:class="houseInfo.userList[0].isSelf == '1' ? 'z-on' : ''"> |
|
|
<img |
|
|
<div class="rel-call">{{ houseInfo.userList[0].relation }}</div> |
|
|
class="rel-line" |
|
|
<div class="rel-name">{{ houseInfo.userList[0].userName }}</div> |
|
|
src="@/assets/img/shuju/people/huzhu-line/zuo2.png" |
|
|
</div> |
|
|
/> |
|
|
</div> |
|
|
<div |
|
|
|
|
|
class="rel-text" |
|
|
<div class="rel z-you-2" |
|
|
:class="houseInfo.userList[0].isSelf == '1' ? 'z-on' : ''" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="rel-call"> |
|
|
|
|
|
{{ houseInfo.userList[0].relation }} |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="rel-name"> |
|
|
|
|
|
{{ houseInfo.userList[0].userName }} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
class="rel z-you-2" |
|
|
@click="toUserInfo(houseInfo.userList[1].userId)" |
|
|
@click="toUserInfo(houseInfo.userList[1].userId)" |
|
|
v-if="houseInfo.userList[1]"> |
|
|
v-if="houseInfo.userList[1]" |
|
|
<img class="rel-bg" |
|
|
> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" /> |
|
|
<img |
|
|
<img class="rel-line" |
|
|
class="rel-bg" |
|
|
src="@/assets/img/shuju/people/huzhu-line/you2.png" /> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" |
|
|
<div class="rel-text" |
|
|
/> |
|
|
:class="houseInfo.userList[1].isSelf == '1' ? 'z-on' : ''"> |
|
|
<img |
|
|
<div class="rel-call">{{ houseInfo.userList[1].relation }}</div> |
|
|
class="rel-line" |
|
|
<div class="rel-name">{{ houseInfo.userList[1].userName }}</div> |
|
|
src="@/assets/img/shuju/people/huzhu-line/you2.png" |
|
|
</div> |
|
|
/> |
|
|
</div> |
|
|
<div |
|
|
|
|
|
class="rel-text" |
|
|
<div class="rel z-zuo-1" |
|
|
:class="houseInfo.userList[1].isSelf == '1' ? 'z-on' : ''" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="rel-call"> |
|
|
|
|
|
{{ houseInfo.userList[1].relation }} |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="rel-name"> |
|
|
|
|
|
{{ houseInfo.userList[1].userName }} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
class="rel z-zuo-1" |
|
|
@click="toUserInfo(houseInfo.userList[2].userId)" |
|
|
@click="toUserInfo(houseInfo.userList[2].userId)" |
|
|
v-if="houseInfo.userList[2]"> |
|
|
v-if="houseInfo.userList[2]" |
|
|
<img class="rel-bg" |
|
|
> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" /> |
|
|
<img |
|
|
<img class="rel-line" |
|
|
class="rel-bg" |
|
|
src="@/assets/img/shuju/people/huzhu-line/zuo1.png" /> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" |
|
|
<div class="rel-text" |
|
|
/> |
|
|
:class="houseInfo.userList[2].isSelf == '1' ? 'z-on' : ''"> |
|
|
<img |
|
|
<div class="rel-call">{{ houseInfo.userList[2].relation }}</div> |
|
|
class="rel-line" |
|
|
<div class="rel-name">{{ houseInfo.userList[2].userName }}</div> |
|
|
src="@/assets/img/shuju/people/huzhu-line/zuo1.png" |
|
|
</div> |
|
|
/> |
|
|
</div> |
|
|
<div |
|
|
|
|
|
class="rel-text" |
|
|
<div class="rel z-you-1" |
|
|
:class="houseInfo.userList[2].isSelf == '1' ? 'z-on' : ''" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="rel-call"> |
|
|
|
|
|
{{ houseInfo.userList[2].relation }} |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="rel-name"> |
|
|
|
|
|
{{ houseInfo.userList[2].userName }} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
class="rel z-you-1" |
|
|
@click="toUserInfo(houseInfo.userList[3].userId)" |
|
|
@click="toUserInfo(houseInfo.userList[3].userId)" |
|
|
v-if="houseInfo.userList[3]"> |
|
|
v-if="houseInfo.userList[3]" |
|
|
<img class="rel-bg" |
|
|
> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" /> |
|
|
<img |
|
|
<img class="rel-line" |
|
|
class="rel-bg" |
|
|
src="@/assets/img/shuju/people/huzhu-line/you1.png" /> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" |
|
|
<div class="rel-text" |
|
|
/> |
|
|
:class="houseInfo.userList[3].isSelf == '1' ? 'z-on' : ''"> |
|
|
<img |
|
|
<div class="rel-call">{{ houseInfo.userList[3].relation }}</div> |
|
|
class="rel-line" |
|
|
<span class="rel-name">{{ houseInfo.userList[3].userName }}</span> |
|
|
src="@/assets/img/shuju/people/huzhu-line/you1.png" |
|
|
</div> |
|
|
/> |
|
|
</div> |
|
|
<div |
|
|
|
|
|
class="rel-text" |
|
|
<div class="rel z-zuo-3" |
|
|
:class="houseInfo.userList[3].isSelf == '1' ? 'z-on' : ''" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="rel-call"> |
|
|
|
|
|
{{ houseInfo.userList[3].relation }} |
|
|
|
|
|
</div> |
|
|
|
|
|
<span class="rel-name">{{ |
|
|
|
|
|
houseInfo.userList[3].userName |
|
|
|
|
|
}}</span> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
class="rel z-zuo-3" |
|
|
@click="toUserInfo(houseInfo.userList[4].userId)" |
|
|
@click="toUserInfo(houseInfo.userList[4].userId)" |
|
|
v-if="houseInfo.userList[4]"> |
|
|
v-if="houseInfo.userList[4]" |
|
|
<img class="rel-bg" |
|
|
> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" /> |
|
|
<img |
|
|
<img class="rel-line" |
|
|
class="rel-bg" |
|
|
src="@/assets/img/shuju/people/huzhu-line/zuo3.png" /> |
|
|
src="@/assets/img/shuju/people/huzhu-kuang-zuo.png" |
|
|
<div class="rel-text" |
|
|
/> |
|
|
:class="houseInfo.userList[4].isSelf == '1' ? 'z-on' : ''"> |
|
|
<img |
|
|
<div class="rel-call">{{ houseInfo.userList[4].relation }}</div> |
|
|
class="rel-line" |
|
|
<div class="rel-name">{{ houseInfo.userList[4].userName }}</div> |
|
|
src="@/assets/img/shuju/people/huzhu-line/zuo3.png" |
|
|
|
|
|
/> |
|
|
|
|
|
<div |
|
|
|
|
|
class="rel-text" |
|
|
|
|
|
:class="houseInfo.userList[4].isSelf == '1' ? 'z-on' : ''" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="rel-call"> |
|
|
|
|
|
{{ houseInfo.userList[4].relation }} |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="rel-name"> |
|
|
|
|
|
{{ houseInfo.userList[4].userName }} |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
class="rel z-you-3" |
|
|
|
|
|
@click="toUserInfo(houseInfo.userList[5].userId)" |
|
|
|
|
|
v-if="houseInfo.userList[5]" |
|
|
|
|
|
> |
|
|
|
|
|
<img |
|
|
|
|
|
class="rel-bg" |
|
|
|
|
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" |
|
|
|
|
|
/> |
|
|
|
|
|
<img |
|
|
|
|
|
class="rel-line" |
|
|
|
|
|
src="@/assets/img/shuju/people/huzhu-line/you3.png" |
|
|
|
|
|
/> |
|
|
|
|
|
<div |
|
|
|
|
|
class="rel-text" |
|
|
|
|
|
:class="houseInfo.userList[5].isSelf == '1' ? 'z-on' : ''" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="rel-call"> |
|
|
|
|
|
{{ houseInfo.userList[5].relation }} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="rel-name"> |
|
|
|
|
|
{{ houseInfo.userList[5].userName }} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="rel z-you-3" |
|
|
|
|
|
@click="toUserInfo(houseInfo.userList[5].userId)" |
|
|
|
|
|
v-if="houseInfo.userList[5]"> |
|
|
|
|
|
<img class="rel-bg" |
|
|
|
|
|
src="@/assets/img/shuju/people/huzhu-kuang-you.png" /> |
|
|
|
|
|
<img class="rel-line" |
|
|
|
|
|
src="@/assets/img/shuju/people/huzhu-line/you3.png" /> |
|
|
|
|
|
<div class="rel-text" |
|
|
|
|
|
:class="houseInfo.userList[5].isSelf == '1' ? 'z-on' : ''"> |
|
|
|
|
|
<div class="rel-call">{{ houseInfo.userList[5].relation }}</div> |
|
|
|
|
|
<div class="rel-name">{{ houseInfo.userList[5].userName }}</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -237,20 +321,23 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="tb"> |
|
|
<div class="tb"> |
|
|
<cpt-tb :col-list="demand.colList" |
|
|
<cpt-tb |
|
|
|
|
|
:col-list="demand.colList" |
|
|
:loading="demand.loading" |
|
|
:loading="demand.loading" |
|
|
:header="demand.header" |
|
|
:header="demand.header" |
|
|
:list="demand.list" |
|
|
:list="demand.list" |
|
|
@operate="handleOperateDemandList"></cpt-tb> |
|
|
@operate="handleOperateDemandList" |
|
|
|
|
|
></cpt-tb> |
|
|
|
|
|
|
|
|
<div class="m-pagination" |
|
|
<div class="m-pagination" v-if="demand.total > demand.pageSize"> |
|
|
v-if="demand.total > demand.pageSize"> |
|
|
<el-pagination |
|
|
<el-pagination :current-page="demand.pageNo" |
|
|
:current-page="demand.pageNo" |
|
|
:page-size="demand.pageSize" |
|
|
:page-size="demand.pageSize" |
|
|
:total="demand.total" |
|
|
:total="demand.total" |
|
|
background |
|
|
background |
|
|
layout="prev, pager, next" |
|
|
layout="prev, pager, next" |
|
|
@current-change="handlePageNoChangeDemand"> |
|
|
@current-change="handlePageNoChangeDemand" |
|
|
|
|
|
> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -262,68 +349,86 @@ |
|
|
<cpt-card> |
|
|
<cpt-card> |
|
|
<div class="title"> |
|
|
<div class="title"> |
|
|
<img src="@/assets/img/shuju/title-tip.png" /> |
|
|
<img src="@/assets/img/shuju/title-tip.png" /> |
|
|
<a :class="{ 'z-on': showedIncidentOrTopic == 'incident' }" |
|
|
<a |
|
|
@click="showedIncidentOrTopic = 'incident'">上报事件</a> |
|
|
:class="{ 'z-on': showedIncidentOrTopic == 'incident' }" |
|
|
<a :class="{ 'z-on': showedIncidentOrTopic == 'topic' }" |
|
|
@click="showedIncidentOrTopic = 'incident'" |
|
|
@click="showedIncidentOrTopic = 'topic'">发布话题</a> |
|
|
>上报事件</a |
|
|
</div> |
|
|
> |
|
|
<div class="list-wrap" |
|
|
<a |
|
|
v-show="showedIncidentOrTopic == 'incident'"> |
|
|
:class="{ 'z-on': showedIncidentOrTopic == 'topic' }" |
|
|
|
|
|
@click="showedIncidentOrTopic = 'topic'" |
|
|
|
|
|
>发布话题</a |
|
|
|
|
|
> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div |
|
|
|
|
|
class="list-wrap" |
|
|
|
|
|
v-show="showedIncidentOrTopic == 'incident'" |
|
|
|
|
|
> |
|
|
<div class="list"> |
|
|
<div class="list"> |
|
|
<div class="item" |
|
|
<div |
|
|
|
|
|
class="item" |
|
|
:key="'incident' + index" |
|
|
:key="'incident' + index" |
|
|
v-for="(item, index) in incident.list" |
|
|
v-for="(item, index) in incident.list" |
|
|
@click="handleClickIncident(index)"> |
|
|
@click="handleClickIncident(index)" |
|
|
|
|
|
> |
|
|
<div class="item-title">{{ item.eventContent }}</div> |
|
|
<div class="item-title">{{ item.eventContent }}</div> |
|
|
<div class="item-date">{{ item.reportTime }}</div> |
|
|
<div class="item-date">{{ item.reportTime }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="m-pagination" |
|
|
<div |
|
|
v-if="incident.total > incident.pageSize"> |
|
|
class="m-pagination" |
|
|
<el-pagination :current-page="incident.pageNo" |
|
|
v-if="incident.total > incident.pageSize" |
|
|
|
|
|
> |
|
|
|
|
|
<el-pagination |
|
|
|
|
|
:current-page="incident.pageNo" |
|
|
:page-size="incident.pageSize" |
|
|
:page-size="incident.pageSize" |
|
|
:total="incident.total" |
|
|
:total="incident.total" |
|
|
background |
|
|
background |
|
|
layout="prev, pager, next" |
|
|
layout="prev, pager, next" |
|
|
@current-change="handlePageNoChangeIncident"> |
|
|
@current-change="handlePageNoChangeIncident" |
|
|
|
|
|
> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="incident.list.length == 0" |
|
|
<div v-if="incident.list.length == 0" class="m-hint"> |
|
|
class="m-hint"> |
|
|
<img |
|
|
<img src="@/assets/img/modules/visual/noData.png" |
|
|
src="@/assets/img/modules/visual/noData.png" |
|
|
class="no-data-img" /> |
|
|
class="no-data-img" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="list-wrap" |
|
|
<div class="list-wrap" v-show="showedIncidentOrTopic == 'topic'"> |
|
|
v-show="showedIncidentOrTopic == 'topic'"> |
|
|
|
|
|
<div class="list"> |
|
|
<div class="list"> |
|
|
<div class="item" |
|
|
<div |
|
|
|
|
|
class="item" |
|
|
:key="'topic' + index" |
|
|
:key="'topic' + index" |
|
|
v-for="(item, index) in topic.list" |
|
|
v-for="(item, index) in topic.list" |
|
|
@click="handleClickTopic(index)"> |
|
|
@click="handleClickTopic(index)" |
|
|
|
|
|
> |
|
|
<div class="item-title">{{ item.topicContent }}</div> |
|
|
<div class="item-title">{{ item.topicContent }}</div> |
|
|
<div class="item-date">{{ item.releaseTime }}</div> |
|
|
<div class="item-date">{{ item.releaseTime }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="m-pagination" |
|
|
<div class="m-pagination" v-if="topic.total > topic.pageSize"> |
|
|
v-if="topic.total > topic.pageSize"> |
|
|
<el-pagination |
|
|
<el-pagination :current-page="topic.pageNo" |
|
|
:current-page="topic.pageNo" |
|
|
:page-size="topic.pageSize" |
|
|
:page-size="topic.pageSize" |
|
|
:total="topic.total" |
|
|
:total="topic.total" |
|
|
background |
|
|
background |
|
|
layout="prev, pager, next" |
|
|
layout="prev, pager, next" |
|
|
@current-change="handlePageNoChangeTopic"> |
|
|
@current-change="handlePageNoChangeTopic" |
|
|
|
|
|
> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="topic.list.length == 0" |
|
|
<div v-if="topic.list.length == 0" class="m-hint"> |
|
|
class="m-hint"> |
|
|
<img |
|
|
<img src="@/assets/img/modules/visual/noData.png" |
|
|
src="@/assets/img/modules/visual/noData.png" |
|
|
class="no-data-img" /> |
|
|
class="no-data-img" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</cpt-card> |
|
|
</cpt-card> |
|
@ -338,10 +443,12 @@ |
|
|
|
|
|
|
|
|
<div class="list-wrap"> |
|
|
<div class="list-wrap"> |
|
|
<div class="list"> |
|
|
<div class="list"> |
|
|
<div class="item" |
|
|
<div |
|
|
|
|
|
class="item" |
|
|
:key="'point' + index" |
|
|
:key="'point' + index" |
|
|
v-for="(item, index) in point.list" |
|
|
v-for="(item, index) in point.list" |
|
|
@click="handleClickPoint(index)"> |
|
|
@click="handleClickPoint(index)" |
|
|
|
|
|
> |
|
|
<div class="item-row"> |
|
|
<div class="item-row"> |
|
|
<div class="item-l"> |
|
|
<div class="item-l"> |
|
|
<div class="item-point">{{ item.point }}</div> |
|
|
<div class="item-point">{{ item.point }}</div> |
|
@ -354,21 +461,23 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="m-pagination" |
|
|
<div class="m-pagination" v-if="point.total > point.pageSize"> |
|
|
v-if="point.total > point.pageSize"> |
|
|
<el-pagination |
|
|
<el-pagination :current-page="point.pageNo" |
|
|
:current-page="point.pageNo" |
|
|
:page-size="point.pageSize" |
|
|
:page-size="point.pageSize" |
|
|
:total="point.total" |
|
|
:total="point.total" |
|
|
background |
|
|
background |
|
|
layout="prev, pager, next" |
|
|
layout="prev, pager, next" |
|
|
@current-change="handlePageNoChangePoint"> |
|
|
@current-change="handlePageNoChangePoint" |
|
|
|
|
|
> |
|
|
</el-pagination> |
|
|
</el-pagination> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="point.list.length == 0" |
|
|
<div v-if="point.list.length == 0" class="m-hint"> |
|
|
class="m-hint"> |
|
|
<img |
|
|
<img src="@/assets/img/modules/visual/noData.png" |
|
|
src="@/assets/img/modules/visual/noData.png" |
|
|
class="no-data-img" /> |
|
|
class="no-data-img" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</cpt-card> |
|
|
</cpt-card> |
|
@ -376,23 +485,29 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<demand-info v-if="demand.list.length > 0 && showedDemandInfo" |
|
|
<demand-info |
|
|
|
|
|
v-if="demand.list.length > 0 && showedDemandInfo" |
|
|
:userId="userId" |
|
|
:userId="userId" |
|
|
queryOrigin="personal-data" |
|
|
queryOrigin="personal-data" |
|
|
:demandId="demand.srcList[demand.currentIndex].demandRecId" |
|
|
:demandId="demand.srcList[demand.currentIndex].demandRecId" |
|
|
@close="showedDemandInfo = false" /> |
|
|
@close="showedDemandInfo = false" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<incident-info v-if="incident.list.length > 0 && incident.showedInfo" |
|
|
<incident-info |
|
|
|
|
|
v-if="incident.list.length > 0 && incident.showedInfo" |
|
|
:resiEventId="incident.list[incident.currentIndex].resiEventId" |
|
|
:resiEventId="incident.list[incident.currentIndex].resiEventId" |
|
|
:epmetUserIdList="info.epmetUserIdList" |
|
|
:epmetUserIdList="info.epmetUserIdList" |
|
|
:icResiUserId="userId" |
|
|
:icResiUserId="userId" |
|
|
@close="incident.showedInfo = false" /> |
|
|
@close="incident.showedInfo = false" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<topic-info v-if="topic.list.length > 0 && topic.showedInfo" |
|
|
<topic-info |
|
|
|
|
|
v-if="topic.list.length > 0 && topic.showedInfo" |
|
|
:topicId="topic.list[topic.currentIndex].topicId" |
|
|
:topicId="topic.list[topic.currentIndex].topicId" |
|
|
:epmetUserIdList="info.epmetUserIdList" |
|
|
:epmetUserIdList="info.epmetUserIdList" |
|
|
:icResiUserId="userId" |
|
|
:icResiUserId="userId" |
|
|
@close="topic.showedInfo = false" /> |
|
|
@close="topic.showedInfo = false" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
@ -530,10 +645,15 @@ export default { |
|
|
topicInfo, |
|
|
topicInfo, |
|
|
}, |
|
|
}, |
|
|
beforeRouteEnter(to, from, next) { |
|
|
beforeRouteEnter(to, from, next) { |
|
|
const arr = [ {...from }, { ...to, meta: { title: '人员图谱'}}] |
|
|
console.log("让我看看", to); |
|
|
|
|
|
if (from) { |
|
|
|
|
|
const arr = [{ ...from }, { ...to, meta: { title: "个人详情" } }]; |
|
|
next((vm) => { |
|
|
next((vm) => { |
|
|
vm.breadList = [ ...arr ] |
|
|
vm.breadList = [...arr]; |
|
|
}) |
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
next(); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
uid(id) { |
|
|
uid(id) { |
|
@ -545,8 +665,8 @@ export default { |
|
|
}, |
|
|
}, |
|
|
$route(route) { |
|
|
$route(route) { |
|
|
// if you go to the redirect page, do not update the breadcrumbs |
|
|
// if you go to the redirect page, do not update the breadcrumbs |
|
|
if (route.path.startsWith('/redirect/')) { |
|
|
if (route.path.startsWith("/redirect/")) { |
|
|
return |
|
|
return; |
|
|
} |
|
|
} |
|
|
// this.getBreadcrumb() |
|
|
// this.getBreadcrumb() |
|
|
}, |
|
|
}, |
|
@ -554,40 +674,40 @@ export default { |
|
|
|
|
|
|
|
|
async mounted() { |
|
|
async mounted() { |
|
|
this.userId = this.uid; |
|
|
this.userId = this.uid; |
|
|
|
|
|
console.log(this.$router); |
|
|
this.getApiData(); |
|
|
this.getApiData(); |
|
|
}, |
|
|
}, |
|
|
deactivated() { |
|
|
deactivated() { |
|
|
this.breadList = [] |
|
|
this.breadList = []; |
|
|
console.log('breadList-----', this.breadList) |
|
|
console.log("breadList-----", this.breadList); |
|
|
}, |
|
|
}, |
|
|
destroyed() { |
|
|
destroyed() { |
|
|
|
|
|
this.breadList = []; |
|
|
this.breadList = [] |
|
|
console.log("breadList-----", this.breadList); |
|
|
console.log('breadList-----', this.breadList) |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getBreadcrumb() { |
|
|
getBreadcrumb() { |
|
|
// only show routes with meta.title |
|
|
// only show routes with meta.title |
|
|
console.log('routest----', this.$route) |
|
|
console.log("routest----", this.$route); |
|
|
let matched = this.$route.matched.filter( |
|
|
let matched = this.$route.matched.filter( |
|
|
(item) => item.meta && item.meta.title |
|
|
(item) => item.meta && item.meta.title |
|
|
) |
|
|
); |
|
|
const first = matched[0] |
|
|
const first = matched[0]; |
|
|
|
|
|
|
|
|
if (!this.isDashboard(first)) { |
|
|
if (!this.isDashboard(first)) { |
|
|
matched = [{ path: '/home', meta: { title: '首页' } }].concat(matched) |
|
|
matched = [{ path: "/home", meta: { title: "首页" } }].concat(matched); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.breadList = matched.filter( |
|
|
this.breadList = matched.filter( |
|
|
(item) => item.meta && item.meta.title && item.meta.breadcrumb !== false |
|
|
(item) => item.meta && item.meta.title && item.meta.breadcrumb !== false |
|
|
) |
|
|
); |
|
|
}, |
|
|
}, |
|
|
isDashboard(route) { |
|
|
isDashboard(route) { |
|
|
const name = route && route.name |
|
|
const name = route && route.name; |
|
|
if (!name) { |
|
|
if (!name) { |
|
|
return false |
|
|
return false; |
|
|
} |
|
|
} |
|
|
return name.trim().toLocaleLowerCase() === 'Home'.toLocaleLowerCase() |
|
|
return name.trim().toLocaleLowerCase() === "Home".toLocaleLowerCase(); |
|
|
}, |
|
|
}, |
|
|
handleSearch() {}, |
|
|
handleSearch() {}, |
|
|
|
|
|
|
|
@ -778,11 +898,9 @@ export default { |
|
|
<style |
|
|
<style |
|
|
lang="scss" |
|
|
lang="scss" |
|
|
src="@/assets/scss/modules/visual/people.scss" |
|
|
src="@/assets/scss/modules/visual/people.scss" |
|
|
scoped> |
|
|
scoped |
|
|
</style> |
|
|
></style> |
|
|
<style |
|
|
<style lang="scss" scoped> |
|
|
lang="scss" |
|
|
|
|
|
scoped> |
|
|
|
|
|
.g-bread { |
|
|
.g-bread { |
|
|
padding: 10px 20px; |
|
|
padding: 10px 20px; |
|
|
::v-deep .el-breadcrumb__item { |
|
|
::v-deep .el-breadcrumb__item { |
|
@ -797,5 +915,4 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |
|
|