Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
b41918cf
Commit
b41918cf
authored
Jul 22, 2020
by
yyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能
parent
eee05ea0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
ProofItem.vue
src/components/ProofItem.vue
+1
-1
TypeOne.vue
src/components/template/TypeOne.vue
+13
-2
No files found.
src/components/ProofItem.vue
View file @
b41918cf
...
...
@@ -81,7 +81,7 @@ export default class ProofItem extends Vue {
return
this
.
proof
;
}
private
getIncrementList
(
count
:
number
)
{
const
{
proof
:
{
hash
}
}
=
this
.
proof
;
const
{
hash
}
=
this
.
proof
;
return
this
.
$api
.
proof
.
incrementList
(
hash
).
then
((
res
:
any
)
=>
{
this
.
incrementList
=
res
.
results
||
[];
});
...
...
src/components/template/TypeOne.vue
View file @
b41918cf
...
...
@@ -20,7 +20,7 @@ export default class TypeOne extends Vue {
@
Prop
()
private
value
!
:
[];
private
fileList
:
any
[]
=
[];
@
Watch
(
'val
ue
'
,
{
immediate
:
true
,
deep
:
true
})
@
Watch
(
'val
Hash
'
,
{
immediate
:
true
,
deep
:
true
})
private
async
onChange
(
newVal
:
[],
oldVal
:
[])
{
if
(
newVal
.
length
<=
0
)
{
this
.
fileList
=
[];
...
...
@@ -30,10 +30,21 @@ export default class TypeOne extends Vue {
this
.
fileList
=
res
.
files
;
});
}
get
valHash
()
{
return
this
.
value
.
map
((
val
:
any
)
=>
{
if
(
!
val
.
value
)
{
return
val
.
hash
;
}
});
}
private
afterRead
(
file
:
any
)
{
if
(
!
Array
.
isArray
(
file
))
{
this
.
$api
.
file
.
upload
(
file
.
file
).
then
((
res
:
any
)
=>
{
this
.
$emit
(
'update:value'
,
[...(
this
.
value
),
res
.
hash
]);
this
.
$emit
(
'update:value'
,
[...(
this
.
value
),
{
type
:
'image'
,
format
:
'hash'
,
hash
:
res
.
hash
,
}]);
});
}
}
...
...
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