rectificationUserPage.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div class="rectificationUserPage">
  3. <el-form :model="queryParams" class="form-box" ref="queryForm" :inline="true">
  4. <el-form-item label="关键字" prop="searchValue" label-width="80px">
  5. <el-input
  6. maxLength="30"
  7. v-model="queryParams.searchValue"
  8. placeholder="实验室/房间号/姓名"
  9. clearable
  10. style="width: 200px"/>
  11. </el-form-item>
  12. <el-form-item label="学院" prop="data1" label-width="50px">
  13. <el-select v-model="queryParams.data1" clearable placeholder="请选择学院">
  14. <el-option
  15. v-for="item in deptSelectList"
  16. :key="item.key"
  17. :label="item.label"
  18. :value="item.key">
  19. </el-option>
  20. </el-select>
  21. </el-form-item>
  22. <el-form-item>
  23. <p class="inquire-button-one" @click="handleQuery" style="margin-right:10px;">查询</p>
  24. <p class="reset-button-one" @click="resetQuery">重置</p>
  25. </el-form-item>
  26. <el-form-item style="float: right;">
  27. <el-col :span="1.5">
  28. <p class="inquire-button-one"
  29. style="width:100px;"
  30. @click="configButton(1)"
  31. >检查者配置</p>
  32. </el-col>
  33. </el-form-item>
  34. </el-form>
  35. <el-table border :data="tableList" ref="multipleTable">
  36. <el-table-column label="序号" align="center" type="index" width="60" />
  37. <el-table-column label="实验室" align="center" prop="deptName" show-overflow-tooltip/>
  38. <el-table-column label="学院" align="center" prop="deptName" show-overflow-tooltip width="300"/>
  39. <el-table-column label="检查者" align="center" prop="deptName" show-overflow-tooltip width="300"/>
  40. <el-table-column label="整改人" align="center" prop="deptName" show-overflow-tooltip width="200"/>
  41. <el-table-column label="操作时间" align="center" prop="deptName" show-overflow-tooltip width="300"/>
  42. </el-table>
  43. <pagination :page-sizes="[20, 30, 40, 50]"
  44. v-show="total>0"
  45. :total="total"
  46. :page.sync="queryParams.pageNum"
  47. :limit.sync="queryParams.pageSize"
  48. @pagination="getList"
  49. />
  50. <configDialog v-if="configDialogType" :configDialogData="configDialogData"></configDialog>
  51. </div>
  52. </template>
  53. <script>
  54. import configDialog from './configDialog.vue'
  55. export default {
  56. name: 'rectificationUserPage',
  57. components: {
  58. configDialog
  59. },
  60. data(){
  61. return{
  62. // 组件数据
  63. configDialogType:false,
  64. configDialogData:{
  65. configType:2,//1.检查人员配置 2.整改人员配置
  66. },
  67. //查询数据
  68. deptSelectList:[],
  69. queryParams:{
  70. pageNum:1,
  71. pageSize:20,
  72. searchValue:"",
  73. data1:""
  74. },
  75. tableList:[{}],
  76. total:0,
  77. }
  78. },
  79. created(){
  80. },
  81. mounted(){
  82. },
  83. methods:{
  84. //配置按钮
  85. configButton(type){
  86. if(type == 1){
  87. this.$set(this,'configDialogType',true);
  88. }else if(type == 2){
  89. this.$set(this,'configDialogType',false);
  90. }
  91. },
  92. //获取数据列表
  93. getList(){
  94. // this.queryParamsData = JSON.parse(JSON.stringify(this.queryParams));
  95. // this.queryParamsData.type = 'RFID_RECOGNIZER';
  96. // listHardware(this.queryParamsData).then(response => {
  97. // this.total = response.total;
  98. // this.tableList = response.rows;
  99. // });
  100. },
  101. /** 搜索按钮操作 */
  102. handleQuery() {
  103. this.$set(this.queryParams,'pageNum',1);
  104. this.getList();
  105. },
  106. /** 重置按钮操作 */
  107. resetQuery() {
  108. this.$set(this,'queryParams',{
  109. pageNum:1,
  110. pageSize:20,
  111. searchValue:"",
  112. data1:""
  113. });
  114. this.handleQuery();
  115. },
  116. }
  117. }
  118. </script>
  119. <style scoped lang="scss">
  120. .rectificationUserPage{
  121. padding:20px;
  122. flex:1;
  123. display: flex;
  124. flex-direction: column;
  125. overflow: hidden;
  126. }
  127. </style>