新增 绑定鉴权卡需密钥

This commit is contained in:
Lemon
2023-03-28 14:31:31 +08:00
parent 515cfe869f
commit 358ece2923
13 changed files with 92 additions and 5 deletions

View File

@@ -87,6 +87,7 @@
:value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column label="密钥" align="center" prop="secretKey" />
<!-- <el-table-column label="物理卡号" align="center" prop="physicsCard" />-->
<el-table-column label="所属用户" align="center" prop="nickName" >
<template slot-scope="scope">
@@ -112,8 +113,8 @@
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
icon="el-icon-circle-close"
@click="handleDeactivateCard(scope.row)"
v-hasPermi="['pile:card:remove']"
>停用</el-button>
</template>
@@ -170,7 +171,7 @@
</template>
<script>
import { listCard, getCard, delCard, addCard, updateCard } from "@/api/pile/card";
import {listCard, getCard, delCard, addCard, updateCard, deactivateCard} from "@/api/pile/card";
export default {
name: "card",
@@ -314,6 +315,17 @@ export default {
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
// 停用按钮
handleDeactivateCard(row) {
const id = row.id;
this.$modal.confirm('是否确认停用卡号为"' + row.logicCard + '"的鉴权卡?').then(function() {
return deactivateCard(id);
}).then(() => {
this.getList();
this.$modal.msgSuccess("停用成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('pile/card/export', {