[add] 工作组、分标委在研项目页面

This commit is contained in:
zhaoxiao
2021-12-13 16:25:00 +08:00
parent 9b9c94d89a
commit 18d3202100
5 changed files with 482 additions and 1 deletions
@@ -0,0 +1,170 @@
<template>
<div>
<page-header-title :is-level-one="false" :level-two-title="$route.query.title"></page-header-title>
<a-card :bordered="false">
<!-- 查询区域-start -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="项目名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入项目名称" v-model="queryParam.companyName" :maxLength='50'></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span class="table-page-search-submitButtons">
<a-button type="primary" icon="search" @click="searchQuery" v-has="'company:search'">查询</a-button>
<a-button icon="reload" @click="searchReset" class="reset-button">重置</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- 查询区域-end-->
<!-- table表格区域-->
<div>
<a-table
ref="table"
size="middle"
bordered
rowKey="id"
:columns="columns"
:scroll="{x: 1600}"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"
class="j-table-force-nowrap">
<template slot="text" slot-scope="text">
<j-ellipsis :value="text" :length="18"></j-ellipsis>
</template>
<!-- 立项文件-->
<span slot="project-approval" class="action-span-cell" slot-scope="text, record">
<a @click="viewProjectApproval(record)">查看</a>
</span>
<!-- 征求意见-->
<span slot="advice" class="action-span-cell" slot-scope="text, record">
<a @click="viewAdvice(record)">查看</a>
</span>
<!-- 送审材料-->
<span slot="review-material" class="action-span-cell" slot-scope="text, record">
<a @click="viewReviewMaterial(record)">查看</a>
</span>
</a-table>
</div>
</a-card>
</div>
</template>
<script>
import PageHeaderTitle from '../../components/layouts/PageHeaderTitle'
import { JeroListMixin } from '../../mixins/JeroListMixin'
export default {
name: 'CommitteeUnderStudyProject',
components: { PageHeaderTitle },
mixins: [JeroListMixin],
data() {
return {
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 10 }
},
columns: [
{
title: '序号',
dataIndex: '',
key: 'rowIndex',
width: 60,
align: 'center',
customRender: function (t, r, index) {
return parseInt(index) + 1
}
}, {
title: '项目名称',
align: 'center',
dataIndex: 'companyName',
scopedSlots: { customRender: 'text' }
}, {
title: '计划号',
align: 'center',
dataIndex: 'dutyCode',
scopedSlots: { customRender: 'text' }
}, {
title: '起草单位',
align: 'center',
dataIndex: 'companyAddress',
scopedSlots: { customRender: 'text' }
}, {
title: '项目进度',
align: 'center',
dataIndex: 'companyPhone',
scopedSlots: { customRender: 'text' }
}, {
title: '立项文件',
align: 'center',
width: 100,
fixed: 'right',
dataIndex: 'status_dictText',
scopedSlots: { customRender: 'project-approval' }
}, {
title: '征求意见',
align: 'center',
width: 100,
fixed: 'right',
dataIndex: 'createTime',
scopedSlots: { customRender: 'advice' }
}, {
title: '送审材料',
align: 'center',
width: 100,
fixed: 'right',
dataIndex: 'bankAccountName',
scopedSlots: { customRender: 'review-material' }
}
],
url: {
list: '',
}
}
},
methods: {
/**
* 查看立项文件
* @param record
*/
viewProjectApproval(record) {
console.log('查看立项文件', record)
},
/**
* 查看征求意见
* @param record
*/
viewAdvice(record) {
console.log('查看征求意见', record)
},
/**
* 查看送审材料
* @param record
*/
viewReviewMaterial(record) {
console.log('查看送审材料', record)
}
}
}
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
</style>