|
@@ -1,24 +1,23 @@
|
|
|
<template>
|
|
|
<view class="varietyauth-report-list">
|
|
|
-
|
|
|
- <view class="top-variety-box">
|
|
|
- <view class="first-nav">
|
|
|
- <text
|
|
|
- :class="['first-nav-item',item.id===firstVarietyId?'active':'']"
|
|
|
- v-for="item in varietyList"
|
|
|
- :key="item.id"
|
|
|
- @click="handleSelectFirstVariety(item)"
|
|
|
- >{{item.classify_name}}</text>
|
|
|
- </view>
|
|
|
- <view class="sub-nav">
|
|
|
- <text
|
|
|
+ <view class="top-variety-box">
|
|
|
+ <view class="first-nav">
|
|
|
+ <text
|
|
|
+ :class="['first-nav-item',item.id===firstVarietyId?'active':'']"
|
|
|
+ v-for="item in varietyList"
|
|
|
+ :key="item.id"
|
|
|
+ @click="handleSelectFirstVariety(item)"
|
|
|
+ >{{item.classify_name}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="sub-nav">
|
|
|
+ <text
|
|
|
:class="['sub-nav-item',item.chart_permission_id===secVarietyId?'active':'']"
|
|
|
v-for="item in secVarietyList"
|
|
|
:key="item.chart_permission_id"
|
|
|
@click="handleSelectSecVariety(item)"
|
|
|
>{{item.chart_permission_name}}</text>
|
|
|
- </view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
<view class="report-empty-box" v-if="finished&&list.length==0">
|
|
|
<image :src="globalImgUrls.chartEmpty" mode="widthFix" />
|
|
|
<view>暂无报告</view>
|
|
@@ -30,13 +29,12 @@
|
|
|
<view class="van-multi-ellipsis--l2 title">{{item.title}}</view>
|
|
|
<view class="info">{{item.classify_name_second}} · {{item.stage}}期 | {{item.publish_time|formatReportTime}}</view>
|
|
|
</view>
|
|
|
- <view class="audio-box">
|
|
|
+ <view class="audio-box" @click.stop="handleClickAudio(item)">
|
|
|
<image src="../static/a-pause.png" mode="aspectFill"/>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
<!-- 音频弹窗 -->
|
|
|
<audioBox v-if="showAudioPop"></audioBox>
|
|
|
|
|
@@ -162,7 +160,9 @@ export default {
|
|
|
|
|
|
//获取用户已绑定品种
|
|
|
async getPermissionList(){
|
|
|
- const res=await apiGoodsPermissionList()
|
|
|
+ const res=await apiGoodsPermissionList({
|
|
|
+ classify_id:Number(this.classifyId),
|
|
|
+ })
|
|
|
if(res.code===200){
|
|
|
this.varietyList=res.data.permission_list
|
|
|
this.handleSelectFirstVariety(this.varietyList[0])
|
|
@@ -187,11 +187,13 @@ export default {
|
|
|
async getList(){
|
|
|
const res=await apiReportListForVariety({
|
|
|
chart_permission_id:Number(this.secVarietyId),
|
|
|
+ classify_id:Number(this.classifyId),
|
|
|
current_index:this.page,
|
|
|
page_size:this.pageSize
|
|
|
})
|
|
|
if(res.code===200){
|
|
|
- this.list=[...this.list,...res.data.list]
|
|
|
+ const arr=res.data.list||[]
|
|
|
+ this.list=[...this.list,...arr]
|
|
|
this.finished=res.data.paging.is_end
|
|
|
}
|
|
|
},
|
|
@@ -246,6 +248,7 @@ page{
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
top: 0;
|
|
|
+ z-index: 50;
|
|
|
.first-nav-item{
|
|
|
display: inline-block;
|
|
|
min-width: 140rpx;
|