From 116951590aed69592afcbe710d92df659ba454ef Mon Sep 17 00:00:00 2001 From: ndbs Date: Thu, 27 Oct 2022 14:52:51 +0800 Subject: [PATCH] =?UTF-8?q?app2.0=E5=AE=A1=E6=89=B9=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/nworkflow/releasetask/single.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/single.vue index 7691f9422..f8269c91d 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/single.vue @@ -110,7 +110,10 @@ export default { this.needTitle = this.type !== 'again' && Number(currentNode.isTitle) === 1 const formData = await this.fetchFormData(currentNode, processId) - const schemeData = await this.fetchSchemeData(currentNode) + + const schemeData = await this.fetchSchemeData(currentNode); + const fetchFolderkeyData=await this.fetchFolderkeyData(currentNode, processId); + uni.setStorageSync('guids',JSON.stringify(fetchFolderkeyData)); const { formValue, scheme, rel } = await this.getCustomForm({ schemeData, processId, @@ -119,14 +122,15 @@ export default { code: this.type === 'again' ? null : code, useDefault: true }) + this.rel = rel this.scheme = scheme this.formValue = formValue this.code = code this.processId = processId - this.ready = true this.HIDE_LOADING() + }, // 提交草稿按钮 @@ -153,9 +157,10 @@ export default { // 发起流程按钮 async submit() { const isAgain = this.type === 'again' - + // 先验证表单,验证不通过则提示 const verifyResult = this.verifyValue() + if (verifyResult.length > 0) { this.CONFIRM('表单验证失败', verifyResult.join('\n')) return @@ -191,6 +196,7 @@ export default { // 获取表单验证结果,是一个包含错误信息的数组,长度为 0 则没有错误 verifyValue() { + const errList = this.$refs.form.verifyValue() if (this.needTitle && !this.title) { errList.push(`流程的标题不能为空`)