Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
national_museum_vod
Project
Project
Details
Activity
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
qzhxx
national_museum_vod
Commits
9d815ae5
Commit
9d815ae5
authored
Jun 16, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缩略图不显示
parent
8a16c63b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
962 additions
and
956 deletions
+962
-956
httpServer.js
src/config/httpServer.js
+138
-138
uploadAudio.vue
src/page/content/components/uploadVue/uploadAudio.vue
+128
-128
uploadFile.vue
src/page/content/components/uploadVue/uploadFile.vue
+125
-125
uploadFolder.vue
src/page/content/components/uploadVue/uploadFolder.vue
+121
-121
uploadImg.vue
src/page/content/components/uploadVue/uploadImg.vue
+16
-11
uploadQrcode.vue
src/page/content/components/uploadVue/uploadQrcode.vue
+1
-1
add.vue
src/page/content/video/content/add.vue
+433
-432
No files found.
src/config/httpServer.js
View file @
9d815ae5
src/page/content/components/uploadVue/uploadAudio.vue
View file @
9d815ae5
...
...
@@ -67,7 +67,7 @@ export default {
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
console
.
log
(
res
)
// console.log(res)
loading
.
close
();
// this.loading = false
if
(
resData
.
resultCode
==
"200"
)
{
...
...
src/page/content/components/uploadVue/uploadFile.vue
View file @
9d815ae5
...
...
@@ -72,7 +72,7 @@ export default {
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
console
.
log
(
res
)
// console.log(res)
loading
.
close
();
// this.loading = false
if
(
resData
.
resultCode
==
"200"
)
{
...
...
@@ -98,7 +98,7 @@ export default {
},
uploadFile
(
file
)
{
console
.
log
(
file
)
// console.log(file)
this
.
filedata
.
append
(
'file'
,
file
.
file
)
},
beforeAvatarUpload
(
file
)
{
...
...
src/page/content/components/uploadVue/uploadFolder.vue
View file @
9d815ae5
...
...
@@ -27,7 +27,7 @@ export default {
props
:{
fileList
:{
type
:
Array
,
default
:
[]
default
:
()
=>
[]
},
},
data
()
{
...
...
@@ -40,7 +40,7 @@ export default {
},
watch
:
{
fileList
(
newName
,
oldName
)
{
console
.
log
(
newName
)
// console.log(newName)
this
.
files
=
newName
// ...
}
...
...
@@ -58,16 +58,16 @@ export default {
const
children
=
this
.
files
;
const
index
=
children
.
findIndex
(
d
=>
d
.
name
===
data
.
name
);
children
.
splice
(
index
,
1
);
console
.
log
(
this
.
files
,
'111'
)
// console.log(this.files,'111')
this
.
$emit
(
"videoList"
,
this
.
files
.
map
(
item
=>
item
.
id
));
},
getFiles
:
function
(
event
)
{
console
.
log
(
event
);
// console.log(event);
var
files
=
event
.
target
.
files
;
for
(
var
i
=
0
;
i
<
files
.
length
;
i
++
)
{
this
.
files
.
push
(
files
[
i
]);
}
console
.
log
(
this
.
files
,
"--"
);
// console.log(this.files, "--");
},
upload
:
function
()
{
const
loading
=
this
.
$loading
({
...
...
@@ -76,12 +76,12 @@ export default {
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
console
.
log
(
this
.
files
);
// console.log(this.files);
var
formData
=
new
FormData
();
for
(
var
i
=
0
;
i
<
this
.
files
.
length
;
i
++
)
{
formData
.
append
(
"file"
,
this
.
files
[
i
]);
}
console
.
log
(
formData
);
// console.log(formData);
let
_this
=
this
;
_this
.
$https
(
...
...
@@ -95,7 +95,7 @@ export default {
.
then
(
res
=>
{
loading
.
close
();
let
resData
=
res
.
data
;
console
.
log
(
res
);
// console.log(res);
if
(
resData
.
resultCode
==
"200"
)
{
_this
.
$message
.
success
(
"上传成功!"
);
const
data
=
resData
.
data
.
fileList
;
...
...
src/page/content/components/uploadVue/uploadImg.vue
View file @
9d815ae5
...
...
@@ -9,7 +9,7 @@
:on-remove="handleRemove"
:on-success="handleAvatarSuccess"
:headers="headers"
:file-list="fileList"
:file-list="file
Show
List"
:limit="1"
:multiple ="false"
>
...
...
@@ -24,19 +24,24 @@
<
script
>
export
default
{
//
props:{
//
fileList:{
//
type: Array,
//
default: () => [],
//
},
//
},
props
:{
fileList
:{
type
:
Array
,
default
:
()
=>
[],
},
},
data
()
{
return
{
fileList
:
[],
file
Show
List
:
[],
dialogImageUrl
:
""
,
dialogVisible
:
false
,
imageUrl
:
""
,
};
},
watch
:
{
fileList
(
val
)
{
this
.
fileShowList
=
val
;
}
},
computed
:
{
headers
()
{
...
...
@@ -45,7 +50,7 @@ export default {
};
},
uploadDisabled
:
function
()
{
return
(
this
.
fileList
.
length
>
0
)
||
this
.
imageUrl
return
(
this
.
file
Show
List
.
length
>
0
)
||
this
.
imageUrl
},
},
methods
:
{
...
...
@@ -61,7 +66,7 @@ export default {
handleRemove
(
file
,
fileList
)
{
this
.
$emit
(
"imgUrl"
,
""
);
this
.
imageUrl
=
""
this
.
fileList
=
[]
this
.
file
Show
List
=
[]
},
handlePictureCardPreview
(
file
)
{
this
.
dialogImageUrl
=
file
.
url
;
...
...
@@ -72,7 +77,7 @@ export default {
name
:
""
,
url
:
cover
,
};
this
.
fileList
=
[
file
]
this
.
file
Show
List
=
[
file
]
},
},
};
...
...
src/page/content/components/uploadVue/uploadQrcode.vue
View file @
9d815ae5
...
...
@@ -67,7 +67,7 @@ export default {
},
handleRemove
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
//
console.log(file, fileList);
this
.
$emit
(
"qrcodeUrl"
,
""
);
this
.
imageUrl
=
""
this
.
fileList
=
[]
...
...
src/page/content/video/content/add.vue
View file @
9d815ae5
...
...
@@ -172,6 +172,7 @@ export default {
videoContentCatIdList
:
""
,
videoContentCatId
:
""
,
thumbnail
:
""
,
imageList
:
[],
videoFileIdList
:[]
},
videoContentCat
:
[],
...
...
@@ -223,7 +224,7 @@ export default {
},
// 缩略图地址
imgUrl
(
url
){
console
.
log
(
url
,
'图片服务器地址'
)
// console.log(url,'图片服务器地址')
this
.
ruleForm
.
thumbnail
=
url
},
// 视频列表地址
...
...
@@ -238,8 +239,8 @@ export default {
}
},
getVideoContentCat
(
data
){
console
.
log
(
data
)
console
.
log
(
this
.
ruleForm
.
videoContentCatId
)
// console.log(data)
// console.log(this.ruleForm.videoContentCatId)
},
// 获取信息
getInfo
(
id
)
{
...
...
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