31 lines
854 B
Vue
31 lines
854 B
Vue
<template>
|
|
<div class="mobile-plan-view common-mobile-view">
|
|
<plan-query />
|
|
<plan-list />
|
|
|
|
<el-button type="primary" :icon="Plus" circle size="large"
|
|
@click="addNewPlanClick" class="add-new" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import PlanList from '@/components/Home/Plan/PlanList.vue'
|
|
import PlanQuery from '@/components/Home/Plan/PlanQuery.vue'
|
|
import { Plus } from '@element-plus/icons-vue'
|
|
import { usePlanStore } from '@/store/plan'
|
|
import { useRouter } from 'vue-router'
|
|
|
|
const planStore = usePlanStore()
|
|
const router = useRouter()
|
|
|
|
const addNewPlanClick = () => {
|
|
planStore.planApiType = 'ADD'
|
|
planStore.currentPlan = planStore.getEmptyPlan()
|
|
router.push({ name: 'MobileHomePlanDetailId', params: { id: 0 } })
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@use "@/styles/home/plan.mobile.module.scss";
|
|
</style>
|