|
@@ -18,6 +18,7 @@
|
|
|
let pdfPermissionId = ref(0)
|
|
|
let pid = ref(0)
|
|
|
const tabs = ref(null)
|
|
|
+ const activeTypeTabs = ref(null)
|
|
|
let defaultValue = ref(0)
|
|
|
let secondary = ref(false) // 是否选择过品种
|
|
|
let secondaryList = ref([]) // 选择中品种后的三级品种列表
|
|
@@ -66,7 +67,7 @@
|
|
|
if (res.Ret === 200) {
|
|
|
const arr = res.Data.List || []
|
|
|
list.value = [...list.value, ...arr]
|
|
|
- console.log(list.value);
|
|
|
+ // console.log(list.value);
|
|
|
finished.value = res.Data.Paging.IsEnd
|
|
|
} else {
|
|
|
finished.value = true
|
|
@@ -103,6 +104,9 @@
|
|
|
filterState.ClassifyId = 0
|
|
|
filterState.ChartPermissionId = e === 0 ? pid.value : e,
|
|
|
secondary.value = true
|
|
|
+ nextTick(()=>{
|
|
|
+ // activeTypeTabs.value.setTrack()//设置滑块位置
|
|
|
+ })
|
|
|
getReportPermissionOpts()
|
|
|
}
|
|
|
// 第二层选中
|
|
@@ -127,6 +131,9 @@
|
|
|
handleRefreshList()
|
|
|
}
|
|
|
|
|
|
+ nextTick(()=>{
|
|
|
+ // activeTypeTabs.value.setTrack()//设置滑块位置
|
|
|
+ })
|
|
|
function handleRefreshList(){
|
|
|
filterState.CurrentIndex = 1
|
|
|
list.value=[]
|
|
@@ -143,6 +150,10 @@
|
|
|
function toSearch(e) {
|
|
|
router.push('/report/Search')
|
|
|
}
|
|
|
+ // 关闭报告筛选
|
|
|
+ function updateShowFilter(val) {
|
|
|
+ showFilter.value = val
|
|
|
+ }
|
|
|
|
|
|
const filterClassifyPermissionId = computed(() => {
|
|
|
return activeType.value === 0 ? pid.value : defaultValue.value
|
|
@@ -157,7 +168,7 @@
|
|
|
<div class="top">
|
|
|
<t-input placeholder="请输入关键字" class="input" @click="toSearch">
|
|
|
<template #prefixIcon>
|
|
|
- <t-icon name="search" size="24px" color="RGBA(0, 79, 189, 1)"></t-icon>
|
|
|
+ <t-icon name="search" size="20px" color="RGBA(0, 79, 189, 1)"></t-icon>
|
|
|
</template>
|
|
|
</t-input>
|
|
|
<t-button variant="text" size="large" class="btn" @click="handleFilter">
|
|
@@ -219,6 +230,7 @@
|
|
|
:permissionOpts="typeOpts"
|
|
|
:filterClassifyPermissionId="filterClassifyPermissionId"
|
|
|
:firstPermissionId="pid"
|
|
|
+ @updateShowFilter="updateShowFilter"
|
|
|
@change="handleFilterList"
|
|
|
/>
|
|
|
<!-- </default-page> -->
|
|
@@ -267,6 +279,8 @@
|
|
|
align-items: center;
|
|
|
padding: 0 28px;
|
|
|
.input {
|
|
|
+ height: 80px;
|
|
|
+ padding: 0 30px;
|
|
|
border: none;
|
|
|
border-radius: 50px;
|
|
|
background: rgba(248, 248, 250, 1);
|
|
@@ -278,6 +292,10 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+:deep(.t-input__icon--prefix){
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
:deep(.t-tabs__item-inner--tag){
|
|
|
background-color: #fff;
|
|
|
}
|