|
@@ -42,6 +42,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
import { CategoryApi, CategoryVO } from '@/api/bpm/category'
|
|
|
+import { CommonStatusEnum } from '@/utils/constants'
|
|
|
|
|
|
/** BPM 流程分类 表单 */
|
|
|
defineOptions({ name: 'CategoryForm' })
|
|
@@ -57,7 +58,7 @@ const formData = ref({
|
|
|
id: undefined,
|
|
|
name: undefined,
|
|
|
code: undefined,
|
|
|
- status: undefined,
|
|
|
+ status: CommonStatusEnum.ENABLE,
|
|
|
sort: undefined
|
|
|
})
|
|
|
const formRules = reactive({
|
|
@@ -116,7 +117,7 @@ const resetForm = () => {
|
|
|
id: undefined,
|
|
|
name: undefined,
|
|
|
code: undefined,
|
|
|
- status: undefined,
|
|
|
+ status: CommonStatusEnum.ENABLE,
|
|
|
sort: undefined
|
|
|
}
|
|
|
formRef.value?.resetFields()
|