@@ -58,9 +44,9 @@
-
-
+
+
-
-
平台用户新增成功
+
+

+

+
+
{{route.query.id ? (successFlag ? '组织用户编辑成功' : '组织用户编辑失败') : (successFlag ? '组织用户新增成功' : '组织用户新增失败')}}
返回列表
-
继续创建
+
继续创建
@@ -76,51 +79,88 @@
\ No newline at end of file
diff --git a/src/page/main/system/organization/user-detail/index.vue b/src/page/main/system/organization/user-detail/index.vue
index ac3ba5d9f480222ea6fae6bdf1971a4a54588e13..aae92fa3b4758afe625a0c0f1087131be168ce9c 100644
--- a/src/page/main/system/organization/user-detail/index.vue
+++ b/src/page/main/system/organization/user-detail/index.vue
@@ -10,29 +10,31 @@
@@ -44,103 +46,145 @@
import { reactive, toRefs, ref, } from '@vue/reactivity'
import { getCurrentInstance } from 'vue'
import { computed, onBeforeMount } from '@vue/runtime-core'
-import { useRouter } from 'vue-router';
+import { useRoute } from 'vue-router';
-const baseInfo = reactive(
+const { proxy } = getCurrentInstance()
+const { $axios,$message } = proxy
+const route = useRoute();
+
+const accountInfo = reactive(
[
{
- name: "所属机构",
- value: "某某省/某某市/大数据局",
- nameWidth: 112
+ name: "手机号",
+ value: "",
+ nameWidth: 130
},
{
- name: "业务系统编码",
- value: "00000001",
- nameWidth: 112
+ name: "账号",
+ value: "",
+ nameWidth: 130
},
{
- name: "业务系统名称",
- value: "大数据处理系统",
- nameWidth: 112
+ name: "角色",
+ value: "",
+ nameWidth: 130
},
{
- name: "账号",
- value: "admin001",
- nameWidth: 112
+ name: "所属组织",
+ value: "",
+ nameWidth: 130
},
{
- name: "AppID",
- value: "dasjkjjk",
- nameWidth: 112
+ name: "创建人",
+ value: "",
+ nameWidth: 130
},
{
- name: "AppSecret",
- value: "asda*******************jhjh",
- nameWidth: 112
+ name: "创建账号",
+ value: "",
+ nameWidth: 130
},
{
- name: "创建人",
- value: "admin(机构管理员)",
- nameWidth: 112
+ name: "最后编辑时间",
+ value: "",
+ nameWidth: 130
},
{
name: "创建时间",
- value: "2022-01-01 10:10:10",
- nameWidth: 112
+ value: "",
+ nameWidth: 130
+ },
+ ]
+ )
+
+ const personInfo = reactive(
+ [{
+ name: "姓名",
+ value: "",
+ nameWidth: 130
},
{
- name: "是否启用",
- value: "是",
- nameWidth: 112
+ name: "邮箱",
+ value: "",
+ nameWidth: 130
},
{
- name: "开发厂商名单",
- value: "某某大数据开发商",
- nameWidth: 112
+ name: "证据类型",
+ value: "",
+ nameWidth: 130
},
{
- name: "访问地址",
- value: "http://www.bigdata.com",
- full: true,
- nameWidth: 112
+ name: "身份证号",
+ value: "",
+ nameWidth: 130
},
{
- name: "业务系统描述",
- value: "系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述",
+ name: "备注",
+ value: "",
full: true,
- nameWidth: 112
+ nameWidth: 130
},
- ]
- )
+ ])
- const contactInfo = reactive(
+ const personInfo2 = reactive(
[{
- name: "联系人姓名",
- value: "xxx",
- nameWidth: 112
- },
- {
- name: "联系人手机号",
- value: "15627365265",
- nameWidth: 112
+ name: "姓名",
+ value: "",
+ nameWidth: 130
},
{
- name: "联系人邮箱",
- value: "http://www.bigdata@163.com",
- full: true,
- nameWidth: 112
+ name: "邮箱",
+ value: "",
+ nameWidth: 130
},
{
name: "备注",
- value: "系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述系统描述",
+ value: "",
full: true,
- nameWidth: 112
+ nameWidth: 130
},
- ]
- )
+ ])
+
+ const logo = ref('')
+ const accountType = ref(2); //1.业务系统账号 2.组织管理员账号 3.平台用户账号
+
+ const getDetail = () => {
+ $axios.get(`/apaas/system/v5/org/user/${route.query.id}`)
+ .then((res) => {
+ if (res.data.code == 200) {
+ const detail = res.data.data;
+ accountInfo[0].value = detail.contact_phone;
+ accountInfo[1].value = detail.system_account;
+ accountInfo[2].value = detail.system_role && detail.system_role.length > 0 ? detail.system_role.join('、') : '';
+ accountInfo[3].value = detail.organization;
+ accountInfo[4].value = detail.created_by;
+ accountInfo[5].value = detail.created_by_account;
+ accountInfo[6].value = detail.updated_time;
+ accountInfo[7].value = detail.created_time;
+
+ personInfo[0].value = detail.contact_name;
+ personInfo[1].value = detail.contact_email;
+ personInfo[2].value = detail.document_type === 1 ? '身份证' : '';
+ personInfo[3].value = detail.document_number;
+ personInfo[4].value = detail.remark;
+
+ personInfo2[0].value = detail.contact_name;
+ personInfo2[1].value = detail.contact_email;
+ personInfo2[2].value = detail.remark;
+
+ logo.value = detail.logo;
+ accountType.value = detail.is_admin;
+
+ }else {
+ $message.error(res.data.data)
+ }
+ })
+ }
onBeforeMount(() => {
-
+ if(route.query.id) {
+ getDetail()
+ }
})
diff --git a/src/page/main/system/role/add/role_form.vue b/src/page/main/system/role/add/role_form.vue
index c8121e1d32eddf533c96411cf450a8416fa92033..f4f0184144493423cc015d12306bab00005bacf3 100644
--- a/src/page/main/system/role/add/role_form.vue
+++ b/src/page/main/system/role/add/role_form.vue
@@ -5,11 +5,11 @@
系统管理
角色管理
- 新建
+ {{route.query.id ? "编辑" : "新建"}}
-
+
\ No newline at end of file
diff --git a/src/router/function.js b/src/router/function.js
index 4e487bb22190063a2210bd2c790aa804f54be7a1..f31fd4498faad138652937ae29e805fad58c07f3 100644
--- a/src/router/function.js
+++ b/src/router/function.js
@@ -180,7 +180,7 @@ var adminMenu = [
dict_group_id: "09938937-3db9-47de-b967-7777ea4ebb2d",
menuType: 2, //system:64c156e0-bfff-4bfc-a63a-56effe130a25:apaas后管,能力注册页等 font:2cb4f767-fad7-44f2-afa3-f055e15dd2b6:apaas前台页 manager:09938937-3db9-47de-b967-7777ea4ebb2d:apaas管理中心 知识中心:26d3903a-863e-4efc-b53e-0fb8772ddaa4
show: false,
- path: "/system/organization/system-user",
+ path: "/system/organization/org-user",
},
{
menuName: "用户详情",
diff --git a/yarn.lock b/yarn.lock
index d5ba66d2d5049e600f5071212051b9f90e8ee504..90f2d699c67f1d46db954c96e49a12c8d7a2833c 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -24,17 +24,17 @@
resolved "https://registry.npmmirror.com/@element-plus/icons-vue/-/icons-vue-2.0.6.tgz"
integrity sha512-lPpG8hYkjL/Z97DH5Ei6w6o22Z4YdNglWCNYOPcB33JCF2A4wye6HFgSI7hEt9zdLyxlSpiqtgf9XcYU+m5mew==
-"@floating-ui/core@^0.7.3":
- version "0.7.3"
- resolved "https://registry.npmmirror.com/@floating-ui/core/-/core-0.7.3.tgz"
- integrity sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==
+"@floating-ui/core@^1.0.1":
+ version "1.0.1"
+ resolved "https://mirrors.cloud.tencent.com/npm/@floating-ui%2fcore/-/core-1.0.1.tgz#00e64d74e911602c8533957af0cce5af6b2e93c8"
+ integrity sha512-bO37brCPfteXQfFY0DyNDGB3+IMe4j150KFQcgJ5aBP295p9nBGeHEs/p0czrRbtlHq4Px/yoPXO/+dOCcF4uA==
-"@floating-ui/dom@^0.5.4":
- version "0.5.4"
- resolved "https://registry.npmmirror.com/@floating-ui/dom/-/dom-0.5.4.tgz"
- integrity sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==
+"@floating-ui/dom@^1.0.1":
+ version "1.0.4"
+ resolved "https://mirrors.cloud.tencent.com/npm/@floating-ui%2fdom/-/dom-1.0.4.tgz#cc0f2a03db7193b1b932b90d09c5c81235682a60"
+ integrity sha512-maYJRv+sAXTy4K9mzdv0JPyNW5YPVHrqtY90tEdI6XNpuLOP26Ci2pfwPsKBA/Wh4Z3FX5sUrtUFTdMYj9v+ug==
dependencies:
- "@floating-ui/core" "^0.7.3"
+ "@floating-ui/core" "^1.0.1"
"@intlify/core-base@9.1.10":
version "9.1.10"
@@ -119,10 +119,10 @@
resolved "https://registry.npmmirror.com/@types/lodash/-/lodash-4.14.182.tgz"
integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==
-"@types/web-bluetooth@^0.0.14":
- version "0.0.14"
- resolved "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.14.tgz"
- integrity sha512-5d2RhCard1nQUC3aHcq/gHzWYO6K0WJmAbjO7mQJgCQKtZpgXxv1rOM6O/dBDhDYYVutk1sciOgNSe+5YyfM8A==
+"@types/web-bluetooth@^0.0.16":
+ version "0.0.16"
+ resolved "https://mirrors.cloud.tencent.com/npm/@types%2fweb-bluetooth/-/web-bluetooth-0.0.16.tgz#1d12873a8e49567371f2a75fe3e7f7edca6662d8"
+ integrity sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==
"@uppy/companion-client@^2.2.2":
version "2.2.2"
@@ -357,25 +357,25 @@
resolved "https://registry.npmmirror.com/@vue/shared/-/shared-3.2.38.tgz#e823f0cb2e85b6bf43430c0d6811b1441c300f3c"
integrity sha512-dTyhTIRmGXBjxJE+skC8tTWCGLCVc4wQgRRLt8+O9p5ewBAjoBwtCAkLPrtToSr1xltoe3st21Pv953aOZ7alg==
-"@vueuse/core@^8.7.5":
- version "8.9.4"
- resolved "https://registry.npmmirror.com/@vueuse/core/-/core-8.9.4.tgz"
- integrity sha512-B/Mdj9TK1peFyWaPof+Zf/mP9XuGAngaJZBwPaXBvU3aCTZlx3ltlrFFFyMV4iGBwsjSCeUCgZrtkEj9dS2Y3Q==
+"@vueuse/core@^9.1.0":
+ version "9.4.0"
+ resolved "https://mirrors.cloud.tencent.com/npm/@vueuse%2fcore/-/core-9.4.0.tgz#afb30f9494b0954e51a489526566b14f1e2c5fb3"
+ integrity sha512-JzgenGj1ZF2BHOen5rsFiAyyI9sXAv7aKhNLlm9b7SwYQeKTcxTWdhudonURCSP3Egl9NQaRBzes2lv/1JUt/Q==
dependencies:
- "@types/web-bluetooth" "^0.0.14"
- "@vueuse/metadata" "8.9.4"
- "@vueuse/shared" "8.9.4"
+ "@types/web-bluetooth" "^0.0.16"
+ "@vueuse/metadata" "9.4.0"
+ "@vueuse/shared" "9.4.0"
vue-demi "*"
-"@vueuse/metadata@8.9.4":
- version "8.9.4"
- resolved "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-8.9.4.tgz"
- integrity sha512-IwSfzH80bnJMzqhaapqJl9JRIiyQU0zsRGEgnxN6jhq7992cPUJIRfV+JHRIZXjYqbwt07E1gTEp0R0zPJ1aqw==
+"@vueuse/metadata@9.4.0":
+ version "9.4.0"
+ resolved "https://mirrors.cloud.tencent.com/npm/@vueuse%2fmetadata/-/metadata-9.4.0.tgz#5c8eb105a8ad9eb7b47f78a226ff993560d0bd7f"
+ integrity sha512-7GKMdGAsJyQJl35MYOz/RDpP0FxuiZBRDSN79QIPbdqYx4Sd0sVTnIC68KJ6Oln0t0SouvSUMvRHuno216Ud2Q==
-"@vueuse/shared@8.9.4":
- version "8.9.4"
- resolved "https://registry.npmmirror.com/@vueuse/shared/-/shared-8.9.4.tgz"
- integrity sha512-wt+T30c4K6dGRMVqPddexEVLa28YwxW5OFIPmzUHICjphfAuBFTTdDoyqREZNDOFJZ44ARH1WWQNCUK8koJ+Ag==
+"@vueuse/shared@9.4.0":
+ version "9.4.0"
+ resolved "https://mirrors.cloud.tencent.com/npm/@vueuse%2fshared/-/shared-9.4.0.tgz#634022fe42b3d5ece1d81d749724966f5071c8c3"
+ integrity sha512-fTuem51KwMCnqUKkI8B57qAIMcFovtGgsCtAeqxIzH3i6nE9VYge+gVfneNHAAy7lj8twbkNfqQSygOPJTm4tQ==
dependencies:
vue-demi "*"
@@ -578,18 +578,18 @@ echarts@^5.3.3:
tslib "2.3.0"
zrender "5.3.2"
-element-plus@^2.2.9:
- version "2.2.9"
- resolved "https://registry.npmmirror.com/element-plus/-/element-plus-2.2.9.tgz"
- integrity sha512-jYbL0JkCdv95rkT6trZJjCAizLPySa0qcd2cgq+57SKQnCZAcNDDq4GbTuFRnNavdoeCJnuM3HIficTIUpsMOQ==
+element-plus@^2.2.19:
+ version "2.2.19"
+ resolved "https://mirrors.cloud.tencent.com/npm/element-plus/-/element-plus-2.2.19.tgz#c11cb84b35b7698b2f5fa7ec0fd98034f6861a9e"
+ integrity sha512-uN0gt9lUus/IHzu5J6vkbYoYJgUtU05osdtFv9RO27bHKOG5GN7dH6uA3OKfkQQ6R2sV8ZxY1rc9PH1X8Dgrow==
dependencies:
"@ctrl/tinycolor" "^3.4.1"
"@element-plus/icons-vue" "^2.0.6"
- "@floating-ui/dom" "^0.5.4"
+ "@floating-ui/dom" "^1.0.1"
"@popperjs/core" "npm:@sxzz/popperjs-es@^2.11.7"
"@types/lodash" "^4.14.182"
"@types/lodash-es" "^4.17.6"
- "@vueuse/core" "^8.7.5"
+ "@vueuse/core" "^9.1.0"
async-validator "^4.2.5"
dayjs "^1.11.3"
escape-html "^1.0.3"
@@ -597,7 +597,7 @@ element-plus@^2.2.9:
lodash-es "^4.17.21"
lodash-unified "^1.0.2"
memoize-one "^6.0.0"
- normalize-wheel-es "^1.1.2"
+ normalize-wheel-es "^1.2.0"
es5-ext@^0.10.35, es5-ext@^0.10.50, es5-ext@~0.10.14:
version "0.10.62"
@@ -984,9 +984,9 @@ normalize-path@^3.0.0, normalize-path@~3.0.0:
resolved "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
-normalize-wheel-es@^1.1.2:
+normalize-wheel-es@^1.2.0:
version "1.2.0"
- resolved "https://registry.npmmirror.com/normalize-wheel-es/-/normalize-wheel-es-1.2.0.tgz"
+ resolved "https://mirrors.cloud.tencent.com/npm/normalize-wheel-es/-/normalize-wheel-es-1.2.0.tgz#0fa2593d619f7245a541652619105ab076acf09e"
integrity sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==
path-parse@^1.0.7: