feat:重构模块

This commit is contained in:
2025-10-08 22:06:39 +08:00
parent f60d78fe8b
commit 2e81e57774
222 changed files with 2267 additions and 3059 deletions

View File

@@ -0,0 +1,45 @@
<template>
<div class="common-query">
<el-select v-model="planStore.queryInfo.planType"
@change="planStore.refreshInfo()"
style="width: 120px;align-self: center;">
<el-option v-for="(item, index) in planTypeOptions" :key="index"
:label="item.label" :value="item.value"/>
</el-select>
<el-select v-model="planStore.queryInfo.orderType"
@change="planStore.refreshInfo()"
style="width: 120px;align-self: center;">
<el-option v-for="(item, index) in orderTypeOptions" :key="index"
:label="item.label" :value="item.value"/>
</el-select>
</div>
</template>
<script setup lang="ts">
import { usePlanStore } from '@/store/plan.ts'
const planStore = usePlanStore()
const planTypeOptions = [{
label: '所有计划',
value: 'all'
},
{
label: '已完成计划',
value: 'completed'
},
{
label: '未完成计划',
value: 'notCompleted'
}]
const orderTypeOptions = [{
label: '按时间排序',
value: 'date'
},
{
label: '按重要性排序',
value: 'priority'
}]
</script>