Commit 31fc6c0f by 胡悦

UI样式调整

1 parent 3b31816d
<!-- 员工管理 -->
<template>
<div class="config-employee employee-list">
<div style="margin-bottom: 20px">
<div style="margin-bottom: 10px">
<GLButton @click="handleEdit(1)" :size="size" class="el-icon-plus" fn="创建员工" type="primary" mode="el-button">创建员工</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" >创建员工</el-button> -->
</div>
......@@ -31,9 +31,9 @@
<p>启用前,你可先为该员工创建角色,配置其所需的功能权限。如下所示:</p>
<p>1. 角色管理-创建角色</p>
<p>2. 选择员工账户-修改角色</p>
<GLButton mode="el-switch" fn="开关" size="mini" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
<GLButton mode="el-switch" fn="开关" width="32" size="mini" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
</el-popover>
<GLButton mode="el-switch" fn="开关" v-else size="mini" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
<GLButton mode="el-switch" fn="开关" width="32" v-else size="mini" slot="reference" v-model="scope.scope.statusName" active-value="启用" inactive-value="禁用" @change="e => handleSwitchChange(e, scope.scope)"></GLButton>
<span style="margin-left: 8px">{{ scope.scope.statusName }}</span>
</GLButton>
</template>
......@@ -431,7 +431,7 @@ export default {
}
</script>
<style scoped>
<style lang="scss" scoped>
.config-employee {
margin-bottom: 0;
}
......@@ -459,4 +459,17 @@ export default {
padding: 0;
border: 0;
}
/deep/ {
.el-switch__core {
height: 16px;
&::after {
top: 0;
width: 14px;
height: 14px;
}
}
.el-switch.is-checked .el-switch__core::after {
margin-left: -14px;
}
}
</style>
......@@ -323,7 +323,7 @@ export default {
display: flex;
align-items: center;
box-sizing: border-box;
padding: 0 20px 20px 0;
padding: 0 20px 10px 0;
}
.table_widget {
width: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!