This commit is contained in:
X1627315083@163.com
2026-06-01 11:39:56 +08:00
parent 5a85ff0189
commit c60458d1a0
4 changed files with 116 additions and 113 deletions

View File

@@ -11,7 +11,7 @@ import { useRouter } from "vue-router"
//])
const router = useRouter()
let getCollectionListData = reactive({
process: [],
process: ['SERIES_DESIGN','SINGLE_DESIGN'],
projectName: '',
})
@@ -21,11 +21,7 @@ const handleSearch = () => {
historyListRef.value.getCreateList()
}
const setProcess = (type:any) => {
if(type){
getCollectionListData.process = [type]
}else{
getCollectionListData.process = []
}
getCollectionListData.process = type
historyListRef.value.getCreateList()
}
const selectCollectionItem = (item:any) => {
@@ -44,9 +40,9 @@ defineExpose({})
<div class="content">
<div class="title">
<div class="left">
<div :class="{active:!getCollectionListData.process?.[0]}" @click="setProcess('')">{{$t('Seller.All')}}</div>
<div :class="{active:getCollectionListData.process[0] == 'SERIES_DESIGN'}" @click="setProcess('SERIES_DESIGN')">{{$t('Seller.SeriesDesign')}}</div>
<div :class="{active:getCollectionListData.process[0] == 'SINGLE_DESIGN'}" @click="setProcess('SINGLE_DESIGN')">{{$t('Seller.SingleDesign')}}</div>
<div :class="{active:getCollectionListData.process?.includes('SERIES_DESIGN') && getCollectionListData.process?.includes('SINGLE_DESIGN')}" @click="setProcess(['SERIES_DESIGN','SINGLE_DESIGN'])">{{$t('Seller.All')}}</div>
<div :class="{active:getCollectionListData.process[0] == 'SERIES_DESIGN' && getCollectionListData.process.length == 1}" @click="setProcess(['SERIES_DESIGN'])">{{$t('Seller.SeriesDesign')}}</div>
<div :class="{active:getCollectionListData.process[0] == 'SINGLE_DESIGN' && getCollectionListData.process.length == 1}" @click="setProcess(['SINGLE_DESIGN'])">{{$t('Seller.SingleDesign')}}</div>
</div>
<div class="right">
<div class="search_input flex flex-align-center">