瀏覽代碼

任务流程名称必填

duy 1 年之前
父節點
當前提交
ee27f665fe
共有 1 個文件被更改,包括 3 次插入1 次删除
  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