perf: 左侧菜单样式调整
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
$global-text-color-active: #ee9d3f; // 全局文字active字色
|
$global-text-color-active: #ee9d3f; // 全局文字active字色
|
||||||
|
|
||||||
$header-text-color: #fff; // header默认字色
|
$header-text-color: #fff; // header默认字色
|
||||||
$header-text-color-hover: #444; //header hover字色
|
$header-text-color-hover: #444; //header hover字色
|
||||||
|
|
||||||
|
$content-left-text-color: #666; //左侧菜单默认字色
|
||||||
|
|
||||||
@import './main.scss';
|
@import './main.scss';
|
||||||
|
|||||||
@@ -169,40 +169,52 @@ html {
|
|||||||
/* begin--左侧列表*/
|
/* begin--左侧列表*/
|
||||||
.content-left {
|
.content-left {
|
||||||
float: left;
|
float: left;
|
||||||
width: 270px;
|
width: 256px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-right: 1px solid #cccccc;
|
border-right: 1px solid #cccccc;
|
||||||
padding: 0 12px 0 30px;
|
padding: 0 25px 0 15px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.sidebar-title {
|
.sidebar-title {
|
||||||
padding-top: 20px;
|
padding-top: 22px;
|
||||||
color: #aaaaaa;
|
color: #333333;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.sidebar-info {
|
.sidebar-info {
|
||||||
height: calc(90vh - 55px);
|
height: calc(90vh - 55px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-top: 10px;
|
padding-top: 24px;
|
||||||
}
|
}
|
||||||
.content-left .sidebar-info-item {
|
.content-left .sidebar-info-item {
|
||||||
line-height: 1.5rem;
|
line-height: 20px;
|
||||||
padding: 0 10px 0 10px;
|
padding: 0 0 0 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #444444;
|
color: $content-left-text-color;
|
||||||
margin: 0 0 7px;
|
margin: 0 0 30px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.content-left .sidebar-info-item.el-checkbox {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
.side-bar-menu-edit {
|
.side-bar-menu-edit {
|
||||||
line-height: 1.5rem;
|
line-height: 20px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.side-bar-menu-edit>i, .sidebar-info-item .el-checkbox__label .checkbox-edit i {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.sidebar-info-item .el-checkbox__label {
|
||||||
|
width: calc(100% - 25px);
|
||||||
|
}
|
||||||
|
.sidebar-info-item .el-checkbox__label>span:nth-child(2) {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
.content-left .sidebar-info-item-active {
|
.content-left .sidebar-info-item-active {
|
||||||
border-left: 3px solid #e07700;
|
border-left: 2px solid $global-text-color-active;
|
||||||
font-weight: bold;
|
color: $global-text-color-active;
|
||||||
}
|
}
|
||||||
.content-left .el-checkbox-group .sidebar-info-item-active {
|
.content-left .el-checkbox-group .sidebar-info-item-active {
|
||||||
font-weight: bold;
|
|
||||||
border-left: none;
|
border-left: none;
|
||||||
}
|
}
|
||||||
/* end--左侧列表*/
|
/* end--左侧列表*/
|
||||||
|
|||||||
@@ -465,7 +465,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nz-submenu.el-menu--horizontal .el-menu .el-menu-item:hover {
|
.nz-submenu.el-menu--horizontal .el-menu .el-menu-item:hover {
|
||||||
color: #ff9900 !important;
|
color: $global-text-color-active !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-menu-item > div, .el-menu-item > div > div {
|
.el-menu-item > div, .el-menu-item > div > div {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="sidebar-title">Asset</div>
|
<div class="sidebar-title">Asset</div>
|
||||||
<div class="sidebar-info">
|
<div class="sidebar-info">
|
||||||
<!--<div class="sidebar-info-header">ALL</div>-->
|
<!--<div class="sidebar-info-header">ALL</div>-->
|
||||||
<el-checkbox class="sidebar-info-item" :checked="(checkList.length == checkListData.length) && checkListData.length > 0" @change="dcSelectAll">
|
<el-checkbox :indeterminate="checkAllHandler" class="sidebar-info-item" :model="checkAllFlag" @change="dcSelectAll" :true-label="1" :false-label="0">
|
||||||
<span style="font-weight: bold;">All</span>
|
<span style="font-weight: bold;">All</span>
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
<el-checkbox-group v-model="checkList" size="small" @change="getSingleAsset()">
|
<el-checkbox-group v-model="checkList" size="small" @change="getSingleAsset()">
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
<span @click="closeAllPop">
|
<span @click="closeAllPop">
|
||||||
<i class="el-icon-edit-outline" @click="getSingleIDCData(item.id,'edit')"></i>
|
<i class="el-icon-edit-outline" @click="getSingleIDCData(item.id,'edit')"></i>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</idc-config-box>
|
</idc-config-box>
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
@@ -306,7 +305,9 @@
|
|||||||
obj: null,
|
obj: null,
|
||||||
addUnitShow: false,
|
addUnitShow: false,
|
||||||
editUnitShow: false,
|
editUnitShow: false,
|
||||||
flag: false
|
flag: false,
|
||||||
|
checkAllFlag: false,
|
||||||
|
checkAllHandler: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -338,22 +339,29 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
checkList(n) {
|
||||||
|
if (n.length > 0 ) {
|
||||||
|
this.pageObj.idcIds = n.join(',');
|
||||||
|
} else {
|
||||||
|
this.pageObj.idcIds = '';
|
||||||
|
}
|
||||||
|
this.getAssetData();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.checkList.push(this.$store.state.assetData.selectedData)
|
this.checkList.push(this.$store.state.assetData.selectedData)
|
||||||
this.getSingleAsset()
|
this.getSingleAsset()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
dcSelectAll() { //DC全选
|
dcSelectAll(val) { //DC全选
|
||||||
if (this.checkListData.length > 0) {
|
if (this.checkListData.length > 0) {
|
||||||
if (this.checkList.length != this.checkListData.length) {
|
this.checkList = [];
|
||||||
this.checkList = [];
|
if (val) {
|
||||||
for (let i = 0; i < this.checkListData.length; i++) {
|
for (let i = 0; i < this.checkListData.length; i++) {
|
||||||
this.checkList.push(this.checkListData[i].id);
|
this.checkList.push(this.checkListData[i].id);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
this.checkList = [];
|
|
||||||
}
|
}
|
||||||
|
this.checkAllHandler = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openModuleBox(module) {
|
openModuleBox(module) {
|
||||||
@@ -554,17 +562,16 @@
|
|||||||
}
|
}
|
||||||
,
|
,
|
||||||
getSingleAsset() {
|
getSingleAsset() {
|
||||||
if (this.checkList.length > 0 ) {
|
let checkedCount = this.checkList.length;
|
||||||
if (this.checkList[0] === '') {
|
this.checkAllFlag = checkedCount === this.checkListData.length;
|
||||||
this.checkList.splice(0, 1);
|
this.checkAllHandler = checkedCount > 0 && checkedCount < this.checkListData.length;
|
||||||
this.getSingleAsset();
|
|
||||||
} else {
|
/*if (this.checkList.length > 0 ) {
|
||||||
this.pageObj.idcIds = this.checkList.join(',');
|
this.pageObj.idcIds = this.checkList.join(',');
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.pageObj.idcIds = '';
|
this.pageObj.idcIds = '';
|
||||||
}
|
}
|
||||||
this.getAssetData();
|
this.getAssetData();*/
|
||||||
},
|
},
|
||||||
pageNo(val) {
|
pageNo(val) {
|
||||||
this.pageObj.pageNo = val;
|
this.pageObj.pageNo = val;
|
||||||
@@ -631,34 +638,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="scss">
|
||||||
.asset {
|
.asset {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.sidebar-pop-input {
|
|
||||||
position: absolute;
|
|
||||||
right: 50px;
|
|
||||||
width: 200px;
|
|
||||||
height: 26px;
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 1px solid #DCDFE6;
|
|
||||||
color: #606266;
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0px 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-pop-input-select {
|
|
||||||
position: absolute;
|
|
||||||
right: 83px;
|
|
||||||
width: 200px;
|
|
||||||
height: 26px;
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 1px solid #DCDFE6;
|
|
||||||
color: #606266;
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tab-input-square {
|
.tab-input-square {
|
||||||
border: 1px solid #606266;
|
border: 1px solid #606266;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
@@ -670,135 +653,21 @@
|
|||||||
.tab-input-square-high {
|
.tab-input-square-high {
|
||||||
border: 1px solid #1166bb;
|
border: 1px solid #1166bb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.account-list-option {
|
|
||||||
cursor: pointer;
|
|
||||||
display: inline-block;
|
|
||||||
margin-right: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-top-btns {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-top-btn {
|
|
||||||
border-radius: 0 0 9px 9px;
|
|
||||||
float: right;
|
|
||||||
color: #656565;
|
|
||||||
height: 30px;
|
|
||||||
font-size: 12px;
|
|
||||||
padding: 3px 8px 1px 8px;
|
|
||||||
border: 1px solid #aaaaaa;
|
|
||||||
border-top: none;
|
|
||||||
cursor: pointer;
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-top-btn-full {
|
|
||||||
background-color: #656565;
|
|
||||||
border: 1px solid #656565;
|
|
||||||
border-top: none;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.pop-window {
|
|
||||||
height: 370px;
|
|
||||||
width: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pop-window-assetType-content {
|
|
||||||
padding: 1px 15px 15px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rm-c-list span:hover {
|
|
||||||
background-color: #888;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-bottom-btn {
|
|
||||||
display: inline-block;
|
|
||||||
background-color: #656565;
|
|
||||||
color: white;
|
|
||||||
line-height: 35px;
|
|
||||||
cursor: pointer;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-bottom-btns {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0px;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-bottom-btn-cancel {
|
|
||||||
background-color: #DADADA;
|
|
||||||
color: #656565;
|
|
||||||
width: 50%;
|
|
||||||
border-bottom-left-radius: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-bottom-btn-50 {
|
|
||||||
width: 50%;
|
|
||||||
float: right;
|
|
||||||
border-bottom-right-radius: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activeColor {
|
|
||||||
background-color: #409EFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes slide-in-from-right {
|
|
||||||
from {
|
|
||||||
right: -800px
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
right: 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes slide-out-to-right {
|
|
||||||
from {
|
|
||||||
right: 0
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
right: -800px
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-enter-active {
|
|
||||||
animation: slide-in-from-right 0.4s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-box-leave-active {
|
|
||||||
animation: slide-out-to-right 0.4s;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style lang="scss">
|
||||||
.asset .content-left .el-checkbox__input.is-focus .el-checkbox__inner,
|
.asset .content-left .el-checkbox__input.is-focus .el-checkbox__inner,
|
||||||
.asset .content-left .el-checkbox__input .el-checkbox__inner:hover,
|
.asset .content-left .el-checkbox__input .el-checkbox__inner:hover,
|
||||||
.asset .content-left .el-checkbox__input.is-checked .el-checkbox__inner,
|
.asset .content-left .el-checkbox__input.is-checked .el-checkbox__inner,
|
||||||
.asset .content-left .el-checkbox__input.is-indeterminate .el-checkbox__inner {
|
.asset .content-left .el-checkbox__input.is-indeterminate .el-checkbox__inner {
|
||||||
border-color: #e07700;
|
border-color: $global-text-color-active;
|
||||||
}
|
}
|
||||||
|
|
||||||
.asset .content-left .el-checkbox__input.is-checked + .el-checkbox__label {
|
.asset .content-left .el-checkbox__input.is-checked + .el-checkbox__label {
|
||||||
color: #444;
|
color: $global-text-color-active;
|
||||||
}
|
}
|
||||||
|
|
||||||
.asset .content-left .el-checkbox__input.is-checked .el-checkbox__inner, .asset .content-left .el-checkbox__input.is-indeterminate .el-checkbox__inner {
|
.asset .content-left .el-checkbox__input.is-checked .el-checkbox__inner, .asset .content-left .el-checkbox__input.is-indeterminate .el-checkbox__inner {
|
||||||
background-color: #e07700;
|
background-color: $global-text-color-active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.checkbox-edit {
|
|
||||||
position: absolute;
|
|
||||||
right: 10px;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
.cell .checkbox-edit {
|
|
||||||
position: static;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user