|
@@ -0,0 +1,144 @@
|
|
|
+<!--
|
|
|
+鉴权管理日志
|
|
|
+@Author: linqian
|
|
|
+@Date: 2021-05-27 11:30
|
|
|
+-->
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <!-- 搜索项 -->
|
|
|
+ <el-form ref="ruleForm" inline :model="form">
|
|
|
+ <el-form-item label="用户姓名">
|
|
|
+ <el-input v-model="form.userName.value" placeholder="" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="用户身份证号码">
|
|
|
+ <el-input v-model="form.userIdcard.value" placeholder="" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="鉴权类型">
|
|
|
+ <dg-select
|
|
|
+ v-model="form.authenticationType.value"
|
|
|
+ placeholder=""
|
|
|
+ enum="AuthenticationTypeEnum"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ </dg-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="鉴权时间">
|
|
|
+ <dg-date-picker
|
|
|
+ v-model="form.createTime.value"
|
|
|
+ type="daterange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ clearable
|
|
|
+ value-format="yyyyMMddHHmmss"
|
|
|
+ >
|
|
|
+ </dg-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="鉴权结果">
|
|
|
+ <dg-select v-model="form.state.value" placeholder="" enum="AuthenticationResultEnum" clearable>
|
|
|
+ </dg-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <dg-button type="primary" @click="handleSearch" icon="el-icon-search">查询</dg-button>
|
|
|
+ <dg-button type="primary" @click="handleReset" icon="el-icon-refresh-right">重置</dg-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <!-- 表格 -->
|
|
|
+ <Table ref="myTable" :url="authServiceLogTableUrl" :headerData="authServiceLogTableHeader" :condition="form">
|
|
|
+ <dg-table-column fixed="right" label="操作" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="u-table__operation">
|
|
|
+ <el-tooltip content="详情" effect="dark" placement="top-end">
|
|
|
+ <i class="el-icon-document" @click="handleViewDetail(scope.row)"></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </dg-table-column>
|
|
|
+ </Table>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import Table from "@/pages/common/table";
|
|
|
+import detail from "./log-detail/auth-service";
|
|
|
+import { authServiceLogTableHeader } from "./DataConfig";
|
|
|
+import { authServiceLogTableUrl } from "@/api/permiss-log-manage";
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ Table
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ authServiceLogTableHeader,
|
|
|
+ authServiceLogTableUrl,
|
|
|
+ form: {
|
|
|
+ userName: {
|
|
|
+ value: "",
|
|
|
+ op: "like"
|
|
|
+ },
|
|
|
+ userIdcard: {
|
|
|
+ value: "",
|
|
|
+ op: "like"
|
|
|
+ },
|
|
|
+ authenticationType: {
|
|
|
+ value: "",
|
|
|
+ op: "="
|
|
|
+ },
|
|
|
+ createTime: {
|
|
|
+ value: [],
|
|
|
+ op: "between"
|
|
|
+ },
|
|
|
+ state: {
|
|
|
+ value: "",
|
|
|
+ op: "="
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {},
|
|
|
+ methods: {
|
|
|
+ /**
|
|
|
+ * 详情
|
|
|
+ */
|
|
|
+ handleViewDetail(row) {
|
|
|
+ const layer = this.$dgLayer({
|
|
|
+ title: `详情`,
|
|
|
+ shade: [0.4, "#FFF"],
|
|
|
+ content: detail,
|
|
|
+ props: {
|
|
|
+ id: row.id
|
|
|
+ },
|
|
|
+ on: {
|
|
|
+ success() {
|
|
|
+ layer.close(layer.dialogIndex);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ area: ["900px", "800px"]
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 查询
|
|
|
+ */
|
|
|
+ handleSearch() {
|
|
|
+ this.$refs.myTable.handleSearchClick();
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 重置
|
|
|
+ */
|
|
|
+ handleReset() {
|
|
|
+ for (const key in this.form) {
|
|
|
+ this.form[key].value = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ // const startTime = this.$moment().subtract("1", "year").format("YYYYMMDD");
|
|
|
+ // const endTime = this.$moment().format("YYYYMMDD");
|
|
|
+ },
|
|
|
+ mounted() {}
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang='scss'>
|
|
|
+</style>
|