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
91cf8f7c
Commit
91cf8f7c
authored
Jan 13, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9999
parent
d379340e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
102 deletions
+15
-102
index.js
src/api/index.js
+3
-12
audit.vue
src/views/audit/task/audit.vue
+1
-1
Index.vue
src/views/query/task/Index.vue
+1
-1
Index.vue
src/views/report/task/Index.vue
+3
-3
taskCreate.vue
src/views/report/task/components/taskCreate.vue
+7
-85
taskEdit.vue
src/views/report/task/components/taskEdit.vue
+0
-0
No files found.
src/api/index.js
View file @
91cf8f7c
...
...
@@ -450,9 +450,6 @@ export default {
projectImport
(
params
)
{
return
fetch
(
'/v1/science-admin/com-project/projectImport'
,
params
,
'post'
,
'json'
)
},
getProjectBasicInfoById
(
params
)
{
return
fetch
(
`/v1/science-admin/com-project/getProjectBasicInfoById/`
,
params
)
},
},
conclusion
:
{
getConclusionByProjId
(
params
)
{
...
...
@@ -497,12 +494,12 @@ export default {
return
fetch
(
`/v1/science-admin/com-conclusion-thesis/getListByPage`
,
params
)
},
},
task
Report
:
{
task
:
{
getListByPage
(
params
)
{
return
fetch
(
`/v1/science-admin/com-project-task/getListByPage`
,
params
)
},
getT
estInfo
ByProjId
(
params
)
{
return
fetch
(
'/v1/science-admin/com-project-task/getT
estInfo
ByProjId'
,
params
)
getT
ask
ByProjId
(
params
)
{
return
fetch
(
'/v1/science-admin/com-project-task/getT
ask
ByProjId'
,
params
)
},
save
(
params
)
{
return
fetch
(
'/v1/science-admin/com-project-task/save'
,
params
,
'post'
,
'json'
)
...
...
@@ -513,12 +510,6 @@ export default {
getCount
(
params
)
{
return
fetch
(
`/v1/science-admin/com-project-task/getCount`
,
params
)
},
asyncUploadTaskFile
(
params
)
{
return
fetch
(
`/v1/science-admin/com-project-task/asyncUploadTaskFile`
,
params
,
'post'
,
'file'
)
},
deleteTaskFile
(
params
)
{
return
fetch
(
`/v1/science-admin/com-project-task/deleteTaskFile/
${
params
.
id
}
`
,
params
,
'delete'
,
'json'
)
},
},
checkReport
:
{
getListByPage
(
params
)
{
...
...
src/views/audit/task/audit.vue
View file @
91cf8f7c
...
...
@@ -116,7 +116,7 @@ export default {
methods
:
{
getTestInfoByProjId
()
{
let
pars
=
{
projId
:
this
.
projId
}
this
.
$api
.
task
Report
.
getTestInfoByProjId
(
pars
).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
task
.
getTestInfoByProjId
(
pars
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
testInfo
=
data
}
...
...
src/views/query/task/Index.vue
View file @
91cf8f7c
...
...
@@ -81,7 +81,7 @@ export default {
this
.
loading
=
true
let
pars
=
isEmptyParams
(
this
.
searchForm
)
let
par
=
{
...
pars
,
pageIndex
:
this
.
pagination
.
pageIndex
,
pageSize
:
this
.
pagination
.
pageSize
}
this
.
$api
.
task
Report
.
getListByPage
(
par
).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
task
.
getListByPage
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
const
{
dataList
=
[],
total
=
0
}
=
data
this
.
tableData
=
dataList
...
...
src/views/report/task/Index.vue
View file @
91cf8f7c
...
...
@@ -109,7 +109,7 @@ export default {
this
.
loading
=
true
let
pars
=
isEmptyParams
(
this
.
searchForm
)
let
par
=
{
...
pars
,
pageIndex
:
this
.
pagination
.
pageIndex
,
pageSize
:
this
.
pagination
.
pageSize
}
this
.
$api
.
task
Report
.
getListByPage
(
par
).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
task
.
getListByPage
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
const
{
dataList
=
[],
total
=
0
}
=
data
this
.
tableData
=
dataList
...
...
@@ -122,7 +122,7 @@ export default {
},
getCount
()
{
let
pars
=
isEmptyParams
({
reportYear
:
this
.
searchForm
.
reportYear
});
this
.
$api
.
task
Report
.
getCount
(
pars
).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
task
.
getCount
(
pars
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
itemCount
=
[
data
.
count1
,
data
.
count2
,
data
.
count3
,
data
.
count4
,
data
.
count5
]
}
...
...
@@ -161,7 +161,7 @@ export default {
this
.
visibleEdit
=
true
}
else
{
let
par
=
{
auditObjectId
:
record
.
id
,
auditType
:
2
}
this
.
$api
.
task
Report
.
report
(
par
).
then
(({
data
=
{}
})
=>
{
this
.
$api
.
task
.
report
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
$message
.
success
(
'上报成功!'
)
this
.
getListByPage
()
...
...
src/views/report/task/components/taskCreate.vue
View file @
91cf8f7c
...
...
@@ -2,47 +2,27 @@
<
template
>
<div
class=
"app-content"
style=
"height: 76vh;overflow: auto;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<div
class=
"page-steps"
>
<a-steps
size=
"small"
:current=
"current"
@
change=
"onChange"
>
<a-step
:status=
"item.status"
v-for=
"(item,index) in stepsArray"
:key=
"index+'stepsArray'"
:title=
"item.title"
/>
</a-steps>
</div>
<div
class=
"page-content"
>
<task-edit
v-model=
"value"
@
close=
"closeWindow"
@
load=
"onLoad"
@
onStepChange=
"onStepChange"
:completeStatus
.
sync=
completeStatus
:stepsArray
.
sync=
"stepsArray"
ref=
"proj
Create"
/>
<task-edit
v-model=
"value"
@
close=
"closeWindow"
@
load=
"onLoad"
ref=
"task
Create"
/>
</div>
<div
class=
"page-footer"
>
<a-button
v-if=
"currSteps > 0"
style=
"margin-left: 40px"
type=
"primary"
@
click=
"prev"
>
上一步
</a-button>
<a-button
style=
"margin-left: 40px"
type=
"primary"
@
click=
"save"
>
保 存
</a-button>
<a-button
v-if=
"currSteps
<
stepsArray
.
length
-
1
"
style=
"margin-left: 40px"
type=
"primary"
@
click=
"next"
>
下一步
</a-button>
<a-button
v-if=
"currSteps == stepsArray.length - 1"
style=
"margin-left: 40px"
type=
"primary"
@
click=
"submit"
>
完成填写
</a-button>
<a-button
type=
"primary"
@
click=
"save"
>
保 存
</a-button>
<a-button
type=
"primary"
style=
"margin-left: 40px"
@
click=
"submit"
>
完成填写
</a-button>
</div>
</a-spin>
</div>
</
template
>
<
script
>
import
{
getType
}
from
'@/views/utils/auth'
import
taskEdit
from
"@/views/report/task/components/taskEdit"
export
default
{
name
:
"
project
Create"
,
name
:
"
task
Create"
,
components
:
{
taskEdit
,
},
data
()
{
return
{
loading
:
false
,
projType
:
getType
()
==
"1"
,
current
:
10
,
currSteps
:
0
,
stepsArray
:
[
{
status
:
"process"
,
title
:
'基本信息'
,
showStatus
:
true
},
{
status
:
"wait"
,
title
:
'项目组成员及单位'
,
showStatus
:
false
},
{
status
:
"wait"
,
title
:
'经费预算及设备明细'
,
showStatus
:
false
},
{
status
:
"wait"
,
title
:
'阶段目标及课题设置'
,
showStatus
:
false
},
{
status
:
"wait"
,
title
:
'绩效指标'
,
showStatus
:
false
},
{
status
:
"wait"
,
title
:
'附件'
,
showStatus
:
false
}
],
completeStatus
:
"0,0,0,0,0,0"
}
},
props
:
{
...
...
@@ -56,62 +36,11 @@ export default {
created
()
{
},
methods
:
{
stepsChange
(
e
)
{
debugger
this
.
currSteps
=
e
this
.
changeSteps
(
this
.
currSteps
)
},
next
()
{
this
.
$refs
.
projCreate
.
submit
(
this
.
currSteps
,
true
)
},
prev
()
{
this
.
currSteps
--
;
this
.
changeSteps
(
this
.
currSteps
)
},
onChange
(
e
)
{
if
(
e
!=
this
.
currSteps
)
{
var
arr
=
this
.
completeStatus
.
split
(
','
)
if
(
arr
[
e
]
==
"1"
)
{
this
.
loading
=
true
this
.
changeSteps
(
e
)
this
.
loading
=
false
}
else
{
this
.
$message
.
error
(
'所选步骤没填写完成,请填写当前步骤后点【下一步】跳转!'
)
}
}
},
onStepChange
(
e
)
{
this
.
completeStatus
=
e
.
state
this
.
changeSteps
(
e
.
step
)
},
changeSteps
(
e
)
{
this
.
currSteps
=
e
var
clone
=
[].
concat
(
this
.
stepsArray
)
clone
.
forEach
(
e
=>
{
e
.
showStatus
=
false
})
clone
[
e
].
showStatus
=
true
;
this
.
stepsArray
=
clone
this
.
getCompleteStatus
(
e
,
this
.
completeStatus
)
},
getCompleteStatus
(
step
,
completeStatus
)
{
var
arr
=
completeStatus
.
split
(
','
)
if
(
!!
arr
&&
arr
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
i
]
==
"1"
)
{
this
.
stepsArray
[
i
].
status
=
"finish"
}
else
{
this
.
stepsArray
[
i
].
status
=
"wait"
}
}
this
.
stepsArray
[
step
].
status
=
"process"
}
},
save
()
{
this
.
$refs
.
projCreate
.
save
(
this
.
currSteps
)
this
.
$refs
.
taskCreate
.
save
(
)
},
submit
()
{
this
.
$refs
.
projCreate
.
submit
(
this
.
currSteps
,
false
)
this
.
$refs
.
taskCreate
.
submit
(
)
},
closeWindow
(
value
)
{
this
.
$emit
(
'close'
,
value
)
...
...
@@ -131,16 +60,9 @@ export default {
width: 8px;
height: 6px;
}
.page-steps {
width: 100%;
height: 40px;
padding: 8px 20px 5px 20px;
background: rgb(248, 248, 248);
border: 1px 1px 0px 1px solid #e8e8e8;
}
.page-content {
width: 100%;
height: calc(100% -
8
0px);
height: calc(100% -
4
0px);
overflow: auto;
}
.page-footer {
...
...
src/views/report/task/components/taskEdit.vue
View file @
91cf8f7c
This diff is collapsed.
Click to expand it.
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