|
|
@ -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,32 +275,7 @@ import lineChart from "@/views/modules/visual/cpts/line-chart"; |
|
|
|
import analyse from "@/views/modules/visual/cpts/analyse"; |
|
|
|
import dateFormat from "dai-js/tools/dateFormat"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "demandInfo", |
|
|
|
props: { |
|
|
|
topicId: { |
|
|
|
type: String, |
|
|
|
default: "", |
|
|
|
}, |
|
|
|
epmetUserIdList: { |
|
|
|
type: Array, |
|
|
|
default: [], |
|
|
|
}, |
|
|
|
icResiUserId: { |
|
|
|
type: String, |
|
|
|
default: "", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
components: { |
|
|
|
cptCard, |
|
|
|
cptTb, |
|
|
|
analyse, |
|
|
|
screenLoading, |
|
|
|
lineChart, |
|
|
|
}, |
|
|
|
|
|
|
|
data() { |
|
|
|
function iniData() { |
|
|
|
return { |
|
|
|
groupList: [ |
|
|
|
{ label: "研判分析" }, |
|
|
@ -416,12 +400,43 @@ export default { |
|
|
|
], |
|
|
|
}, |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "demandInfo", |
|
|
|
props: { |
|
|
|
topicId: { |
|
|
|
type: String, |
|
|
|
default: "", |
|
|
|
}, |
|
|
|
epmetUserIdList: { |
|
|
|
type: Array, |
|
|
|
default: [], |
|
|
|
}, |
|
|
|
icResiUserId: { |
|
|
|
type: String, |
|
|
|
default: "", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
components: { |
|
|
|
cptCard, |
|
|
|
cptTb, |
|
|
|
analyse, |
|
|
|
screenLoading, |
|
|
|
lineChart, |
|
|
|
}, |
|
|
|
|
|
|
|
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> |
|
|
|