123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <template>
- <div id="column">
- <el-row>
- <el-col :span="24" class="info">
- <el-col :span="24" class="top">
- <el-col :span="12" class="topTitle">
- <span>审核信息列表</span>
- </el-col>
- </el-col>
- <el-col :span="24" class="list">
- <template>
- <el-table :data="recruitInfo" style="width: 100%">
- <el-table-column prop="name" label="产品名称" align="center"> </el-table-column>
- <el-table-column prop="totaltype" label="产品类型 " align="center">
- <template v-slot="scoped">
- {{
- `${scoped.row.totaltype}` === `0` ? '技术' : `${scoped.row.totaltype}` === `1` ? '产品' : `${scoped.row.totaltype}` === `2` ? '服务' : ''
- }}
- </template>
- </el-table-column>
- <el-table-column prop="state" label="状态" align="center">
- <template v-slot="scoped">
- {{ `${scoped.row.status}` === `0` ? '审核中' : `${scoped.row.status}` === `1` ? '审核通过' : '审核拒绝' }}
- </template>
- </el-table-column>
- <el-table-column label="操作" align="center">
- <template slot-scope="scoped">
- <el-tooltip content="审核通过" placement="bottom" effect="light">
- <el-button type="text" size="small" @click="handleEdit(scoped.row)" v-if="scoped.row.status == '0'"
- ><i class="el-icon-check"></i
- ></el-button>
- </el-tooltip>
- <el-tooltip content="审核拒绝" placement="bottom" effect="light">
- <el-button type="text" size="small" @click="handleshibai(scoped.row)" v-if="scoped.row.status == '0'"
- ><i class="el-icon-close"></i
- ></el-button>
- </el-tooltip>
- <el-tooltip content="删除" placement="bottom" effect="light">
- <el-button type="text" size="small" @click="handleDelete(scoped.row)"><i class="el-icon-delete"></i></el-button>
- </el-tooltip>
- </template>
- </el-table-column>
- </el-table>
- <el-col :span="24" class="page">
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- layout="total, prev, pager, next, jumper"
- :total="total"
- :page-size="pageSize"
- >
- </el-pagination>
- </el-col>
- </template>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- export default {
- name: 'column',
- props: {
- recruitInfo: null,
- total: null,
- },
- components: {},
- data: () => ({
- currentPage: 0,
- pageSize: 10,
- }),
- created() {},
- computed: {},
- methods: {
- addData() {
- this.$router.push({ path: '/personnel/recruitDetail' });
- },
- handleDelete(item) {
- this.$emit('delete', item);
- },
- handleEdit(row) {
- this.$emit('edit', { data: row });
- },
- handleshibai(row) {
- this.$emit('shibai', { data: row });
- },
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`);
- },
- handleCurrentChange(currentPage) {
- console.log(currentPage);
- this.$emit('handleCurrentChange', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .top {
- padding: 15px 0;
- border-bottom: 1px solid #cccc;
- }
- .top .topTitle {
- padding: 0 10px;
- }
- .top .topAdd {
- padding: 0 10px 0 0;
- text-align: right;
- }
- .page {
- padding: 20px 0;
- text-align: center;
- }
- </style>
|