|
@ -5,7 +5,7 @@ |
|
|
v-loading="formLoading" |
|
|
v-loading="formLoading" |
|
|
:model="formData" |
|
|
:model="formData" |
|
|
:rules="formRules" |
|
|
:rules="formRules" |
|
|
label-width="80px" |
|
|
label-width="150px" |
|
|
> |
|
|
> |
|
|
<el-form-item label="上级部门" prop="parentId"> |
|
|
<el-form-item label="上级部门" prop="parentId"> |
|
|
<el-tree-select |
|
|
<el-tree-select |
|
@ -50,6 +50,28 @@ |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="是否设备维修班组" prop="isDeviceClass"> |
|
|
|
|
|
<el-select v-model="formData.isDeviceClass" clearable placeholder="请选择是否设备维修班组"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" |
|
|
|
|
|
:key="dict.value" |
|
|
|
|
|
:label="dict.label" |
|
|
|
|
|
:value="dict.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="是否模具维修班组" prop="isMoldClass"> |
|
|
|
|
|
<el-select v-model="formData.isMoldClass" clearable placeholder="请选择是否模具维修班组"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" |
|
|
|
|
|
:key="dict.value" |
|
|
|
|
|
:label="dict.label" |
|
|
|
|
|
:value="dict.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<template #footer> |
|
|
<template #footer> |
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
@ -82,7 +104,9 @@ const formData = ref({ |
|
|
leaderUserId: undefined, |
|
|
leaderUserId: undefined, |
|
|
phone: undefined, |
|
|
phone: undefined, |
|
|
email: undefined, |
|
|
email: undefined, |
|
|
status: CommonStatusEnum.ENABLE |
|
|
status: CommonStatusEnum.ENABLE, |
|
|
|
|
|
isDeviceClass: CommonStatusEnum.DISABLE, |
|
|
|
|
|
isMoldClass: CommonStatusEnum.DISABLE, |
|
|
}) |
|
|
}) |
|
|
const formRules = reactive({ |
|
|
const formRules = reactive({ |
|
|
parentId: [{ required: true, message: '上级部门不能为空', trigger: 'blur' }], |
|
|
parentId: [{ required: true, message: '上级部门不能为空', trigger: 'blur' }], |
|
@ -157,7 +181,9 @@ const resetForm = () => { |
|
|
leaderUserId: undefined, |
|
|
leaderUserId: undefined, |
|
|
phone: undefined, |
|
|
phone: undefined, |
|
|
email: undefined, |
|
|
email: undefined, |
|
|
status: CommonStatusEnum.ENABLE |
|
|
status: CommonStatusEnum.ENABLE, |
|
|
|
|
|
isDeviceClass: CommonStatusEnum.DISABLE, |
|
|
|
|
|
isMoldClass: CommonStatusEnum.DISABLE, |
|
|
} |
|
|
} |
|
|
formRef.value?.resetFields() |
|
|
formRef.value?.resetFields() |
|
|
} |
|
|
} |
|
|