Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
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
Tracing
source-trace-manage-go
Commits
d2cefc9c
Commit
d2cefc9c
authored
Aug 31, 2021
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 适配模板的文件类型项
parent
45fb07bb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
AudioForm.vue
src/components/editTemplate/form/AudioForm.vue
+4
-3
ImageForm.vue
src/components/editTemplate/form/ImageForm.vue
+1
-1
PDFForms.vue
src/components/editTemplate/form/PDFForms.vue
+4
-3
VideoForm.vue
src/components/editTemplate/form/VideoForm.vue
+4
-3
No files found.
src/components/editTemplate/form/AudioForm.vue
View file @
d2cefc9c
...
@@ -59,7 +59,9 @@ export default {
...
@@ -59,7 +59,9 @@ export default {
let
hashes
=
[];
let
hashes
=
[];
for
(
let
index
=
0
;
index
<
this
.
property
.
value
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
this
.
property
.
value
.
length
;
index
++
)
{
const
element
=
this
.
property
.
value
[
index
];
const
element
=
this
.
property
.
value
[
index
];
hashes
.
push
(
element
.
value
);
if
(
element
.
value
)
{
hashes
.
push
(
element
.
value
);
}
}
}
if
(
hashes
.
length
===
this
.
property
.
value
.
length
)
{
if
(
hashes
.
length
===
this
.
property
.
value
.
length
)
{
this
.
getAudios
(
hashes
);
this
.
getAudios
(
hashes
);
...
@@ -223,4 +225,4 @@ export default {
...
@@ -223,4 +225,4 @@ export default {
.audio-box {
.audio-box {
padding: 20px;
padding: 20px;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/editTemplate/form/ImageForm.vue
View file @
d2cefc9c
...
@@ -84,7 +84,7 @@ export default class ImageForm extends Vue {
...
@@ -84,7 +84,7 @@ export default class ImageForm extends Vue {
this
.
property
.
value
=
this
.
imageInfo
.
imgList
;
this
.
property
.
value
=
this
.
imageInfo
.
imgList
;
}
}
public
async
PushList
(
url
:
any
)
{
public
async
PushList
(
url
:
any
)
{
if
(
!
url
)
return
false
;
if
(
!
url
||
!
url
.
value
)
return
false
;
this
.
imageInfo
.
imgList
.
push
({
this
.
imageInfo
.
imgList
.
push
({
url
:
await
this
.
requestPictures
(
url
.
value
),
url
:
await
this
.
requestPictures
(
url
.
value
),
hash
:
url
.
value
,
//同时保存hash
hash
:
url
.
value
,
//同时保存hash
...
...
src/components/editTemplate/form/PDFForms.vue
View file @
d2cefc9c
...
@@ -51,7 +51,9 @@ export default {
...
@@ -51,7 +51,9 @@ export default {
let
hashes
=
[];
let
hashes
=
[];
for
(
let
index
=
0
;
index
<
this
.
property
.
value
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
this
.
property
.
value
.
length
;
index
++
)
{
const
element
=
this
.
property
.
value
[
index
];
const
element
=
this
.
property
.
value
[
index
];
hashes
.
push
(
element
.
value
);
if
(
element
.
value
)
{
hashes
.
push
(
element
.
value
);
}
}
}
if
(
hashes
.
length
===
this
.
property
.
value
.
length
)
{
if
(
hashes
.
length
===
this
.
property
.
value
.
length
)
{
this
.
getPDF
(
hashes
);
this
.
getPDF
(
hashes
);
...
@@ -235,4 +237,4 @@ export default {
...
@@ -235,4 +237,4 @@ export default {
padding-right: 6px;
padding-right: 6px;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/editTemplate/form/VideoForm.vue
View file @
d2cefc9c
...
@@ -83,7 +83,9 @@ export default {
...
@@ -83,7 +83,9 @@ export default {
let
hashes
=
[];
let
hashes
=
[];
for
(
let
index
=
0
;
index
<
this
.
property
.
value
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
this
.
property
.
value
.
length
;
index
++
)
{
const
element
=
this
.
property
.
value
[
index
];
const
element
=
this
.
property
.
value
[
index
];
hashes
.
push
(
element
.
value
);
if
(
element
.
value
)
{
hashes
.
push
(
element
.
value
);
}
}
}
if
(
hashes
.
length
===
this
.
property
.
value
.
length
)
{
if
(
hashes
.
length
===
this
.
property
.
value
.
length
)
{
this
.
getVideos
(
hashes
);
this
.
getVideos
(
hashes
);
...
@@ -284,4 +286,4 @@ video {
...
@@ -284,4 +286,4 @@ video {
.left {
.left {
float: right;
float: right;
}
}
</
style
>
</
style
>
\ No newline at end of file
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