Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
65dd3d8d
提交
65dd3d8d
authored
12月 22, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复视频和音频文件长度为0时回显问题
上级
64c6563f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
11 行删除
+24
-11
ManualUploader.vue
src/components/Uploader/ManualUploader.vue
+20
-7
vue.config.js
vue.config.js
+4
-4
没有找到文件。
src/components/Uploader/ManualUploader.vue
浏览文件 @
65dd3d8d
<
template
>
<
template
>
<div
class=
"images-list"
>
<div
class=
"images-list"
>
<el-upload
:disabled=
"onlyRead"
action=
"#"
:on-remove=
"handleRemove"
:on-exceed=
"handleExceed"
:on-change=
"handleChange"
<
!--
<
el-upload
:disabled=
"onlyRead"
action=
"#"
:on-remove=
"handleRemove"
:on-exceed=
"handleExceed"
:on-change=
"handleChange"
:file-list=
"fileList"
:multiple=
"fileLimit > 1"
:limit=
"fileLimit"
:list-type=
"listType"
:accept=
"fileAccept"
:file-list=
"fileList"
:multiple=
"fileLimit > 1"
:limit=
"fileLimit"
:list-type=
"listType"
:accept=
"fileAccept"
:auto-upload=
"false"
ref=
"ManualUploader"
:class=
"
{ disabled: uploadDisabled || onlyRead }">
:auto-upload=
"false"
ref=
"ManualUploader"
:class=
"
{ disabled: uploadDisabled || onlyRead }">
<i
v-if=
"listType === 'picture-card'"
class=
"el-icon-plus"
slot=
"trigger"
></i>
<i
v-if=
"listType === 'picture-card'"
class=
"el-icon-plus"
slot=
"trigger"
></i>
...
@@ -12,6 +12,18 @@
...
@@ -12,6 +12,18 @@
提示:只能上传
{{
fileTypeName
||
"jpg/png"
}}
文件,且不超过
提示:只能上传
{{
fileTypeName
||
"jpg/png"
}}
文件,且不超过
{{
fileSize
}}
MB,最多上传
{{
fileLimit
}}
个文件
{{
fileSize
}}
MB,最多上传
{{
fileLimit
}}
个文件
</div>
</div>
</el-upload>
-->
<el-upload
action=
"#"
:on-remove=
"handleRemove"
:on-exceed=
"handleExceed"
:on-change=
"handleChange"
:file-list=
"fileList"
:multiple=
"fileLimit > 1"
:limit=
"fileLimit"
:list-type=
"listType"
:accept=
"fileAccept"
:auto-upload=
"false"
ref=
"ManualUploader"
>
<i
v-if=
"listType == 'picture-card'"
class=
"el-icon-plus"
slot=
"trigger"
></i>
<el-button
v-else
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
v-if=
"showTip"
slot=
"tip"
class=
"el-upload__tip"
>
<div
v-if=
"advice"
style=
"color: #f56c6c"
>
建议:
{{
advice
}}
</div>
提示:只能上传
{{
fileTypeName
||
"jpg/png"
}}
文件,且不超过
{{
fileSize
}}
MB,最多上传
{{
fileLimit
}}
个文件
</div>
</el-upload>
</el-upload>
</div>
</div>
</
template
>
</
template
>
...
@@ -109,9 +121,9 @@ export default {
...
@@ -109,9 +121,9 @@ export default {
});
});
return
fileAccept
;
return
fileAccept
;
},
},
uploadDisabled
()
{
//
uploadDisabled() {
return
this
.
fileList
.
length
==
this
.
fileLimit
;
//
return this.fileList.length == this.fileLimit;
},
//
},
},
},
methods
:
{
methods
:
{
getFiles
()
{
getFiles
()
{
...
@@ -210,9 +222,10 @@ export default {
...
@@ -210,9 +222,10 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.disabled
.el-upload--picture-card
,
.el-upload--card
{
// .disabled .el-upload--picture-card,
display
:
none
!
important
;
// .el-upload--card {
}
// display: none !important;
// }
.el-upload-list__item
{
.el-upload-list__item
{
transition
:
none
!
important
;
transition
:
none
!
important
;
...
...
vue.config.js
浏览文件 @
65dd3d8d
...
@@ -41,8 +41,8 @@ module.exports = {
...
@@ -41,8 +41,8 @@ module.exports = {
proxy
:
{
proxy
:
{
'/api'
:
{
'/api'
:
{
// target: 'http://172.24.100.109:8080/',
// target: 'http://172.24.100.109:8080/',
//
target:'http://222.85.214.245:9603/api',
target
:
'http://222.85.214.245:9603/api'
,
target
:
'http://192.168.1.230:9603/api'
,
//
target:'http://192.168.1.230:9603/api',
// target: 'http://114.115.157.218:9602/api',//生产
// target: 'http://114.115.157.218:9602/api',//生产
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
@@ -50,8 +50,8 @@ module.exports = {
...
@@ -50,8 +50,8 @@ module.exports = {
}
}
},
},
'/files'
:
{
'/files'
:
{
target
:
'http://192.168.1.230:9604/files'
,
//
target: 'http://192.168.1.230:9604/files',
//
target: 'http://222.85.214.245:9604/files',
target
:
'http://222.85.214.245:9604/files'
,
// target: 'http://114.115.157.218:9602/files',//生产
// target: 'http://114.115.157.218:9602/files',//生产
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论