Skip to content

Commit 4423c5f

Browse files
committed
【功能完善】工作流:分类新建时,默认选中开启
1 parent 4b0d3ec commit 4423c5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/views/bpm/category/CategoryForm.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<script setup lang="ts">
4343
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
4444
import { CategoryApi, CategoryVO } from '@/api/bpm/category'
45+
import { CommonStatusEnum } from '@/utils/constants'
4546
4647
/** BPM 流程分类 表单 */
4748
defineOptions({ name: 'CategoryForm' })
@@ -57,7 +58,7 @@ const formData = ref({
5758
id: undefined,
5859
name: undefined,
5960
code: undefined,
60-
status: undefined,
61+
status: CommonStatusEnum.ENABLE,
6162
sort: undefined
6263
})
6364
const formRules = reactive({
@@ -116,7 +117,7 @@ const resetForm = () => {
116117
id: undefined,
117118
name: undefined,
118119
code: undefined,
119-
status: undefined,
120+
status: CommonStatusEnum.ENABLE,
120121
sort: undefined
121122
}
122123
formRef.value?.resetFields()

0 commit comments

Comments
 (0)