Commit bff48e75 by 胡悦

修改样式

1 parent 7e2b8c21
@import './demo.scss'; @import './demo.scss';
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
vertical-align: top; vertical-align: top;
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.text-hide-2 { .text-hide-2 {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
} }
.scrm-textRight { .scrm-textRight {
position: relative; position: relative;
text-align: right; text-align: right;
} }
.scrm-textCenter { .scrm-textCenter {
text-align: center; text-align: center;
} }
.scrm-c3 { .scrm-c3 {
color: #333333; color: #333333;
} }
.scrm-f12 { .scrm-f12 {
font-size: 12px; font-size: 12px;
} }
.scrm-f13 { .scrm-f13 {
font-size: 13px; font-size: 13px;
} }
.scrm-f14 { .scrm-f14 {
font-size: 14px; font-size: 14px;
} }
.scrm-f15 { .scrm-f15 {
font-size: 15px; font-size: 15px;
} }
.scrm-f16 { .scrm-f16 {
font-size: 16px; font-size: 16px;
} }
.scrm-f18 { .scrm-f18 {
font-size: 18px; font-size: 18px;
} }
.scrm-f20 { .scrm-f20 {
font-size: 20px; font-size: 20px;
} }
.scrm-f22 { .scrm-f22 {
font-size: 22px; font-size: 22px;
} }
.scrm-f24 { .scrm-f24 {
font-size: 24px; font-size: 24px;
} }
.scrm-m10 { .scrm-m10 {
margin: 10px; margin: 10px;
} }
.scrm-m20 { .scrm-m20 {
margin: 20px; margin: 20px;
} }
.scrm-ml10 { .scrm-ml10 {
margin-left: 10px; margin-left: 10px;
} }
.scrm-ml20 { .scrm-ml20 {
margin-left: 20px; margin-left: 20px;
} }
.scrm-mr10 { .scrm-mr10 {
margin-right: 10px; margin-right: 10px;
} }
.scrm-mr20 { .scrm-mr20 {
margin-right: 20px; margin-right: 20px;
} }
.scrm-p10 { .scrm-p10 {
padding: 10px; padding: 10px;
} }
.scrm-p20 { .scrm-p20 {
padding: 20px; padding: 20px;
} }
.scrm-box-f { .scrm-box-f {
background: #FFFFFF; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.10); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.scrm-flex { .scrm-flex {
display: flex; display: flex;
} }
.scrm-grid { .scrm-grid {
display: grid; display: grid;
} }
.scrm-flex-center { .scrm-flex-center {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.scrm-flex-between { .scrm-flex-between {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.el-checkbox:last-of-type { .el-checkbox:last-of-type {
margin-right: 0px; margin-right: 0px;
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
/*滚动条整体样式*/ /*滚动条整体样式*/
width: 6px; width: 6px;
height: 4px; height: 4px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/ /*滚动条里面小方块*/
border-radius: 4px; border-radius: 4px;
background-color: rgba(144, 147, 153, .3); background-color: rgba(144, 147, 153, 0.3);
} }
.el-message--info { .el-message--info {
height: 40px; height: 40px;
background: #e6e9ff; background: #e6e9ff;
border: 1px solid #5850ff; border: 1px solid #5850ff;
border-radius: 4px; border-radius: 4px;
font-size: 14px; font-size: 14px;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
} }
.el-message .el-icon-info { .el-message .el-icon-info {
color: #5850ff; color: #5850ff;
font-size: 16px; font-size: 16px;
} }
.el-cascader-menu { .el-cascader-menu {
max-height: 500px; max-height: 500px;
} }
.footer-panel { .footer-panel {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: fixed; position: fixed;
width: 100%; width: 100%;
bottom: 0px; bottom: 0px;
height: 64px; height: 64px;
background: #ffffff; background: #ffffff;
z-index: 999; z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.dot { .dot {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
span { span {
display: inline-block; display: inline-block;
width: 6px; width: 6px;
height: 6px; height: 6px;
border-radius: 50%; border-radius: 50%;
margin-right: 8px; margin-right: 8px;
} }
.normal { .normal {
background-color: #2CCA74; background-color: #2cca74;
} }
.draft { .draft {
background-color: #FDB757; background-color: #fdb757;
} }
.dot1 { .dot1 {
background-color: #FDB757; background-color: #fdb757;
} }
.dot2 { .dot2 {
background-color: #2CCA74; background-color: #2cca74;
} }
.dot3 { .dot3 {
background-color: #999999; background-color: #999999;
} }
.dot4 { .dot4 {
background-color: #EB4E4E; background-color: #eb4e4e;
} }
.dot5 { .dot5 {
background-color: #FDB757; background-color: #fdb757;
} }
} }
.m-r-md { .m-r-md {
margin-right: 20px;
}
\ No newline at end of file \ No newline at end of file
margin-right: 20px;
}
// 顶部按钮
.top_widget {
padding-bottom: 16px;
.el-button {
span {
margin-left: 10px;
}
}
}
<!-- 员工管理 --> <!-- 员工管理 -->
<template> <template>
<div class="config-employee employee-list"> <div class="config-employee employee-list">
<div style="margin-bottom: 10px"> <div class="top_widget">
<GLButton @click="handleEdit(1)" :size="size" class="el-icon-plus" fn="创建员工" type="primary" mode="el-button">创建员工</GLButton> <GLButton @click="handleEdit(1)" :size="size" icon="el-icon-plus" fn="创建员工" type="primary" mode="el-button">创建员工</GLButton>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" >创建员工</el-button> --> <!-- <el-button :size="size" type="primary" class="el-icon-plus" >创建员工</el-button> -->
</div> </div>
<div class="container"> <div class="container">
...@@ -555,34 +555,35 @@ export default { ...@@ -555,34 +555,35 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { })
const list = selectArr.map(item => { .then(() => {
return { const list = selectArr.map(item => {
staffId: item.id, return {
status: 0 staffId: item.id,
status: 0
}
})
const param = {
list
} }
this.$apis.employee.updateStatusBatch(param).then(res => {
if (res) {
this.$message.success('操作成功')
this.$refs.employeeRef.refreshTable(false)
} else {
this.$message.error('操作失败')
}
})
}) })
const param = { .catch(() => {
list console.log('点击了取消')
}
this.$apis.employee.updateStatusBatch(param).then(res => {
if(res) {
this.$message.success('操作成功')
this.$refs.employeeRef.refreshTable(false)
} else {
this.$message.error('操作失败')
}
}) })
}).catch(() => {
console.log('点击了取消')
})
} }
} }
}, },
// 批量分配角色,确定按钮 // 批量分配角色,确定按钮
handleAssign() { handleAssign() {
this.$refs.roleForm.validate((valid) => { this.$refs.roleForm.validate(valid => {
if (valid) { if (valid) {
const { roleId } = this.roleForm const { roleId } = this.roleForm
let staffIds = this.$refs.employeeRef.mutiSelectArr[this.tableParams1.mutiSelectName] let staffIds = this.$refs.employeeRef.mutiSelectArr[this.tableParams1.mutiSelectName]
......
<template> <template>
<div class="role-home-page"> <div class="role-home-page">
<div class="top_widget"> <div class="top_widget">
<GLButton size="small" fn="创建角色" icon="el-icon-plus" type="primary" @click="toCreatePage">创建角色</GLButton> <GLButton :size="size" fn="创建角色" icon="el-icon-plus" type="primary" @click="toCreatePage" mode="el-button">创建角色</GLButton>
<!-- <el-button size="small" icon="el-icon-plus" type="primary" @click="toCreatePage">创建角色</el-button> --> <!-- <el-button size="small" icon="el-icon-plus" type="primary" @click="toCreatePage">创建角色</el-button> -->
</div> </div>
<div class="table_widget"> <div class="table_widget">
...@@ -318,13 +318,7 @@ export default { ...@@ -318,13 +318,7 @@ export default {
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
} }
.top_widget {
width: 100%;
display: flex;
align-items: center;
box-sizing: border-box;
padding: 0 20px 10px 0;
}
.table_widget { .table_widget {
width: 100%; width: 100%;
// height: calc(100% - 138px); // height: calc(100% - 138px);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!