From ea183f380aaea6a87d05d60d304afa83cfafa3a4 Mon Sep 17 00:00:00 2001 From: zhengjie Date: Wed, 17 Apr 2019 17:28:26 +0800 Subject: [PATCH] =?UTF-8?q?1.7=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/index.scss | 6 +-- src/views/system/dept/module/form.vue | 15 +++++-- src/views/system/dictDetail/module/form.vue | 15 ++++--- src/views/system/job/module/form.vue | 30 +++++++------ src/views/system/menu/module/form.vue | 8 ++-- src/views/system/user/module/form.vue | 48 ++++++++++----------- 6 files changed, 69 insertions(+), 53 deletions(-) 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 @@ - - + +