Commit e17e757c by 无尘

style: 修改应用公共头部样式

parent cfe62a8b
......@@ -11,7 +11,10 @@
<div class="el-tabs__nav-wrap is-top">
<div class="el-tabs__nav-scroll">
<ul>
<li v-for="(item, index) in topData" :key="index" :class="['top-cell', item.id == activeId ? 'cell-active' : '']">{{ item.name }} <i v-if="topData.length > 1" class="el-icon-arrow-right p-lr-11"></i></li>
<li v-for="(item, index) in topData" :key="index" :class="['top-cell', item.id == activeId ? 'cell-active' : '']">
<div class="top-name">{{ item.name }}</div>
<i v-if="topData.length > 1 && index != topData.length - 1" class="el-icon-arrow-right p-lr-11"></i>
</li>
</ul>
</div>
</div>
......@@ -98,9 +101,17 @@ export default {
-webkit-box-sizing: border-box;
box-sizing: border-box;
cursor: pointer;
.top-name {
display: inline-block;
height: 48px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
&.cell-active {
border-bottom: 3px solid #303133;
color: #303133;
.top-name {
border-bottom: 3px solid #303133;
color: #303133;
}
}
}
}
......
......@@ -74,42 +74,16 @@ export default {
data() {
return {
tableH: window.screen.availHeight - 464 - 126 + 'px',
activeTab: '1',
activeId: '2',
activeBrand: this.brandId,
tabListData: [
topMenuData: [
{
tabId: '1',
tabName: '云日报记录',
icon: 'icon-ribao'
id: '1',
name: '云日报记录'
},
{
tabId: '2',
tabName: '云日报设置',
icon: 'icon-ribaoshezhi',
children: [
{
tabId: '21',
tabName: '模板配置',
icon: '',
children: [
{
tabId: '211',
tabName: '系统报表',
icon: ''
},
{
tabId: '212',
tabName: '自定义报表',
icon: ''
}
]
},
{
tabId: '22',
tabName: '任务下发设置',
icon: ''
}
]
id: '2',
name: '日报详情'
}
],
// 条件
......
......@@ -426,7 +426,7 @@ export default {
}
that.tableData = resData.result.result;
that.total = resData.result.totalCount;
return;
return false;
}
errMsg.errorMsg(resData);
})
......
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