| | |
| | | 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", "请读取身份证后重试!"); |