|
@@ -122,16 +122,18 @@ const getReportList = async () => {
|
|
|
const clickFirstType = (item) => {
|
|
|
selectFirstType.value = item.classify_name
|
|
|
subTypeList.value = item.list
|
|
|
- clickSubType({props:{label:item.list[0].chart_permission_name,name:item.list[0].chart_permission_id}})
|
|
|
+ // clickSubType({props:{label:item.list[0].chart_permission_name,name:item.list[0].chart_permission_id}})
|
|
|
+ clickSubType(item.list[0])
|
|
|
}
|
|
|
//点击二级分类
|
|
|
-const clickSubType = ({props}) => {
|
|
|
- let item=null
|
|
|
- subTypeList.value.forEach(_item=>{
|
|
|
- if(_item.chart_permission_id==props.name){
|
|
|
- item=_item
|
|
|
- }
|
|
|
- })
|
|
|
+// const clickSubType = ({props}) => {
|
|
|
+ // let item=null
|
|
|
+ // subTypeList.value.forEach(_item=>{
|
|
|
+ // if(_item.chart_permission_id==props.name){
|
|
|
+ // item=_item
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+const clickSubType = (item) => {
|
|
|
selectSubType.value = item.chart_permission_id
|
|
|
reportState.list = []
|
|
|
reportState.page = 1
|
|
@@ -279,20 +281,38 @@ onActivated(()=>{
|
|
|
<div class="see-more" @click="handleGoMoreClassify">查看更多</div>
|
|
|
</div>
|
|
|
<div class="sub-nav">
|
|
|
- <!-- <span
|
|
|
+ <span
|
|
|
:class="['sub-item', item.chart_permission_id == selectSubType && 'sub-active']"
|
|
|
- v-for="item in subTypeList"
|
|
|
+ v-for="item in subTypeList.slice(0,6)"
|
|
|
:key="item.chart_permission_id"
|
|
|
@click="clickSubType(item)"
|
|
|
- >{{ item.chart_permission_name }}</span> -->
|
|
|
- <el-tabs v-model="selectSubType" class="tabs-wrap" @tab-click="clickSubType">
|
|
|
+ >{{ item.chart_permission_name }}</span>
|
|
|
+ <el-popover
|
|
|
+ :width="500"
|
|
|
+ trigger="click"
|
|
|
+ >
|
|
|
+ <template #reference>
|
|
|
+ <img v-if="subTypeList.length>6" style="width:16px;transform: rotate(90deg);cursor: pointer" src="@/assets/icon-more.png" alt="">
|
|
|
+ </template>
|
|
|
+ <template #default>
|
|
|
+ <div class="flex top-nav-filter-box">
|
|
|
+ <div
|
|
|
+ :class="['item',item.chart_permission_id == selectSubType&&'active']"
|
|
|
+ v-for="item in subTypeList.slice(6)"
|
|
|
+ :key="item.chart_permission_id"
|
|
|
+ @click="clickSubType(item)"
|
|
|
+ >{{item.chart_permission_name}}</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ <!-- <el-tabs v-model="selectSubType" class="tabs-wrap" @tab-click="clickSubType">
|
|
|
<el-tab-pane
|
|
|
:label="item.chart_permission_name"
|
|
|
:name="item.chart_permission_id"
|
|
|
v-for="item in subTypeList"
|
|
|
:key="item.chart_permission_id"
|
|
|
></el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
+ </el-tabs> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 报告列表 -->
|
|
@@ -355,6 +375,30 @@ onActivated(()=>{
|
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.top-nav-filter-box{
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .item{
|
|
|
+ margin: 5px 10px;
|
|
|
+ width: 113px;
|
|
|
+ height: 40px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ background-color: #f6f6f6;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-size: 16px;
|
|
|
+ cursor: pointer;
|
|
|
+ :hover{
|
|
|
+ color: #fff;
|
|
|
+ background-color: #F3A52F;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .active{
|
|
|
+ color: #fff;
|
|
|
+ background-color: #F3A52F;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
.el-backtop{
|
|
|
z-index: 1000;
|
|
|
}
|
|
@@ -444,66 +488,67 @@ onActivated(()=>{
|
|
|
.sub-nav {
|
|
|
margin-top: 30px;
|
|
|
// overflow-x: auto;
|
|
|
- // overflow-y: hidden;
|
|
|
+ overflow-y: hidden;
|
|
|
// &::-webkit-scrollbar {
|
|
|
// display: none;
|
|
|
// }
|
|
|
- width: calc(100vw - 500px);
|
|
|
- // .sub-item {
|
|
|
- // flex-shrink: 0;
|
|
|
- // margin-right: 30px;
|
|
|
- // font-size: 16px;
|
|
|
- // color: #666666;
|
|
|
- // cursor: pointer;
|
|
|
- // }
|
|
|
- // .sub-active {
|
|
|
- // color: #F3A52F;
|
|
|
- // }
|
|
|
- :deep(.el-tabs__header){
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
- :deep(.el-tabs__active-bar){
|
|
|
- display: none;
|
|
|
- }
|
|
|
- :deep(.el-tabs__nav-wrap::after){
|
|
|
- display: none;
|
|
|
- }
|
|
|
- :deep(.el-tabs__item.is-active){
|
|
|
- color: #F3A52F;
|
|
|
- }
|
|
|
- :deep(.el-tabs__item){
|
|
|
- font-size: 16px;
|
|
|
- // height: 22px;
|
|
|
- &:hover{
|
|
|
- color: #F3A52F;
|
|
|
- }
|
|
|
- }
|
|
|
- :deep(.el-tabs__nav-next){
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
- background-image: url('@/assets/icon-more.png');
|
|
|
- background-size: cover;
|
|
|
- top: 10px;
|
|
|
- .el-icon{
|
|
|
- display: none;
|
|
|
- }
|
|
|
- }
|
|
|
- :deep(.el-tabs__nav-prev){
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
- background-image: url('@/assets/icon-more.png');
|
|
|
- background-size: cover;
|
|
|
- top: 10px;
|
|
|
- transform: rotate(180deg);
|
|
|
- .el-icon{
|
|
|
- display: none;
|
|
|
- }
|
|
|
+ // width: calc(100vw - 500px);
|
|
|
+ .sub-item {
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-right: 30px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #666666;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
- :deep(.el-tabs__nav-wrap.is-scrollable){
|
|
|
- padding: 0 25px;
|
|
|
+ .sub-active {
|
|
|
+ color: #F3A52F;
|
|
|
}
|
|
|
+ // :deep(.el-tabs__header){
|
|
|
+ // margin-bottom: 0;
|
|
|
+ // }
|
|
|
+ // :deep(.el-tabs__active-bar){
|
|
|
+ // display: none;
|
|
|
+ // }
|
|
|
+ // :deep(.el-tabs__nav-wrap::after){
|
|
|
+ // display: none;
|
|
|
+ // }
|
|
|
+ // :deep(.el-tabs__item.is-active){
|
|
|
+ // color: #F3A52F;
|
|
|
+ // }
|
|
|
+ // :deep(.el-tabs__item){
|
|
|
+ // font-size: 16px;
|
|
|
+ // // height: 22px;
|
|
|
+ // &:hover{
|
|
|
+ // color: #F3A52F;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // :deep(.el-tabs__nav-next){
|
|
|
+ // width: 20px;
|
|
|
+ // height: 20px;
|
|
|
+ // background-image: url('@/assets/icon-more.png');
|
|
|
+ // background-size: cover;
|
|
|
+ // top: 10px;
|
|
|
+ // .el-icon{
|
|
|
+ // display: none;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // :deep(.el-tabs__nav-prev){
|
|
|
+ // width: 20px;
|
|
|
+ // height: 20px;
|
|
|
+ // background-image: url('@/assets/icon-more.png');
|
|
|
+ // background-size: cover;
|
|
|
+ // top: 10px;
|
|
|
+ // transform: rotate(180deg);
|
|
|
+ // .el-icon{
|
|
|
+ // display: none;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // :deep(.el-tabs__nav-wrap.is-scrollable){
|
|
|
+ // padding: 0 25px;
|
|
|
+ // }
|
|
|
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.report-list-wrap {
|