Commit 50a4f76b authored by wangxl's avatar wangxl
parents f2a853c9 4a5e1724
...@@ -10,6 +10,13 @@ ...@@ -10,6 +10,13 @@
<a-form-item> <a-form-item>
<knowledge-select ref="knowledgeSelectRef" v-model="searchForm.knowledgeId"></knowledge-select> <knowledge-select ref="knowledgeSelectRef" v-model="searchForm.knowledgeId"></knowledge-select>
</a-form-item> </a-form-item>
<a-form-item>
<a-select default-value="" placeholder="项目类别" v-model="searchForm.projClass" style="width: 160px">
<a-select-option value="">--请选择项目类别--</a-select-option>
<a-select-option value="1">一般项目</a-select-option>
<a-select-option value="2">重点项目</a-select-option>
</a-select>
</a-form-item>
<a-form-item> <a-form-item>
<a-input v-model="searchForm.certId" placeholder="申报人证件号" :maxLength="100" style="width: 160px" /> <a-input v-model="searchForm.certId" placeholder="申报人证件号" :maxLength="100" style="width: 160px" />
</a-form-item> </a-form-item>
...@@ -26,6 +33,9 @@ ...@@ -26,6 +33,9 @@
</a-form> </a-form>
<a-divider style="height: 1px; background-color: #e8e8e8;" /> <a-divider style="height: 1px; background-color: #e8e8e8;" />
<a-table :dataSource="tableData" size="small" :columns="columns" rowKey="projId" :pagination="false" :loading="loading" :row-selection="{ selectedRowKeys: projectSelectedRowKeys, onChange: onProjectpSelectChange }"> <a-table :dataSource="tableData" size="small" :columns="columns" rowKey="projId" :pagination="false" :loading="loading" :row-selection="{ selectedRowKeys: projectSelectedRowKeys, onChange: onProjectpSelectChange }">
<template slot="projClassInfo" slot-scope="record">
{{ record.projClass == 1 ? "一般项目" : "重点项目" }}
</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} 条`" />
</div> </div>
...@@ -58,6 +68,7 @@ export default { ...@@ -58,6 +68,7 @@ export default {
columns: [ columns: [
// { title: "项目名称", scopedSlots: { customRender: 'projName' } }, // { title: "项目名称", scopedSlots: { customRender: 'projName' } },
{ title: "项目名称", dataIndex: 'projName', align: 'left', width: 200, ellipsis: true }, { title: "项目名称", dataIndex: 'projName', align: 'left', width: 200, ellipsis: true },
{ title: "项目类别", scopedSlots: { customRender: 'projClassInfo' }, align: 'center', width: 80 },
//{ title: '项目编号', dataIndex: 'projNo', align: 'center', width: 160 }, //{ title: '项目编号', dataIndex: 'projNo', align: 'center', width: 160 },
{ title: '申请编号', dataIndex: 'appNo', align: 'center', width: 160 }, { title: '申请编号', dataIndex: 'appNo', align: 'center', width: 160 },
{ title: '学科', dataIndex: 'knowledgeName', align: 'center', width: 100 }, { title: '学科', dataIndex: 'knowledgeName', align: 'center', width: 100 },
...@@ -65,7 +76,7 @@ export default { ...@@ -65,7 +76,7 @@ export default {
{ title: '证件号', dataIndex: 'certId', align: 'center', width: 150 }, { title: '证件号', dataIndex: 'certId', align: 'center', width: 150 },
{ title: '申报人', dataIndex: 'appPersonName', align: 'center', width: 80 } { title: '申报人', dataIndex: 'appPersonName', align: 'center', width: 80 }
], ],
searchForm: { groupId: null, appPersonName: null, reportYear: null, knowledgeCode: null, knowledgeId: null, knowledgeParentId: null, projName: null, appNo: null, projType: getType(), appUnitName: null }, searchForm: { groupId: null, appPersonName: null, reportYear: null, knowledgeCode: null, knowledgeId: null, knowledgeParentId: null, projName: null, appNo: null, projType: getType(), appUnitName: null, projClass: "" },
pagination: { pagination: {
pageIndex: 1, pageIndex: 1,
pageSize: this.$defaultPageSize, pageSize: this.$defaultPageSize,
......
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