From eaf70e7e3f904138ea96c83201ac5336fa51c451 Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Wed, 18 May 2022 13:25:42 +0800
Subject: [PATCH] 333
---
.../scss/modules/shequzhili/project-info.scss | 7 +-
.../shequzhili/xiangmu/cpts/event-info.vue | 275 ++++--------------
.../shequzhili/xiangmu/cpts/issue-info.vue | 2 +-
.../shequzhili/xiangmu/cpts/issue-suggest.vue | 154 ++++++++++
.../xiangmu/cpts/project-evaluation.vue | 154 ++++++++++
.../shequzhili/xiangmu/cpts/project-info.vue | 44 ++-
src/views/modules/visual/cpts/line-chart.vue | 6 +-
7 files changed, 408 insertions(+), 234 deletions(-)
create mode 100644 src/views/modules/shequzhili/xiangmu/cpts/issue-suggest.vue
create mode 100644 src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue
diff --git a/src/assets/scss/modules/shequzhili/project-info.scss b/src/assets/scss/modules/shequzhili/project-info.scss
index 9ea2740a..3fdfdd13 100644
--- a/src/assets/scss/modules/shequzhili/project-info.scss
+++ b/src/assets/scss/modules/shequzhili/project-info.scss
@@ -19,8 +19,7 @@
overflow-x: auto;
}
-.m-fm{
-
+.m-fm {
}
.m-btns {
@@ -322,3 +321,7 @@
.m-top {
display: flex;
}
+
+.m-chart {
+ min-height: 200px;
+}
diff --git a/src/views/modules/shequzhili/xiangmu/cpts/event-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/event-info.vue
index 4ef2dd5f..72c04623 100644
--- a/src/views/modules/shequzhili/xiangmu/cpts/event-info.vue
+++ b/src/views/modules/shequzhili/xiangmu/cpts/event-info.vue
@@ -3,63 +3,41 @@
- 议题详情
+ 事件详情
-
-
议题标题:
-
{{ issueInfo.issueTitle }}
+
事件内容
+
{{ info.eventContent }}
+
+
- 议题建议:
- {{ issueInfo.issueSuggestion }}
+ 提交时间:
+ {{ info.eventTime }}
- 所属网格:
- {{ issueInfo.belongsGridName || "--" }}
+ 报事人:
+ {{ info.eventPeopleName }}
- 议题发起人:
- {{ issueInfo.issueInitiator }}
-
-
- 议题来源:
- {{ issueInfo.topicInfo.groupName }}
+ 所属网格:
+ {{ info.gridName }}
- 转议题时间:
- {{ issueInfo.shiftIssueTime }}
-
-
-
-
-
-
-
- {{ issueTrend.realityVoteCount }}/{{
- issueTrend.shouldVoteCount
- }}
-
-
已表决/应表决
-
-
-
{{ issueTrend.supportAmount }}
-
支持
+
提报给:
+
+
{{ info.eventPersonShow }}
+
{{ info.eventOrgShow }}
-
-
{{ issueTrend.oppositionAmount }}
-
反对
-
-
-
+
+
@@ -68,100 +46,7 @@
-
-
- 处理进展
-
-
-
-
-
{{ item.processName }}
-
- {{ item.processTime }}
-
-
-
-
-
处理部门:
-
{{ item.departmentName }}
-
-
-
-
说 明:
-
- {{ item.publicReply }}
-
-
-
-
-
内部备注:
-
- {{ item.internalRemark }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 议题标题:
- {{ issueInfo.issueTitle }}
-
-
- 议题建议:
- {{ issueInfo.issueSuggestion }}
-
-
- 所属网格:
- {{ issueInfo.belongsGridName || "--" }}
-
-
- 议题发起人:
- {{ issueInfo.issueInitiator }}
-
-
- 议题来源:
- {{ issueInfo.topicInfo.groupName }}
-
-
- 转议题时间:
- {{ issueInfo.shiftIssueTime }}
-
-
-
+
@@ -175,31 +60,32 @@ function iniData() {
return {
pageType: "info",
- issueProcess: [],
-
- issueInfo: {
- attitude: "",
- belongsGridName: "",
- issueIdea: "",
- issueInitiator: "",
- issueStatus: "",
- issueSuggestion: "",
- issueTitle: "",
- joinVote: true,
- projectId: "",
- projectStatus: false,
- publishIdeaFlag: false,
+ eventInfo: {
+ eventTime: "",
+ eventContent: "",
+ eventAddress: "",
+ gridName: "",
+ isClosed: true,
+ isResolve: true,
+ isRollback: true,
+ eventImgs: [],
+ eventPerson: [],
+ eventOrg: [],
+ eventPeopleName: "",
+ projectInfo: {
+ projectId: "",
+ operationName: "",
+ operationTime: "",
+ projectDeclare: "",
+ },
},
-
- issueTrend: {},
- issueChartData: [],
};
}
export default {
name: "issueInfo",
props: {
- issueId: {
+ eventId: {
type: String,
default: "64502a8f1048a7240295527a9b32e513",
},
@@ -232,80 +118,25 @@ export default {
this.$emit("close");
},
- handleSubmit() {
- this.$emit("afterEdit");
- },
-
async getApiData() {
- this.getIssueInfo();
- this.getIssueTrend();
- this.getIssueProcess();
+ this.getEventInfo();
},
-
- //加载组织数据
- async getIssueInfo() {
- const url = "/resi/hall/issue/detail";
-
- const { data, code, msg } = await requestPost(url, {
- issueId: this.issueId,
- });
-
- 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.issueId,
- });
-
- 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 getIssueProcess() {
- const url = "/gov/issue/manage/progress";
+ async getEventInfo() {
+ const url = "/gov/project/resievent/eventdetail-icdata";
const { data, code, msg } = await requestPost(url, {
- issueId: this.issueId,
+ resiEventId: this.projectInfo.originId,
});
if (code === 0) {
- this.issueProcess = data.map((item) => {
- item.processTime = dateFormat(
- new Date(item.processTime * 1000),
- "yyyy-MM-dd hh:mm"
- );
- return item;
- });
+ if (data.eventOrg && data.eventOrg.length > 0) {
+ data.eventOrgShow = data.eventOrg.join("、");
+ }
+ if (data.eventPerson && data.eventPerson.length > 0) {
+ data.eventPersonShow = data.eventPerson.join("、");
+ }
+ this.info = { ...data };
} else {
this.$message.error(msg);
}
diff --git a/src/views/modules/shequzhili/xiangmu/cpts/issue-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/issue-info.vue
index eaaab689..2be1ffeb 100644
--- a/src/views/modules/shequzhili/xiangmu/cpts/issue-info.vue
+++ b/src/views/modules/shequzhili/xiangmu/cpts/issue-info.vue
@@ -56,7 +56,7 @@
-
diff --git a/src/views/modules/shequzhili/xiangmu/cpts/issue-suggest.vue b/src/views/modules/shequzhili/xiangmu/cpts/issue-suggest.vue
new file mode 100644
index 00000000..a4cf9f03
--- /dev/null
+++ b/src/views/modules/shequzhili/xiangmu/cpts/issue-suggest.vue
@@ -0,0 +1,154 @@
+
+
+
项目评价
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue
new file mode 100644
index 00000000..a4cf9f03
--- /dev/null
+++ b/src/views/modules/shequzhili/xiangmu/cpts/project-evaluation.vue
@@ -0,0 +1,154 @@
+
+
+
项目评价
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
index 36945191..012013d9 100644
--- a/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
+++ b/src/views/modules/shequzhili/xiangmu/cpts/project-info.vue
@@ -12,7 +12,7 @@
项目背景:
- {{ projectInfo.backGround || "--" }}
+ {{ projectInfo.backGround || "--" }}
项目方案:
@@ -22,13 +22,24 @@
内部备注:
{{ projectInfo.internalRemark || "--" }}
-
+
当前处理部门:
{{ projectInfo.departmentNameList.join("、") }}
+
分类:
@@ -144,18 +155,33 @@
-
@@ -164,12 +190,15 @@ import { requestPost } from "@/js/dai/request";
import foldText from "@/views/components/foldText";
import issueInfo from "./issue-info";
import eventInfo from "./event-info";
+import projectEvaluation from "./project-evaluation";
import dateFormat from "dai-js/tools/dateFormat";
function iniData() {
return {
pageType: "info",
+ showedEvaluation: false,
+
projectIdCopy: this.projectId,
fmData: {
@@ -259,6 +288,7 @@ export default {
foldText,
issueInfo,
eventInfo,
+ projectEvaluation,
},
data: iniData,
@@ -305,10 +335,10 @@ export default {
},
handleWatchOrigin() {
- this.pageType = 'origin-info';
+ this.pageType = "origin-info";
},
handleBackInfo() {
- this.pageType = 'info';
+ this.pageType = "info";
},
async getApiData() {
diff --git a/src/views/modules/visual/cpts/line-chart.vue b/src/views/modules/visual/cpts/line-chart.vue
index 35f14158..7a6e3683 100644
--- a/src/views/modules/visual/cpts/line-chart.vue
+++ b/src/views/modules/visual/cpts/line-chart.vue
@@ -1,6 +1,6 @@
-
+
@@ -12,6 +12,7 @@ import F2 from "@antv/f2/lib/index-all";
const fontFamily = "PingFang SC";
const fontSize = 14;
+let id = "myChart" + new Date().getDate();
let chart;
let srcData = [];
@@ -69,7 +70,7 @@ const addTextShape = () => {
const iniChart = function (config, srcData) {
chart = new F2.Chart({
- id: "myChart",
+ id,
...config,
});
@@ -203,6 +204,7 @@ export default {
data() {
return {
iniLoading: false,
+ id,
};
},
watch: {