enterprise.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <div id="column">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="top">
  6. <el-col :span="12" class="topTitle">
  7. <span>审核信息列表</span>
  8. </el-col>
  9. </el-col>
  10. <el-col :span="24" class="list">
  11. <template>
  12. <el-table :data="recruitInfo" style="width: 100%">
  13. <el-table-column prop="name" label="产品名称" align="center"> </el-table-column>
  14. <el-table-column prop="totaltype" label="产品类型 " align="center">
  15. <template v-slot="scoped">
  16. {{
  17. `${scoped.row.totaltype}` === `0` ? '技术' : `${scoped.row.totaltype}` === `1` ? '产品' : `${scoped.row.totaltype}` === `2` ? '服务' : ''
  18. }}
  19. </template>
  20. </el-table-column>
  21. <el-table-column prop="state" label="状态" align="center">
  22. <template v-slot="scoped">
  23. {{ `${scoped.row.status}` === `0` ? '审核中' : `${scoped.row.status}` === `1` ? '审核通过' : '审核拒绝' }}
  24. </template>
  25. </el-table-column>
  26. <el-table-column label="操作" align="center">
  27. <template slot-scope="scoped">
  28. <el-tooltip content="审核通过" placement="bottom" effect="light">
  29. <el-button type="text" size="small" @click="handleEdit(scoped.row)" v-if="scoped.row.status == '0'"
  30. ><i class="el-icon-check"></i
  31. ></el-button>
  32. </el-tooltip>
  33. <el-tooltip content="审核拒绝" placement="bottom" effect="light">
  34. <el-button type="text" size="small" @click="handleshibai(scoped.row)" v-if="scoped.row.status == '0'"
  35. ><i class="el-icon-close"></i
  36. ></el-button>
  37. </el-tooltip>
  38. <el-tooltip content="删除" placement="bottom" effect="light">
  39. <el-button type="text" size="small" @click="handleDelete(scoped.row)"><i class="el-icon-delete"></i></el-button>
  40. </el-tooltip>
  41. </template>
  42. </el-table-column>
  43. </el-table>
  44. <el-col :span="24" class="page">
  45. <el-pagination
  46. @size-change="handleSizeChange"
  47. @current-change="handleCurrentChange"
  48. :current-page="currentPage"
  49. layout="total, prev, pager, next, jumper"
  50. :total="total"
  51. :page-size="pageSize"
  52. >
  53. </el-pagination>
  54. </el-col>
  55. </template>
  56. </el-col>
  57. </el-col>
  58. </el-row>
  59. </div>
  60. </template>
  61. <script>
  62. export default {
  63. name: 'column',
  64. props: {
  65. recruitInfo: null,
  66. total: null,
  67. },
  68. components: {},
  69. data: () => ({
  70. currentPage: 0,
  71. pageSize: 10,
  72. }),
  73. created() {},
  74. computed: {},
  75. methods: {
  76. addData() {
  77. this.$router.push({ path: '/personnel/recruitDetail' });
  78. },
  79. handleDelete(item) {
  80. this.$emit('delete', item);
  81. },
  82. handleEdit(row) {
  83. this.$emit('edit', { data: row });
  84. },
  85. handleshibai(row) {
  86. this.$emit('shibai', { data: row });
  87. },
  88. handleSizeChange(val) {
  89. console.log(`每页 ${val} 条`);
  90. },
  91. handleCurrentChange(currentPage) {
  92. console.log(currentPage);
  93. this.$emit('handleCurrentChange', { skip: (currentPage - 1) * this.pageSize, limit: this.pageSize, currentPage });
  94. },
  95. },
  96. };
  97. </script>
  98. <style lang="less" scoped>
  99. .top {
  100. padding: 15px 0;
  101. border-bottom: 1px solid #cccc;
  102. }
  103. .top .topTitle {
  104. padding: 0 10px;
  105. }
  106. .top .topAdd {
  107. padding: 0 10px 0 0;
  108. text-align: right;
  109. }
  110. .page {
  111. padding: 20px 0;
  112. text-align: center;
  113. }
  114. </style>