Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
0835f8a9
Commit
0835f8a9
authored
May 07, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
files
parent
a25dc3f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
files.vue
components/page/files.vue
+9
-4
add.vue
pages/technology/add.vue
+1
-1
edit.vue
pages/technology/edit.vue
+1
-1
No files found.
components/page/files.vue
View file @
0835f8a9
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<p>
将文件拖到此处,或点击上传
</p>
<p>
将文件拖到此处,或点击上传
</p>
</div>
</div>
<Button
icon=
"ios-cloud-upload-outline"
v-if=
"!cloudIco"
>
上传文件
</Button>
<Button
icon=
"ios-cloud-upload-outline"
v-if=
"!cloudIco"
>
上传文件
</Button>
<span
style=
"font-size:10px;color:#aaa"
v-if=
"fileFormat"
>
文件格式:
{{
JSON
.
stringify
(
formatList
).
replace
(
'['
,
''
).
replace
(
']'
,
''
).
replace
(
/
\"
/g
,
''
)
}}
;文件最大:
{{
maxSize
}}
k
</span>
</Upload>
</Upload>
<Progress
:percent=
"per"
:stroke-width=
"5"
v-show=
"vshowPro"
/>
<Progress
:percent=
"per"
:stroke-width=
"5"
v-show=
"vshowPro"
/>
<Tag
<Tag
...
@@ -47,7 +48,7 @@ export default {
...
@@ -47,7 +48,7 @@ export default {
fileUrlPath
:
""
,
fileUrlPath
:
""
,
nameList
:
[],
nameList
:
[],
hbaseFileListNew
:
[],
hbaseFileListNew
:
[],
formatList
:
[
"
png"
,
"jpg"
,
"gif
"
],
formatList
:
[
"
jpg"
,
"gif"
,
"png
"
],
multiple
:
true
,
multiple
:
true
,
postUrl
:
""
,
postUrl
:
""
,
style
:
""
,
style
:
""
,
...
@@ -81,6 +82,10 @@ export default {
...
@@ -81,6 +82,10 @@ export default {
cloudIco
:
{
cloudIco
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
fileFormat
:{
type
:
Boolean
,
default
:
false
}
}
},
},
methods
:
{
methods
:
{
...
@@ -155,15 +160,15 @@ export default {
...
@@ -155,15 +160,15 @@ export default {
formatL
()
{
formatL
()
{
if
(
this
.
files
)
{
if
(
this
.
files
)
{
this
.
formatList
=
[
this
.
formatList
=
[
"jpg"
,
"gif"
,
"png"
,
"pdf"
,
"pdf"
,
"docx"
,
"docx"
,
"doc"
,
"doc"
,
"xls"
,
"xls"
,
"xlsx"
,
"xlsx"
,
"txt"
,
"txt"
,
"png"
,
"jpg"
,
"gif"
];
];
}
}
return
this
.
formatList
;
return
this
.
formatList
;
...
...
pages/technology/add.vue
View file @
0835f8a9
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<files
ref=
"refFile"
:parms=
"parms"
file
s
/>
<files
ref=
"refFile"
:parms=
"parms"
file
Format
/>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
...
pages/technology/edit.vue
View file @
0835f8a9
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
<Col
:span=
"24"
>
<Col
:span=
"24"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<FormItem
label=
"多媒体附件"
prop=
"files"
>
<files
ref=
"refFile"
:parms=
"parms"
file
s
/>
<files
ref=
"refFile"
:parms=
"parms"
file
Format
/>
</FormItem>
</FormItem>
</Col>
</Col>
</Row>
</Row>
...
...
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