mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-06 02:50:13 +08:00
新增 绑定鉴权卡需密钥
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user