Browse Source

app2.0 解决图片上传错误的问题

长阳分支推送专用
杨晓琪 2 years ago
parent
commit
8117fdb377
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/workflow.js

+ 3
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/workflow.js View File

@@ -265,15 +265,15 @@ export default {
// 不是表格的情况 // 不是表格的情况
const path = item.__valuePath__ const path = item.__valuePath__
const val = get(formValue, path) const val = get(formValue, path)
var guid = undefined
if (item.type == 'upload') { if (item.type == 'upload') {
// 先生成一个guid // 先生成一个guid
var guid = this.newguid();
guid = this.newguid();
// 取出当前列对应的labelId // 取出当前列对应的labelId
var labeId = item.id var labeId = item.id
// 从缓存取出当前审批流程所有的guid // 从缓存取出当前审批流程所有的guid
var guids = JSON.parse(uni.getStorageSync('guids')) var guids = JSON.parse(uni.getStorageSync('guids'))
if (guids&&JSON.stringify(guids)!=='{}') {
if (guids&&JSON.stringify(guids)!=='{}'&&guids[labeId]) {
guid = guids[labeId] guid = guids[labeId]
} }
} }


Loading…
Cancel
Save