|
|
@ -15,7 +15,15 @@ |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
import { defineComponent, PropType, toRefs, onMounted, ref, Ref, getCurrentInstance } from 'vue' |
|
|
|
import { |
|
|
|
|
|
|
|
defineComponent, |
|
|
|
|
|
|
|
PropType, |
|
|
|
|
|
|
|
toRefs, |
|
|
|
|
|
|
|
onMounted, |
|
|
|
|
|
|
|
ref, |
|
|
|
|
|
|
|
Ref, |
|
|
|
|
|
|
|
getCurrentInstance |
|
|
|
|
|
|
|
} from 'vue' |
|
|
|
import { NForm, NFormItem, NInput, NSelect, NInputNumber } from 'naive-ui' |
|
|
|
import { NForm, NFormItem, NInput, NSelect, NInputNumber } from 'naive-ui' |
|
|
|
import { useForm } from '../use-form' |
|
|
|
import { useForm } from '../use-form' |
|
|
|
import Modal from '@/components/modal' |
|
|
|
import Modal from '@/components/modal' |
|
|
@ -106,14 +114,14 @@ const FormModal = defineComponent({ |
|
|
|
confirmDisabled={ |
|
|
|
confirmDisabled={ |
|
|
|
!this.formData.name || |
|
|
|
!this.formData.name || |
|
|
|
!this.formData.groupSize || |
|
|
|
!this.formData.groupSize || |
|
|
|
!this.formData.description |
|
|
|
!this.formData.projectCode |
|
|
|
} |
|
|
|
} |
|
|
|
confirmLoading={this.saving} |
|
|
|
confirmLoading={this.saving} |
|
|
|
> |
|
|
|
> |
|
|
|
<NForm rules={this.rules} ref='formRef'> |
|
|
|
<NForm rules={this.rules} ref='formRef'> |
|
|
|
<NFormItem label={t('resource.task_group_option.name')} path='name'> |
|
|
|
<NFormItem label={t('resource.task_group_option.name')} path='name'> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
allowInput={this.trim} |
|
|
|
allowInput={this.trim} |
|
|
|
v-model={[this.formData.name, 'value']} |
|
|
|
v-model={[this.formData.name, 'value']} |
|
|
|
placeholder={t('resource.task_group_option.please_enter_name')} |
|
|
|
placeholder={t('resource.task_group_option.please_enter_name')} |
|
|
|
/> |
|
|
|
/> |
|
|
@ -150,7 +158,7 @@ const FormModal = defineComponent({ |
|
|
|
path='description' |
|
|
|
path='description' |
|
|
|
> |
|
|
|
> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
allowInput={this.trim} |
|
|
|
allowInput={this.trim} |
|
|
|
v-model={[this.formData.description, 'value']} |
|
|
|
v-model={[this.formData.description, 'value']} |
|
|
|
type='textarea' |
|
|
|
type='textarea' |
|
|
|
placeholder={t('resource.task_group_option.please_enter_desc')} |
|
|
|
placeholder={t('resource.task_group_option.please_enter_desc')} |
|
|
|