Commit 069fea1f authored by 徐俊's avatar 徐俊

xujun

parent 6d3605c1
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
<template slot="talentName" slot-scope="record"> <template slot="talentName" slot-scope="record">
<a @click="recordClick(record)">{{record.personName}}</a> <a @click="recordClick(record)">{{record.personName}}</a>
</template> </template>
<template slot="talentCategory" slot-scope="record"> <template slot="operation" slot-scope="record">
{{ record.talentCategory == 1 ? "一般项目" : "重点项目" }} <a-button type="danger" @click="deleteGroupDetail(record)">删除</a-button>
</template> </template>
</a-table> </a-table>
<a-pagination v-if="pagination.total > 0" :total="pagination.total" show-size-changer show-quick-jumper v-model="pagination.pageIndex" :page-size="pagination.pageSize" :page-size-options="pagination.pageSizeOptions" @showSizeChange="showSizeChange" @change="change" :showTotal="() => `共 ${pagination.total} 条`" /> <a-pagination v-if="pagination.total > 0" :total="pagination.total" show-size-changer show-quick-jumper v-model="pagination.pageIndex" :page-size="pagination.pageSize" :page-size-options="pagination.pageSizeOptions" @showSizeChange="showSizeChange" @change="change" :showTotal="() => `共 ${pagination.total} 条`" />
...@@ -50,14 +50,13 @@ ...@@ -50,14 +50,13 @@
<script> <script>
import talentView from "@/views/report/talent/components/talentView" import talentView from "@/views/report/talent/components/talentView"
import projectSelect from '@/views/peAssign/components/projectSelect'
import { isEmptyParams, hideIdCard } from '@/views/utils/common' import { isEmptyParams, hideIdCard } from '@/views/utils/common'
import groupExpertDetail from '@/views/talentAssign/components/groupExpertDetail' import groupExpertDetail from '@/views/talentAssign/components/groupExpertDetail'
export default { export default {
name: "GroupDetail", name: "GroupDetail",
components: { components: {
talentView, projectSelect, groupExpertDetail talentView, groupExpertDetail
}, },
props: { props: {
value: { value: {
...@@ -81,11 +80,12 @@ export default { ...@@ -81,11 +80,12 @@ export default {
tableData: [], tableData: [],
columns: [ columns: [
{ title: '证件号', dataIndex: 'certId', align: 'center' }, { title: '证件号', dataIndex: 'certId', align: 'center' },
{ title: "姓名", scopedSlots: { customRender: 'talentName' }, ellipsis: true }, { title: "姓名", scopedSlots: { customRender: 'talentName' }, align: 'center', ellipsis: true },
{ title: "人才类别", scopedSlots: { customRender: 'talentCategory' }, align: 'center' }, { title: "人才类别", dataIndex: 'talentCategory', align: 'center' },
{ title: '单位', dataIndex: 'appUnitName', align: 'center' }, { title: '单位', dataIndex: 'appUnitName', align: 'center' },
{ title: '手机号', dataIndex: 'mobile', align: 'center' }, { title: '手机号', dataIndex: 'mobile', align: 'center' },
{ title: '学科名称', dataIndex: 'specName', align: 'center' } { title: '学科名称', dataIndex: 'specName', align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'operation' }, align: 'center', width: 100 }
], ],
pagination: { pagination: {
pageIndex: 1, pageIndex: 1,
...@@ -112,6 +112,10 @@ export default { ...@@ -112,6 +112,10 @@ export default {
this.$api.talentAssign.getTalentDetailListbyPage(par).then(({ data = {} }) => { this.$api.talentAssign.getTalentDetailListbyPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data const { dataList = [], total = 0 } = data
if (dataList === null || dataList.length <= 0) {
this.$message.error('没有查询到分配数据!')
this.$emit('close')
}
dataList.forEach(e => { dataList.forEach(e => {
e.certId = hideIdCard(e.certId) e.certId = hideIdCard(e.certId)
}) })
...@@ -142,7 +146,7 @@ export default { ...@@ -142,7 +146,7 @@ export default {
this.visibleView = true this.visibleView = true
this.talentId = record.talentId this.talentId = record.talentId
}, },
deleteGroupTalent (record) { deleteGroupDetail (record) {
let self = this let self = this
this.$confirm({ this.$confirm({
title: '', title: '',
......
...@@ -97,7 +97,6 @@ export default { ...@@ -97,7 +97,6 @@ export default {
this.$api.talentAssign.getUnAssignTalentListByPage(par).then(({ data = {} }) => { this.$api.talentAssign.getUnAssignTalentListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data const { dataList = [], total = 0 } = data
console.log(dataList)
dataList.forEach(e => { dataList.forEach(e => {
e.certId = hideIdCard(e.certId) e.certId = hideIdCard(e.certId)
}); });
...@@ -140,13 +139,13 @@ export default { ...@@ -140,13 +139,13 @@ export default {
}, },
submit () { submit () {
if (this.talentSelectedRowKeys.length == 0) { if (this.talentSelectedRowKeys.length == 0) {
this.$message.warning('请选择项目!') this.$message.warning('请选择人才!')
return return
} }
let Ids = this.talentSelectedRowKeys let Ids = this.talentSelectedRowKeys
this.loading = true this.loading = true
this.$api.talentAssign.InsertTalentGroup({ Ids: Ids, groupId: this.value }).then(({ data = {} }) => { this.$api.talentAssign.InsertTalentGroup({ Ids: Ids, groupId: this.value }).then(({ data = {} }) => {
if (data === '项目分组成功!') { if (data === '人才分组成功!') {
this.$message.success(data) this.$message.success(data)
this.$emit('close') this.$emit('close')
} else { } else {
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<talent-select-into-group v-model="groupId" @close="closeTalentIntoGroupWindow" ref="childEdit"></talent-select-into-group> <talent-select-into-group v-model="groupId" @close="closeTalentIntoGroupWindow" ref="childEdit"></talent-select-into-group>
</a-modal> </a-modal>
<a-modal v-model="talentDetailVisible" :title="talentGroupTitle" width="95%" :dialog-style="{ top: '8%' }" :footer="null" class="custom-modal" destroyOnClose> <a-modal v-model="talentDetailVisible" :title="talentGroupTitle" width="95%" :dialog-style="{ top: '8%' }" :footer="null" class="custom-modal" destroyOnClose>
<group-detail v-model="groupId" @close="() => this.talentDetailVisible = false" /> <group-detail v-model="groupId" @close="closeGroupDetail" />
</a-modal> </a-modal>
</div> </div>
</template> </template>
...@@ -318,7 +318,7 @@ export default { ...@@ -318,7 +318,7 @@ export default {
this.evaluationVisible = false this.evaluationVisible = false
this.getListByPage() this.getListByPage()
}, },
closeProjDetail () { closeGroupDetail () {
this.talentDetailVisible = false this.talentDetailVisible = false
this.getListByPage() this.getListByPage()
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment