|
@@ -5,7 +5,7 @@ import {apiETAChartUser} from '@/api/etaChart'
|
|
|
import ChartDetailPop from '@/views/etaChart/components/ChartDetailPop.vue'
|
|
|
import { MessagePlugin } from 'tdesign-vue-next'
|
|
|
|
|
|
-let classifyId=0
|
|
|
+const classifyId=ref(0)
|
|
|
const SysUserIds=ref([])
|
|
|
const keyword=ref('')
|
|
|
const chartList=ref([])
|
|
@@ -15,7 +15,7 @@ const total=ref(0)
|
|
|
const finished=ref(false)
|
|
|
async function getChartList(){
|
|
|
const res=await apiETAChartUser.chartCollectList({
|
|
|
- CollectClassifyIds:classifyId,
|
|
|
+ CollectClassifyIds:classifyId.value||'',
|
|
|
SysUserIds:SysUserIds.value.join(','),
|
|
|
Keyword:keyword.value,
|
|
|
PageSize:pageSize.value,
|
|
@@ -38,7 +38,12 @@ function refreshList(){
|
|
|
getChartList()
|
|
|
}
|
|
|
function handleClassifyChange(e){
|
|
|
- classifyId=e
|
|
|
+ refreshList()
|
|
|
+}
|
|
|
+
|
|
|
+// 搜索
|
|
|
+function handleSearch(){
|
|
|
+ classifyId.value=0
|
|
|
refreshList()
|
|
|
}
|
|
|
|
|
@@ -69,7 +74,7 @@ async function handleCancelCollect(item,index){
|
|
|
<span @click="$router.push('/etaChart/index')">研究图库 ></span>
|
|
|
<span>我的收藏</span>
|
|
|
</div>
|
|
|
- <ClassifyWrap @change="handleClassifyChange"/>
|
|
|
+ <ClassifyWrap v-model:classifyId="classifyId" @change="handleClassifyChange"/>
|
|
|
</div>
|
|
|
<div class="flex right-wrap">
|
|
|
<div class="flex top-filter">
|
|
@@ -80,7 +85,7 @@ async function handleCancelCollect(item,index){
|
|
|
size="large"
|
|
|
style="max-width:600px"
|
|
|
clearable
|
|
|
- @change="refreshList"
|
|
|
+ @change="handleSearch"
|
|
|
>
|
|
|
<template #prefixIcon>
|
|
|
<SearchIcon />
|
|
@@ -169,7 +174,7 @@ async function handleCancelCollect(item,index){
|
|
|
overflow: hidden;
|
|
|
.chart-name{
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
- padding: 10px 14px;
|
|
|
+ padding: 14px;
|
|
|
.name{
|
|
|
font-size: 16px;
|
|
|
font-weight: 600;
|