application.vue 5.4 KB

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