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
980cefa4
Commit
980cefa4
authored
Apr 14, 2025
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
5b07a31f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
final.vue
src/views/audit/project/final.vue
+25
-8
No files found.
src/views/audit/project/final.vue
View file @
980cefa4
...
@@ -43,8 +43,11 @@
...
@@ -43,8 +43,11 @@
<template
slot=
"projName"
slot-scope=
"record"
>
<template
slot=
"projName"
slot-scope=
"record"
>
<a
@
click=
"recordClick(record, 'view')"
>
{{
record
.
projName
}}
</a>
<a
@
click=
"recordClick(record, 'view')"
>
{{
record
.
projName
}}
</a>
</
template
>
</
template
>
<
template
slot=
"defenseInfo"
slot-scope=
"record"
>
<
template
slot=
"defenseTechnologyInfo"
slot-scope=
"record"
>
<editable-cell
:text=
"record.defenseScore"
@
change=
"onCellChange(record.id, 'defenseScore', $event)"
/>
<editable-cell
:text=
"record.defenseTechnologyScore"
@
change=
"onCellChange(record.id, 'defenseTechnologyScore', $event)"
/>
</
template
>
<
template
slot=
"defenseEconomyInfo"
slot-scope=
"record"
>
<editable-cell
:text=
"record.defenseEconomyScore"
@
change=
"onCellChange(record.id, 'defenseEconomyScore', $event)"
/>
</
template
>
</
template
>
<
template
slot=
"auditResultName"
slot-scope=
"record"
>
<
template
slot=
"auditResultName"
slot-scope=
"record"
>
<span
v-if=
"record"
>
<span
v-if=
"record"
>
...
@@ -173,9 +176,11 @@ export default {
...
@@ -173,9 +176,11 @@ export default {
],
],
itemCount
:
[
0
,
0
,
0
,
0
,
0
],
itemCount
:
[
0
,
0
,
0
,
0
,
0
],
columns
:
[
columns
:
[
{
title
:
"项目名称"
,
scopedSlots
:
{
customRender
:
'projName'
},
ellipsis
:
true
,
width
:
300
},
{
title
:
"项目编号"
,
dataIndex
:
"projNo"
,
align
:
'center'
},
{
title
:
"项目编号"
,
dataIndex
:
"projNo"
,
align
:
'center'
},
{
title
:
"答辩分数"
,
scopedSlots
:
{
customRender
:
'defenseInfo'
},
align
:
'center'
,
width
:
150
},
{
title
:
"项目名称"
,
scopedSlots
:
{
customRender
:
'projName'
},
ellipsis
:
true
,
width
:
300
},
{
title
:
"答辩技术专家评分"
,
scopedSlots
:
{
customRender
:
'defenseTechnologyInfo'
},
align
:
'center'
,
width
:
150
},
{
title
:
"答辩账务专家评分"
,
scopedSlots
:
{
customRender
:
'defenseEconomyInfo'
},
align
:
'center'
,
width
:
150
},
{
title
:
"答辩分数"
,
dataIndex
:
"defenseScore"
,
align
:
'center'
,
width
:
150
},
{
title
:
"项目类别"
,
dataIndex
:
'projClassName'
,
align
:
'center'
},
{
title
:
"项目类别"
,
dataIndex
:
'projClassName'
,
align
:
'center'
},
{
title
:
'申报单位'
,
dataIndex
:
'appUnitName'
,
align
:
'center'
},
{
title
:
'申报单位'
,
dataIndex
:
'appUnitName'
,
align
:
'center'
},
{
title
:
'申报人'
,
dataIndex
:
'appPersonName'
,
align
:
'center'
},
{
title
:
'申报人'
,
dataIndex
:
'appPersonName'
,
align
:
'center'
},
...
@@ -195,8 +200,10 @@ export default {
...
@@ -195,8 +200,10 @@ export default {
{
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'option'
},
align
:
'center'
,
fixed
:
'right'
,
width
:
120
,
},
{
title
:
'操作'
,
scopedSlots
:
{
customRender
:
'option'
},
align
:
'center'
,
fixed
:
'right'
,
width
:
120
,
},
],
],
excelCol
:
[
excelCol
:
[
{
title
:
"项目名称"
,
scopedSlots
:
{
customRender
:
'projName'
}
},
{
title
:
"项目编号"
,
dataIndex
:
"projNo"
,
align
:
'center'
},
{
title
:
"项目编号"
,
dataIndex
:
"projNo"
,
align
:
'center'
},
{
title
:
"项目名称"
,
scopedSlots
:
{
customRender
:
'projName'
}
},
{
title
:
"答辩技术专家评分"
,
dataIndex
:
'defenseTechnologyScore'
,
align
:
'center'
},
{
title
:
"答辩账务专家评分"
,
dataIndex
:
'defenseEconomyScore'
,
align
:
'center'
},
{
title
:
"答辩分数"
,
dataIndex
:
"defenseScore"
,
align
:
'center'
},
{
title
:
"答辩分数"
,
dataIndex
:
"defenseScore"
,
align
:
'center'
},
{
title
:
"项目类别"
,
dataIndex
:
'projClassName'
,
align
:
'center'
},
{
title
:
"项目类别"
,
dataIndex
:
'projClassName'
,
align
:
'center'
},
{
title
:
'申报单位'
,
dataIndex
:
'appUnitName'
,
align
:
'center'
},
{
title
:
'申报单位'
,
dataIndex
:
'appUnitName'
,
align
:
'center'
},
...
@@ -408,11 +415,21 @@ export default {
...
@@ -408,11 +415,21 @@ export default {
onCellChange
(
key
,
dataIndex
,
value
)
{
onCellChange
(
key
,
dataIndex
,
value
)
{
const
target
=
this
.
tableData
.
find
(
item
=>
item
.
id
===
key
);
const
target
=
this
.
tableData
.
find
(
item
=>
item
.
id
===
key
);
if
(
target
)
{
if
(
target
)
{
target
[
dataIndex
]
=
value
;
target
[
dataIndex
]
=
value
// 调用API更新数据
let
defenseTechScore
let
defenseEconScore
if
(
dataIndex
===
'defenseTechnologyScore'
)
{
defenseTechScore
=
value
defenseEconScore
=
target
[
'defenseEconomyScore'
]
}
else
{
defenseTechScore
=
target
[
'defenseTechnologyScore'
]
defenseEconScore
=
value
}
this
.
$api
.
project
.
updateDefenseScore
({
this
.
$api
.
project
.
updateDefenseScore
({
id
:
target
.
projId
,
id
:
target
.
projId
,
defenseScore
:
value
defenseTechnologyScore
:
defenseTechScore
,
defenseEconomyScore
:
defenseEconScore
,
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$message
.
success
(
'答辩分数更新成功'
)
this
.
$message
.
success
(
'答辩分数更新成功'
)
this
.
getListByPage
()
this
.
getListByPage
()
...
...
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