From 1084c645e335c22c3a665e9b097a82d42eb3ee6b Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 09 Sep 2021 14:09:11 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_regulatory
---
src/views/securityGuardManagement/register.vue | 56 ++++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 40 insertions(+), 16 deletions(-)
diff --git a/src/views/securityGuardManagement/register.vue b/src/views/securityGuardManagement/register.vue
index a3390e5..ef81838 100644
--- a/src/views/securityGuardManagement/register.vue
+++ b/src/views/securityGuardManagement/register.vue
@@ -2,7 +2,7 @@
* @Author: Morpheus
* @Date: 2021-07-05 16:31:54
* @Last Modified by: liu
- * @Last Modified time: 2021-09-07 17:39:25
+ * @Last Modified time: 2021-09-09 09:53:49
* menu-name 保安员注册查询
*/
<template>
@@ -55,11 +55,19 @@
slot="deptName">
<el-tag>{{row.deptName}}</el-tag>
</template> -->
- <template slot-scope="{row}" slot="age">
- {{row.age==-1?'':row.age}}
+ <template slot-scope="{ row }" slot="age">
+ {{ row.age == -1 ? "" : row.age }}
</template>
- <template slot-scope="{row}" slot="sex">
- {{row.sex==-1?'':row.sex==1?'男':row.sex==2?'女':''}}
+ <template slot-scope="{ row }" slot="sex">
+ {{
+ row.sex == -1
+ ? ""
+ : row.sex == 1
+ ? "男"
+ : row.sex == 2
+ ? "女"
+ : ""
+ }}
</template>
<template slot-scope="{ row }" slot="deptId">
<el-tag
@@ -88,6 +96,8 @@
:size="size"
:type="type"
class="zhengJian-icon"
+ :disabled="row.hold != 1"
+ :title="row.hold != 1 ? '暂无证件或已吊销' : ''"
@click.stop="handleViewCredentials(row)"
>打印证件</el-button
>
@@ -97,6 +107,8 @@
:size="size"
:type="type"
class="zhengJian-icon"
+ :disabled="row.hold != 1"
+ :title="row.hold != 1 ? '暂无证件或已吊销' : ''"
@click.stop="handleCredentials(row)"
>证件吊销</el-button
>
@@ -432,7 +444,7 @@
label: "性别",
prop: "sex",
width: 55,
- slot:true,
+ slot: true,
type: "select",
dicData: [
{
@@ -488,7 +500,7 @@
label: "年龄",
prop: "age",
width: 55,
- slot:true,
+ slot: true,
display: false,
},
{
@@ -770,9 +782,21 @@
submitf(form, done) {
console.log(form);
// this.$message.success(JSON.stringify(form));
- addhonor(form).then((res) => {
- console.log(res);
- });
+ addhonor(form).then(
+ (res) => {
+ // console.log(res);
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ });
+ },
+ (error) => {
+ this.$message({
+ type: "info",
+ message: "操作失败",
+ });
+ }
+ );
this.objf = {};
this.dialogVisible = false;
done();
@@ -979,7 +1003,7 @@
// this.$Print("#certificatess");
this.objVisiblecertificates = obj;
console.log(this.objVisiblecertificates);
- getER(this.obj.securitynumber).then((res) => {
+ getER(this.objVisiblecertificates.securitynumber).then((res) => {
this.erweima = res.data;
// console.log(res.data);
});
@@ -1009,16 +1033,16 @@
console.log(res);
this.$message({
type: "success",
- message: "删除成功!",
+ message: "吊销成功!",
});
this.refreshChange();
});
})
.catch(() => {
- this.$message({
- type: "info",
- message: "已取消删除",
- });
+ // this.$message({
+ // type: "info",
+ // message: "已取消删除",
+ // });
});
}
},
--
Gitblit v1.9.3