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
a08f9ab6
Commit
a08f9ab6
authored
Dec 11, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3333
parent
9be99741
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
37 additions
and
11 deletions
+37
-11
vitaeTemplate.docx
public/downloadFile/vitaeTemplate.docx
+0
-0
documentView.vue
src/views/components/common/documentView.vue
+1
-0
fileLoad.vue
src/views/components/common/fileLoad.vue
+1
-1
upLoad.vue
src/views/components/common/upLoad.vue
+25
-5
cooperativeUnitsEdit.vue
src/views/report/project/components/cooperativeUnitsEdit.vue
+1
-1
memberImport.vue
src/views/report/project/components/memberImport.vue
+1
-1
projectEdit.vue
src/views/report/project/components/projectEdit.vue
+3
-2
projectMemberEdit.vue
src/views/report/project/components/projectMemberEdit.vue
+5
-1
No files found.
public/downloadFile/vitaeTemplate.docx
0 → 100644
View file @
a08f9ab6
File added
src/views/components/common/documentView.vue
View file @
a08f9ab6
...
@@ -83,6 +83,7 @@ export default {
...
@@ -83,6 +83,7 @@ export default {
.ant-tag {
.ant-tag {
display: inline !important;
display: inline !important;
border:0 !important;
border:0 !important;
font-size: 14px;
}
}
}
}
</
style
>
</
style
>
src/views/components/common/fileLoad.vue
View file @
a08f9ab6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div>
<div>
<document-view
:fileUrl=
"file.downloadUrl"
:fileName=
"file.fileName"
:imageArray=
"[file.downloadUrl]"
></document-view>
<document-view
:fileUrl=
"file.downloadUrl"
:fileName=
"file.fileName"
:imageArray=
"[file.downloadUrl]"
></document-view>
</div>
</div>
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(file)"
style=
"margin: 0px
4
px;"
/>
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(file)"
style=
"margin: 0px
2
px;"
/>
</div>
</div>
<div
v-else
>
<div
v-else
>
<a-form-model-item
:prop=
"name +'.'+ index + '.downloadUrl'"
:rules=
"
{required: true, message: '请上传附件',trigger: 'blur',}">
<a-form-model-item
:prop=
"name +'.'+ index + '.downloadUrl'"
:rules=
"
{required: true, message: '请上传附件',trigger: 'blur',}">
...
...
src/views/components/common/upLoad.vue
View file @
a08f9ab6
...
@@ -4,13 +4,15 @@
...
@@ -4,13 +4,15 @@
<div>
<div>
<document-view
:fileUrl=
"file.downloadUrl"
:fileName=
"file.fileName"
:imageArray=
"[file.downloadUrl]"
></document-view>
<document-view
:fileUrl=
"file.downloadUrl"
:fileName=
"file.fileName"
:imageArray=
"[file.downloadUrl]"
></document-view>
</div>
</div>
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(file)"
style=
"margin: 0px
1
px;"
/>
<a-icon
type=
"delete"
class=
"hover-pointer d-icon"
@
click=
"deletefile(file)"
style=
"margin: 0px
2
px;"
/>
</div>
</div>
<div
v-else
>
<div
v-else
>
<input
type=
"file"
ref=
"fileElem"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<a-form-model-item
:prop=
"name+'downloadUrl'"
:rules=
"
{required: isRequired, message: message,trigger: 'blur',}">
<a-button
@
click=
"fileSelect"
>
<input
type=
"file"
ref=
"fileElem"
class=
"visually-hidden"
@
change=
"handleFiles"
>
<a-icon
type=
"upload"
/>
选择文件
<a-button
@
click=
"fileSelect"
>
</a-button>
<a-icon
type=
"upload"
/>
选择文件
</a-button>
</a-form-model-item>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -40,12 +42,30 @@ export default {
...
@@ -40,12 +42,30 @@ export default {
return
false
return
false
}
}
},
},
isRequired
:
{
type
:
Boolean
,
default
()
{
return
true
}
},
format
:
{
format
:
{
type
:
Array
,
type
:
Array
,
default
()
{
default
()
{
return
[]
return
[]
}
}
},
},
name
:
{
type
:
String
,
default
()
{
return
'fileobj'
}
},
message
:
{
type
:
String
,
default
()
{
return
'请上传附件'
}
},
},
},
created
()
{
created
()
{
...
...
src/views/report/project/components/cooperativeUnitsEdit.vue
View file @
a08f9ab6
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</a-col>
</a-col>
<a-col
:span=
"20"
class=
"bg-gray"
>
<a-col
:span=
"20"
class=
"bg-gray"
>
<div
class=
"special-middle"
>
<div
class=
"special-middle"
>
<div
class=
"required"
>
单位名称
</div>
<div>
单位名称
</div>
</div>
</div>
</a-col>
</a-col>
<a-col
:span=
"2"
class=
"bg-gray"
>
<a-col
:span=
"2"
class=
"bg-gray"
>
...
...
src/views/report/project/components/memberImport.vue
View file @
a08f9ab6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<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-icon
type=
"download"
></a-icon>
<span
style=
"color:green;text-decoration:underline;"
>
模板下载
</span>
</a>
</a>
<up-load
@
beforeUpload=
"beforeUpload"
/>
<up-load
@
beforeUpload=
"beforeUpload"
:format=
"['xls', 'xlsx']"
/>
</div>
</div>
<div
style=
"width:100%;height: calc(100% - 72px);overflow: auto;"
>
<div
style=
"width:100%;height: calc(100% - 72px);overflow: auto;"
>
<a-table
:dataSource=
"tableData"
:columns=
"columns"
:pagination=
"false"
:loading=
"loading"
bordered
size=
"small"
>
<a-table
:dataSource=
"tableData"
:columns=
"columns"
:pagination=
"false"
:loading=
"loading"
bordered
size=
"small"
>
...
...
src/views/report/project/components/projectEdit.vue
View file @
a08f9ab6
...
@@ -460,7 +460,7 @@
...
@@ -460,7 +460,7 @@
<a-row
type=
"flex"
>
<a-row
type=
"flex"
>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
>
<div
style=
"min-height:34px;line-height: 40px;text-align: center;"
>
<div
style=
"min-height:34px;line-height: 40px;text-align: center;"
>
<up-load
:isUpload=
"true"
:file
.
sync=
"formData"
:format=
"['doc', 'docx']"
/>
<up-load
:isUpload=
"true"
:file
.
sync=
"formData"
:format=
"['doc', 'docx']"
message=
"请上传申请书正文"
/>
</div>
</div>
</a-col>
</a-col>
</a-row>
</a-row>
...
@@ -595,7 +595,7 @@ export default {
...
@@ -595,7 +595,7 @@ export default {
managerDept
:
""
,
managerDept
:
""
,
},
},
rules
:
{
rules
:
{
jobTime
:
null
,
jobTime
:
[{
required
:
true
,
message
:
'请填写每年工作时间(月)'
,
trigger
:
'blur'
},]
,
mainResearchAreas
:
[{
required
:
true
,
message
:
'请填写主要研究领域'
,
trigger
:
'blur'
},],
mainResearchAreas
:
[{
required
:
true
,
message
:
'请填写主要研究领域'
,
trigger
:
'blur'
},],
unitLinkName
:
[{
required
:
true
,
message
:
'请填写单位联系人'
,
trigger
:
'blur'
},],
unitLinkName
:
[{
required
:
true
,
message
:
'请填写单位联系人'
,
trigger
:
'blur'
},],
unitLinkMobile
:
[{
required
:
true
,
message
:
'请填写联系人电话'
,
trigger
:
'blur'
},],
unitLinkMobile
:
[{
required
:
true
,
message
:
'请填写联系人电话'
,
trigger
:
'blur'
},],
...
@@ -612,6 +612,7 @@ export default {
...
@@ -612,6 +612,7 @@ export default {
govFunding
:
[{
required
:
true
,
message
:
'请填写申请科技经费'
,
trigger
:
'blur'
},],
govFunding
:
[{
required
:
true
,
message
:
'请填写申请科技经费'
,
trigger
:
'blur'
},],
projAbstract
:
[{
required
:
true
,
message
:
'请填写项目摘要'
,
trigger
:
'blur'
},],
projAbstract
:
[{
required
:
true
,
message
:
'请填写项目摘要'
,
trigger
:
'blur'
},],
projKeywords
:
[{
required
:
true
,
message
:
'请填写关键词'
,
trigger
:
'blur'
},],
projKeywords
:
[{
required
:
true
,
message
:
'请填写关键词'
,
trigger
:
'blur'
},],
downloadUrl
:
[{
required
:
true
,
message
:
'请填写关键词'
,
trigger
:
'blur'
},],
},
},
}
}
},
},
...
...
src/views/report/project/components/projectMemberEdit.vue
View file @
a08f9ab6
...
@@ -3,7 +3,11 @@
...
@@ -3,7 +3,11 @@
<a-row>
<a-row>
<a-col
:span=
"24"
>
<a-col
:span=
"24"
>
<div
class=
"tb-title"
>
<div
class=
"tb-title"
>
<span>
项目组主要成员
<strong
style=
"color: red;"
>
(注:不包含项目申请人)
</strong></span>
<span>
项目组主要成员
<strong
style=
"color: red;"
>
(注:不包含项目申请人)
</strong>
<a
:href=
"'/downloadFile/vitaeTemplate.docx'"
download=
"个人简历.docx"
style=
"margin-left: 12px;"
>
<a-icon
type=
"download"
></a-icon>
<span
style=
"color:green;text-decoration:underline;font-size: 14px;margin-left: 2px;"
>
个人简历模板下载
</span>
</a>
</span>
</div>
</div>
</a-col>
</a-col>
</a-row>
</a-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