修复商户Id读取及保存
This commit is contained in:
@@ -68,11 +68,8 @@
|
|||||||
<div class="user-profile">
|
<div class="user-profile">
|
||||||
<div class="user-info">
|
<div class="user-info">
|
||||||
<div class="nickname">
|
<div class="nickname">
|
||||||
<span class="ele-text-heading">
|
|
||||||
{{ loginUser.realName || loginUser.nickname }}
|
|
||||||
</span>
|
|
||||||
<div class="ele-text-placeholder">
|
<div class="ele-text-placeholder">
|
||||||
用户ID:<span class="ele-text-secondary">{{
|
UID:<span class="ele-text-secondary">{{
|
||||||
loginUser.userId
|
loginUser.userId
|
||||||
}}</span>
|
}}</span>
|
||||||
<copy-outlined
|
<copy-outlined
|
||||||
@@ -80,6 +77,12 @@
|
|||||||
@click="copyText(loginUser.userId)"
|
@click="copyText(loginUser.userId)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<span class="ele-text-placeholder">
|
||||||
|
昵称:
|
||||||
|
<span class="ele-text-secondary">{{
|
||||||
|
loginUser.nickname
|
||||||
|
}}</span>
|
||||||
|
</span>
|
||||||
<div class="role" style="margin-top: 10px">
|
<div class="role" style="margin-top: 10px">
|
||||||
<template
|
<template
|
||||||
v-for="(item, index) in loginUser.roles"
|
v-for="(item, index) in loginUser.roles"
|
||||||
@@ -166,7 +169,7 @@
|
|||||||
SearchOutlined
|
SearchOutlined
|
||||||
} from '@ant-design/icons-vue';
|
} from '@ant-design/icons-vue';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { copyText, getMerchantId, openNew, openUrl } from "@/utils/common";
|
import { copyText, getMerchantId, openNew, openUrl } from '@/utils/common';
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import HeaderNotice from './header-notice.vue';
|
import HeaderNotice from './header-notice.vue';
|
||||||
import PasswordModal from './password-modal.vue';
|
import PasswordModal from './password-modal.vue';
|
||||||
@@ -333,7 +336,6 @@
|
|||||||
// 更新商户ID和名称
|
// 更新商户ID和名称
|
||||||
if (!getMerchantId() && loginUser.value.merchantId == null) {
|
if (!getMerchantId() && loginUser.value.merchantId == null) {
|
||||||
listMerchantAccount({ phone: loginUser.value.phone }).then((res) => {
|
listMerchantAccount({ phone: loginUser.value.phone }).then((res) => {
|
||||||
console.log(res);
|
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
const item = res[0];
|
const item = res[0];
|
||||||
authUser({
|
authUser({
|
||||||
|
|||||||
@@ -110,7 +110,10 @@
|
|||||||
"
|
"
|
||||||
style="max-width: 580px; margin-top: 20px"
|
style="max-width: 580px; margin-top: 20px"
|
||||||
>
|
>
|
||||||
<a-form-item label="登录账号" v-bind="validateInfos.username">
|
<a-form-item label="用户ID" v-bind="validateInfos.userId">
|
||||||
|
<a-input disabled v-model:value="form.userId" allow-clear />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item label="用户名" v-bind="validateInfos.username">
|
||||||
<a-input
|
<a-input
|
||||||
disabled
|
disabled
|
||||||
v-model:value="form.username"
|
v-model:value="form.username"
|
||||||
|
|||||||
Reference in New Issue
Block a user