Browse Source

BUG修改

master
yejiaxing 10 months ago
parent
commit
83e476a73f
  1. 1
      src/views/eam/basic/item/index.vue
  2. 32
      src/views/system/dept/DeptForm.vue

1
src/views/eam/basic/item/index.vue

@ -47,7 +47,6 @@
import TableHead from '@/components/TableHead/src/TableHead.vue'
// import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
import { SearchTable } from '@/components/SearchTable'
defineOptions({ name: 'Item' })

32
src/views/system/dept/DeptForm.vue

@ -5,7 +5,7 @@
v-loading="formLoading"
:model="formData"
:rules="formRules"
label-width="80px"
label-width="150px"
>
<el-form-item label="上级部门" prop="parentId">
<el-tree-select
@ -50,6 +50,28 @@
/>
</el-select>
</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>
<template #footer>
<el-button type="primary" @click="submitForm"> </el-button>
@ -82,7 +104,9 @@ const formData = ref({
leaderUserId: undefined,
phone: undefined,
email: undefined,
status: CommonStatusEnum.ENABLE
status: CommonStatusEnum.ENABLE,
isDeviceClass: CommonStatusEnum.DISABLE,
isMoldClass: CommonStatusEnum.DISABLE,
})
const formRules = reactive({
parentId: [{ required: true, message: '上级部门不能为空', trigger: 'blur' }],
@ -157,7 +181,9 @@ const resetForm = () => {
leaderUserId: undefined,
phone: undefined,
email: undefined,
status: CommonStatusEnum.ENABLE
status: CommonStatusEnum.ENABLE,
isDeviceClass: CommonStatusEnum.DISABLE,
isMoldClass: CommonStatusEnum.DISABLE,
}
formRef.value?.resetFields()
}

Loading…
Cancel
Save