8 changed files with 1004 additions and 341 deletions
@ -1,375 +1,379 @@ |
|||||
@import "../../c/config"; |
@import '../../c/config'; |
||||
@import "../../c/function"; |
@import '../../c/function'; |
||||
@import "./c/common"; |
@import './c/common'; |
||||
|
|
||||
.m-pop { |
.m-pop { |
||||
@include shield; |
@include shield; |
||||
background-color: rgba(#000, 0.9); |
background-color: rgba(#000, 0.9); |
||||
overflow-y: auto; |
overflow-y: auto; |
||||
|
|
||||
.wrap { |
.wrap { |
||||
position: relative; |
position: relative; |
||||
margin: 120px auto; |
margin: 120px auto; |
||||
width: 1020px; |
width: 1020px; |
||||
|
|
||||
.title { |
.title { |
||||
padding: 10px; |
padding: 10px; |
||||
font-size: 22px; |
font-size: 22px; |
||||
font-family: PingFang SC; |
font-family: PingFang SC; |
||||
font-weight: 800; |
font-weight: 800; |
||||
color: #ffffff; |
color: #ffffff; |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
|
|
||||
img { |
img { |
||||
display: block; |
display: block; |
||||
margin-right: 5px; |
margin-right: 5px; |
||||
} |
} |
||||
span { |
span { |
||||
display: block; |
display: block; |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
.btn-close { |
.btn-close { |
||||
position: absolute; |
position: absolute; |
||||
top: -15px; |
top: -15px; |
||||
right: -15px; |
right: -15px; |
||||
cursor: pointer; |
cursor: pointer; |
||||
} |
} |
||||
|
|
||||
.line { |
.line { |
||||
margin: 20px auto; |
margin: 20px auto; |
||||
width: 900px; |
width: 900px; |
||||
height: 1px; |
height: 1px; |
||||
border: 1px dashed #1257c9; |
border: 1px dashed #1257c9; |
||||
} |
} |
||||
|
|
||||
.tabs { |
.tabs { |
||||
margin-top: 30px; |
margin-top: 30px; |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
padding-left: 20px; |
padding-left: 20px; |
||||
padding-left: 58px; |
padding-left: 58px; |
||||
|
|
||||
.tab-btn { |
.tab-btn { |
||||
width: 30px; |
width: 30px; |
||||
text-align: center; |
text-align: center; |
||||
cursor: pointer; |
cursor: pointer; |
||||
} |
} |
||||
|
|
||||
.tab { |
.tab { |
||||
margin: 0 5px; |
margin: 0 5px; |
||||
min-width: 76px; |
min-width: 76px; |
||||
padding: 0 5px; |
padding: 0 5px; |
||||
height: 30px; |
height: 30px; |
||||
background: rgba(255, 255, 255, 0); |
background: rgba(255, 255, 255, 0); |
||||
border: 1px solid #1257c9; |
border: 1px solid #1257c9; |
||||
box-shadow: 0 0 10px 0 inset #1257c9; |
box-shadow: 0 0 10px 0 inset #1257c9; |
||||
border-radius: 2px; |
border-radius: 2px; |
||||
text-align: center; |
text-align: center; |
||||
font-size: 14px; |
font-size: 14px; |
||||
font-family: PingFang SC; |
font-family: PingFang SC; |
||||
font-weight: 400; |
font-weight: 400; |
||||
color: #ffffff; |
color: #ffffff; |
||||
line-height: 30px; |
line-height: 30px; |
||||
cursor: pointer; |
cursor: pointer; |
||||
transition: all ease 0.5s; |
transition: all ease 0.5s; |
||||
&.z-on { |
&.z-on { |
||||
background: linear-gradient(90deg, #1a5afd, #009cff); |
background: linear-gradient(90deg, #1a5afd, #009cff); |
||||
box-shadow: none; |
box-shadow: none; |
||||
} |
|
||||
} |
|
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
|
|
||||
.m-info { |
.m-info { |
||||
padding-left: 62px; |
padding-left: 62px; |
||||
font-size: 16px; |
font-size: 16px; |
||||
|
font-family: PingFang SC; |
||||
|
font-weight: 400; |
||||
|
color: #ffffff; |
||||
|
line-height: 24px; |
||||
|
width: 500px; |
||||
|
|
||||
|
.info-title { |
||||
|
margin-top: 30px; |
||||
|
font-size: 20px; |
||||
font-family: PingFang SC; |
font-family: PingFang SC; |
||||
font-weight: 400; |
font-weight: bold; |
||||
color: #ffffff; |
color: #ffffff; |
||||
line-height: 24px; |
line-height: 30px; |
||||
width: 500px; |
} |
||||
|
.info-content { |
||||
.info-title { |
margin: 20px 0; |
||||
margin-top: 30px; |
} |
||||
font-size: 20px; |
.info-pics { |
||||
font-family: PingFang SC; |
display: flex; |
||||
font-weight: bold; |
margin: 20px 0; |
||||
color: #ffffff; |
img { |
||||
line-height: 30px; |
display: block; |
||||
} |
width: 32%; |
||||
.info-content { |
height: 90px; |
||||
margin: 20px 0; |
margin-right: 9px; |
||||
} |
object-fit: cover; |
||||
.info-pics { |
|
||||
display: flex; |
|
||||
margin: 20px 0; |
|
||||
img { |
|
||||
display: block; |
|
||||
width: 32%; |
|
||||
height: 90px; |
|
||||
margin-right: 9px; |
|
||||
object-fit: cover; |
|
||||
} |
|
||||
} |
} |
||||
|
} |
||||
|
|
||||
.info-prop { |
.info-prop { |
||||
position: relative; |
position: relative; |
||||
margin: 10px 0; |
margin: 10px 0; |
||||
display: flex; |
display: flex; |
||||
padding-left: 15px; |
padding-left: 15px; |
||||
|
|
||||
> span, |
> span, |
||||
> div { |
> div { |
||||
display: block; |
display: block; |
||||
max-width: 300px; |
max-width: 300px; |
||||
} |
} |
||||
|
|
||||
&::before { |
&::before { |
||||
content: ""; |
content: ''; |
||||
display: block; |
display: block; |
||||
position: absolute; |
position: absolute; |
||||
top: 9px; |
top: 9px; |
||||
left: 0; |
left: 0; |
||||
width: 7px; |
width: 7px; |
||||
height: 7px; |
height: 7px; |
||||
background: #0c81fe; |
background: #0c81fe; |
||||
border-radius: 3px; |
border-radius: 3px; |
||||
margin-right: 10px; |
margin-right: 10px; |
||||
} |
|
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
|
|
||||
.m-case { |
.m-case { |
||||
@include scrollBar; |
@include scrollBar; |
||||
height: 600px; |
height: 600px; |
||||
padding: 20px 0 20px 0; |
padding: 20px 0 20px 0; |
||||
overflow-y: auto; |
overflow-y: auto; |
||||
} |
} |
||||
|
|
||||
.m-row { |
.m-row { |
||||
display: flex; |
display: flex; |
||||
justify-content: space-between; |
justify-content: space-between; |
||||
} |
} |
||||
|
|
||||
.m-yanpan { |
.m-yanpan { |
||||
padding-left: 62px; |
padding-left: 62px; |
||||
padding-right: 0; |
padding-right: 0; |
||||
min-height: 300px; |
min-height: 300px; |
||||
} |
} |
||||
|
|
||||
.m-hint { |
.m-hint { |
||||
position: relative; |
position: relative; |
||||
height: 300px; |
height: 300px; |
||||
|
|
||||
// 暂无数据 |
// 暂无数据 |
||||
img { |
img { |
||||
position: absolute; |
position: absolute; |
||||
top: 0; |
top: 0; |
||||
left: 0; |
left: 0; |
||||
right: 0; |
right: 0; |
||||
bottom: 0; |
bottom: 0; |
||||
margin: auto; |
margin: auto; |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
.m-line { |
.m-line { |
||||
min-width: 400px; |
min-width: 400px; |
||||
|
|
||||
.stat { |
.stat { |
||||
margin: 20px 0 10px; |
margin: 20px 0 10px; |
||||
display: flex; |
display: flex; |
||||
.stat-item { |
.stat-item { |
||||
width: 33%; |
width: 33%; |
||||
text-align: center; |
text-align: center; |
||||
|
|
||||
div { |
div { |
||||
font-size: 17px; |
font-size: 17px; |
||||
font-family: Source Han Serif SC; |
font-family: Source Han Serif SC; |
||||
font-weight: 500; |
font-weight: 500; |
||||
color: rgba(#fff, 0.5); |
color: rgba(#fff, 0.5); |
||||
line-height: 24px; |
line-height: 24px; |
||||
&.z-weak { |
&.z-weak { |
||||
font-size: 12px; |
font-size: 12px; |
||||
font-family: Source Han Serif SC; |
font-family: Source Han Serif SC; |
||||
font-weight: 500; |
font-weight: 500; |
||||
color: rgba(#fff, 0.5); |
color: rgba(#fff, 0.5); |
||||
line-height: 24px; |
line-height: 24px; |
||||
} |
|
||||
} |
|
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
|
|
||||
.m-tb { |
.m-tb { |
||||
padding-left: 62px; |
padding-left: 62px; |
||||
padding-right: 40px; |
padding-right: 40px; |
||||
} |
} |
||||
|
|
||||
.m-pagination { |
.m-pagination { |
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
margin-top: 20px; |
margin-top: 20px; |
||||
width: 100%; |
width: 100%; |
||||
height: 40px; |
height: 40px; |
||||
display: flex; |
display: flex; |
||||
justify-content: flex-end; |
justify-content: flex-end; |
||||
|
|
||||
|
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active { |
||||
|
background: #0266d1; |
||||
|
color: #000d3f; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-pagination .el-pager li { |
||||
|
background: #002e74; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-pagination .btn-prev { |
||||
|
background: #002e74; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-pagination .btn-next { |
||||
|
background: #002e74; |
||||
|
} |
||||
|
} |
||||
|
|
||||
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active { |
.m-process { |
||||
background: #0266d1; |
width: 400px; |
||||
color: #000d3f; |
|
||||
} |
|
||||
|
|
||||
/deep/ .el-pagination .el-pager li { |
.process-title { |
||||
background: #002e74; |
margin-bottom: 25px; |
||||
} |
margin-left: -5px; |
||||
|
font-size: 16px; |
||||
|
font-family: PingFang SC; |
||||
|
font-weight: bold; |
||||
|
color: #ffffff; |
||||
|
line-height: 18px; |
||||
|
} |
||||
|
|
||||
/deep/ .el-pagination .btn-prev { |
.list { |
||||
background: #002e74; |
position: relative; |
||||
|
box-sizing: border-box; |
||||
|
margin-top: 30px/2; |
||||
|
margin-left: 50px/2; |
||||
|
padding: 0 0 0 30px/2; |
||||
|
width: 680px/2; |
||||
|
border-left: 3px solid #0c81fe; |
||||
|
padding-right: 10px; |
||||
|
|
||||
|
&::before { |
||||
|
content: ''; |
||||
|
position: absolute; |
||||
|
z-index: 1; |
||||
|
display: block; |
||||
|
top: -2px/2; |
||||
|
left: -2px/2; |
||||
|
width: 5px/2; |
||||
|
height: 20px/2; |
||||
|
background-color: #ffffff; |
||||
} |
} |
||||
|
|
||||
/deep/ .el-pagination .btn-next { |
.item { |
||||
background: #002e74; |
position: relative; |
||||
} |
z-index: 2; |
||||
} |
margin-bottom: 8px; |
||||
|
padding-bottom: 8px; |
||||
|
font-size: 16px; |
||||
|
font-family: PingFang SC; |
||||
|
font-weight: 400; |
||||
|
color: #fefefe; |
||||
|
line-height: 24px; |
||||
|
padding-left: 20px; |
||||
|
padding-top: 1px; |
||||
|
|
||||
|
&::before { |
||||
|
content: ''; |
||||
|
display: block; |
||||
|
position: absolute; |
||||
|
top: -5px; |
||||
|
left: -11px; |
||||
|
width: 18px; |
||||
|
height: 18px; |
||||
|
background: #0c81fe; |
||||
|
border: 4px solid lighten(#0c81fe, 15); |
||||
|
border-radius: 100%; |
||||
|
} |
||||
|
|
||||
|
&.z-on { |
||||
|
&::before { |
||||
|
background: #e08400; |
||||
|
border-color: lighten(#e08400, 15); |
||||
|
} |
||||
|
} |
||||
|
|
||||
.m-process { |
&:last-child { |
||||
width: 400px; |
margin-bottom: 0; |
||||
|
padding-bottom: 0; |
||||
|
border-bottom: none; |
||||
|
} |
||||
|
|
||||
.process-title { |
.item-row { |
||||
margin-bottom: 25px; |
margin-top: -10px; |
||||
margin-left: -5px; |
margin-bottom: 10px; |
||||
font-size: 16px; |
display: flex; |
||||
font-family: PingFang SC; |
} |
||||
font-weight: bold; |
|
||||
color: #ffffff; |
|
||||
line-height: 18px; |
|
||||
} |
|
||||
|
|
||||
.list { |
.name { |
||||
position: relative; |
position: relative; |
||||
box-sizing: border-box; |
padding: 0 10px; |
||||
margin-top: 30px/2; |
font-size: 12px; |
||||
margin-left: 50px/2; |
font-family: PingFang SC; |
||||
padding: 0 0 0 30px/2; |
font-weight: 500; |
||||
width: 680px/2; |
color: #fefefe; |
||||
border-left: 3px solid #0c81fe; |
line-height: 22px; |
||||
padding-right: 10px; |
height: 22px; |
||||
|
border-radius: 10px 0 10px 0; |
||||
|
background-color: #0c81fe; |
||||
|
// background-color: #e08400; |
||||
|
} |
||||
|
|
||||
|
.date { |
||||
|
margin-left: 10px; |
||||
|
font-size: 12px; |
||||
|
font-family: PingFang SC; |
||||
|
font-weight: 500; |
||||
|
color: #7ca1d2; |
||||
|
line-height: 25px; |
||||
|
} |
||||
|
|
||||
&::before { |
.detail { |
||||
content: ""; |
@include cs; |
||||
position: absolute; |
font-size: 16px; |
||||
z-index: 1; |
line-height: 20px; |
||||
display: block; |
margin-bottom: 5px; |
||||
top: -2px/2; |
display: flex; |
||||
left: -2px/2; |
|
||||
width: 5px/2; |
|
||||
height: 20px/2; |
|
||||
background-color: #ffffff; |
|
||||
} |
|
||||
|
|
||||
.item { |
.detail-field { |
||||
position: relative; |
width: 22%; |
||||
z-index: 2; |
text-align: justify; |
||||
margin-bottom: 8px; |
text-align-last: justify; |
||||
padding-bottom: 8px; |
|
||||
font-size: 16px; |
|
||||
font-family: PingFang SC; |
|
||||
font-weight: 400; |
|
||||
color: #fefefe; |
|
||||
line-height: 24px; |
|
||||
padding-left: 20px; |
|
||||
padding-top: 1px; |
|
||||
|
|
||||
&::before { |
|
||||
content: ""; |
|
||||
display: block; |
|
||||
position: absolute; |
|
||||
top: -5px; |
|
||||
left: -11px; |
|
||||
width: 18px; |
|
||||
height: 18px; |
|
||||
background: #0c81fe; |
|
||||
border: 4px solid lighten(#0c81fe, 15); |
|
||||
border-radius: 100%; |
|
||||
} |
|
||||
|
|
||||
&.z-on { |
|
||||
&::before { |
|
||||
background: #e08400; |
|
||||
border-color: lighten(#e08400, 15); |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
&:last-child { |
|
||||
margin-bottom: 0; |
|
||||
padding-bottom: 0; |
|
||||
border-bottom: none; |
|
||||
} |
|
||||
|
|
||||
.item-row { |
|
||||
margin-top: -10px; |
|
||||
margin-bottom: 10px; |
|
||||
display: flex; |
|
||||
} |
|
||||
|
|
||||
.name { |
|
||||
position: relative; |
|
||||
padding: 0 10px; |
|
||||
font-size: 12px; |
|
||||
font-family: PingFang SC; |
|
||||
font-weight: 500; |
|
||||
color: #fefefe; |
|
||||
line-height: 22px; |
|
||||
height: 22px; |
|
||||
border-radius: 10px 0 10px 0; |
|
||||
background-color: #0c81fe; |
|
||||
// background-color: #e08400; |
|
||||
} |
|
||||
|
|
||||
.date { |
|
||||
margin-left: 10px; |
|
||||
font-size: 12px; |
|
||||
font-family: PingFang SC; |
|
||||
font-weight: 500; |
|
||||
color: #7ca1d2; |
|
||||
line-height: 25px; |
|
||||
} |
|
||||
|
|
||||
.detail { |
|
||||
@include cs; |
|
||||
font-size: 16px; |
|
||||
line-height: 20px; |
|
||||
margin-bottom: 5px; |
|
||||
display: flex; |
|
||||
|
|
||||
.detail-field { |
|
||||
width: 22%; |
|
||||
text-align: justify; |
|
||||
text-align-last: justify; |
|
||||
} |
|
||||
.detail-value { |
|
||||
width: 78%; |
|
||||
.detail-link { |
|
||||
display: inline; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.attachement-list { |
|
||||
padding-left: 80px; |
|
||||
a { |
|
||||
display: block; |
|
||||
cursor: pointer; |
|
||||
color: #4df0ff; |
|
||||
font-size: 14px; |
|
||||
|
|
||||
i { |
|
||||
color: #fff; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
} |
||||
|
.detail-value { |
||||
|
width: 78%; |
||||
|
.detail-link { |
||||
|
display: inline; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.attachement-list { |
||||
|
padding-left: 80px; |
||||
|
a { |
||||
|
display: block; |
||||
|
cursor: pointer; |
||||
|
color: #4df0ff; |
||||
|
font-size: 14px; |
||||
|
|
||||
|
i { |
||||
|
color: #fff; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
} |
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.m-top { |
||||
|
display: flex; |
||||
} |
} |
||||
|
|||||
@ -0,0 +1,629 @@ |
|||||
|
<template> |
||||
|
<div class="m-pop"> |
||||
|
<div class="wrap"> |
||||
|
<cpt-card> |
||||
|
<div class="title"> |
||||
|
<img src="@/assets/img/shuju/title-tip.png" /> |
||||
|
<span>项目详情</span> |
||||
|
</div> |
||||
|
|
||||
|
<div class="btn-close" |
||||
|
@click="handleClose"> |
||||
|
<img src="@/assets/img/shuju/people/close.png" /> |
||||
|
</div> |
||||
|
<div class="m-top"> |
||||
|
<div class="m-info"> |
||||
|
<div class="info-prop"> |
||||
|
<span>项目标题:</span> |
||||
|
<span>{{ projectInfo.projectTitle }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>项目背景:</span> |
||||
|
<span>{{ projectInfo.backGround }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>项目方案:</span> |
||||
|
<span>{{ projectInfo.projectTitle }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>内部备注:</span> |
||||
|
<span>{{ projectInfo.internalRemark || "--" }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>当前处理部门:</span> |
||||
|
<span>{{ projectInfo.departmentNameList.join("、") }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop" |
||||
|
v-if="projectCate.length > 0"> |
||||
|
<span>分类:</span> |
||||
|
<fold-text :row="3"> |
||||
|
<div :key="item.name" |
||||
|
v-for="item in projectCate"> |
||||
|
{{ item.name }} |
||||
|
</div> |
||||
|
</fold-text> |
||||
|
</div> |
||||
|
<div class="info-prop" |
||||
|
v-if="projectTag.length > 0"> |
||||
|
<span>标签:</span> |
||||
|
<fold-text :row="3"> |
||||
|
<div :key="item.name" |
||||
|
v-for="item in projectTag"> |
||||
|
{{ item.name }} |
||||
|
</div> |
||||
|
</fold-text> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="m-process" |
||||
|
v-if="projectProcess.length > 0"> |
||||
|
<div class="process-title">处理进展</div> |
||||
|
<div class="list"> |
||||
|
<div class="item" |
||||
|
:class="index === 0 ? 'z-on' : ''" |
||||
|
:key="item.processId" |
||||
|
v-for="(item, index) in projectProcess"> |
||||
|
<div class="item-row"> |
||||
|
<div class="name">{{ item.processName }}</div> |
||||
|
<div class="date"> |
||||
|
{{ item.processTime }} |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="detail"> |
||||
|
<div class="detail-field">处理部门:</div> |
||||
|
<div class="detail-value">{{ item.departmentName }}</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="detail" |
||||
|
v-if="item.processName != '转项目' && item.publicReply"> |
||||
|
<div class="detail-field">说 明:</div> |
||||
|
<div class="detail-value"> |
||||
|
<fold-text :row="3">{{ item.publicReply }}</fold-text> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="detail" |
||||
|
v-if="item.processName != '转项目' && item.internalRemark"> |
||||
|
<div class="detail-field">内部备注:</div> |
||||
|
<div class="detail-value"> |
||||
|
<fold-text :row="3">{{ |
||||
|
item.internalRemark |
||||
|
}}</fold-text> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="detail"> |
||||
|
<div class="attachement-list"> |
||||
|
<a :href="att.url" |
||||
|
target="_blank" |
||||
|
:key="att.url" |
||||
|
v-for="att in item.internalFile"> |
||||
|
<i class="el-icon-folder-opened"></i> |
||||
|
{{ att.name }} |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div v-if="projectInfo.origin!=='agency'" |
||||
|
class="tabs"> |
||||
|
<div class="tab-btn" |
||||
|
@click="subStartGroupIndex" |
||||
|
v-if="groupList.length > 9"> |
||||
|
<img src="@/assets/img/shuju/people/arrow-double-left.png" /> |
||||
|
</div> |
||||
|
<div v-show="index >= startGroupIndex && index < startGroupIndex + 9" |
||||
|
class="tab" |
||||
|
:class="groupIndex % groupList.length == index ? 'z-on' : ''" |
||||
|
:key="'tab' + index" |
||||
|
@click="groupIndex = index" |
||||
|
v-for="(item, index) in groupList"> |
||||
|
{{ item.label }} |
||||
|
</div> |
||||
|
<div class="tab-btn" |
||||
|
@click="addStartGroupIndex" |
||||
|
v-if="groupList.length > 9"> |
||||
|
<img src="@/assets/img/shuju/people/arrow-double-right.png" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="m-case" |
||||
|
v-if="projectInfo.origin!=='agency'"> |
||||
|
<div class="m-yanpan" |
||||
|
v-if="groupIndex == 0"> |
||||
|
<div v-if="projectId"> |
||||
|
<analyse v-if="!yanPan.loading" |
||||
|
singleTitle="楼院小组" |
||||
|
:userList="yanPan.homeUserList" |
||||
|
:userName="yanPan.icUserName" |
||||
|
:singleList="yanPan.categoryList" |
||||
|
@user="toUserInfo" |
||||
|
@project="toProjectInfo" /> |
||||
|
<screen-loading v-else>加载中</screen-loading> |
||||
|
</div> |
||||
|
<div v-else |
||||
|
class="m-hint"> |
||||
|
<img src="@/assets/img/modules/visual/noData.png" |
||||
|
class="no-data-img" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div v-if="groupIndex == 1"> |
||||
|
<div class="m-row" |
||||
|
v-if="projectInfo.originId"> |
||||
|
<div v-if="projectInfo.origin==='issue'" |
||||
|
class="m-info"> |
||||
|
<div class="info-prop"> |
||||
|
<span>议题标题:</span> |
||||
|
<span>{{ issueInfo.issueTitle }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>议题建议:</span> |
||||
|
<span>{{ issueInfo.issueSuggestion }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>所属网格:</span> |
||||
|
<span>{{ issueInfo.belongsGridName || "--" }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>议题发起人:</span> |
||||
|
<span>{{ issueInfo.issueInitiator }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>议题来源:</span> |
||||
|
<span>{{ issueInfo.topicInfo.groupName }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>转议题时间:</span> |
||||
|
<span>{{ issueInfo.shiftIssueTime }}</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div v-if="projectInfo.origin==='resi_event'" |
||||
|
class="m-info"> |
||||
|
<div class="info-title">事件内容</div> |
||||
|
<div class="info-content">{{ info.eventContent }}</div> |
||||
|
<div class="info-pics"> |
||||
|
<img :src="src" |
||||
|
:key="src" |
||||
|
v-for="src in info.eventImgs" |
||||
|
@click="watchImg(src)" /> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>提交时间:</span> |
||||
|
<span>{{ info.eventTime }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>报事人:</span> |
||||
|
<span>{{ info.eventPeopleName }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>所属网格:</span> |
||||
|
<span>{{ info.gridName }}</span> |
||||
|
</div> |
||||
|
<div class="info-prop"> |
||||
|
<span>提报给:</span> |
||||
|
<span>{{ info.eventPerson.join("、") || "--" }}</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div v-if="projectInfo.origin==='issue'" |
||||
|
class="m-line"> |
||||
|
<div class="stat"> |
||||
|
<div class="stat-item"> |
||||
|
<div> |
||||
|
{{ issueTrend.realityVoteCount }}/{{ |
||||
|
issueTrend.shouldVoteCount |
||||
|
}} |
||||
|
</div> |
||||
|
<div class="z-weak">已表决/应表决</div> |
||||
|
</div> |
||||
|
<div class="stat-item"> |
||||
|
<div>{{ issueTrend.supportAmount }}</div> |
||||
|
<div class="z-weak">支持</div> |
||||
|
</div> |
||||
|
<div class="stat-item"> |
||||
|
<div>{{ issueTrend.oppositionAmount }}</div> |
||||
|
<div class="z-weak">反对</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<line-chart v-if="issueChartData.length > 0" |
||||
|
:list="issueChartData" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div v-else |
||||
|
class="m-hint"> |
||||
|
<img src="@/assets/img/modules/visual/noData.png" |
||||
|
class="no-data-img" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</cpt-card> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import cptCard from "@/views/modules/visual/cpts/card"; |
||||
|
import screenLoading from "@/views/modules/visual/cpts/loading"; |
||||
|
import { requestPost } from "@/js/dai/request"; |
||||
|
import cptTb from "@/views/modules/visual/cpts/tb"; |
||||
|
import lineChart from "@/views/modules/visual/cpts/line-chart"; |
||||
|
import analyse from "@/views/modules/visual/cpts/analyse"; |
||||
|
import foldText from "@/views/components/foldText"; |
||||
|
import dateFormat from "dai-js/tools/dateFormat"; |
||||
|
|
||||
|
function iniData () { |
||||
|
return { |
||||
|
|
||||
|
groupList: [ |
||||
|
{ label: "研判分析" }, |
||||
|
{ label: "项目来源" }, |
||||
|
], |
||||
|
groupIndex: 0, |
||||
|
startGroupIndex: 0, |
||||
|
|
||||
|
|
||||
|
projectProcess: [], |
||||
|
|
||||
|
projectInfo: { |
||||
|
backGround: "", |
||||
|
departmentList: [ |
||||
|
// { departmentName: "南宁社区-南宁第二网格", staffList: ["周相成"] }, |
||||
|
], |
||||
|
departmentNameList: [], |
||||
|
internalRemark: "", |
||||
|
isSend: false, |
||||
|
locateAddress: "", |
||||
|
locateDimension: "", |
||||
|
locateLongitude: "", |
||||
|
origin: "", |
||||
|
originId: "", |
||||
|
platformIds: [], |
||||
|
processable: false, |
||||
|
projectId: "", |
||||
|
projectStatus: "pending", |
||||
|
projectTitle: "", |
||||
|
publicReply: "", |
||||
|
returnable: false, |
||||
|
}, |
||||
|
|
||||
|
issueInfo: { |
||||
|
attitude: "", |
||||
|
belongsGridName: "", |
||||
|
issueIdea: "", |
||||
|
issueInitiator: "", |
||||
|
issueStatus: "", |
||||
|
issueSuggestion: "", |
||||
|
issueTitle: "", |
||||
|
joinVote: true, |
||||
|
projectId: "", |
||||
|
projectStatus: false, |
||||
|
publishIdeaFlag: false, |
||||
|
}, |
||||
|
|
||||
|
issueTrend: {}, |
||||
|
issueChartData: [], |
||||
|
|
||||
|
eventInfo: { |
||||
|
eventTime: "", |
||||
|
eventContent: "", |
||||
|
eventAddress: "", |
||||
|
gridName: "", |
||||
|
isClosed: true, |
||||
|
isResolve: true, |
||||
|
isRollback: true, |
||||
|
eventImgs: [], |
||||
|
eventPerson: [], |
||||
|
eventOrg: [], |
||||
|
eventPeopleName: "", |
||||
|
projectInfo: { |
||||
|
projectId: "", |
||||
|
operationName: "", |
||||
|
operationTime: "", |
||||
|
projectDeclare: "", |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
projectCate: [], |
||||
|
projectTag: [], |
||||
|
|
||||
|
yanPan: { |
||||
|
loading: false, |
||||
|
|
||||
|
icResiUserId: "", |
||||
|
houseId: "", |
||||
|
icUserName: "", |
||||
|
|
||||
|
homeUserList: [ |
||||
|
// { |
||||
|
// homeId: '', |
||||
|
// icUserId: '', |
||||
|
// icUserName: '', |
||||
|
// } |
||||
|
], |
||||
|
categoryList: [], |
||||
|
projectData: [ |
||||
|
// { |
||||
|
// firstCategoryCode: '', |
||||
|
// firstCategoryName: '', |
||||
|
// projectList: [], |
||||
|
// } |
||||
|
], |
||||
|
}, |
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
export default { |
||||
|
name: "demandInfo", |
||||
|
props: { |
||||
|
projectId: { |
||||
|
type: String, |
||||
|
default: "", |
||||
|
}, |
||||
|
userId: { |
||||
|
type: String, |
||||
|
default: "", |
||||
|
}, |
||||
|
categoryCodes: { |
||||
|
type: Array, |
||||
|
default: [], |
||||
|
}, |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
components: { |
||||
|
cptCard, |
||||
|
cptTb, |
||||
|
analyse, |
||||
|
screenLoading, |
||||
|
lineChart, |
||||
|
foldText, |
||||
|
}, |
||||
|
|
||||
|
data: iniData, |
||||
|
|
||||
|
computed: {}, |
||||
|
|
||||
|
watch: { |
||||
|
projectId () { |
||||
|
let data = iniData(); |
||||
|
Object.keys(data).forEach((k) => { |
||||
|
this[k] = data[k]; |
||||
|
}); |
||||
|
this.getApiData(); |
||||
|
}, |
||||
|
}, |
||||
|
|
||||
|
mounted () { |
||||
|
this.getApiData(); |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
watchImg (src) { |
||||
|
window.open(src); |
||||
|
}, |
||||
|
|
||||
|
addStartGroupIndex () { |
||||
|
const { startGroupIndex, groupList } = this; |
||||
|
if (startGroupIndex < groupList.length - 9) { |
||||
|
this.startGroupIndex = startGroupIndex + 1; |
||||
|
} else { |
||||
|
this.startGroupIndex = groupList.length - 9; |
||||
|
} |
||||
|
}, |
||||
|
subStartGroupIndex () { |
||||
|
const { startGroupIndex, groupList } = this; |
||||
|
if (startGroupIndex > 0) { |
||||
|
this.startGroupIndex = startGroupIndex - 1; |
||||
|
} else { |
||||
|
this.startGroupIndex = 0; |
||||
|
} |
||||
|
}, |
||||
|
handleClose () { |
||||
|
this.$emit("close"); |
||||
|
}, |
||||
|
|
||||
|
async getApiData () { |
||||
|
|
||||
|
await this.getProjectInfo() |
||||
|
this.getProjectCate(); |
||||
|
this.getProjectProcess(); |
||||
|
if (this.projectInfo.origin === 'issue') { |
||||
|
this.getIssueInfo(); |
||||
|
this.getIssueTrend(); |
||||
|
} else if (this.projectInfo.origin === 'resi_event') { |
||||
|
this.getEventInfo() |
||||
|
} |
||||
|
if (this.projectInfo.origin !== 'agency') { |
||||
|
await this.getYanPan(); |
||||
|
|
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getProjectInfo () { |
||||
|
|
||||
|
const url = "/gov/project/trace/projectdetail"; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, { |
||||
|
projectId: this.projectId, |
||||
|
}); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.projectInfo = data; |
||||
|
|
||||
|
|
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getIssueInfo () { |
||||
|
|
||||
|
const url = "/resi/hall/issue/detail"; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, { |
||||
|
issueId: this.projectInfo.originId, |
||||
|
}); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.issueInfo = data; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getIssueTrend () { |
||||
|
|
||||
|
const url = "/resi/hall/issue/votingtrend"; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, { |
||||
|
issueId: this.projectInfo.originId, |
||||
|
}); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.issueTrend = data; |
||||
|
let chartData = []; |
||||
|
data.polyLine.forEach((item) => { |
||||
|
let date = dateFormat(new Date(item.voteDate * 1000), "yyyy-MM-dd"); |
||||
|
console.log("date:" + date); |
||||
|
chartData.push( |
||||
|
{ |
||||
|
date, |
||||
|
value: item.supportIncrement, |
||||
|
type: "支持", |
||||
|
}, |
||||
|
{ |
||||
|
date, |
||||
|
value: item.oppositionIncrement, |
||||
|
type: "反对", |
||||
|
} |
||||
|
); |
||||
|
}); |
||||
|
this.issueChartData = chartData; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getEventInfo () { |
||||
|
const url = "/gov/project/resievent/eventdetail-icdata"; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, { |
||||
|
resiEventId: this.projectInfo.originId, |
||||
|
}); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.info = data; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getProjectProcess () { |
||||
|
|
||||
|
const url = "/gov/project/trace/processlist-v2"; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, { |
||||
|
projectId: this.projectId, |
||||
|
}); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.projectProcess = data.map((item) => { |
||||
|
item.processTime = dateFormat( |
||||
|
new Date(item.processTime * 1000), |
||||
|
"yyyy-MM-dd hh:mm" |
||||
|
); |
||||
|
return item; |
||||
|
}); |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
async getProjectCate () { |
||||
|
|
||||
|
const url = "/gov/project/projectcategory/categorytaglist"; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, { |
||||
|
projectId: this.projectId, |
||||
|
}); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
this.projectCate = data.categoryList; |
||||
|
this.projectTag = data.tagList; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
//加载组织数据 |
||||
|
async getYanPan () { |
||||
|
const url = "/data/aggregator/project/projectanalysis"; |
||||
|
|
||||
|
const { data, code, msg } = await requestPost(url, { |
||||
|
categoryCodeList: this.categoryCodes, |
||||
|
userId: this.userId, |
||||
|
|
||||
|
}); |
||||
|
|
||||
|
if (code === 0) { |
||||
|
let array = [] |
||||
|
if (this.projectInfo.origin === 'issue') { |
||||
|
array = [...data.groupProjectList] |
||||
|
} else if (this.projectInfo.origin === 'resi_event') { |
||||
|
array = [...data.eventProjectList] |
||||
|
} |
||||
|
|
||||
|
|
||||
|
data.categoryList = array.map((item) => { |
||||
|
return { |
||||
|
categoryCode: item.firstCategoryCode, |
||||
|
categoryName: item.firstCategoryName, |
||||
|
showItem: true, |
||||
|
projectList: item.projectList.map((subItem) => { |
||||
|
return { |
||||
|
title: subItem.projectTitle, |
||||
|
status: subItem.projectStatus, |
||||
|
statusName: |
||||
|
subItem.projectStatus == "pending" ? "待处理" : "结案", |
||||
|
projectId: subItem.projectId, |
||||
|
projectId: subItem.projectId, |
||||
|
}; |
||||
|
}), |
||||
|
}; |
||||
|
}); |
||||
|
this.yanPan = { ...this.yanPan, ...data }; |
||||
|
this.yanPan.loading = false; |
||||
|
} else { |
||||
|
this.$message.error(msg); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
toUserInfo (item) { |
||||
|
this.$router.push({ |
||||
|
path: `/main-shuju/visual-basicinfo-people/${item.icResiUserId}`, |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
toProjectInfo (item) { |
||||
|
console.log(item); |
||||
|
this.projectId = item.projectId; |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style |
||||
|
lang="scss" |
||||
|
src="@/assets/scss/modules/visual/incident-info.scss" |
||||
|
scoped |
||||
|
></style> |
||||
Loading…
Reference in new issue