项目管理页面重构0.7

This commit is contained in:
WindowBird 2025-11-22 13:42:54 +08:00
parent db3e771bbc
commit 4df396b3bf

View File

@ -31,14 +31,14 @@
<text <text
class="filter-option" class="filter-option"
:class="{ 'active': filterParams.status === '' }" :class="{ 'active': filterParams.status === '' }"
@click="filterParams.status = ''" @click="handleFilterStatusChange('')"
>全部</text> >全部</text>
<text <text
class="filter-option" class="filter-option"
v-for="tab in filterStatusTabs" v-for="tab in filterStatusTabs"
:key="tab.value" :key="tab.value"
:class="{ 'active': filterParams.status === tab.value }" :class="{ 'active': filterParams.status === tab.value }"
@click="filterParams.status = tab.value" @click="handleFilterStatusChange(tab.value)"
>{{ tab.label }}</text> >{{ tab.label }}</text>
</view> </view>
</view> </view>
@ -347,15 +347,17 @@ const {
}; };
// //
// 使""使 //
if (activeStatusTab.value && activeStatusTab.value !== 'ALL') { if (activeStatusTab.value && activeStatusTab.value !== 'ALL') {
// statusList使 // """"使
requestParams.statusList = [activeStatusTab.value]; requestParams.statusList = [activeStatusTab.value];
} else if (filterParams.value.status) { } else if (activeStatusTab.value === 'ALL') {
// ""使 // ""使
if (filterParams.value.status) {
requestParams.statusList = [filterParams.value.status]; requestParams.statusList = [filterParams.value.status];
} }
// statusList // statusList
}
// //
if (filterParams.value.joinUserId) { if (filterParams.value.joinUserId) {
@ -783,6 +785,16 @@ const handleMemberChange = (e) => {
} }
}; };
//
const handleFilterStatusChange = (status) => {
filterParams.value.status = status;
// """"使
//
if (status) {
activeStatusTab.value = 'ALL';
}
};
// //
const handleSearch = () => { const handleSearch = () => {
// 使 updateParams // 使 updateParams