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/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/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 @@ +