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] =?UTF-8?q?=E5=B1=85=E6=B0=91=E6=96=B0=E5=A2=9E=E9=BB=98?= =?UTF-8?q?=E8=AE=A418=E7=B1=BB=EF=BC=8C=E7=BC=96=E8=BE=91=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E7=BD=91=E6=A0=BC=EF=BC=8C=E7=A0=94=E5=88=A4UI?= 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)