diff --git a/src/components/alert.vue b/src/components/alert.vue index 2f3954f..403ee57 100644 --- a/src/components/alert.vue +++ b/src/components/alert.vue @@ -85,15 +85,15 @@ export default { color #929292 z-index 2018 .text - padding 14px 73px + padding 20px 50px max-height 60% - min-height 44px + min-height 80px overflow-y auto text-align center -webkit-overflow-scrolling touch white-space pre-wrap - font-size 14px - line-height 24px + font-size 30px + line-height 40px color #606266 [class*='hairline'] position relative @@ -113,9 +113,9 @@ export default { border-top-width 1px .button--large width 100% - height 32px - line-height 32px - font-size 14px + height 80px + line-height 80px + font-size 30px color #e74f1a background-color #dadee2 diff --git a/src/components/toast.vue b/src/components/toast.vue index b78e8fd..14119aa 100644 --- a/src/components/toast.vue +++ b/src/components/toast.vue @@ -26,19 +26,19 @@ export default { position fixed z-index 10001 width 90% - min-height 48px + min-height 80px text-align center left 50% top 50% transform translate(-50%, -50%) .text - line-height 32px + line-height 40px display inline-block width auto text-align center - padding 14px 30px + padding 20px 50px border-radius 16px background #858586 - font-size 14px + font-size 30px color #fff diff --git a/src/pages/modules/login/login.vue b/src/pages/modules/login/login.vue index 817d27e..eb21864 100644 --- a/src/pages/modules/login/login.vue +++ b/src/pages/modules/login/login.vue @@ -40,10 +40,6 @@ - @@ -133,6 +129,7 @@ export default { this.$router.push('/index/home') } catch (err) { this.disabled = false + this.toast(err) } }, show (e) { diff --git a/src/pages/modules/systemmanage/role.vue b/src/pages/modules/systemmanage/role.vue index c7ed9bc..47dfe61 100644 --- a/src/pages/modules/systemmanage/role.vue +++ b/src/pages/modules/systemmanage/role.vue @@ -15,13 +15,13 @@ 创建日期 操作 - + - {{ e.name }} - {{ e.remark }} - {{ e.createTime }} + {{ e.name }} + {{ e.remark }} + {{ e.createTime }}
@@ -67,14 +67,10 @@
- 角色名称 + {{ pkObj.name }}
-
{ - this.$refs.tree.setChecked(e, false, true) - }) this._sysRoleQuery() } else { this.toast(res.desc) + this.pkId = '' + this.checkedKeys = [] } this.disabled = false } catch (e) { this.disabled = false + this.pkId = '' + this.checkedKeys = [] } }, toSave () { @@ -297,7 +294,6 @@ export default { return } this.active1 = false - this.pkId = '' let arr1 = this.$refs.tree.getCheckedKeys() let arr2 = this.$refs.tree.getHalfCheckedKeys() arr2.map((e, i) => { @@ -317,20 +313,17 @@ export default { }, toCheck (e) { this.pkId = this.pkId === e.roleId ? '' : e.roleId + this.pkObj = this.pkId === e.roleId ? e : [] this.active1 = this.pkId === e.roleId - this.checkedKeys = this.pkId === e.roleId ? e.menus1 : [] - this.tree.map(e => { - this.$refs.tree.setChecked(e, false, true) + this.checkedKeys = [...e.menus1] + this.$nextTick(() => { + this.$refs.tree.setCheckedKeys(this.checkedKeys) }) - if (this.pkId === e.roleId) { - this.checkedKeys = e.menus1 - } else { - this.checkedKeys = [] - } }, toCancle1 () { this.active1 = false this.pkId = '' + this.checkedKeys = [] }, show (e) { this.input = e.target diff --git a/src/style/common.styl b/src/style/common.styl index f6bf789..588575a 100644 --- a/src/style/common.styl +++ b/src/style/common.styl @@ -494,6 +494,9 @@ .el-checkbox__input.is-indeterminate .el-checkbox__inner &::before top 17px +.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content + background: none; + // 车辆信息 .state_wrap