diff --git a/src/styles/index.scss b/src/styles/index.scss
index 1d6f369..3a08658 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -127,10 +127,10 @@ a:hover {
.logo-con{
height: 60px;
- padding: 12px 0px 0px;
+ padding: 13px 0px 0px;
img{
- height: 35px;
- width: 138px;
+ height: 32px;
+ width: 135px;
display: block;
margin: 0 auto;
}
diff --git a/src/views/system/dept/module/form.vue b/src/views/system/dept/module/form.vue
index d694d28..aea5b8d 100644
--- a/src/views/system/dept/module/form.vue
+++ b/src/views/system/dept/module/form.vue
@@ -61,10 +61,17 @@ export default {
doSubmit() {
this.$refs['form'].validate((valid) => {
if (valid) {
- this.loading = true
- if (this.isAdd) {
- this.doAdd()
- } else this.doEdit()
+ if (this.form.pid) {
+ this.loading = true
+ if (this.isAdd) {
+ this.doAdd()
+ } else this.doEdit()
+ } else {
+ this.$message({
+ message: '上级部门不能为空',
+ type: 'warning'
+ })
+ }
}
})
},
diff --git a/src/views/system/dictDetail/module/form.vue b/src/views/system/dictDetail/module/form.vue
index a6c34d5..ad1278e 100644
--- a/src/views/system/dictDetail/module/form.vue
+++ b/src/views/system/dictDetail/module/form.vue
@@ -7,8 +7,8 @@
-
-
+
+