From e6d77d042e48d739895b3a4561a43c3fdcd233a0 Mon Sep 17 00:00:00 2001 From: songyunpeng Date: Fri, 6 Mar 2020 10:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E6=9E=B6=E6=9E=84=E7=AE=A1=E7=90=86=E5=88=97?= =?UTF-8?q?=E8=A1=A8=20=E7=BB=84=E4=BB=B6=E5=AE=BD=E5=BA=A6=E4=BF=AE?= =?UTF-8?q?=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') }} - + +