用户登记:1.人脸识别错误时提示后端返回信息。2.登记前提示。3.添加路由到自主授权的按钮

beta
路明慧 1 year ago
parent eaafe61b10
commit 32a5d402b0
  1. 20
      jianshui-ui/src/views/digital/registered/index.vue

@ -131,6 +131,16 @@
v-hasPermi="['invoiceall:invoiceallyhdj:export']" v-hasPermi="['invoiceall:invoiceallyhdj:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="#409EFF"
plain
icon="el-icon-caret-right"
size="mini"
@click="routerFreedom"
v-hasPermi="['invoiceall:invoiceallyhdj:routerFreedom']"
>自主授权</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
@ -288,6 +298,7 @@ import {
qrcodeMethod, qrcodeMethod,
encrypt encrypt
} from "@/api/digital/registered"; } from "@/api/digital/registered";
import router from "@/router";
export default { export default {
name: "Invoiceallyhdj", name: "Invoiceallyhdj",
@ -412,6 +423,9 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
routerFreedom() {
this.$router.push("/auth")
},
/** 查询金四-用户登记列表 */ /** 查询金四-用户登记列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -486,7 +500,7 @@ export default {
// //
registered(row) { registered(row) {
this.reset(); this.reset();
this.$modal.confirm('请确认:登记identity为'+row.identity+',登记方式为'+row.dlfs+',登记身份为'+row.dlsf+'?').then(() => {
getCompanyservice(row.identity).then(resp=>{ getCompanyservice(row.identity).then(resp=>{
// //
if(resp.code==200 && resp.data != null && resp.data != ""){ if(resp.code==200 && resp.data != null && resp.data != ""){
@ -511,6 +525,8 @@ export default {
} }
}) })
})
}, },
/** 人脸识别 */ /** 人脸识别 */
qrcode(row){ qrcode(row){
@ -534,7 +550,7 @@ export default {
this.$message.error('登记失败') this.$message.error('登记失败')
} }
}else { }else {
this.$message.error('登记失败') this.$message.error(response.msg)
} }
}); });
}else if (res.data == null || res.data == ""){ }else if (res.data == null || res.data == ""){

Loading…
Cancel
Save