修复商户Id读取及保存

This commit is contained in:
2024-10-19 16:10:18 +08:00
parent e82029456e
commit 9481d004b0
2 changed files with 12 additions and 7 deletions
+8 -6
View File
@@ -68,11 +68,8 @@
<div class="user-profile">
<div class="user-info">
<div class="nickname">
<span class="ele-text-heading">
{{ loginUser.realName || loginUser.nickname }}
</span>
<div class="ele-text-placeholder">
用户ID:<span class="ele-text-secondary">{{
UID:<span class="ele-text-secondary">{{
loginUser.userId
}}</span>
<copy-outlined
@@ -80,6 +77,12 @@
@click="copyText(loginUser.userId)"
/>
</div>
<span class="ele-text-placeholder">
昵称:
<span class="ele-text-secondary">{{
loginUser.nickname
}}</span>
</span>
<div class="role" style="margin-top: 10px">
<template
v-for="(item, index) in loginUser.roles"
@@ -166,7 +169,7 @@
SearchOutlined
} from '@ant-design/icons-vue';
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 HeaderNotice from './header-notice.vue';
import PasswordModal from './password-modal.vue';
@@ -333,7 +336,6 @@
// 更新商户ID和名称
if (!getMerchantId() && loginUser.value.merchantId == null) {
listMerchantAccount({ phone: loginUser.value.phone }).then((res) => {
console.log(res);
if (res.length > 0) {
const item = res[0];
authUser({
+4 -1
View File
@@ -110,7 +110,10 @@
"
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
disabled
v-model:value="form.username"