feat:更新上传文件组件
This commit is contained in:
@@ -67,11 +67,9 @@ import { defineProps, PropType } from 'vue'
|
||||
import { AlarmClock, Clock } from '@element-plus/icons-vue'
|
||||
import { IPlanInfo } from '@/types/plan.ts'
|
||||
import { getRemainDays, isBeforeToday } from '@/utils/home/planUtil.ts'
|
||||
import { deepCopyObject } from 'vue3-common/utils/dataUtil'
|
||||
import { usePlanStore } from '@/store/plan.ts'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { commonElMessageBox } from 'vue3-common/utils/elUtil'
|
||||
import { isMobile } from 'vue3-common/utils/layoutUtil'
|
||||
|
||||
const planStore = usePlanStore()
|
||||
const router = useRouter()
|
||||
@@ -85,17 +83,8 @@ const props = defineProps({
|
||||
|
||||
const editPlanClick = async () => {
|
||||
planStore.planApiType = 'UPDATE'
|
||||
|
||||
if (isMobile()) {
|
||||
planStore.currentPlan = props.plan as IPlanInfo
|
||||
await router.push({ name: 'MobileHomePlanDetailId', params: { id: planStore.currentPlan.id } })
|
||||
} else {
|
||||
planStore.planDialog = {
|
||||
title: '编辑计划',
|
||||
visible: true,
|
||||
data: deepCopyObject(props.plan)
|
||||
}
|
||||
}
|
||||
planStore.currentPlan = props.plan as IPlanInfo
|
||||
await router.push({ name: 'MobileHomePlanDetailId', params: { id: planStore.currentPlan.id } })
|
||||
}
|
||||
|
||||
const changeCompleteEvent = (value: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user