Commit 278fcbc2 authored by wangdanlei's avatar wangdanlei

同步产品3.2.1代码

parent 61a0dc86
...@@ -761,8 +761,9 @@ export default { ...@@ -761,8 +761,9 @@ export default {
const validateArray = [] const validateArray = []
// 审批对象表单 // 审批对象表单
this.approvalObject.forEach(item => { this.approvalObject.forEach(item => {
const vm = this.$refs[item.refKey][0] const refCom = this.$refs[item.refKey]
if (!vm) return if (!refCom || !refCom[0]) return
const vm = refCom[0]
if (vm.hasOwnProperty('validate')) { if (vm.hasOwnProperty('validate')) {
validateArray.push(vm.validate()) validateArray.push(vm.validate())
} else if (vm.$refs.asCom && vm.$refs.asCom.hasOwnProperty('validate')) { } else if (vm.$refs.asCom && vm.$refs.asCom.hasOwnProperty('validate')) {
......
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 to comment