diff --git a/src/assets/scss/modules/visual/distributionAnalyze.scss b/src/assets/scss/modules/visual/distributionAnalyze.scss index 874dfbed..438c0e30 100644 --- a/src/assets/scss/modules/visual/distributionAnalyze.scss +++ b/src/assets/scss/modules/visual/distributionAnalyze.scss @@ -116,12 +116,12 @@ display: flex; flex-direction: row; // flex-wrap: wrap; - // justify-content: center; + justify-content: space-between; height: calc(100vh - 230px); .g-l { width: 40%; - height: calc(100vh - 290px); + height: calc(100vh - 240px); .echart-line { margin-left: 30px; @@ -139,7 +139,7 @@ } .g-r { - width: 60%; + width: 55%; height: calc(100vh - 250px); .r-map { diff --git a/src/views/modules/visual/communityGovern/cpt/project-info.vue b/src/views/modules/visual/communityGovern/cpt/project-info.vue new file mode 100644 index 00000000..952c3df4 --- /dev/null +++ b/src/views/modules/visual/communityGovern/cpt/project-info.vue @@ -0,0 +1,630 @@ + + + + + diff --git a/src/views/modules/visual/communityGovern/distributionAnalyze.vue b/src/views/modules/visual/communityGovern/distributionAnalyze.vue index 097df0a0..5f5e4c79 100644 --- a/src/views/modules/visual/communityGovern/distributionAnalyze.vue +++ b/src/views/modules/visual/communityGovern/distributionAnalyze.vue @@ -503,11 +503,12 @@ export default { let dataArray = new Array(num) //遍历每个分类 this.lineList[0].categoryList.forEach((categoryItem, index) => { - this.legend.push(categoryItem.name) + this.legend.push(categoryItem.categoryName) dataArray[index] = [] }); + //遍历每个时间 this.lineList.forEach(item => { this.xaxis.push(item.time) @@ -523,8 +524,9 @@ export default { this.lineList[0].categoryList.forEach((categoryItem, index) => { let object = { - name: categoryItem.name, + name: categoryItem.categoryName, type: 'line', + smooth: true, barWidth: 15, areaStyle: {}, itemStyle: { diff --git a/src/views/modules/visual/communityGovern/distributionLineOption.js b/src/views/modules/visual/communityGovern/distributionLineOption.js index ac897026..05df510d 100644 --- a/src/views/modules/visual/communityGovern/distributionLineOption.js +++ b/src/views/modules/visual/communityGovern/distributionLineOption.js @@ -2,6 +2,21 @@ import * as echarts from 'echarts' export function lineOption () { return { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross', + label: { + backgroundColor: '#6a7985' + } + } + }, + grid: { + left: 70, + top: 40, + right: 50, + bottom: 150 + }, legend: { textStyle: { color: '#D2E7FF', @@ -10,7 +25,7 @@ export function lineOption () { }, itemWidth: 20, itemHeight: 10, - // top: 350, + // top: 650, bottom: 0, data: [] }, @@ -62,6 +77,7 @@ export function lineOption () { } }, series: [ + // { // name: '项目数', // type: 'line', diff --git a/src/views/modules/visual/communityGovern/processAnalyze.vue b/src/views/modules/visual/communityGovern/processAnalyze.vue index ec2ca8c8..c20b4ece 100644 --- a/src/views/modules/visual/communityGovern/processAnalyze.vue +++ b/src/views/modules/visual/communityGovern/processAnalyze.vue @@ -528,7 +528,6 @@ export default { } this.$refs.pieChart.handleClick(fun) - }, clickPie (seriesIndex) { diff --git a/src/views/modules/visual/communityGovern/resibuzz.vue b/src/views/modules/visual/communityGovern/resibuzz.vue index 84e9e9c0..73918a26 100644 --- a/src/views/modules/visual/communityGovern/resibuzz.vue +++ b/src/views/modules/visual/communityGovern/resibuzz.vue @@ -192,8 +192,8 @@ export default { pageNo: 1, total: 0, }, - showIssue: true, - issueId: 'cf48b7dc70ef4c319fd9c71890d9dbbb', + showIssue: false, + issueId: '', casOptions: [], agencyIdArray: [], @@ -243,7 +243,6 @@ export default { this.orgId = this.agencyInfo.agencyId this.orgType = this.agencyInfo.level === 'grid' ? 'grid' : 'agency' - if (!this.agencyInfo.latitude) { this.agencyInfo.latitude = 36.072227 } diff --git a/src/views/modules/visual/communityGovern/typeAnalyze.vue b/src/views/modules/visual/communityGovern/typeAnalyze.vue index d6a9d629..a78d2c24 100644 --- a/src/views/modules/visual/communityGovern/typeAnalyze.vue +++ b/src/views/modules/visual/communityGovern/typeAnalyze.vue @@ -43,7 +43,8 @@ + :list="demand.list" + @operate="toProjectInfo"> @@ -61,6 +62,11 @@ + @@ -70,6 +76,7 @@ import { requestPost } from "@/js/dai/request"; import cptCard from "@/views/modules/visual/cpts/card"; import cptTb from "@/views/modules/visual/cpts/tb"; import screenEchartsFrame from "@/views/modules/visual/components/screen-echarts-frame"; +import projectInfo from "./cpt/project-info"; import { pieOption } from './typePieOption.js' import nextTick from 'dai-js/tools/nextTick' @@ -150,8 +157,13 @@ export default { pageSize: 10, pageNo: 1, total: 0, - }, + tableList: [], + showProject: false, + userId: '',//话题事件创始人 + categoryCodes: [],//一级分类Id + projectId: '', + casOptions: [], agencyIdArray: [], @@ -175,7 +187,7 @@ export default { }, async mounted () { - this.userId = this.uid; + this.initData() await this.getAgencylist()//获取组织级别 await nextTick(500) @@ -382,6 +394,7 @@ export default { if (code === 0) { this.demand.total = data.total; + this.tableList = data.list this.demand.list = data.list.map((item) => { //楼院小组:issue; 项目立项:agency 事件上报:resi_event【也可控制点击查看时里边三个按钮的显示】 item.originShow = item.origin === 'issue' ? '楼院小组' : item.origin === 'agency' ? '项目立项' : '事件上报' @@ -408,8 +421,14 @@ export default { this.demand.pageNo = val; this.getTable(); }, - toUserInfo (uid) { - this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` }); + async toProjectInfo (index) { + const { tableList } = this; + this.projectId = tableList[index].projectId + this.userId = tableList[index].userId + this.categoryCodes = tableList[index].categoryCodes + + this.showProject = true + }, }, props: { @@ -426,6 +445,7 @@ export default { cptCard, cptTb, screenEchartsFrame, + projectInfo, }, watch: { @@ -433,13 +453,7 @@ export default { let dataArray = this.dateIdShow.split('-') this.dateId = dataArray.join('') }, - uid (id) { - this.userId = id; - }, - userId () { - this.getPie() - window.scrollTo(0, 0); - }, + }, }; diff --git a/src/views/modules/visual/components/screen-table/index.vue b/src/views/modules/visual/components/screen-table/index.vue index 9d1861ac..bfc00da9 100644 --- a/src/views/modules/visual/components/screen-table/index.vue +++ b/src/views/modules/visual/components/screen-table/index.vue @@ -251,6 +251,9 @@ export default { text-align: center; width: calc(100% / 5); cursor: pointer; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; .more { font-size: 18px; font-weight: 400; diff --git a/src/views/modules/visual/cpts/analyse.vue b/src/views/modules/visual/cpts/analyse.vue index 462db2f8..acc1bbab 100644 --- a/src/views/modules/visual/cpts/analyse.vue +++ b/src/views/modules/visual/cpts/analyse.vue @@ -5,7 +5,10 @@
(家属)
-
{{item.icUserName}}
+
{{item.icUserName}}
- +
@@ -112,11 +133,10 @@