doum
2025-09-09 9e705c30a3370174a28e8d8d01a50bc7c2bf05ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<template>
    <TableLayout :permissions="['business:useraction:query']">
        <!-- 搜索表单 -->
        <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
            <el-form-item label="操作内容" prop="createName">
                <el-input v-model="searchForm.remark" placeholder="请输入操作内容" @keypress.enter.native="search"></el-input>
            </el-form-item>
            <el-form-item label="操作类型" prop="type">
                <el-select v-model="searchForm.type" placeholder="请选择">
                    <el-option label="删除会议室申请" :value="17"></el-option>
                    <el-option label="删除访客申请" :value="18"></el-option>
                    <el-option label="删除访客报备" :value="19"></el-option>
                    <el-option label="删除月台预约任务" :value="20"></el-option>
                    <el-option label="删除公车申请" :value="21"></el-option>
                    <el-option label="删除安泰物流作业任务" :value="22"></el-option>
                    <el-option label="删除隐患随手拍" :value="23"></el-option>
                </el-select>
            </el-form-item>
            <section>
                <el-button type="primary" @click="search">搜索</el-button>
                <el-button @click="reset">重置</el-button>
            </section>
        </el-form>
        <!-- 表格和分页 -->
        <template v-slot:table-wrap>
            <el-table
                v-loading="isWorking.search"
                :data="tableData.list"
                stripe
                :height="tableHeightNew"
            >
              <el-table-column prop="createName" align="center" width="150"  label="操作人员"></el-table-column>
              <el-table-column  prop="typeName" align="center"  width="150" label="操作类型" class-name="danger-column"/>
              <el-table-column  prop="remark" label="操作内容" min-width="900"/>
              <el-table-column prop="createDate" align="center"  width="150" label="操作时间"></el-table-column>
            </el-table>
            <pagination
                @size-change="handleSizeChange"
                @current-change="handlePageChange"
                :pagination="tableData.pagination"
            >
            </pagination>
        </template>
    </TableLayout>
</template>
 
<script>
import BaseTable from '@/components/base/BaseTable'
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
export default {
  name: 'UserAction',
  extends: BaseTable,
  components: { TableLayout, Pagination },
  data () {
    return {
      // 搜索
      searchForm: {
        createName: '',
        memberName: '',
        companyName: '',
        memberType: '',
        mobile: '',
        objType: 1,
        beforeStatus: '',
        type: ''
      }
    }
  },
  created () {
    this.config({
      module: '人员操作记录日志',
      api: '/business/userAction',
      'field.id': 'id',
      'field.main': 'id'
    })
    this.search()
  }
}
</script>