Commit 9ad1d672 authored by 徐俊's avatar 徐俊

xujun

parent 3aaba57b
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,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 +61,7 @@ export default { ...@@ -58,6 +61,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 },
......
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