Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
project_progress
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7a9ac276
authored
May 06, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
1 parent
c5410595
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
94 deletions
src/views/assessChecks/auxiliarySelection.vue
src/views/assessChecks/confirmRelease.vue
src/views/assessChecks/auxiliarySelection.vue
View file @
7a9ac27
...
...
@@ -919,6 +919,11 @@ export default {
// this.$message("该项目已撤回");
// return;
// }
if
(
this
.
checkedList
[
0
].
postEvalState
==
'已撤回'
){
this
.
$set
(
this
.
checkedList
[
0
],
'postEvalState'
,
'2'
)
}
else
{
this
.
$set
(
this
.
checkedList
[
0
],
'postEvalState'
,
'0'
)
}
let
res
=
await
sendEvalBatchInfo
(
this
.
checkedList
[
0
])
if
(
res
.
code
==
'200'
){
this
.
resetForm
()
...
...
src/views/assessChecks/confirmRelease.vue
View file @
7a9ac27
<!-- 辅助核验 -->
<
template
>
<div
class=
"main"
>
<el-form
:model=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form
:model=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
ref=
"formName"
>
<el-form-item
label=
"批次年度:"
prop=
"batchYear"
class=
"fromItem"
>
<el-select
v-model=
"ruleForm.batchYear"
placeholder=
"请选择"
>
<el-option
label=
"2024年"
value=
"2024"
></el-option>
...
...
@@ -91,11 +91,10 @@
>
<div
class=
"dialog"
>
<el-form
ref=
"formName"
ref=
"formName
s
"
:model=
"ruleFormdialogBJ"
label-width=
"100px"
class=
"demo-ruleForm"
:rules=
"rules"
>
<el-form-item
label=
"批次年度:"
prop=
"batchYear"
class=
"fromItem"
>
<el-input
v-model=
"ruleFormdialogBJ.batchYear"
disabled
></el-input>
...
...
@@ -165,7 +164,7 @@
</el-table-column>
-->
</el-table>
<
!-- <
el-pagination
<el-pagination
@
size-change=
"handleSizeChangeAdd"
@
current-change=
"handleCurrentChangeAdd"
:current-page=
"addcurrentPage"
...
...
@@ -175,7 +174,7 @@
:total=
"addtotal"
class=
"elpagination"
>
</el-pagination>
-->
</el-pagination>
<!-- <p class="midBtn">
<span @click="cancelXZ()">取消</span
><span @click="saveXZ()">确认发布</span>
...
...
@@ -192,8 +191,8 @@
>
<div
class=
"dialog"
>
<el-form
ref=
"formName"
:model=
"ruleFormdialog
Add
"
ref=
"formName
s
"
:model=
"ruleFormdialog
BJ
"
label-width=
"150px"
class=
"demo-ruleForm"
:rules=
"rules"
...
...
@@ -486,8 +485,12 @@ export default {
},
rules
:
{
prjsOfExpert
:
[
{
required
:
true
,
message
:
"请选择每位专家可评估项目数"
,
trigger
:
"prjsOfExpert"
},
],
{
required
:
true
,
message
:
"请选择每位专家可评估项目数"
,
trigger
:
"change"
,
},
]
},
tableData
:
[],
...
...
@@ -531,83 +534,32 @@ export default {
this
.
submitForm
();
},
methods
:
{
async
submitForm
(
formName
)
{
async
submitForm
()
{
let
params
=
{
current
:
this
.
currentPage
,
pageSize
:
this
.
pageSize
,
};
Object
.
assign
(
params
,
this
.
ruleForm
);
console
.
log
(
params
);
(
this
.
tableData
=
[
{
expertId
:
1
,
fullName
:
"王小明"
,
gender
:
1
,
birthday
:
"2024-04-23"
,
compId
:
10001
,
qualification
:
"硕士"
,
contact
:
"13241375678"
,
email
:
"115485@qq.com"
,
fields
:
"1"
,
expertLevel
:
1
,
description
:
"1"
,
expertState
:
1
,
creator
:
1
,
createTime
:
"2024-04-23 14:47:07"
,
lastUpdatedby
:
1
,
lastUpdateTime
:
"2024-04-23 14:47:12"
,
column14
:
1
,
},
{
expertId
:
2
,
fullName
:
"李晓帅"
,
gender
:
0
,
birthday
:
"2024-04-23"
,
compId
:
10001
,
qualification
:
"博士"
,
contact
:
"13241375678"
,
email
:
"115485@qq.com"
,
fields
:
"1"
,
expertLevel
:
1
,
description
:
"1"
,
expertState
:
1
,
creator
:
1
,
createTime
:
"2024-04-23 14:47:07"
,
lastUpdatedby
:
1
,
lastUpdateTime
:
"2024-04-23 14:47:12"
,
column14
:
1
,
},
{
expertId
:
3
,
fullName
:
"张晓楠"
,
gender
:
1
,
birthday
:
"2024-04-23"
,
compId
:
10002
,
qualification
:
"博士后"
,
contact
:
"13241375678"
,
email
:
"115485@qq.com"
,
fields
:
"1"
,
expertLevel
:
1
,
description
:
"1"
,
expertState
:
1
,
creator
:
1
,
createTime
:
"2024-04-23 14:47:07"
,
lastUpdatedby
:
1
,
lastUpdateTime
:
"2024-04-23 14:47:12"
,
column14
:
1
,
},
]),
(
this
.
total
=
2
);
return
;
let
res
=
await
projectInfo
(
params
);
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
.
forEach
(
item
=>
{
if
(
item
.
postEvalState
==
''
||
item
.
postEvalState
==
null
){
// this.$set( item,'postEvalState','')
}
else
if
(
item
.
postEvalState
==
'0'
){
this
.
$set
(
item
,
'postEvalState'
,
'未下发'
)
}
else
if
(
item
.
postEvalState
==
'2'
){
this
.
$set
(
item
,
'postEvalState'
,
'已撤回'
)
}
else
{
this
.
$set
(
item
,
'postEvalState'
,
'已下发'
)
}
})
this
.
total
=
res
.
data
.
total
*
1
;
}
},
resetForm
()
{
this
.
$refs
[
formName
]
.
resetFields
();
this
.
$refs
.
formName
.
resetFields
();
this
.
currentPage
=
1
;
this
.
pageSize
=
10
;
this
.
submitForm
();
...
...
@@ -643,14 +595,14 @@ export default {
this
.
ruleFormdialogBJ
=
this
.
checkedList
[
0
]
this
.
dialogAdd
=
true
let
params
=
{
// current:1
,
// pageSize:10
,
current
:
this
.
addcurrentPage
,
pageSize
:
this
.
pageSizeAdd
,
}
Object
.
assign
(
params
,
this
.
ruleFormdialogAdd
);
let
res
=
await
joinProjectInfo
(
params
)
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
// this.
total = res.data.total * 1;
this
.
add
tableData
=
res
.
data
.
records
;
this
.
add
total
=
res
.
data
.
total
*
1
;
}
},
//表格颜色
...
...
@@ -727,7 +679,7 @@ export default {
saveXZ
()
{
console
.
log
(
"保存验证"
,
this
.
$refs
);
this
.
$refs
.
formName
.
validate
((
valid
)
=>
{
this
.
$refs
.
formName
s
.
validate
((
valid
)
=>
{
if
(
!
valid
)
{
console
.
log
(
"error submit!!"
);
return
false
;
...
...
@@ -738,22 +690,28 @@ export default {
console
.
log
(
this
.
addZJList
,
"this.addZJList"
);
// 确认发布入参
let
expertIdList
=
[];
// this.addZJList.forEach((item) => {
// expertIdList.push(item.expertId);
// });
// let expertStr = JSON.stringify(expertIdList).slice(1, -1);
// console.log(expertIdList, "expertIdList", expertStr);
// let params = {
// expertStr: expertStr,
// };
// Object.assign(params, this.ruleFormdialogAdd);
// this.xfParams = JSON.parse(JSON.stringify(params));
// console.log(params, "222");
// fbProjectInfo(params).then((res) => {
// this.dialogAdd = false;
// this.expertIdList=expertIdList
// this.resetForm();
// });
let
expertStr
=
''
;
this
.
addtableData
.
forEach
((
item
)
=>
{
expertIdList
.
push
(
item
.
projectId
);
});
expertStr
=
JSON
.
stringify
(
expertIdList
).
slice
(
1
,
-
1
);
console
.
log
(
expertStr
,
'expertStexpertSt'
)
let
params
=
{
expertStr
:
expertStr
,
};
params
.
batchId
=
this
.
ruleFormdialogBJ
.
batchId
params
.
prjsOfExpert
=
this
.
ruleFormdialogBJ
.
prjsOfExpert
// this.ruleFormdialogBJ.expertStr={...expertIdList}
// Object.assign(this.ruleFormdialogBJ,params,);
console
.
log
(
params
,
"222"
);
fbProjectInfo
(
params
).
then
((
res
)
=>
{
this
.
dialogAdd
=
false
;
this
.
expertIdList
=
expertIdList
this
.
resetForm
();
});
}
});
...
...
@@ -1008,4 +966,10 @@ text-align: center;
color
:
#fff
;
}
}
/
deep
/
.el-table
th
.el-table__cell.is-leaf
,
.el-table
td
.el-table__cell
{
text-align
:
center
;
}
/
deep
/
.el-table__cell
{
text-align
:
center
;
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment