application.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <!--授权日志-->
  2. <template>
  3. <div class="application">
  4. <div class="application-page">
  5. <div class="title-box">
  6. <div @click="titleClick(1)">
  7. <p>门禁授权</p>
  8. <p></p>
  9. </div>
  10. <div @click="titleClick(2)">
  11. <p>授权日志</p>
  12. <p class="bottom-p-color"></p>
  13. </div>
  14. </div>
  15. <div class="application-min">
  16. <el-form :model="queryParamsData" ref="queryForm" :inline="true">
  17. <el-form-item label="关键字" prop="searchValue" label-width="68px">
  18. <el-input
  19. maxlength="20"
  20. v-model="queryParamsData.searchValue"
  21. placeholder="姓名/实验室"
  22. clearable
  23. size="small"/>
  24. </el-form-item>
  25. <!-- <el-form-item label="状态" prop="status" label-width="50px">-->
  26. <!-- <el-select v-model="queryParamsData.operate" clearable placeholder="请选择状态">-->
  27. <!-- <el-option-->
  28. <!-- v-for="item in optionsListTwo"-->
  29. <!-- :key="item.code"-->
  30. <!-- :label="item.name"-->
  31. <!-- :value="item.code">-->
  32. <!-- </el-option>-->
  33. <!-- </el-select>-->
  34. <!-- </el-form-item>-->
  35. <el-form-item>
  36. <p class="inquire-button-one" @click="handleQuery" style="margin-right:10px;">查询</p>
  37. <p class="reset-button-one" @click="resetQuery">重置</p>
  38. </el-form-item>
  39. </el-form>
  40. <el-table v-loading="loading" border :data="tableList">
  41. <el-table-column label="名称" align="center" prop="nickName" show-overflow-tooltip/>
  42. <el-table-column label="类别" align="center" prop="userType" show-overflow-tooltip/>
  43. <el-table-column label="门禁" align="center" prop="hardName" show-overflow-tooltip/>
  44. <el-table-column label="实验室" align="center" prop="subName" show-overflow-tooltip/>
  45. <el-table-column label="实验室所属学院" align="center" prop="deptName" show-overflow-tooltip/>
  46. <el-table-column label="实验室位置" align="center" prop="posi" width="160px" show-overflow-tooltip/>
  47. <el-table-column label="操作内容" align="center" prop="remark" width="160px" show-overflow-tooltip/>
  48. <el-table-column label="操作时间" align="center" prop="createTime" width="160px" show-overflow-tooltip/>
  49. <el-table-column label="操作人" align="center" prop="createBy" width="160px" show-overflow-tooltip/>
  50. </el-table>
  51. <pagination :page-sizes="[20, 30, 40, 50]"
  52. v-show="total>0"
  53. :total="total"
  54. :page.sync="queryParamsData.pageNum"
  55. :limit.sync="queryParamsData.pageSize"
  56. @pagination="getList"/>
  57. </div>
  58. </div>
  59. </div>
  60. </template>
  61. <script>
  62. import { applyList, entranceUserLogList } from '@/api/laboratory/subject'
  63. export default {
  64. name: "application",
  65. data(){
  66. return{
  67. // table操作按钮校验
  68. tableButtonType:this.hasPermiDom(['system:user_student:query','system:user_student:query']),
  69. loading:false,
  70. // 搜索数据
  71. queryParamsData:{
  72. pageNum:1,
  73. pageSize:20,
  74. searchValue:'',
  75. operate:'',
  76. },
  77. // 搜索实际发送数据
  78. queryParams:{
  79. pageNum:1,
  80. pageSize:20,
  81. },
  82. dateRange:[],
  83. //数据数量
  84. total:10,
  85. tableList:[],
  86. //审批状态
  87. optionsListTwo:[{code:null,name:'全部'},{code:0,name:'离线'},{code:2,name:'在线'}],
  88. }
  89. },
  90. created() {
  91. },
  92. mounted(){
  93. this.getList();
  94. },
  95. methods:{
  96. titleClick(type){
  97. this.$parent.titleClick(type);
  98. },
  99. /** 搜索按钮操作 */
  100. handleQuery() {
  101. this.queryParamsData.pageNum = 1;
  102. this.queryParamsData.pageSize = 20;
  103. this.getList();
  104. },
  105. /** 重置按钮操作 */
  106. resetQuery() {
  107. this.$set(this,'queryParamsData',{});
  108. this.$set(this,'dateRange',[]);
  109. this.handleQuery();
  110. },
  111. //获取数据列表
  112. getList(){
  113. if(this.dateRange&&this.dateRange.length>0) {
  114. this.queryParamsData.startTime = this.dateRange[0];
  115. this.queryParamsData.endTime = this.dateRange[1];
  116. } else {
  117. this.queryParamsData.startTime = null;
  118. this.queryParamsData.endTime = null;
  119. }
  120. entranceUserLogList(this.queryParamsData).then(response => {
  121. this.tableList = response.rows;
  122. this.total = response.total
  123. });
  124. },
  125. }
  126. }
  127. </script>
  128. <style scoped lang="scss">
  129. .application{
  130. flex:1;
  131. display: flex;
  132. flex-direction: column;
  133. .application-page{
  134. flex:1;
  135. display: flex;
  136. flex-direction: column;
  137. overflow: hidden;
  138. .title-box{
  139. display: flex;
  140. border-bottom:1px solid #E0E0E0;
  141. margin-bottom:20px;
  142. div{
  143. height:80px;
  144. margin-right:20px;
  145. cursor: pointer;
  146. p:nth-child(1){
  147. font-size:18px;
  148. text-align: center;
  149. padding:0 20px;
  150. margin-top:26px;
  151. }
  152. p:nth-child(2){
  153. width:40px;
  154. height:4px;
  155. border-radius:40px;
  156. margin:12px auto;
  157. }
  158. .top-p-color{
  159. color: #0045AF;
  160. }
  161. .bottom-p-color{
  162. background: #0045AF;
  163. }
  164. }
  165. .buttonTitleColorA{
  166. color:#0045AF;
  167. }
  168. .buttonTitleColorB{
  169. color:#999999;
  170. }
  171. }
  172. .application-min{
  173. flex:1;
  174. display: flex;
  175. flex-direction: column;
  176. overflow: hidden;
  177. margin:0 20px!important;
  178. .button-box{
  179. display: flex;
  180. }
  181. }
  182. }
  183. }
  184. </style>