Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
00d9b872
Commit
00d9b872
authored
Oct 16, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'file'
parent
07e5d012
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
+31
-6
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+30
-5
hlsUtil.js
src/scripts/hlsUtil.js
+1
-1
No files found.
src/pages/userBind/np/naturePerson.vue
View file @
00d9b872
...
...
@@ -405,6 +405,7 @@ export default {
if
(
from
.
fullPath
===
'/tab/my-info'
)
{
// 绑定查询入口
next
(
vm
=>
{
vm
.
basicInfoQuery
()
vm
.
loadItemList
()
// 附件查询
vm
.
from
=
true
})
}
...
...
@@ -430,6 +431,24 @@ export default {
}
})
},
load_picture
(
check_id
){
debugger
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'attachment_list_query'
let
param
=
{
check_id
:
check_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
'%%%%%%%%%%%%'
+
res
)
if
(
res
.
result
===
'S'
)
{
console
.
log
(
'**********'
+
res
.
lists
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
async
verified
()
{
// let bpId = await this.saveWord()
// this.getBankInfo()
...
...
@@ -451,6 +470,10 @@ export default {
// vm.hlsPopup.hideLoading()
if
(
res
.
result
===
'S'
)
{
vm
.
cddItemList
=
[...
res
.
lists
]
// 查询图片
/* vm.cddItemList.forEach(item => {
vm.load_picture(item.check_id)
})*/
}
})
},
...
...
@@ -535,7 +558,7 @@ export default {
let
vm
=
this
let
obj
=
{
'pkvalue'
:
7928
,
'source_type'
:
'
HLS_BP_MASTER
'
,
'source_type'
:
'
PRJ_CDD_ITEM_CHECK
'
,
'check_id'
:
check_id
,
'picture'
:
''
,
'filePath'
:
''
,
...
...
@@ -567,7 +590,7 @@ export default {
for
(
let
i
=
0
;
i
<
imgUrl
.
length
;
i
++
)
{
let
obj
=
{
'pkvalue'
:
7928
,
'source_type'
:
'
HLS_BP_MASTER
'
,
'source_type'
:
'
PRJ_CDD_ITEM_CHECK
'
,
'check_id'
:
check_id
,
'picture'
:
''
,
'filePath'
:
''
,
...
...
@@ -575,10 +598,12 @@ export default {
'user_id'
:
1
}
obj
.
picture
=
imgUrl
[
i
]
obj
.
file
_p
ath
=
imgUrl
[
i
]
// push到上传列表中 通知前台数据发生改变
vm
.
upload_
list
.
push
(
obj
)
obj
.
file
P
ath
=
imgUrl
[
i
]
var
list
=
[]
list
.
push
(
obj
)
}
// 拍完一张立马执行保存图片逻辑
vm
.
save_picture
(
list
)
}
let
error
=
function
()
{
}
...
...
src/scripts/hlsUtil.js
View file @
00d9b872
...
...
@@ -371,7 +371,7 @@ export default {
*/
fileUploadSvc
:
function
(
file
,
success
)
{
debugger
let
path
=
file
.
file
_p
ath
let
path
=
file
.
file
P
ath
let
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
let
url
=
encodeURI
(
process
.
env
.
rootPath
+
'/app/fileUploadSvc?sysName=XCMG_DEV&apiName=attachment_upload'
)
let
options
=
new
FileUploadOptions
()
// eslint-disable-line
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment