From e6d77d042e48d739895b3a4561a43c3fdcd233a0 Mon Sep 17 00:00:00 2001 From: songyunpeng Date: Fri, 6 Mar 2020 10:42:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E6=9E=B6=E6=9E=84=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8=20=E7=BB=84=E4=BB=B6=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metaSysDeptManagement-add-or-update.vue | 22 +++++++++++++------ .../organize/metasysdeptManagement.vue | 9 ++------ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/views/modules/organize/metaSysDeptManagement-add-or-update.vue b/src/views/modules/organize/metaSysDeptManagement-add-or-update.vue index 9e628b14..981b7384 100644 --- a/src/views/modules/organize/metaSysDeptManagement-add-or-update.vue +++ b/src/views/modules/organize/metaSysDeptManagement-add-or-update.vue @@ -2,7 +2,8 @@ + :close-on-press-escape="false" + customClass="customWidth"> + :placeholder="$t('dept.name')" style="width: 75%"> + :placeholder="$t('dept.partyCode')" :disabled="true" style="width: 75%"> + :placeholder="$t('dept.parentName')" :disabled="true" style="width: 75%"> + placeholder="机构类型" :disabled="true" style="width: 75%"> + :label="$t('dept.sort')" style="width: 75%"> @@ -82,6 +83,7 @@ export default { visible: false, deptList: [], deptListVisible: false, + isAble: false, dataForm: { id: '', name: '', @@ -179,15 +181,18 @@ export default { if (!valid) { return false } + this.isAble = true this.$http[!this.dataForm.id ? 'post' : 'put']('/cloudAnalysis/metaSysdeptManager', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } + this.isAble = false this.$message({ message: this.$t('prompt.success'), type: 'success', duration: 500, onClose: () => { + this.isAble = false this.visible = false this.$emit('refreshDataList') } @@ -208,4 +213,7 @@ export default { } } } +.customWidth { + width:30%; +} diff --git a/src/views/modules/organize/metasysdeptManagement.vue b/src/views/modules/organize/metasysdeptManagement.vue index 68eb8658..f8faa9b1 100644 --- a/src/views/modules/organize/metasysdeptManagement.vue +++ b/src/views/modules/organize/metasysdeptManagement.vue @@ -13,20 +13,15 @@ {{ $t('query') }} - - {{ $t('add') }} - - - {{ $t('deleteBatch') }} - + + From 74b8b5891eb7743f59c2f006dfce3e68f3821562 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Fri, 6 Mar 2020 11:18:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organize/deptofficer-add-or-update.vue | 36 +++++++++++++------ .../modules/organize/deptofficer-add.vue | 36 +++++++++++++------ src/views/modules/organize/metasysdept.vue | 1 + 3 files changed, 53 insertions(+), 20 deletions(-) diff --git a/src/views/modules/organize/deptofficer-add-or-update.vue b/src/views/modules/organize/deptofficer-add-or-update.vue index bb96b058..8c773869 100644 --- a/src/views/modules/organize/deptofficer-add-or-update.vue +++ b/src/views/modules/organize/deptofficer-add-or-update.vue @@ -1,31 +1,34 @@ @@ -55,7 +58,12 @@ export default { sexFlagArr: [ { dictValue: '1', dictName: '男' }, { dictValue: '0', dictName: '女' } - ] + ], + masterFlagArr: [ + { dictValue: '1', dictName: '是' }, + { dictValue: '0', dictName: '否' } + ], + isAble: false } }, computed: { @@ -129,8 +137,10 @@ export default { if (!valid) { return false } + this.isAble = true this.$http[!this.dataForm.id ? 'post' : 'put']('/cloudAnalysis/deptofficer/', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { + this.isAble = false return this.$message.error(res.msg) } this.$message({ @@ -138,6 +148,7 @@ export default { type: 'success', duration: 500, onClose: () => { + this.isAble = false this.visible = false this.$emit('refreshDataList') } @@ -148,3 +159,8 @@ export default { } } + diff --git a/src/views/modules/organize/deptofficer-add.vue b/src/views/modules/organize/deptofficer-add.vue index db72b634..38af9662 100644 --- a/src/views/modules/organize/deptofficer-add.vue +++ b/src/views/modules/organize/deptofficer-add.vue @@ -1,31 +1,34 @@ @@ -55,7 +58,12 @@ export default { sexFlagArr: [ { dictValue: '1', dictName: '男' }, { dictValue: '0', dictName: '女' } - ] + ], + masterFlagArr: [ + { dictValue: '1', dictName: '是' }, + { dictValue: '0', dictName: '否' } + ], + isAble: false } }, computed: { @@ -132,8 +140,10 @@ export default { if (!valid) { return false } + this.isAble = true this.$http[!this.dataForm.id ? 'post' : 'put']('/cloudAnalysis/deptofficer/', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { + this.isAble = false return this.$message.error(res.msg) } this.$message({ @@ -141,6 +151,7 @@ export default { type: 'success', duration: 500, onClose: () => { + this.isAble = false this.visible = false this.$emit('refreshDataList') } @@ -151,3 +162,8 @@ export default { } } + diff --git a/src/views/modules/organize/metasysdept.vue b/src/views/modules/organize/metasysdept.vue index 9677321b..0ee9b43e 100644 --- a/src/views/modules/organize/metasysdept.vue +++ b/src/views/modules/organize/metasysdept.vue @@ -22,6 +22,7 @@ +