|
@@ -4,15 +4,13 @@
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
- plain
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
v-hasPermi="['system:role:add']"
|
|
v-hasPermi="['system:role:add']"
|
|
>新增</el-button>
|
|
>新增</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-table v-loading="loading" :data="adminList" height="calc(100vh - 10vh - 120px)">
|
|
|
|
|
|
+ <el-table v-loading="loading" :data="adminList" >
|
|
<el-table-column label="编号" prop="id" show-overflow-tooltip />
|
|
<el-table-column label="编号" prop="id" show-overflow-tooltip />
|
|
<el-table-column label="密码长度不少于" prop="pwdLength" show-overflow-tooltip >
|
|
<el-table-column label="密码长度不少于" prop="pwdLength" show-overflow-tooltip >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -22,8 +20,8 @@
|
|
<el-table-column label="账号锁定次数" prop="lockNumber" show-overflow-tooltip />
|
|
<el-table-column label="账号锁定次数" prop="lockNumber" show-overflow-tooltip />
|
|
<el-table-column label="锁定时间" prop="loseDate" >
|
|
<el-table-column label="锁定时间" prop="loseDate" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{scope.row.loseDate == 1 ? "1分钟" : scope.row.loseDate == 5 ? "5分钟"
|
|
|
|
- : scope.row.loseDate == 15 ? "15分钟" : scope.row.loseDate == 30 ? "30分钟" : scope.row.loseDate == 120 ? "2小时"
|
|
|
|
|
|
+ <span>{{scope.row.loseDate == 1 ? "1分钟" : scope.row.loseDate == 5 ? "5分钟"
|
|
|
|
+ : scope.row.loseDate == 15 ? "15分钟" : scope.row.loseDate == 30 ? "30分钟" : scope.row.loseDate == 120 ? "2小时"
|
|
: scope.row.loseDate == 1440 ? "1天" : ""}}</span>
|
|
: scope.row.loseDate == 1440 ? "1天" : ""}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -31,13 +29,11 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-switch
|
|
<el-switch
|
|
v-model="scope.row.isEnable"
|
|
v-model="scope.row.isEnable"
|
|
- active-color="#13ce66"
|
|
|
|
- inactive-color="#ff4949"
|
|
|
|
@change="handleStatusChange(scope.row)"
|
|
@change="handleStatusChange(scope.row)"
|
|
></el-switch>
|
|
></el-switch>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- <el-table-column label="大小写敏感" align="center" width="100">
|
|
<!-- <el-table-column label="大小写敏感" align="center" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-switch
|
|
<el-switch
|
|
@@ -57,14 +53,14 @@
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
- icon="el-icon-edit"
|
|
|
|
|
|
+ class="lans"
|
|
@click="handleUpdate(scope.row)"
|
|
@click="handleUpdate(scope.row)"
|
|
v-hasPermi="['system:role:edit']"
|
|
v-hasPermi="['system:role:edit']"
|
|
>修改</el-button>
|
|
>修改</el-button>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
- icon="el-icon-delete"
|
|
|
|
|
|
+ class="hongs"
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
v-hasPermi="['system:role:remove']"
|
|
v-hasPermi="['system:role:remove']"
|
|
>删除</el-button>
|
|
>删除</el-button>
|
|
@@ -205,7 +201,7 @@ export default {
|
|
this.adminList = response.data.records;
|
|
this.adminList = response.data.records;
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|