Browse Source

任务流程名称必填

duy 1 year ago
parent
commit
ee27f665fe
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/tasks/flow.vue

+ 3 - 1
src/views/tasks/flow.vue

@@ -38,7 +38,7 @@
 <script setup>
 import { onActivated, onMounted, ref } from 'vue'
 import { useAppStore } from '~src/store'
-import { getArrValue, getObjValue } from 'js-fast-way'
+import { formValidate, getArrValue, getObjValue } from 'js-fast-way'
 import tasksFlowApi from '~api/tasks/flow'
 import { delMessage } from '~uti/tools'
 
@@ -156,6 +156,8 @@ const tasksUserChange = ( a, b, fixedBranchList) => {
 //提交保存
 const sevaLoading = ref(false)
 const saveFormClick = async () => {
+    const isValidate = await formValidate(formFlowRef.value)
+    if (!isValidate) return false
     const form = flowFormData.value
     console.log(form, 'form')
     const fixedBranchList = form.fixedBranchList