feat:移植工程
This commit is contained in:
30
src/views/mobile-home/plan/list.vue
Normal file
30
src/views/mobile-home/plan/list.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user