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%">
{{ $t('cancel') }}
{{ $t('confirm') }}
+ @click="dataFormSubmitHandle()" :disabled="isAble">{{ $t('confirm') }}
@@ -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') }}
-
+
+
{{ $t('update') }}
- {{ $t('delete') }}
查看