Ver código fonte

update 行业资讯

15724580513 5 anos atrás
pai
commit
bfec4e1efb

+ 6 - 2
.env.development

@@ -4,8 +4,12 @@ ENV = 'development'
 # base api
 PUBLIC_PATH = '/'
 ASSETS_DIR = 'assets'
-VUE_APP_BASE_API = 'http://192.168.0.179:8099'
-VUE_APP_BASE_API_TARGET = 'http://192.168.0.179:8099'
+VUE_APP_BASE_API = 'http://192.168.0.128:8080'
+VUE_APP_BASE_API_TARGET = 'http://192.168.0.128:8080'
+
+# VUE_APP_BASE_API = 'http://192.168.0.179:8099'
+# VUE_APP_BASE_API_TARGET = 'http://192.168.0.179:8099'
+
 VUE_APP_SECRET_KEY = 'f6e3c80fce574b20b001a9d410e79d70'
 VUE_APP_DIST_NAME='mdist'
 VUE_APP_INDEX_TINY_ICON=""

+ 0 - 24
src/api/login.js

@@ -17,27 +17,3 @@ export function getOrgList(data = {}) {
                        data,
                    });
 }
-
-/*export function getRegisterList(data = {}) {
-    return request({
-        url:    `/user/register`,
-        method: 'post',
-        data,
-    });
-}*/
-
-/*export function getRegisterOrg(data = {}) {
-    return request({
-        url:    `/admin/org/all`,
-        method: 'post',
-        data,
-    });
-}*/
-
-/*export function getRegisterPosition(data = {}) {
-    return request({
-        url:    `/admin/position/all`,
-        method: 'post',
-        data,
-    });
-}*/

+ 1 - 110
src/api/noToken.js

@@ -1,37 +1,6 @@
 import request from '@/utils/request';
 
-export function getUserExistTel(data = {}) {
-    return request({
-                       url: `/common/exist/tel`,
-                       method: 'post',
-                       data
-                   });
-}
-
-export function getAppConfig(data = {}) {
-    return request({
-        url:    `/common/app/config`,
-        method: 'post',
-        data,
-    });
-}
-export function getUserExistUserName(data = {}) {
-    return request({
-                       url: `/common/exist/userName`,
-                       method: 'post',
-                       data
-                   });
-}
-
-export function getUserAuthClient(data = {}) {
-    return request({
-                       url:    `/common/client/login`,
-                       method: 'post',
-                       data,
-                   });
-}
-
-export function getUserAuth(data = {}) {
+export function getAdminLogin(data = {}) {
     return request({
                        url:    `/common/admin/login`,
                        method: 'post',
@@ -39,82 +8,4 @@ export function getUserAuth(data = {}) {
                    });
 }
 
-export function getTenantConfig(data = {}) {
-    return request({
-                       url:    `/common/admin/config`,
-                       method: 'post',
-                       data,
-                   });
-}
-
-export function getTenantConfigClient(data = {}) {
-    return request({
-                        url:    `/common/client/config`,
-                        method: 'post',
-                        data,
-    });
-}
-
-export function getTenantConfigAfterLogin(data = {}) {
-    return request({
-        url:    `/tenant/config/update/admin`,
-        method: 'post',
-        data,
-    });
-}
-
-export function getTenantConfigClientAfterLogin(data = {}) {
-    return request({
-        url:    `/tenant/config/update/client`,
-        method: 'post',
-        data,
-    });
-}
-
-export function getRegisterList(data = {}) {
-    return request({
-                       url:    `/common/register`,
-                       method: 'post',
-                       data,
-                   });
-}
-export function getRegisterOrg(data = {}) {
-    return request({
-                       url:    `/common/org/all`,
-                       method: 'post',
-                       data,
-                   });
-}
-export function getRegisterPosition(data = {}) {
-    return request({
-                       url:    `/common/position/all`,
-                       method: 'post',
-                       data,
-                   });
-}
-
-export  function getAdminUserPasswordReset(data = {}) {
-    return request({
-                       url: `/common/password/reset`,
-                       data,
-                       method: 'post',
-                   });
-}
-
-export  function getUserRegister(data = {}) {
-    return request({
-        url: `/common/tenant/register`,
-        data,
-        method: 'post',
-    });
-}
-
-export function getTelLogin(data = {}) {
-    return request({
-        url: `/common/tenant/login`,
-        method: 'post',
-        data
-    });
-}
-
 

+ 4 - 2
src/views/management/HangYeZiXun/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div>
+    <div class="admin-hangyezixun">
         行业资讯
     </div>
 </template>
@@ -10,6 +10,8 @@
     };
 </script>
 
-<style scoped>
+<style lang="scss" scoped>
+.admin-hangyezixun {
 
+}
 </style>

+ 4 - 0
src/views/management/Home/index.vue

@@ -39,6 +39,10 @@
                 asideStatus: false,
             };
         },
+        beforeRouteEnter(to, from, next) {
+            console.log(to , from);
+            next();
+        },
         methods:    {
             asiderStatusChange() {
                 this.asideStatus = !this.asideStatus;

+ 14 - 3
src/views/management/Login/components/Login.vue

@@ -17,6 +17,7 @@
 </template>
 
 <script>
+    import { getAdminLogin } from "@/api/noToken.js";
     export default {
         name:    'Login',
         data() {
@@ -47,13 +48,23 @@
                     }
                 });
             },
-            doLogin() {
+            async doLogin() {
                 const opt = this.getOption();
-                this.goHomePage();
+
+                try {
+                    const res = await getAdminLogin(opt)
+                    if (res.code === 0) {
+                        console.log(res.data);
+                        // this.goHomePage();
+                    }
+                } catch (e) {
+                    console.log(e);
+                }
+
             },
             getOption() {
                 const opt = {
-                    username: this.loginForm.username,
+                    userName: this.loginForm.username,
                     password: this.loginForm.password,
                 };
                 return opt;