Commit 4423c5f8 by YunaiV

【功能完善】工作流:分类新建时,默认选中开启

parent 4b0d3ec2
...@@ -42,6 +42,7 @@ ...@@ -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({ ...@@ -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 = () => { ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment