<template>
    <div>
        <div class="headers">
            <div class="headers-name">企业利润明细 (元)</div>
            <div>
                <el-form :inline="true" :model="form" class="demo-form-inline">
                    <el-form-item label="年度选择" size="small">
                        <el-select v-model="form.value" placeholder="请选择" class="selects">
                            <el-option v-for="item in options" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item class="formitem">
                        <el-select v-model="form.value2" placeholder="请选择" size="small" class="selects">
                            <el-option v-for="item in options" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="是否有效" size="small" class="formitem" style="top:-3px;">
                        <el-select v-model="form.value3" placeholder="请选择" class="selects" >
                            <el-option v-for="item in options" :key="item.value" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="onSubmit" size="small"
                           class="tianjia">添加</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </div>
        <div class="content-table">
            <el-table :data="tableData" border style="width: 100%">
                <el-table-column fixed prop="niandu1" label="序号" align="center" width="80">
                </el-table-column>
                <el-table-column prop="niandu4" label="项目代号" align="center">
                </el-table-column>
                <el-table-column prop="niandu2" label="项目名称" width="360">
                </el-table-column>
                <el-table-column prop="niandu3" label="项目类型" align="center">
                </el-table-column>
               
                <el-table-column prop="niandu5" label="部门" align="center">
                </el-table-column>
                <el-table-column prop="niandu6" label="项目状态" align="center">
                </el-table-column>
                <el-table-column prop="niandu7" label="研发支出(元)" align="center">
                </el-table-column>
            </el-table>
            <div class="footer">
                <el-pagination
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page="currentPage"
                :page-sizes="[100, 200, 300, 400]"
                :page-size="100"
                layout="total, sizes, prev, pager, next, jumper"
                :total="400">
                </el-pagination>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            currentPage:1,
            tableData: [{
                niandu1: '1',
                niandu2: 'GPS车辆管理系统研发项目',
                niandu3: '自研项目',
                niandu4: '产品收入',
                niandu5: '科技部门',
                niandu6: '进行中',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, {
                niandu1: '2',
                niandu2: 'GPS车辆管理系统研发项目',
                niandu3: '自研项目',
                niandu4: '产品收入',
                niandu5: '科技部门',
                niandu6: '进行中',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, {
                niandu1: '3',
                niandu2: ' GPS车辆管理系统研发项目',
                niandu3: '自研项目',
                niandu4: '产品收入',
                niandu5: '科技部门',
                niandu6: '进行中',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, {
                niandu1: '4',
                niandu2: '高速公路低功耗可变信息情报板',
                niandu3: '科技项目',
                niandu4: '产品收入',
                niandu5: '交通运输部门',
                niandu6: '进行中',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, {
                niandu1: '5',
                niandu2: ' 关于智慧管养平台开发及运用的研究',
                niandu3: '科技项目',
                niandu4: '接受委托研究开发收入',
                niandu5: '交通运输部门',
                niandu6: '进行中',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, {
                niandu1: '6',
                niandu2: ' 高速公路管道与光缆管理系统开发',
                niandu3: '科技项目',
                niandu4: '接受委托研究开发收入',
                niandu5: '大数据部门',
                niandu6: '已结束',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, {
                niandu1: '7',
                niandu2: ' 高速公路管道与光缆管理系统开发',
                niandu3: '科技项目',
                niandu4: '接受委托研究开发收入',
                niandu5: '大数据部门',
                niandu6: '已结束',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, {
                niandu1: '8',
                niandu2: ' 高速公路管道与光缆管理系统开发',
                niandu3: '科技项目',
                niandu4: '接受委托研究开发收入',
                niandu5: '大数据部门',
                niandu6: '已结束',
                niandu7: '125655',
                niandu8: '125655',
                niandu9: '有效',
            }, ],
            options3: [
                {
                    value: 1,
                    label: "有效"
                },
                {
                    value: 2,
                    label: "无效"
                }
            ],
            options2: [
                {
                    value: 1,
                    label: "本年 (期)"
                },
                {
                    value: 2,
                    label: "2025"
                }
            ],
            options: [
                {
                    value: 1,
                    label: "全部"
                },
                {
                    value: 2,
                    label: "2025"
                }
            ],
            form: {
                value3: "",
                value: "全部",
                value2: "本年 (期)"
            }
        }
    }
}
</script>
<style scoped>
.selects{
    width: 100px;
}
.footer{
    display: flex;
    justify-content: end;
    margin-top: 20px;
}
.tianjia{
    position: relative;
    top: -9px;
    background-color: #5065F6;
}
::v-deep .el-table thead {
  background-color: #DCE0FD !important;
  color: #363636 !important;
}
::v-deep .el-table__header th {
  background-color: #DCE0FD !important;
  color: #363636 !important;
}
.content-table {}

.formitem {
    position: relative;
    top: -5px;
}

::deep .el-form-item__label {
    font-size: 15px !important;
}

.headers-name {
    font-size: 15px;
    position: relative;
    top: 14px;
}

.headers {
    display: flex;
    justify-content: space-between
}
</style>