Commit 05e64285 authored by 徐俊's avatar 徐俊

xujun

parent 77366dec
...@@ -411,6 +411,9 @@ export default { ...@@ -411,6 +411,9 @@ export default {
}, },
getUnAssignProjectListByPage (params) { getUnAssignProjectListByPage (params) {
return fetch('/v1/science-admin/com_project_audit/getUnAssignProjectListByPage', params) return fetch('/v1/science-admin/com_project_audit/getUnAssignProjectListByPage', params)
},
getAssignExpertList (params) {
return fetch('/v1/science-admin/com-project-group-assign/getAssignExpertList', params)
} }
}, },
project: { project: {
......
<template>
<div>
<a-row>
<a-col :span="24">
<a-table style="margin: 5px;" :dataSource="tableData" size="small" :columns="columns" rowKey="id" :pagination="false" :loading="loading">
<template slot="expertInfo" slot-scope="record">
<a-tag :color="record.expertType == 1 ? technology : finance">{{ record.expertType == 1 ? "技术专家" : "财务专家" }}</a-tag>
</template>
</a-table>
</a-col>
</a-row>
</div>
</template>
<script>
export default {
name: "GroupExpertDetail",
props: {
value: {
type: String,
default: () => {
return null;
},
},
},
data() {
return {
tableData: [],
columns: [
{ title: '证件号', dataIndex: 'certId', align: 'center' },
{ title: '姓名', dataIndex: 'personName', align: 'center' },
{ title: '单位', dataIndex: 'workUnit', align: 'center' },
{ title: "专家类型", scopedSlots: { customRender: 'expertInfo' }, align: 'center' },
{ title: '手机号', dataIndex: 'mobile', align: 'center' },
{ title: '电子邮箱', dataIndex: 'email', align: 'center' },
],
loading: true,
technology: "#2db7f5",
finance: "#87d068",
};
},
created() {
this.getAssignExpertList()
},
methods: {
getAssignExpertList() {
let pars = { groupId: this.value }
this.$api.projectAssign.getAssignExpertList(pars).then(({ data = {} }) => {
if (data) {
this.tableData = data
console.log(this.tableData)
this.loading = false
}
}).catch(() => { })
}
},
};
</script>
<template> <template>
<div class="app-content"> <div class="app-content" style="overflow: hidden;">
<a-form :form="form" :model="searchForm" layout="inline" class="search_form"> <a-row>
<a-form-item> <a-col :span="24" class="titalCol">
<a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 160px" /> <div style="margin: 10px;font-size:12pt;">项目组专家明细</div>
</a-form-item> </a-col>
<a-form-item> </a-row>
<a-input placeholder="项目编号" v-model="searchForm.projNo" :maxLength="100" style="width: 160px" /> <a-row>
</a-form-item> <a-col :span="24">
<a-form-item> <group-expert-detail v-model="value"></group-expert-detail>
<a-button type="primary" icon="search" @click="search">搜索</a-button> </a-col>
<a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button> </a-row>
</a-form-item>
</a-form> <a-row>
<a-divider style="height: 1px; background-color: #e8e8e8;" /> <a-col :span="24" class="titalCol">
<!-- <div class="submit-btn"> <div style="margin: 10px;font-size:12pt;">项目组项目明细</div>
<a-button icon="plus-circle" type="primary" v-if="btnAddVisiable" @click="onAddProject">添加项目</a-button> </a-col>
</div> --> </a-row>
<a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading"> <a-row>
<template slot="projName" slot-scope="record"> <a-col :span="24">
<a @click="recordClick(record)">{{record.projName}}</a> <a-form :form="form" :model="searchForm" layout="inline" class="search_form">
</template> <a-form-item>
<template slot="projClassInfo" slot-scope="record"> <a-input placeholder="项目名称" v-model="searchForm.projName" :maxLength="100" style="width: 160px" />
{{ record.projClass == 1 ? "一般项目" : "重点项目" }} </a-form-item>
</template> <a-form-item>
<template slot="option" slot-scope="record"> <a-input placeholder="项目编号" v-model="searchForm.projNo" :maxLength="100" style="width: 160px" />
<a-button type="link" size="small" @click="deleteGroupProject(record)">删除</a-button> </a-form-item>
</template> <a-form-item>
</a-table> <a-button type="primary" icon="search" @click="search">搜索</a-button>
<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-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button>
</a-form-item>
</a-form>
<a-divider style="height: 1px; background-color: #e8e8e8;" />
<!-- <div class="submit-btn">
<a-button icon="plus-circle" type="primary" v-if="btnAddVisiable" @click="onAddProject">添加项目</a-button>
</div> -->
<a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading">
<template slot="projName" slot-scope="record">
<a @click="recordClick(record)">{{record.projName}}</a>
</template>
<template slot="projClassInfo" slot-scope="record">
{{ record.projClass == 1 ? "一般项目" : "重点项目" }}
</template>
<template slot="option" slot-scope="record">
<a-button type="link" size="small" @click="deleteGroupProject(record)">删除</a-button>
</template>
</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-col>
</a-row>
<a-modal v-model="visibleView" v-if="visibleView" title="项目详情" width="94%" :footer="null" :dialog-style="{ top: '8%' }" destroyOnClose :maskClosable="false"> <a-modal v-model="visibleView" v-if="visibleView" title="项目详情" width="94%" :footer="null" :dialog-style="{ top: '8%' }" destroyOnClose :maskClosable="false">
<project-view v-model="projId" @close="() => this.visibleView = false" /> <project-view v-model="projId" @close="() => this.visibleView = false" />
</a-modal> </a-modal>
...@@ -46,11 +67,12 @@ ...@@ -46,11 +67,12 @@
import projectView from '@/views/report/project/components/projectView' import projectView from '@/views/report/project/components/projectView'
import projectSelect from '@/views/peAssign/components/projectSelect' 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/assign/components/groupExpertDetail'
export default { export default {
name: "GroupDetail", name: "GroupDetail",
components: { components: {
projectView, projectSelect projectView, projectSelect, groupExpertDetail
}, },
props: { props: {
value: { value: {
...@@ -175,3 +197,12 @@ export default { ...@@ -175,3 +197,12 @@ export default {
}, },
} }
</script> </script>
<style scoped>
.titalCol {
text-align: left;
background: #f8fafc;
font-weight: bold;
height: 48px;
}
</style>
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