From ff31836619826cf8240450749ecf4b93e2d42fec Mon Sep 17 00:00:00 2001 From: liujun Date: Thu, 4 Jan 2024 09:35:40 +0800 Subject: [PATCH 01/12] =?UTF-8?q?13323=20=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20=E9=83=A8=E9=97=A8=E6=8E=92=E5=BA=8F=20=E6=98=AF?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E4=BA=86=E8=BF=98=E8=AE=A9=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/index.vue | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 5e04581..4a01cd2 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -16,11 +16,6 @@ @node-click="handleNodeClick"/> - - - @@ -386,6 +364,7 @@ export default { } ).then((data) => { this.form = Object.assign({}, data.pd) // copy obj + this.form.DEPT_SORT = Number(this.form.DEPT_SORT) this.pds = data.pds || [] // 父级部门信息 this.dialogFormAdd = true From 64935b4b5425cabc8b618cb4cf4d901a9d2ee178 Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 5 Jan 2024 09:29:48 +0800 Subject: [PATCH 02/12] =?UTF-8?q?13025=20=E7=94=A8=E5=B7=A5=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/corpinfo/edit/components/corpInfoEdit.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/corpinfo/edit/components/corpInfoEdit.vue b/src/views/corpinfo/edit/components/corpInfoEdit.vue index 993f11c..b5a9fb3 100644 --- a/src/views/corpinfo/edit/components/corpInfoEdit.vue +++ b/src/views/corpinfo/edit/components/corpInfoEdit.vue @@ -877,6 +877,7 @@ export default { this.dataForm.businessLicenseDate = [] this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_START) this.dataForm.businessLicenseDate.push(this.dataForm.LICENSE_END) + this.dataForm.USER_NAME = this.dataForm.USER_NAME ? this.dataForm.USER_NAME : this.dataForm.USER_NAME_B this.$forceUpdate() // 将对象中的 选取形式 转为数组以多选形式展现 2023-08-31 转换开始 if (this.dataForm.SELECT_FORM) { From a567d36025c396f3b9ae6eb9b65c63c09f7c06fb Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 17 Jan 2024 18:43:02 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=B9=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/train/flow/components/list.vue | 6 ++---- src/views/train/synInfo/components/sendUtil.vue | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/train/flow/components/list.vue b/src/views/train/flow/components/list.vue index cf2631d..167fe59 100644 --- a/src/views/train/flow/components/list.vue +++ b/src/views/train/flow/components/list.vue @@ -45,12 +45,10 @@ - + diff --git a/src/views/train/synInfo/components/sendUtil.vue b/src/views/train/synInfo/components/sendUtil.vue index 125d89f..c1aeff2 100644 --- a/src/views/train/synInfo/components/sendUtil.vue +++ b/src/views/train/synInfo/components/sendUtil.vue @@ -8,8 +8,8 @@ width="500px" destroy-on-close> - - + + Date: Fri, 19 Jan 2024 18:35:26 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E8=8B=A5=E5=B9=B2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 12 ++ .../train/synInfo/components/sendUtil.vue | 118 ++++++++++++++---- 2 files changed, 109 insertions(+), 21 deletions(-) diff --git a/src/main.js b/src/main.js index f9b2e9f..5e9c056 100644 --- a/src/main.js +++ b/src/main.js @@ -54,6 +54,18 @@ Vue.config.productionTip = false Vue.use(Element, { size: Cookies.get('size') || 'small' // set element-ui default size }) + +// 树数据结构去除空子级 +Vue.prototype.removeEmptyChildren = function(data) { + for (let i = 0; i < data.length; i++) { + if (data[i].nodes && data[i].nodes.length > 0) { + this.removeEmptyChildren(data[i].nodes) + } else { + delete data[i].nodes + } + } + return data +} /* eslint-disable no-new */ new Vue({ el: '#app', diff --git a/src/views/train/synInfo/components/sendUtil.vue b/src/views/train/synInfo/components/sendUtil.vue index c1aeff2..6e06834 100644 --- a/src/views/train/synInfo/components/sendUtil.vue +++ b/src/views/train/synInfo/components/sendUtil.vue @@ -5,18 +5,47 @@ :append-to-body="appendToBody" :before-close="beforeClose" title="推送" - width="500px" + width="1000px" destroy-on-close> - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +