|
|
@ -15,7 +15,12 @@ |
|
|
|
<div class="info-title">话题内容</div> |
|
|
|
<div class="info-content">{{ info.topicContent }}</div> |
|
|
|
<div class="info-pics"> |
|
|
|
<img :src="src" :key="src" v-for="src in info.topicImgs" /> |
|
|
|
<img |
|
|
|
:src="src" |
|
|
|
:key="src" |
|
|
|
v-for="src in info.topicImgs" |
|
|
|
@click="watchImg(src)" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="info-prop"> |
|
|
|
<span>发布时间:</span> |
|
|
@ -68,6 +73,7 @@ |
|
|
|
:userName="yanPan.icUserName" |
|
|
|
:singleList="yanPan.categoryList" |
|
|
|
@user="toUserInfo" |
|
|
|
@project="toProjectInfo" |
|
|
|
/> |
|
|
|
<screen-loading v-else>加载中</screen-loading> |
|
|
|
</div> |
|
|
@ -137,7 +143,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<line-chart :list="issueChartData" /> |
|
|
|
<line-chart |
|
|
|
v-if="issueChartData.length > 0" |
|
|
|
:list="issueChartData" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else class="m-hint"> |
|
|
@ -266,6 +275,133 @@ import lineChart from "@/views/modules/visual/cpts/line-chart"; |
|
|
|
import analyse from "@/views/modules/visual/cpts/analyse"; |
|
|
|
import dateFormat from "dai-js/tools/dateFormat"; |
|
|
|
|
|
|
|
function iniData() { |
|
|
|
return { |
|
|
|
groupList: [ |
|
|
|
{ label: "研判分析" }, |
|
|
|
{ label: "话题评论" }, |
|
|
|
{ label: "查看议题" }, |
|
|
|
{ label: "查看项目" }, |
|
|
|
], |
|
|
|
groupIndex: 0, |
|
|
|
startGroupIndex: 0, |
|
|
|
|
|
|
|
info: { |
|
|
|
badgeList: [], |
|
|
|
closeDetail: { |
|
|
|
closeUserName: "", |
|
|
|
closeDateTime: "-1", |
|
|
|
closeReason: "", |
|
|
|
closeUserHeadPhoto: "", |
|
|
|
}, |
|
|
|
dimension: "", |
|
|
|
hiddenDetail: null, |
|
|
|
issueId: "", |
|
|
|
longitude: "", |
|
|
|
releaseAddress: "", |
|
|
|
releaseTime: "", |
|
|
|
releaseUserHeadPhoto: "", |
|
|
|
releaseUserName: "", |
|
|
|
shiftIssueFlag: true, |
|
|
|
topicContent: "", |
|
|
|
topicId: "", |
|
|
|
topicImgs: [], |
|
|
|
topicStatus: "discussing", |
|
|
|
}, |
|
|
|
|
|
|
|
comment: { |
|
|
|
loading: true, |
|
|
|
colList: [ |
|
|
|
{ |
|
|
|
align: "center", |
|
|
|
width: "20%", |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: "center", |
|
|
|
width: "20%", |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: "left", |
|
|
|
width: "50%", |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: "left", |
|
|
|
width: "10%", |
|
|
|
}, |
|
|
|
], |
|
|
|
header: ["评论者", "评论时间", "评论内容", "评论图片"], |
|
|
|
list: [], |
|
|
|
}, |
|
|
|
|
|
|
|
issueInfo: { |
|
|
|
attitude: "", |
|
|
|
belongsGridName: "", |
|
|
|
issueIdea: "", |
|
|
|
issueInitiator: "", |
|
|
|
issueStatus: "", |
|
|
|
issueSuggestion: "", |
|
|
|
issueTitle: "", |
|
|
|
joinVote: true, |
|
|
|
projectId: "", |
|
|
|
projectStatus: false, |
|
|
|
publishIdeaFlag: false, |
|
|
|
}, |
|
|
|
|
|
|
|
issueTrend: {}, |
|
|
|
issueChartData: [], |
|
|
|
|
|
|
|
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, |
|
|
|
}, |
|
|
|
|
|
|
|
projectCate: [], |
|
|
|
projectTag: [], |
|
|
|
|
|
|
|
yanPan: { |
|
|
|
loading: false, |
|
|
|
|
|
|
|
icResiUserId: "", |
|
|
|
houseId: "", |
|
|
|
icUserName: "", |
|
|
|
epmetUserIdList: [], |
|
|
|
houseUserList: [ |
|
|
|
// { |
|
|
|
// icResiUserId: '', |
|
|
|
// icUserName: '', |
|
|
|
// } |
|
|
|
], |
|
|
|
categoryList: [], |
|
|
|
projectData: [ |
|
|
|
// { |
|
|
|
// firstCategoryCode: '', |
|
|
|
// firstCategoryName: '', |
|
|
|
// projectList: [], |
|
|
|
// } |
|
|
|
], |
|
|
|
}, |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "demandInfo", |
|
|
|
props: { |
|
|
@ -291,137 +427,16 @@ export default { |
|
|
|
lineChart, |
|
|
|
}, |
|
|
|
|
|
|
|
data() { |
|
|
|
return { |
|
|
|
groupList: [ |
|
|
|
{ label: "研判分析" }, |
|
|
|
{ label: "话题评论" }, |
|
|
|
{ label: "查看议题" }, |
|
|
|
{ label: "查看项目" }, |
|
|
|
], |
|
|
|
groupIndex: 0, |
|
|
|
startGroupIndex: 0, |
|
|
|
|
|
|
|
info: { |
|
|
|
badgeList: [], |
|
|
|
closeDetail: { |
|
|
|
closeUserName: "", |
|
|
|
closeDateTime: "-1", |
|
|
|
closeReason: "", |
|
|
|
closeUserHeadPhoto: "", |
|
|
|
}, |
|
|
|
dimension: "", |
|
|
|
hiddenDetail: null, |
|
|
|
issueId: "", |
|
|
|
longitude: "", |
|
|
|
releaseAddress: "", |
|
|
|
releaseTime: "", |
|
|
|
releaseUserHeadPhoto: "", |
|
|
|
releaseUserName: "", |
|
|
|
shiftIssueFlag: true, |
|
|
|
topicContent: "", |
|
|
|
topicId: "", |
|
|
|
topicImgs: [], |
|
|
|
topicStatus: "discussing", |
|
|
|
}, |
|
|
|
|
|
|
|
comment: { |
|
|
|
loading: true, |
|
|
|
colList: [ |
|
|
|
{ |
|
|
|
align: "center", |
|
|
|
width: "20%", |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: "center", |
|
|
|
width: "20%", |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: "left", |
|
|
|
width: "50%", |
|
|
|
}, |
|
|
|
{ |
|
|
|
align: "left", |
|
|
|
width: "10%", |
|
|
|
}, |
|
|
|
], |
|
|
|
header: ["评论者", "评论时间", "评论内容", "评论图片"], |
|
|
|
list: [], |
|
|
|
}, |
|
|
|
|
|
|
|
issueInfo: { |
|
|
|
attitude: "", |
|
|
|
belongsGridName: "", |
|
|
|
issueIdea: "", |
|
|
|
issueInitiator: "", |
|
|
|
issueStatus: "", |
|
|
|
issueSuggestion: "", |
|
|
|
issueTitle: "", |
|
|
|
joinVote: true, |
|
|
|
projectId: "", |
|
|
|
projectStatus: false, |
|
|
|
publishIdeaFlag: false, |
|
|
|
}, |
|
|
|
|
|
|
|
issueTrend: {}, |
|
|
|
issueChartData: [], |
|
|
|
|
|
|
|
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, |
|
|
|
}, |
|
|
|
|
|
|
|
projectCate: [], |
|
|
|
projectTag: [], |
|
|
|
|
|
|
|
yanPan: { |
|
|
|
loading: false, |
|
|
|
|
|
|
|
icResiUserId: "", |
|
|
|
houseId: "", |
|
|
|
icUserName: "", |
|
|
|
epmetUserIdList: [], |
|
|
|
houseUserList: [ |
|
|
|
// { |
|
|
|
// icResiUserId: '', |
|
|
|
// icUserName: '', |
|
|
|
// } |
|
|
|
], |
|
|
|
categoryList: [], |
|
|
|
projectData: [ |
|
|
|
// { |
|
|
|
// firstCategoryCode: '', |
|
|
|
// firstCategoryName: '', |
|
|
|
// projectList: [], |
|
|
|
// } |
|
|
|
], |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
data: iniData, |
|
|
|
|
|
|
|
computed: {}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
topicId() { |
|
|
|
let data = iniData(); |
|
|
|
Object.keys(data).forEach((k) => { |
|
|
|
this[k] = data[k]; |
|
|
|
}); |
|
|
|
this.getApiData(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -431,6 +446,10 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
watchImg(src) { |
|
|
|
window.open(src); |
|
|
|
}, |
|
|
|
|
|
|
|
addStartGroupIndex() { |
|
|
|
const { startGroupIndex, groupList } = this; |
|
|
|
if (startGroupIndex < groupList.length - 9) { |
|
|
@ -510,7 +529,7 @@ export default { |
|
|
|
comment: { srcList }, |
|
|
|
} = this; |
|
|
|
if (srcList[index] && srcList[index].imageList) { |
|
|
|
window.open(srcList[index].imageList[0].url); |
|
|
|
this.watchImg(srcList[index].imageList[0].url); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -652,6 +671,7 @@ export default { |
|
|
|
statusName: |
|
|
|
subItem.projectStatus == "pending" ? "待处理" : "结案", |
|
|
|
projectId: subItem.projectId, |
|
|
|
topicId: subItem.topicId, |
|
|
|
}; |
|
|
|
}), |
|
|
|
}; |
|
|
@ -668,6 +688,11 @@ export default { |
|
|
|
path: `/main-shuju/visual-basicinfo-people/${item.icResiUserId}`, |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
toProjectInfo(item) { |
|
|
|
console.log(item); |
|
|
|
this.topicId = item.topicId; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|