Commit 1bdc4280 authored by 陈明豪's avatar 陈明豪

Merge remote-tracking branch 'origin/master'

parents 216a816d ebbfc5c0
...@@ -268,3 +268,8 @@ ...@@ -268,3 +268,8 @@
font-size: 14px; font-size: 14px;
border-radius: 4px; border-radius: 4px;
} }
/** 权限重写,所未勾选权限按钮的悬浮状态 */
.permi-disabled {
cursor: not-allowed;
}
...@@ -122,6 +122,7 @@ aside { ...@@ -122,6 +122,7 @@ aside {
//main-container全局样式 //main-container全局样式
.app-container { .app-container {
padding: 20px; padding: 20px;
min-height: calc(100vh - 50px - 24px - 24px - 5px);
} }
.components-container { .components-container {
......
...@@ -90,6 +90,9 @@ ...@@ -90,6 +90,9 @@
margin-left: 1px; margin-left: 1px;
} }
} }
.el-table__empty-block{
min-height: 88px;
}
} }
/** 表单布局 **/ /** 表单布局 **/
...@@ -132,11 +135,11 @@ ...@@ -132,11 +135,11 @@
} }
} }
.el-table .fixed-width .el-button--mini { .el-table .fixed-width .el-button--mini {
padding-left: 0; padding: 4px 0;
padding-right: 0; width: inherit;
width: inherit; border-radius: 4px!important;
} }
/** 表格更多操作下拉样式 */ /** 表格更多操作下拉样式 */
.el-table .el-dropdown-link,.el-table .el-dropdown-selfdefine { .el-table .el-dropdown-link,.el-table .el-dropdown-selfdefine {
......
...@@ -36,7 +36,7 @@ $base-sub-menu-background:#000c17; ...@@ -36,7 +36,7 @@ $base-sub-menu-background:#000c17;
$base-sub-menu-hover:#001528; $base-sub-menu-hover:#001528;
*/ */
$base-sidebar-width: 200px; $base-sidebar-width: 235px;
// the :export directive is the magic sauce for webpack // the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
......
...@@ -124,3 +124,14 @@ export async function unmount() { ...@@ -124,3 +124,14 @@ export async function unmount() {
instance = null instance = null
} }
// 重写v-hasPermi(原来为没权限消失, 现在为禁止点击)
Vue.directive('hasPermi', {
inserted: function(el, binding, vnode) {
const permission = binding.value
// 判断当前登陆用户有无此权限, 没有则此按钮禁用
if (!permission.some(element => store.getters.permissions.includes(element)) && !store.getters.permissions.includes('*:*:*')) {
el.disabled = true
el.classList.add('permi-disabled')
}
}
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment