huangbin 4 年之前
父節點
當前提交
fb670d3ed2
共有 2 個文件被更改,包括 13 次插入9 次删除
  1. 4 4
      src/services/go/ermcp/customInfo/index.ts
  2. 9 5
      src/views/account/login.vue

+ 4 - 4
src/services/go/ermcp/customInfo/index.ts

@@ -1,6 +1,6 @@
 /** ================================= 客户资料 ================================**/
 
-import { getAreaUserId } from '@/services/bus/user';
+import { getUserId } from '@/services/bus/account';
 import { BaseResponse, commonSearch_go, commonUpdate_go } from '@/services/go/index';
 import {
     AddUserInfoApplyReq,
@@ -18,9 +18,9 @@ import { QueryCustomInfoEnum } from './type';
  * @param queryType 查询类型(1:未提交 2:待审核 3:正常 4:停用)
  * @returns
  */
-export function QueryCustomInfo(queryType: QueryCustomInfoEnum): Promise<QueryCustomInfoType[]> {
-    const MemberUserID = getAreaUserId();
-    return commonSearch_go('/Ermcp/QueryUserInfo', { MemberUserID, queryType }).catch((err) => {
+export function QueryCustomInfo(querytype: QueryCustomInfoEnum): Promise<QueryCustomInfoType[]> {
+    const userid = getUserId()
+    return commonSearch_go('/Qhj/QueryCustomerInfo', { userid, querytype }).catch((err) => {
         throw new Error(`查询客户资料: ${err}`);
     });
 }

+ 9 - 5
src/views/account/login.vue

@@ -6,11 +6,10 @@
       <a-col>
         <div class="login-background">
           <div>
-
-            <img v-if="getOem(OemType.manager)"
+            <img v-if="oem === OemType.manager"
                  src="@/assets/images/logo.png"
                  alt="" />
-            <img v-else-if="getOem(OemType.wrspot)"
+            <img v-else-if="oem === OemType.wrspot"
                  src="@/assets/images/wrLogo.jpg"
                  alt="" />
             <img v-else
@@ -79,11 +78,12 @@ import { login } from '@/services/bus/login';
 import { useRouter } from 'vue-router';
 import { message } from 'ant-design-vue';
 import { localStorageUtil } from '@/utils/storage/index';
-import { setLoadComplete } from '@/common/methods';
+import { initData, setLoadComplete } from '@/common/methods';
 import eventBus from '@/utils/eventBus/index';
 import { QWebChannel } from '@/utils/qt/qwebchannel.js';
 import { qtAction } from './qt';
 import { handleOem } from '@/services/request/serviceURL';
+import { serviceURL } from '@/services/request/serviceURL';
 
 interface Form {
     account: string;
@@ -159,6 +159,10 @@ export default defineComponent({
     name: 'login',
     components: {},
     setup() {
+        const oem = ref<string>('');
+        initData(() => {
+            oem.value = serviceURL.oem;
+        });
         const loading = ref<boolean>(false);
         const form = reactive(initForm);
         const rules = {
@@ -211,7 +215,7 @@ export default defineComponent({
                     goHomeloading.value = false;
                 });
         };
-        return { form, loginAction, rules, formDom, loading, goHomeloading, goHome, ...handleOem() };
+        return { form, loginAction, rules, formDom, loading, goHomeloading, goHome, ...handleOem(), oem };
     },
 });
 </script>