From b9d90b02a6552a04480a7ec4136f41770c9f759c Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Fri, 14 Jan 2022 11:13:27 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E5=B1=85=E6=B0=91=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=BB=98=E8=AE=A418=E7=B1=BB=EF=BC=8C=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E7=BD=91=E6=A0=BC=EF=BC=8C=E7=A0=94=E5=88=A4?= =?UTF-8?q?UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/editResi.vue | 4 ++-- src/views/components/resiForm.vue | 11 +++++++++-- src/views/modules/visual/cpts/analyse.vue | 9 ++++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue index 27be335d..07d1a731 100644 --- a/src/views/components/editResi.vue +++ b/src/views/components/editResi.vue @@ -19,7 +19,7 @@
{ let _form = {} - // console.log('formInfo', obj) + console.log('formInfo---arr', arr) if (Object.keys(obj).length > 0) { _form = { ...obj } return _form } arr.forEach(item => { + if (item.multiSelect) _form[item.columnName] = [] + else if (item.itemType == 'radio' && item.defaultValue == '0') _form[item.columnName] = item.defaultValue else _form[item.columnName] = '' // if (item.optionSourceType === 'remote') { @@ -371,7 +373,12 @@ export default { let form = initForm(this.formInfo, this.formList) let rules = initRules(this.formList) console.log('rulessss', rules) - let tempFormList = [ ...this.formList ] + let tempFormList = [ ...this.formList ].map(item => { + return { + ...item, + isChange: (item.itemType == 'radio' && item.defaultValue == '0') ? true : false + } + }) let constForm = { ...form, GRID_ID: '', diff --git a/src/views/modules/visual/cpts/analyse.vue b/src/views/modules/visual/cpts/analyse.vue index 6292ddc5..10c0c512 100644 --- a/src/views/modules/visual/cpts/analyse.vue +++ b/src/views/modules/visual/cpts/analyse.vue @@ -83,7 +83,7 @@
-
+
@@ -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/6] =?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); } From 8e092d27909dcc96ce8ac4d618b4f9a8ca7ee12e Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Tue, 18 Jan 2022 15:09:56 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/editResi.vue | 123 +++++++++++++++++++----------- 1 file changed, 79 insertions(+), 44 deletions(-) diff --git a/src/views/components/editResi.vue b/src/views/components/editResi.vue index 07d1a731..8d431863 100644 --- a/src/views/components/editResi.vue +++ b/src/views/components/editResi.vue @@ -1,6 +1,6 @@