|
|
@ -8,7 +8,7 @@ |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-form-item label="是否队长" v-bind="validateInfos.islead"> |
|
|
|
<a-form-item label="是否组长" v-bind="validateInfos.islead"> |
|
|
|
<j-switch v-model:value="formData.islead" :disabled="disabled"></j-switch> |
|
|
|
<j-switch v-model:value="formData.islead" :disabled="disabled"></j-switch> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
@ -31,7 +31,7 @@ |
|
|
|
import { getValueType } from '/@/utils'; |
|
|
|
import { getValueType } from '/@/utils'; |
|
|
|
import { saveOrUpdate } from '../ExpGroup.api'; |
|
|
|
import { saveOrUpdate } from '../ExpGroup.api'; |
|
|
|
import { Form } from 'ant-design-vue'; |
|
|
|
import { Form } from 'ant-design-vue'; |
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
const props = defineProps({ |
|
|
|
formDisabled: { type: Boolean, default: false }, |
|
|
|
formDisabled: { type: Boolean, default: false }, |
|
|
|
formData: { type: Object, default: ()=>{} }, |
|
|
|
formData: { type: Object, default: ()=>{} }, |
|
|
@ -42,9 +42,9 @@ |
|
|
|
const emit = defineEmits(['register', 'ok']); |
|
|
|
const emit = defineEmits(['register', 'ok']); |
|
|
|
const formData = reactive<Record<string, any>>({ |
|
|
|
const formData = reactive<Record<string, any>>({ |
|
|
|
id: '', |
|
|
|
id: '', |
|
|
|
grouid: '', |
|
|
|
grouid: '', |
|
|
|
islead: '', |
|
|
|
islead: '', |
|
|
|
annCompGroupid: '', |
|
|
|
annCompGroupid: '', |
|
|
|
}); |
|
|
|
}); |
|
|
|
const { createMessage } = useMessage(); |
|
|
|
const { createMessage } = useMessage(); |
|
|
|
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } }); |
|
|
|
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } }); |
|
|
@ -67,7 +67,7 @@ |
|
|
|
return props.formDisabled; |
|
|
|
return props.formDisabled; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 新增 |
|
|
|
* 新增 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|