diff --git a/cds-fontend-2025.V1/.env.dev b/cds-fontend-2025.V1/.env.dev index 856dd02..558f842 100644 --- a/cds-fontend-2025.V1/.env.dev +++ b/cds-fontend-2025.V1/.env.dev @@ -4,7 +4,7 @@ VITE_SERVICE_BASE_URL=http://localhost:8080 VITE_APP_BASE_API=/dev-api # watermark -VITE_WATERMARK=N +VITE_WATERMARK=Y # 是否开启 SSE 功能 VITE_APP_SSE=Y # 是否开启 websocket 功能 diff --git a/cds-fontend-2025.V1/readme b/cds-fontend-2025.V1/readme new file mode 100644 index 0000000..8065f02 --- /dev/null +++ b/cds-fontend-2025.V1/readme @@ -0,0 +1,11 @@ +--------用户信息------------ +用户登陆时,通过userInfo查询用户信息后存储在useAppStore中, +src/store/modules/auth/index.ts +src/views/mps/private-ebank-new/index.vue + +--------watermark------------ +src/App.vue + +--------watermark------------ +录入时,增加了营销人员列表 +src/views/mps/private-ebank-new/modules/private-ebank-new-operate-drawer.vue diff --git a/cds-fontend-2025.V1/src/App.vue b/cds-fontend-2025.V1/src/App.vue index ce819c3..d10d2d0 100644 --- a/cds-fontend-2025.V1/src/App.vue +++ b/cds-fontend-2025.V1/src/App.vue @@ -26,7 +26,7 @@ const naiveDateLocale = computed(() => { }); const watermarkProps = computed(() => { - const appTitle = import.meta.env.VITE_APP_TITLE || 'RuoYi-Vue-Plus'; + const appTitle = import.meta.env.VITE_APP_TITLE || '全员营销计价'; const content = themeStore.watermark.enableUserName && userInfo.user?.userName ? `${userInfo.user?.nickName}@${appTitle} ${userInfo.user?.userName}` @@ -36,9 +36,9 @@ const watermarkProps = computed(() => { cross: true, fullscreen: true, fontSize: 14, - fontColor: themeStore.darkMode ? 'rgba(200, 200, 200, 0.03)' : 'rgba(200, 200, 200, 0.2)', + fontColor: themeStore.darkMode ? 'rgb(67,61,61)' : 'rgba(28,25,25,0.2)', lineHeight: 14, - width: 200, + width: 260, height: 300, xOffset: 12, yOffset: 60, diff --git a/cds-fontend-2025.V1/src/layouts/modules/global-header/components/message-button.vue b/cds-fontend-2025.V1/src/layouts/modules/global-header/components/message-button.vue index d751d34..00b3965 100644 --- a/cds-fontend-2025.V1/src/layouts/modules/global-header/components/message-button.vue +++ b/cds-fontend-2025.V1/src/layouts/modules/global-header/components/message-button.vue @@ -84,7 +84,8 @@ const toGitee = () => { diff --git a/cds-fontend-2025.V1/src/layouts/modules/global-header/index.vue b/cds-fontend-2025.V1/src/layouts/modules/global-header/index.vue index 786047b..c5c688d 100644 --- a/cds-fontend-2025.V1/src/layouts/modules/global-header/index.vue +++ b/cds-fontend-2025.V1/src/layouts/modules/global-header/index.vue @@ -48,12 +48,12 @@ const tenantId = ref(authStore.userInfo?.user?.tenantId || '0 - + />--> ({ + url: '/system/user/muList', + method: 'get' + }); +} + /** 修改用户状态 */ export function fetchUpdateUserStatus(data: Api.System.UserOperateParams) { return request({ diff --git a/cds-fontend-2025.V1/src/theme/settings.ts b/cds-fontend-2025.V1/src/theme/settings.ts index c4bad43..c0ab401 100644 --- a/cds-fontend-2025.V1/src/theme/settings.ts +++ b/cds-fontend-2025.V1/src/theme/settings.ts @@ -58,8 +58,8 @@ export const themeSettings: App.Theme.ThemeSetting = { }, watermark: { visible: import.meta.env.VITE_WATERMARK === 'Y', - text: 'RuoYi-Vue-Plus', - enableUserName: false + text: '全员营销计价', + enableUserName: true }, table: { bordered: true, diff --git a/cds-fontend-2025.V1/src/typings/api/mps.private-ebank-new.api.d.ts b/cds-fontend-2025.V1/src/typings/api/mps.private-ebank-new.api.d.ts index 0deba84..5f72ee9 100644 --- a/cds-fontend-2025.V1/src/typings/api/mps.private-ebank-new.api.d.ts +++ b/cds-fontend-2025.V1/src/typings/api/mps.private-ebank-new.api.d.ts @@ -7,31 +7,31 @@ namespace Mps { /** private ebank new */ type PrivateEbankNew = Common.CommonRecord<{ /** 数据编号 */ - dataId: CommonType.IdType; + dataId: CommonType.IdType; /** 营销人员营销号 */ - userId: CommonType.IdType; + userId: CommonType.IdType; /** 客户身份证号 */ - custId: CommonType.IdType; + custId: CommonType.IdType; /** 客户姓名 */ - custName: string; + custName: string; /** 客户账号/卡号 */ - custAcctNo: string; + custAcctNo: string; /** 客户联系电话 */ - custPhoneNo: string; + custPhoneNo: string; /** 核对标志 */ - checkFlag: string; + checkFlag: string; /** 核对时间 */ - checkTime: string; + checkTime: string; /** 核对人员 */ - checkUser: string; + checkUser: string; /** 核对方式 */ - checkType: string; + checkType: string; /** 核对结果 */ - checkMsg: string; + checkMsg: string; /** 租户编号 */ - tenantId: CommonType.IdType; + tenantId: CommonType.IdType; /** 删除标志 */ - delFlag: string; + delFlag: string; }>; /** private ebank new search params */ @@ -53,6 +53,7 @@ namespace Mps { Pick< Api.Mps.PrivateEbankNew, | 'dataId' + | 'operatorId' | 'userId' | 'custId' | 'custName' diff --git a/cds-fontend-2025.V1/src/typings/api/system.api.d.ts b/cds-fontend-2025.V1/src/typings/api/system.api.d.ts index 8e779f3..f8e55e7 100644 --- a/cds-fontend-2025.V1/src/typings/api/system.api.d.ts +++ b/cds-fontend-2025.V1/src/typings/api/system.api.d.ts @@ -100,10 +100,16 @@ declare namespace Api { deptName: string; /** 用户账号 */ userName: string; - /** 用户昵称 */ + /** 用户姓名 */ nickName: string; + /** 身份证号 */ + idCard: string; /** 用户类型(sys_user系统用户) */ userType: string; + /** 用户种类(0-营销 其他-其他) */ + userCategory: string; + /** 营销编号 */ + mktNo: string; /** 用户邮箱 */ email: string; /** 手机号码 */ @@ -139,6 +145,9 @@ declare namespace Api { | 'deptId' | 'userName' | 'nickName' + | 'idCard' + | 'userCategory' + | 'mktNo' | 'email' | 'phonenumber' | 'sex' diff --git a/cds-fontend-2025.V1/src/views/_builtin/login/index.vue b/cds-fontend-2025.V1/src/views/_builtin/login/index.vue index 788932b..06b9108 100644 --- a/cds-fontend-2025.V1/src/views/_builtin/login/index.vue +++ b/cds-fontend-2025.V1/src/views/_builtin/login/index.vue @@ -59,14 +59,14 @@ const activeModule = computed(() => moduleMap[props.module || 'pwd-login']); class="text-20px lt-sm:text-18px" @switch="themeStore.toggleThemeScheme" /> - + />-->
diff --git a/cds-fontend-2025.V1/src/views/_builtin/login/modules/pwd-login.vue b/cds-fontend-2025.V1/src/views/_builtin/login/modules/pwd-login.vue index 8af8916..a1b145e 100644 --- a/cds-fontend-2025.V1/src/views/_builtin/login/modules/pwd-login.vue +++ b/cds-fontend-2025.V1/src/views/_builtin/login/modules/pwd-login.vue @@ -29,7 +29,8 @@ const tenantEnabled = ref(false); const tenantOption = ref([]); const model: Api.Auth.PwdLoginForm = reactive({ - tenantId: '000000', + /*tenantId: '000000',*/ + tenantId: '069291',//注意要和部署法人保持一致 username: 'admin', password: 'admin123' }); @@ -165,9 +166,9 @@ async function handleSocialLogin(type: Api.System.SocialSource) {
{{ $t('page.login.pwdLogin.rememberMe') }} - +
{{ $t('common.login') }} @@ -179,10 +180,13 @@ async function handleSocialLogin(type: Api.System.SocialSource) { -
{{ $t('page.login.pwdLogin.otherAccountLogin') }}
+ + + 评估是否增加注册功能 +
-
+ -
+
diff --git a/cds-fontend-2025.V1/src/views/home/modules/header-banner.vue b/cds-fontend-2025.V1/src/views/home/modules/header-banner.vue index f784f89..862dab1 100644 --- a/cds-fontend-2025.V1/src/views/home/modules/header-banner.vue +++ b/cds-fontend-2025.V1/src/views/home/modules/header-banner.vue @@ -55,7 +55,7 @@ const statisticData = computed(() => [ }) }} -

{{ $t('page.home.weatherDesc') }}

+
diff --git a/cds-fontend-2025.V1/src/views/mps/private-ebank-new/index.vue b/cds-fontend-2025.V1/src/views/mps/private-ebank-new/index.vue index 95ec2bc..a4fa678 100644 --- a/cds-fontend-2025.V1/src/views/mps/private-ebank-new/index.vue +++ b/cds-fontend-2025.V1/src/views/mps/private-ebank-new/index.vue @@ -9,15 +9,17 @@ import {$t} from '@/locales'; import ButtonIcon from '@/components/custom/button-icon.vue'; import PrivateEbankNewOperateDrawer from './modules/private-ebank-new-operate-drawer.vue'; import PrivateEbankNewSearch from './modules/private-ebank-new-search.vue'; -import {computed, ref, watch} from "vue"; +import {computed, onMounted, ref, watch} from "vue"; import {useBoolean} from "~/packages/hooks"; import PrivateEbankImportModal from './modules/private-ebank-import-modal.vue'; +import {useAuthStore} from "@/store/modules/auth"; defineOptions({ name: 'PrivateEbankNewList' }); const appStore = useAppStore(); +const { userInfo } = useAuthStore(); const {download} = useDownload(); const {hasAuth} = useAuth(); const {bool: importVisible, setTrue: openImportModal} = useBoolean(); @@ -68,6 +70,14 @@ const { ellipsis: true, resizable: true }, + { + key: 'operatorId', + title: '经办人员营销号', + align: 'center', + minWidth: 120, + ellipsis: true, + resizable: true + }, { key: 'userId', title: '营销人员营销号', @@ -238,6 +248,13 @@ watch(columns, (newColumns) => { scrollX.value = calculateTotalWidth(); }, {deep: true}); +//测试登录用户信息 +onMounted(() => { + console.log(JSON.stringify(userInfo)); + console.log("是否营销:" + userInfo.user.userCategory); + console.log("营销编号:" + userInfo.user.mktNo); +}); + const {drawerVisible, operateType, editingData, handleAdd, handleEdit, checkedRowKeys, onBatchDeleted, onDeleted} = useTableOperate(data, getData); diff --git a/cds-fontend-2025.V1/src/views/mps/private-ebank-new/modules/private-ebank-new-operate-drawer.vue b/cds-fontend-2025.V1/src/views/mps/private-ebank-new/modules/private-ebank-new-operate-drawer.vue index 269d5c2..14f723e 100644 --- a/cds-fontend-2025.V1/src/views/mps/private-ebank-new/modules/private-ebank-new-operate-drawer.vue +++ b/cds-fontend-2025.V1/src/views/mps/private-ebank-new/modules/private-ebank-new-operate-drawer.vue @@ -1,9 +1,11 @@