From b23f8f280ba34d10de78b0bb79d5eb1ba346ebc5 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 12 Jul 2021 20:14:39 +0800
Subject: [PATCH] 现实表现记录
---
src/views/securityGuard/securityGuardRegistration.vue | 98 +++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 86 insertions(+), 12 deletions(-)
diff --git a/src/views/securityGuard/securityGuardRegistration.vue b/src/views/securityGuard/securityGuardRegistration.vue
index 949ae36..9029dff 100644
--- a/src/views/securityGuard/securityGuardRegistration.vue
+++ b/src/views/securityGuard/securityGuardRegistration.vue
@@ -1,13 +1,13 @@
<template>
<el-dialog
- :title="!form.id?'新增':'修改'"
+ :title="!form1.id?'新增':'修改'"
width="60%"
modal-append-to-body='false'
append-to-body='true'
:close-on-click-model="true"
:visible.sync="visible"
>
- <avue-form :option="option" v-model="form" @submit="update">
+ <avue-form :option="option" v-model="form1" @submit="update">
<template slot-scope="{ row }" slot="input">
<el-tag>{{ row }}</el-tag>
</template>
@@ -42,7 +42,7 @@
roleTreeObj: [],
treeDeptId: "",
treeData: [],
- form: {
+ form1: {
UserPractitionersInfo: [],
title: "标题",
},
@@ -104,18 +104,32 @@
label: "所属组织机构",
prop: "deptId",
type: "tree",
- dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0",
+ dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
props: {
label: "title",
value: "id",
},
- disabled: true,
+ // disabled: true,
span: 24,
+ rules: [
+ {
+ required: true,
+ message: "请选择组织机构",
+ trigger: "blur",
+ }
+ ],
},
{
label: "登录账号",
prop: "account",
- disabled: true,
+ rules: [
+ {
+ required: true,
+ message: "请输入登录账号",
+ trigger: "blur",
+ }
+ ],
+ // disabled: true,
},
{
label: "用户姓名",
@@ -134,8 +148,66 @@
],
},
{
+ label: "用户编号",
+ prop: "code",
+ },
+ {
label: "用户昵称",
prop: "name",
+ }, {
+ label: "所属行政区",
+ prop: "jurisdiction",
+ // multiple: true,
+ type: "tree",
+ dicUrl: "/api/jurisdiction/lazy-tree?parentId=0",
+ props: {
+ label: "title",
+ value: "id",
+ },
+ checkStrictly: true,
+ slot: true,
+ rules: [
+ {
+ required: true,
+ message: "请选择所属行政区",
+ trigger: "click",
+ },
+ ],
+ },{
+ label: "所属角色",
+ prop: "roleId",
+ multiple: true,
+ type: "tree",
+ dicData: [],
+ props: {
+ label: "title",
+ },
+ checkStrictly: true,
+ slot: true,
+ rules: [
+ {
+ required: true,
+ message: "请选择所属角色",
+ trigger: "click",
+ },
+ ],
+ },{
+ label: "所属岗位",
+ prop: "postId",
+ type: "tree",
+ multiple: true,
+ dicData: [],
+ props: {
+ label: "postName",
+ value: "id",
+ },
+ rules: [
+ {
+ required: true,
+ message: "请选择所属岗位",
+ trigger: "click",
+ },
+ ],
},
{
label: "手机号码",
@@ -316,8 +388,9 @@
},
],
},
- data: [],
+ datachild: [],
};
+
},
watch: {
"form.tenantId"() {
@@ -343,7 +416,7 @@
},
methods: {
inits(id) {
- this.form.id = id || 0;
+ this.form1.id = id || 0;
this.visible = true;
},
//获取用户信息
@@ -351,17 +424,17 @@
var that = this;
//获取用户基本信息
getUser(this.userId).then((res) => {
- this.form = res.data.data;
+ this.form1 = res.data.data;
var userInfo = res.data.data;
//获取用户从业信息
getUserPractitionersInfo(userInfo.cardid).then((res1) => {
- that.form.UserPractitionersInfo = res1.data.data;
+ that.form1.UserPractitionersInfo = res1.data.data;
});
if (this.form.hasOwnProperty("deptId")) {
- this.form.deptId = this.form.deptId.split(",");
+ this.form1.deptId = this.form.deptId.split(",");
}
if (this.form.hasOwnProperty("postId")) {
- this.form.postId = this.form.postId.split(",");
+ this.form1.postId = this.form.postId.split(",");
}
});
},
@@ -402,6 +475,7 @@
});
});
this.loading = false;
+ debugger;
done();
},
(error) => {
--
Gitblit v1.9.3