|
@@ -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
|