- 若依后台管理系统
+ 唐河县安全隐患及应急救援管理平台
diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue
index e502b4e..4a0b952 100644
--- a/ruoyi-ui/src/views/system/dept/index.vue
+++ b/ruoyi-ui/src/views/system/dept/index.vue
@@ -77,13 +77,13 @@
@click="handleUpdate(scope.row)"
v-hasPermi="['system:dept:edit']"
>修改
- 新增
+ >新增-->
-
+
@@ -193,9 +193,9 @@ export default {
form: {},
// 表单校验
rules: {
- parentId: [
+ /*parentId: [
{ required: true, message: "上级部门不能为空", trigger: "blur" }
- ],
+ ],*/
deptName: [
{ required: true, message: "部门名称不能为空", trigger: "blur" }
],
@@ -251,7 +251,7 @@ export default {
reset() {
this.form = {
deptId: undefined,
- parentId: undefined,
+ parentId: 100,
deptName: undefined,
orderNum: undefined,
leader: undefined,
@@ -274,7 +274,8 @@ export default {
handleAdd(row) {
this.reset();
if (row != undefined) {
- this.form.parentId = row.deptId;
+ //this.form.parentId = row.deptId;
+ this.form.parentId = 100;
}
this.open = true;
this.title = "添加部门";
@@ -310,6 +311,7 @@ export default {
submitForm: function() {
this.$refs["form"].validate(valid => {
if (valid) {
+ console.log(this.form)
if (this.form.deptId != undefined) {
updateDept(this.form).then(response => {
this.$modal.msgSuccess("修改成功");