【功能完善】工作流:分类新建时,默认选中开启
parent
4b0d3ec29c
commit
4423c5f84a
|
@ -42,6 +42,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
||||||
import { CategoryApi, CategoryVO } from '@/api/bpm/category'
|
import { CategoryApi, CategoryVO } from '@/api/bpm/category'
|
||||||
|
import { CommonStatusEnum } from '@/utils/constants'
|
||||||
|
|
||||||
/** BPM 流程分类 表单 */
|
/** BPM 流程分类 表单 */
|
||||||
defineOptions({ name: 'CategoryForm' })
|
defineOptions({ name: 'CategoryForm' })
|
||||||
|
@ -57,7 +58,7 @@ const formData = ref({
|
||||||
id: undefined,
|
id: undefined,
|
||||||
name: undefined,
|
name: undefined,
|
||||||
code: undefined,
|
code: undefined,
|
||||||
status: undefined,
|
status: CommonStatusEnum.ENABLE,
|
||||||
sort: undefined
|
sort: undefined
|
||||||
})
|
})
|
||||||
const formRules = reactive({
|
const formRules = reactive({
|
||||||
|
@ -116,7 +117,7 @@ const resetForm = () => {
|
||||||
id: undefined,
|
id: undefined,
|
||||||
name: undefined,
|
name: undefined,
|
||||||
code: undefined,
|
code: undefined,
|
||||||
status: undefined,
|
status: CommonStatusEnum.ENABLE,
|
||||||
sort: undefined
|
sort: undefined
|
||||||
}
|
}
|
||||||
formRef.value?.resetFields()
|
formRef.value?.resetFields()
|
||||||
|
|
Loading…
Reference in New Issue