123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <!--授权日志-->
- <template>
- <div class="application">
- <div class="application-page">
- <div class="title-box">
- <div @click="titleClick(1)">
- <p>门禁授权</p>
- <p></p>
- </div>
- <div @click="titleClick(2)">
- <p>授权日志</p>
- <p class="bottom-p-color"></p>
- </div>
- </div>
- <div class="application-min">
- <el-form :model="queryParamsData" ref="queryForm" :inline="true">
- <el-form-item label="" prop="searchValue">
- <el-input
- maxlength="20"
- v-model="queryParamsData.searchValue"
- placeholder="姓名/实验室"
- clearable
- size="small"/>
- </el-form-item>
- <p class="page-inquire-common-style-button" @click="handleQuery" style="margin-right:10px;">查询</p>
- <p class="page-reset-common-style-button" @click="resetQuery">重置</p>
- </el-form>
- <el-table class="table-box" v-loading="loading" border :data="tableList">
- <el-table-column label="名称" align="center" prop="joinUserName" show-overflow-tooltip/>
- <el-table-column label="类别" align="center" prop="userType" show-overflow-tooltip>
- <template slot-scope="scope">
- <span>{{scope.row.userType == 0?'系统':(scope.row.userType == 1?'教职工':(scope.row.userType == 2?'学生':(scope.row.userType == 3?'大屏':'')))}}</span>
- </template>
- </el-table-column>
- <el-table-column label="门禁" align="center" prop="hardName" show-overflow-tooltip/>
- <el-table-column label="实验室" align="center" prop="subName" show-overflow-tooltip/>
- <el-table-column label="实验室所属学院" align="center" prop="deptName" show-overflow-tooltip/>
- <el-table-column label="操作内容" align="center" prop="remark" width="160px" show-overflow-tooltip/>
- <el-table-column label="操作时间" align="center" prop="createTime" width="160px" show-overflow-tooltip>
- <template slot-scope="scope">
- <span>{{parseTime(scope.row.createTime,'{y}-{m}-{d} {h}:{i}')}}</span>
- </template>
- </el-table-column>
- <el-table-column label="操作人" align="center" prop="createName" width="160px" show-overflow-tooltip/>
- </el-table>
- <pagination :page-sizes="[20, 30, 40, 50]"
- v-show="total>0"
- :total="total"
- :page.sync="queryParamsData.page"
- :limit.sync="queryParamsData.pageSize"
- @pagination="getList"/>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { laboratoryLabHaikangUserLogList } from '@/api/integratedManagement/index'
- export default {
- name: "application",
- data(){
- return{
- // table操作按钮校验
- tableButtonType:this.hasPermiDom(['system:user_student:query']),
- loading:false,
- // 搜索数据
- queryParamsData:{
- page:1,
- pageSize:20,
- searchValue:'',
- operate:'',
- },
- // 搜索实际发送数据
- queryParams:{
- page:1,
- pageSize:20,
- },
- dateRange:[],
- //数据数量
- total:10,
- tableList:[],
- //审批状态
- optionsListTwo:[{code:null,name:'全部'},{code:0,name:'离线'},{code:2,name:'在线'}],
- }
- },
- created() {
- },
- mounted(){
- this.getList();
- },
- methods:{
- titleClick(type){
- this.$parent.titleClick(type);
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.queryParamsData.page = 1;
- this.queryParamsData.pageSize = 20;
- this.getList();
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.$set(this,'queryParamsData',{});
- this.$set(this,'dateRange',[]);
- this.handleQuery();
- },
- //获取数据列表
- getList(){
- if(this.dateRange&&this.dateRange.length>0) {
- this.queryParamsData.startTime = this.dateRange[0];
- this.queryParamsData.endTime = this.dateRange[1];
- } else {
- this.queryParamsData.startTime = null;
- this.queryParamsData.endTime = null;
- }
- laboratoryLabHaikangUserLogList(this.queryParamsData).then(response => {
- this.tableList = response.data.records;
- this.total = response.data.total
- });
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .application{
- flex:1;
- display: flex;
- flex-direction: column;
- .application-page{
- flex:1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- .title-box{
- display: flex;
- border-bottom:1px solid #E0E0E0;
- margin-bottom:20px;
- div{
- height:80px;
- margin-right:20px;
- cursor: pointer;
- p:nth-child(1){
- font-size:18px;
- text-align: center;
- padding:0 20px;
- margin-top:26px;
- }
- p:nth-child(2){
- width:40px;
- height:4px;
- border-radius:40px;
- margin:12px auto;
- }
- .top-p-color{
- color: #0045AF;
- }
- .bottom-p-color{
- background: #0045AF;
- }
- }
- .buttonTitleColorA{
- color:#0045AF;
- }
- .buttonTitleColorB{
- color:#999999;
- }
- }
- .application-min{
- flex:1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- margin:0 20px!important;
- .button-box{
- display: flex;
- }
- }
- }
- }
- </style>
|