-
+
-
-
+
+
+
+
@@ -156,6 +158,7 @@
validatedepartNameAbbrUrl: "sys/sysDepart/validatedepartNameAbbr",
},
dictDisabled: true,
+ orgCategoryDisabled: true,
}
},
created() {
@@ -174,7 +177,7 @@
})
},
- add(depart) {
+ add(depart,orgCategory) {
if (depart) {
this.seen = false;
this.dictDisabled = false;
@@ -182,6 +185,10 @@
this.seen = true;
this.dictDisabled = true;
}
+ if(orgCategory==2)
+ {
+ this.orgCategoryDisabled=false;
+ }
this.edit(depart);
},
edit(record) {
diff --git a/ant-design-vue-jeecg/src/views/system/modules/UserModal.vue b/ant-design-vue-jeecg/src/views/system/modules/UserModal.vue
index 83aed35e..f3458012 100644
--- a/ant-design-vue-jeecg/src/views/system/modules/UserModal.vue
+++ b/ant-design-vue-jeecg/src/views/system/modules/UserModal.vue
@@ -40,13 +40,13 @@
-
-
-
+
+
+
-
+
-
-
-
-
+
+
+
+
+
+
+
+
-
-
- 普通用户
- 上级
- 员工
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -120,9 +122,10 @@
-
-
-
+
+
+
+
@@ -172,8 +175,8 @@
phone: [{required: true, message: '请输入手机号!'}, {validator: this.validatePhone}],
email: [{validator: this.validateEmail}],
roles:{},
- workNo:[ { required: true, message: '请输入工号' },
- { validator: this.validateWorkNo }],
+ // workNo:[ { required: true, message: '请输入工号' },
+ // { validator: this.validateWorkNo }],
telephone: [{ pattern: /^0\d{2,3}-[1-9]\d{6,7}$/, message: '请输入正确的座机号码' },]
},
departIdShow:false,
diff --git a/ant-design-vue-jeecg/src/views/system/modules/UserRecycleBinModal.vue b/ant-design-vue-jeecg/src/views/system/modules/UserRecycleBinModal.vue
index 0e042207..70d89eb6 100644
--- a/ant-design-vue-jeecg/src/views/system/modules/UserRecycleBinModal.vue
+++ b/ant-design-vue-jeecg/src/views/system/modules/UserRecycleBinModal.vue
@@ -152,26 +152,51 @@
},
// 彻底删除用户
handleDelete(userIds) {
- this.$confirm({
- title: '彻底删除用户',
- content: (
-
您确定要彻底删除这 {userIds.length} 个用户吗?
-
注意:彻底删除后将无法恢复,请谨慎操作!
-
),
- centered: true,
- onOk: () => {
- var that = this;
- deleteAction(that.url.deleteRecycleBin, {userIds: userIds.join(',')}).then((res) => {
- if (res.success) {
- this.loadData()
- this.handleClearSelection()
- this.$message.success(`彻底删除 ${userIds.length} 个用户成功!`)
- } else {
- that.$message.warning(res.message);
- }
- });
- },
- })
+ // this.$confirm({
+ // title: '彻底删除用户',
+ // content: (
+ //
您确定要彻底删除这 {userIds.length} 个用户吗?
+ //
注意:彻底删除后将无法恢复,请谨慎操作!
+ //
),
+ // centered: true,
+ // onOk: () => {
+ // var that = this;
+ // deleteAction(that.url.deleteRecycleBin, {userIds: userIds.join(',')}).then((res) => {
+ // if (res.success) {
+ // this.loadData()
+ // this.handleClearSelection()
+ // this.$message.success(`彻底删除 ${userIds.length} 个用户成功!`)
+ // } else {
+ // that.$message.warning(res.message);
+ // }
+ // });
+ // },
+ // })
+
+ let str= "您确定要彻底删除这" +userIds.length +"个用户吗?";
+ this.$confirm(str, '彻底删除用户', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ var that = this;
+ deleteAction(that.url.deleteRecycleBin, {userIds: userIds.join(',')}).then((res) =>
+ {
+ if (res.success) {
+ this.loadData()
+ this.handleClearSelection()
+ this.$message.success(`彻底删除 ${userIds.length} 个用户成功!`)
+ } else {
+ that.$message.warning(res.message);
+ }
+ });
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消'
+ });
+ });
+
},
handleRevertBatch() {
this.handleRevert(this.selectedRowKeys)
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java
index e291b5b8..4915de3d 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java
@@ -77,7 +77,7 @@ public class SysDepartServiceImpl extends ServiceImpl queryTreeList() {
LambdaQueryWrapper query = new LambdaQueryWrapper();