From 4419da407a271f6095457c68a6a4bc4e02655576 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Tue, 26 Apr 2022 17:16:39 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/checkBox.vue | 77 +++++ src/views/components/dragItem.vue | 94 ++++++ src/views/modules/base/diyInfo.vue | 455 +++++++++++++++++++++++++++++ src/views/modules/base/resi.vue | 30 +- 4 files changed, 654 insertions(+), 2 deletions(-) create mode 100644 src/views/components/checkBox.vue create mode 100644 src/views/components/dragItem.vue create mode 100644 src/views/modules/base/diyInfo.vue diff --git a/src/views/components/checkBox.vue b/src/views/components/checkBox.vue new file mode 100644 index 00000000..bfd326ca --- /dev/null +++ b/src/views/components/checkBox.vue @@ -0,0 +1,77 @@ + + + + + \ No newline at end of file diff --git a/src/views/components/dragItem.vue b/src/views/components/dragItem.vue new file mode 100644 index 00000000..c9268ac9 --- /dev/null +++ b/src/views/components/dragItem.vue @@ -0,0 +1,94 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/base/diyInfo.vue b/src/views/modules/base/diyInfo.vue new file mode 100644 index 00000000..7f3e86bc --- /dev/null +++ b/src/views/modules/base/diyInfo.vue @@ -0,0 +1,455 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 5ffed18a..2e6f90fe 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -63,6 +63,10 @@ class="diy-button--reset" :loading="exportBtn" @click="handleExport">{{exportBtnTitle}} + 自定义导出 + + + Date: Tue, 26 Apr 2022 17:20:48 +0800 Subject: [PATCH 2/7] dd --- src/views/modules/base/diyInfo.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/modules/base/diyInfo.vue b/src/views/modules/base/diyInfo.vue index 7f3e86bc..2d103fba 100644 --- a/src/views/modules/base/diyInfo.vue +++ b/src/views/modules/base/diyInfo.vue @@ -257,12 +257,15 @@ export default { }, handlePreview(id) { if (id) this.getPreview(id) - else this.previewList = this.rightList.map(item => { + else { + if (this.rightList.length == 0) return this.$message.error('请选择导出信息') + this.previewList = this.rightList.map(item => { return { label: item.groupName, children: item.queryItemList } }) + } this.diyDialog = true }, handleExport() { From 38c71b81a9d4fc6ed8f3e133dee25687c119011f Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 27 Apr 2022 10:11:40 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=AF=BC=E5=87=BA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/checkBox.vue | 1 + src/views/modules/base/diyInfo.vue | 39 ++++++++++++------------ src/views/modules/base/resi.vue | 49 ++++++++++++++++++++++++++++-- 3 files changed, 67 insertions(+), 22 deletions(-) diff --git a/src/views/components/checkBox.vue b/src/views/components/checkBox.vue index bfd326ca..4bab4aea 100644 --- a/src/views/components/checkBox.vue +++ b/src/views/components/checkBox.vue @@ -41,6 +41,7 @@ export default { }, created() { this.boxList = this.list.filter(item => item.itemType != 'inputRange') + console.log('cehck-bo----', this.list) this.pid = this.list[0].itemGroupId }, methods: { diff --git a/src/views/modules/base/diyInfo.vue b/src/views/modules/base/diyInfo.vue index 2d103fba..b93a4939 100644 --- a/src/views/modules/base/diyInfo.vue +++ b/src/views/modules/base/diyInfo.vue @@ -1,13 +1,13 @@