employee_qualification.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <div class="body-wrapper">
  3. <div class="search-card">
  4. <h5>从业人员资质</h5>
  5. </div>
  6. <el-table :data="tableData" style="background: #2a2a2a;border-color: #333;">
  7. <el-table-column v-for="(item, index) in columns" :key="index" :label="item.label" :prop="item.key">
  8. </el-table-column>
  9. </el-table>
  10. <div class="table-pagination">
  11. <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
  12. :current-page.sync="pageNum" :page-size.sync="pageSize">
  13. </el-pagination>
  14. </div>
  15. <br>
  16. <div class="search-card">
  17. <h5>从业人员考核管理</h5>
  18. </div>
  19. <el-table :data="tableData2" style="background: #2a2a2a;border-color: #333;">
  20. <el-table-column v-for="(item, index) in columns2" :key="index" :label="item.label" :prop="item.key">
  21. </el-table-column>
  22. </el-table>
  23. <div class="table-pagination">
  24. <el-pagination :background="false" layout="total, prev, pager, next" :total="total" @current-change="handlePageChange"
  25. :current-page.sync="pageNum2" :page-size.sync="pageSize2">
  26. </el-pagination>
  27. </div>
  28. <br>
  29. </div>
  30. </template>
  31. <script>
  32. import api from "@/api/article_liao";
  33. import piechart from "@/components/pieChart";
  34. export default {
  35. components: {
  36. piechart
  37. },
  38. data() {
  39. return {
  40. columns: [
  41. {
  42. label: '人员姓名',
  43. key: 'mname'
  44. },
  45. {
  46. label: '资质名称',
  47. key: 'qualificationName'
  48. },
  49. // {
  50. // label: '有效时间',
  51. // key: ''
  52. // },
  53. {
  54. label: '考核结果',
  55. key: 'assessmentResults'
  56. },
  57. {
  58. label: '考核时间',
  59. key: 'assessmentTime'
  60. }
  61. ],
  62. columns2: [
  63. {
  64. label: '人员姓名',
  65. key: 'staffName'
  66. },
  67. {
  68. label: '驾驶技术',
  69. key: 'driveLevel'
  70. },
  71. {
  72. label: '服务态度',
  73. key: 'serverLevel'
  74. },
  75. {
  76. label: '沟通能力',
  77. key: 'communicateLevel'
  78. },
  79. {
  80. label: '应急处理能力',
  81. key: 'emergencyCapability'
  82. }
  83. ],
  84. modelPieColor: ["#2E8B57","#9078f8"],
  85. modelData: {
  86. list: [{name: '在线', value: 600}, {name: '离线', value: 800}]
  87. },
  88. tableData: [],
  89. tableData2: [],
  90. total: 0,
  91. pageSize: 10,
  92. pageNum: 1,
  93. pageSize2: 10,
  94. pageNum2: 1,
  95. radio: '2',
  96. dialogVisible: false,
  97. selRow: {},
  98. }
  99. },
  100. mounted() {
  101. this.dashEmployeeQualificationQualifications()
  102. this.dashEmployeeQualificationExamine()
  103. },
  104. watch: {
  105. },
  106. methods: {
  107. handlePageChange() {
  108. this.getTableData()
  109. },
  110. handleAudit(row) {
  111. this.selRow = row
  112. this.dialogVisible = true
  113. },
  114. handleCancelApply(row) {
  115. console.log('enter handle cancel apply')
  116. },
  117. dashEmployeeQualificationQualifications(){
  118. api.dashEmployeeQualificationQualifications().then(res => {
  119. this.tableData = res.data.records
  120. this.pageNum = res.current
  121. this.pageSize = res.page
  122. })
  123. },
  124. dashEmployeeQualificationExamine(){
  125. api.dashEmployeeQualificationExamine().then(res => {
  126. this.tableData2 = res.data.records
  127. this.pageNum2 = res.current
  128. this.pageSize2 = res.page
  129. })
  130. },
  131. getApplyTypeText(val) {
  132. if (!val){
  133. return '未申请'
  134. }
  135. const textMap = {
  136. 1: '待审批',
  137. 2: '审批通过',
  138. 3: '审批驳回'
  139. }
  140. return textMap[val]
  141. },
  142. handleSearch() {
  143. this.pageNum = 1
  144. this.getTableData()
  145. }
  146. }
  147. }
  148. </script>
  149. <style lang="scss" scoped>
  150. .body-wrapper {
  151. padding: 20px;
  152. background: #0c0c0c;
  153. .button-block{
  154. text-align: right;
  155. margin-bottom: 20px;
  156. }
  157. .table-pagination{
  158. text-align: right;
  159. }
  160. .search-card{
  161. font-size: 24px;
  162. font-weight: bold;
  163. color: #3498db;
  164. margin-bottom: 20px;
  165. .input-wrapper{
  166. width: 36%;
  167. }
  168. }
  169. }
  170. .audit-dialog{
  171. .mg-bt{
  172. margin-bottom: 24px;
  173. }
  174. .label{
  175. text-align: right;
  176. }
  177. }
  178. </style>