@@ -275,12 +275,19 @@ export default {
}
return statusObj[status]
},
+ computedPd(list) {
+ if (this.sourceTab == 'group') return '60px'
+ if (list.length == 1) return '330px'
+ else if (list.length == 2) return '240px'
+ else return '60px'
+ },
handleTabs (type) {
if (type === 'group') this.tempList = [...this.singleList]
else if (type === 'event') this.tempList = [...this.moreList]
this.sourceTab = type
const _dom = document.getElementById('scroll-wr')
_dom.scrollTop = 0
+ this.computedPd(this.tempList)
},
handleProject (item) {
this.$emit('project', item)
From 52f6fe2748fdb1d2ff756065435fefa8f4b05360 Mon Sep 17 00:00:00 2001
From: jiangyy
Date: Tue, 18 Jan 2022 10:21:30 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=9D=E9=A2=98=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../visual/communityGovern/cpt/issue-info.vue | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/views/modules/visual/communityGovern/cpt/issue-info.vue b/src/views/modules/visual/communityGovern/cpt/issue-info.vue
index 6ebd7d49..c5f55a89 100644
--- a/src/views/modules/visual/communityGovern/cpt/issue-info.vue
+++ b/src/views/modules/visual/communityGovern/cpt/issue-info.vue
@@ -23,7 +23,8 @@
{{ info.issueSuggestion }}
-
+
话题内容:
{{ info.topicInfo.topicContent }}
@@ -43,7 +44,8 @@
所属网格:
{{ info.belongsGridName}}
-
+
话题发表人:
{{ info.topicInfo.publishedUser}}
@@ -51,11 +53,13 @@
议题发起人:
{{ info.issueInitiator}}
-
+
话题来源:
{{ info.topicInfo.groupName}}
-
+
话题发表时间:
{{ info.topicInfo.publishedTimeShow}}
@@ -181,8 +185,10 @@ export default {
if (code === 0) {
this.info = data
- this.info.topicInfo.publishedTimeShow = dateFormat(new Date(this.info.topicInfo.publishedTime * 1000), "yyyy-MM-dd")
+ if (this.info.topicInfo && this.info.topicInfo.publishedTime) {
+ this.info.topicInfo.publishedTimeShow = dateFormat(new Date(this.info.topicInfo.publishedTime * 1000), "yyyy-MM-dd")
+ }
} else {
this.$message.error(msg);
}