Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
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
徐俊
yn-science-front
Commits
cab2e1b4
Commit
cab2e1b4
authored
Dec 12, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
333
parent
136f8ab3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
upLoad.vue
src/views/components/common/upLoad.vue
+3
-11
memberImport.vue
src/views/report/project/components/memberImport.vue
+2
-2
No files found.
src/views/components/common/upLoad.vue
View file @
cab2e1b4
...
...
@@ -7,20 +7,12 @@
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(file)"
style=
"margin: 0px 2px;"
/>
</div>
<div
v-else
>
<div
v-if=
"isUpload"
>
<a-form-model-item
:prop=
"name+'downloadUrl'"
:rules=
"
{required: isRequired, message: message,trigger: 'blur',}">
<input
type=
"file"
ref=
"fileElem1"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<a-button
@
click=
"fileSelect"
>
<a-icon
type=
"upload"
/>
选择文件
</a-button>
</a-form-model-item>
</div>
<div
v-else
>
<input
type=
"file"
ref=
"fileElem2"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<a-form-model-item
:prop=
"name+'downloadUrl'"
:rules=
"
{required: isRequired, message: message,trigger: 'blur',}">
<input
type=
"file"
ref=
"fileElem"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<a-button
@
click=
"fileSelect"
>
<a-icon
type=
"upload"
/>
选择文件
</a-button>
</
div
>
</
a-form-model-item
>
</div>
</div>
</
template
>
...
...
src/views/report/project/components/memberImport.vue
View file @
cab2e1b4
...
...
@@ -2,9 +2,9 @@
<div
class=
"app-content"
style=
"height: 65vh;overflow: auto;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<div
style=
"width:100%; height: 36px;"
>
<a
:href=
"url"
download=
"memberInfo.xlsx"
>
<
!--
<
a
:href=
"url"
download=
"memberInfo.xlsx"
>
<a-icon
type=
"download"
></a-icon>
<span
style=
"color:green;text-decoration:underline;"
>
项目组成员模板下载
</span>
</a>
</a>
-->
<up-load
@
beforeUpload=
"beforeUpload"
:format=
"['xls', 'xlsx']"
/>
</div>
<div
style=
"width:100%;height: calc(100% - 72px);overflow: auto;"
>
...
...
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