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
d3c1c284
Commit
d3c1c284
authored
Jul 24, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.yiboshi.com/XuJun/yn-science-front
parents
30f83b44
527c81f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
175 additions
and
2 deletions
+175
-2
groupEdit.vue
src/views/peAssign/components/groupEdit.vue
+3
-1
groupEdit.vue
src/views/talentAssign/components/groupEdit.vue
+171
-0
index.vue
src/views/talentAssign/index.vue
+1
-1
No files found.
src/views/peAssign/components/groupEdit.vue
View file @
d3c1c284
...
...
@@ -70,7 +70,9 @@
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"assignState"
>
<a-tag
v-if=
"formData.assignState===0"
:color=
"'red'"
>
未分配
</a-tag>
<a-tag
v-else
v-for=
"data in formData.expertList"
:key=
"data.id"
:color=
"'orange'"
>
{{
data
.
personName
}}
</a-tag>
<template
v-else
>
<a-tag
v-for=
"data in formData.expertList"
:key=
"data.id"
:color=
"'orange'"
>
{{
data
.
personName
}}
</a-tag>
</
template
>
<!-- <a-tag v-else :color="'green'">已分配</a-tag> -->
</a-form-model-item>
</a-col>
...
...
src/views/talentAssign/components/groupEdit.vue
0 → 100644
View file @
d3c1c284
<
template
>
<div
class=
"app-content"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<a-form-model
ref=
"form"
:model=
"formData"
:rules=
"rules"
class=
"from-table"
>
<a-row>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"required"
>
人才分组名称
</div>
</a-col>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"groupName"
>
<a-input
v-model=
"formData.groupName"
placeholder=
"人才分组名称"
style=
"width:400px"
/>
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"required"
>
年度
</div>
</a-col>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"groupYear"
>
<base-select
v-model=
"formData.groupYear"
:type=
"8"
:width=
"160"
:disabled=
"disabled"
/>
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"required"
>
项目组序号
</div>
</a-col>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"displayOrder"
>
<a-input-number
v-model=
"formData.displayOrder"
placeholder=
"项目组序号"
style=
"width:160px"
:min=
"1"
:max=
"100"
:default-value=
"0"
/>
</a-form-model-item>
</a-col>
</a-row>
<a-row
v-if=
"false"
>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"required"
>
人才数量
</div>
</a-col>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"projCount"
>
<a-input-number
v-model=
"formData.talentCount"
placeholder=
"项目数量"
style=
"width:400px"
:min=
"0"
:max=
"1000"
:disabled=
"true"
:default-value=
"0"
/>
</a-form-model-item>
</a-col>
</a-row>
<a-row
v-if=
"false"
>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"required"
>
专家数量
</div>
</a-col>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"expertCount"
>
<a-input-number
v-model=
"formData.expertCount"
placeholder=
"专家数量"
style=
"width:400px"
:min=
"0"
:max=
"1000"
:disabled=
"true"
:default-value=
"0"
/>
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"required"
>
分配状态
</div>
</a-col>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"assignState"
>
<a-tag
v-if=
"formData.assignState===0"
:color=
"'red'"
>
未分配
</a-tag>
<template
v-else
>
<a-tag
v-for=
"data in formData.expertList"
:key=
"data.id"
:color=
"'orange'"
>
{{
data
.
personName
}}
</a-tag>
</
template
>
</a-form-model-item>
</a-col>
</a-row>
<a-row>
<a-col
:span=
"4"
class=
"bg-gray"
>
<div
class=
"required"
>
备注
</div>
</a-col>
<a-col
:span=
"20"
>
<a-form-model-item
prop=
"remark"
>
<a-textarea
v-model=
"formData.remark"
placeholder=
"备注"
:auto-size=
"{ minRows: 3, maxRows: 5 }"
/>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</a-spin>
</div>
</template>
<
script
>
import
moment
from
'moment'
import
baseSelect
from
'@/views/components/common/baseSelect'
import
paraSelect
from
'@/views/components/common/paraSelect'
import
{
isEmptyParams
}
from
"@/views/utils/common"
import
{
getType
}
from
'@/views/utils/auth'
export
default
{
name
:
"GroupEdit"
,
components
:
{
baseSelect
,
paraSelect
},
props
:
{
value
:
{
type
:
String
,
default
:
()
=>
{
return
null
}
}
},
data
()
{
return
{
loading
:
false
,
formData
:
{
id
:
null
,
groupName
:
null
,
groupYear
:
null
,
displayOrder
:
1
,
knowledgeId
:
null
,
projCount
:
0
,
expertCount
:
0
,
assignState
:
0
,
remark
:
''
},
rules
:
{
groupName
:
[{
required
:
true
,
message
:
'请输入项目组名称'
}],
groupYear
:
{
required
:
true
,
message
:
'请输入年度'
},
knowledgeId
:
{
required
:
true
,
message
:
'请选择申报学科'
,
trigger
:
'change'
},
projCount
:
[{
required
:
false
}],
assignState
:
[{
required
:
false
}],
remark
:
[{
required
:
false
}],
},
disabled
:
true
,
}
},
created
()
{
this
.
getYear
()
if
(
this
.
value
)
{
this
.
loading
=
true
this
.
getGroupById
()
}
},
methods
:
{
moment
,
getYear
()
{
this
.
$api
.
batch
.
getCurrentYearBatch
({
type
:
1
,
systemType
:
getType
(),
timeType
:
1
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
formData
.
groupYear
=
data
.
year
+
''
}
}).
catch
(()
=>
{
})
},
getGroupById
()
{
this
.
$api
.
projectGroupAssign
.
getGroupById
({
id
:
this
.
value
}).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
data
.
groupYear
=
data
.
groupYear
+
''
this
.
formData
=
data
}
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
submit
()
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
loading
=
true
let
pars
=
isEmptyParams
(
this
.
formData
)
let
par
=
{
...
pars
}
if
(
!
this
.
value
)
{
this
.
$api
.
projectGroupAssign
.
addGroup
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
$message
.
success
(
'添加成功!'
)
this
.
$emit
(
'close'
,
'edit'
)
}
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
else
{
this
.
$api
.
projectGroupAssign
.
updateGroup
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
this
.
$message
.
success
(
'修改成功!'
)
this
.
$emit
(
'close'
,
'edit'
)
}
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
}
})
}
},
};
</
script
>
src/views/talentAssign/index.vue
View file @
d3c1c284
...
...
@@ -33,7 +33,7 @@
</a-form>
<a-divider
style=
"height: 1px; background-color: #e8e8e8;"
/>
<div
class=
"submit-btn"
>
<a-button
icon=
"plus-circle"
type=
"primary"
@
click=
"onAddProjectGroup"
>
添加
项目
组
</a-button>
<a-button
icon=
"plus-circle"
type=
"primary"
@
click=
"onAddProjectGroup"
>
添加
人才分
组
</a-button>
<a-button
icon=
"plus-circle"
type=
"primary"
@
click=
"onAssignProjectIntoGroup"
>
分配项目进入项目组
</a-button>
<a-button
type=
"primary"
@
click=
"onaAssignDetail"
>
分配明细
</a-button>
<a-button
icon=
"download"
type=
"primary"
@
click=
"exportEvaluationExcel"
>
项目评审结果导出
</a-button>
...
...
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