From cdebeb1650aef97dd3198454ff89d41cdd0f1ef0 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sat, 27 Nov 2021 16:01:28 +0800
Subject: [PATCH] +
---
src/views/qiandao/tables.vue | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/src/views/qiandao/tables.vue b/src/views/qiandao/tables.vue
index 93eb3b0..63c535d 100644
--- a/src/views/qiandao/tables.vue
+++ b/src/views/qiandao/tables.vue
@@ -195,7 +195,33 @@
row.myPicture = zhiwenData.featuredata;
this.upDataMain(row);
} else {
- this.msg("warning", "无指纹信息,请添加指纹信息后重试!");
+ // this.msg("warning", "无指纹信息,请添加指纹信息后重试!");
+ this.$confirm("检测到无指纹信息,是否确定修改?", "确认信息", {
+ distinguishCancelAndClose: true,
+ confirmButtonText: "保存",
+ cancelButtonText: "放弃修改",
+ })
+ .then(() => {
+ row.realName = card.name;
+ row.cardid = card.id;
+ row.sex = card.sex == "男" ? "1" : card.sex == "女" ? "2" : "3";
+ row.nation = card.national;
+ row.registered = card.certAddress;
+ row.fingerprint = zhiwenData.imgBMP;
+ row.myPicture = zhiwenData.featuredata;
+ this.upDataMain(row);
+ // this.$message({
+ // type: "info",
+ // message: "保存修改",
+ // });
+ })
+ .catch((action) => {
+ // this.$message({
+ // type: "info",
+ // message:
+ // action === "cancel" ? "放弃保存并离开页面" : "停留在当前页面",
+ // });
+ });
}
} else {
this.msg("warning", "请读取身份证后重试!");
--
Gitblit v1.9.3