@ -28,7 +28,7 @@ interface TaskGroupIdReq {
interface TaskGroupReq {
name: string
projectCode: number
groupSize: number
groupSize: string
status: number
description: string
}
@ -59,11 +59,11 @@ const FormModal = defineComponent({
state.formData.id = props.data.id
state.formData.name = props.data.name
state.formData.projectCode = props.data.projectCode
state.formData.groupSize = props.data.groupSize
state.formData.groupSize = String(props.data.groupSize)
state.formData.status = props.data.status
state.formData.description = props.data.description
} else {
state.formData.groupSize = 10
state.formData.groupSize = '10'
})
@ -29,7 +29,7 @@ export function useForm() {
id: 0,
name: '',
projectCode: 0,
groupSize: 0,
groupSize: '0',
status: 1,
description: ''
} as TaskGroupUpdateReq,