Commit f801015a authored by 李晓兵's avatar 李晓兵

'身份证上传'

parent c3fb9f2b
...@@ -616,6 +616,7 @@ export default { ...@@ -616,6 +616,7 @@ export default {
'pkvalue': check_id, 'pkvalue': check_id,
'source_type': 'PRJ_CDD_ITEM_CHECK', 'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '', 'picture': '',
'check_id': check_id,
'filePath': '', 'filePath': '',
'attachment_id': '', 'attachment_id': '',
'user_id': 1, 'user_id': 1,
...@@ -643,11 +644,13 @@ export default { ...@@ -643,11 +644,13 @@ export default {
quality: 100, quality: 100,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
var list = []
for (let i = 0; i < imgUrl.length; i++) { for (let i = 0; i < imgUrl.length; i++) {
let obj = { let obj = {
'pkvalue': check_id, 'pkvalue': check_id,
'source_type': 'PRJ_CDD_ITEM_CHECK', 'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '', 'picture': '',
'check_id': check_id,
'filePath': '', 'filePath': '',
'attachment_id': '', 'attachment_id': '',
'user_id': 1, 'user_id': 1,
...@@ -655,7 +658,6 @@ export default { ...@@ -655,7 +658,6 @@ export default {
} }
obj.picture = imgUrl[i] obj.picture = imgUrl[i]
obj.filePath = imgUrl[i] obj.filePath = imgUrl[i]
var list = []
list.push(obj) list.push(obj)
} }
// 拍完一张立马执行保存图片逻辑 // 拍完一张立马执行保存图片逻辑
......
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