From 69a77358e67fec846438632dcd54e79145ce3196 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com>
Date: Thu, 9 Dec 2021 00:44:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B9=B3=E5=8F=B0=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=E7=9A=84=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jshERP-web/src/api/api.js | 4 +
.../src/views/system/PlatformConfigList.vue | 103 ++++++++++++++++++
.../system/modules/PlatformConfigModal.vue | 100 +++++++++++++++++
jshERP-web/src/views/user/Login.vue | 13 ++-
4 files changed, 219 insertions(+), 1 deletion(-)
create mode 100644 jshERP-web/src/views/system/PlatformConfigList.vue
create mode 100644 jshERP-web/src/views/system/modules/PlatformConfigModal.vue
diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js
index 01ea31fb..1dfd0628 100644
--- a/jshERP-web/src/api/api.js
+++ b/jshERP-web/src/api/api.js
@@ -78,6 +78,8 @@ const checkSystemConfig = (params)=>getAction("/systemConfig/checkIsNameExist",p
const getCurrentSystemConfig = (params)=>getAction("/systemConfig/getCurrentInfo",params);
const fileSizeLimit = (params)=>getAction("/systemConfig/fileSizeLimit",params);
//平台参数
+const addPlatformConfig = (params)=>postAction("/platformConfig/add",params);
+const editPlatformConfig = (params)=>putAction("/platformConfig/update",params);
const getPlatformConfigByKey = (params)=>getAction("/platformConfig/getPlatformConfigByKey",params);
//用户|角色|模块关系
const addUserBusiness = (params)=>postAction("/userBusiness/add",params);
@@ -164,6 +166,8 @@ export {
checkSystemConfig,
getCurrentSystemConfig,
fileSizeLimit,
+ addPlatformConfig,
+ editPlatformConfig,
getPlatformConfigByKey,
addUserBusiness,
editUserBusiness,
diff --git a/jshERP-web/src/views/system/PlatformConfigList.vue b/jshERP-web/src/views/system/PlatformConfigList.vue
new file mode 100644
index 00000000..fff95676
--- /dev/null
+++ b/jshERP-web/src/views/system/PlatformConfigList.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jshERP-web/src/views/system/modules/PlatformConfigModal.vue b/jshERP-web/src/views/system/modules/PlatformConfigModal.vue
new file mode 100644
index 00000000..5fb2b37e
--- /dev/null
+++ b/jshERP-web/src/views/system/modules/PlatformConfigModal.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jshERP-web/src/views/user/Login.vue b/jshERP-web/src/views/user/Login.vue
index 5c9ef028..2cf0c2e6 100644
--- a/jshERP-web/src/views/user/Login.vue
+++ b/jshERP-web/src/views/user/Login.vue
@@ -25,7 +25,7 @@
自动登陆
-
+
注册租户
@@ -61,11 +61,13 @@
import { mapActions } from "vuex"
import { timeFix } from "@/utils/util"
import Vue from 'vue'
+ import {getPlatformConfigByKey } from '@/api/api'
import { ACCESS_TOKEN ,ENCRYPTED_STRING} from "@/store/mutation-types"
import { putAction,postAction,getAction } from '@/api/manage'
import { encryption , getEncryptedString } from '@/utils/encryption/aesEncrypt'
import store from '@/store/'
import { USER_INFO } from "@/store/mutation-types"
+ import pick from 'lodash.pick'
export default {
components: {
@@ -104,6 +106,7 @@
validate_status:"",
currdatetime:'',
randCodeImage:'',
+ registerFlag:'',
requestCodeSuccess:false
}
},
@@ -111,6 +114,7 @@
this.currdatetime = new Date().getTime();
Vue.ls.remove(ACCESS_TOKEN)
this.getRouterData();
+ this.getRegisterFlag();
},
methods: {
...mapActions([ "Login", "Logout" ]),
@@ -241,6 +245,13 @@
}
})
},
+ getRegisterFlag(){
+ getPlatformConfigByKey( {"platformKey": "register_flag"}).then((res)=>{
+ if(res && res.code == 200) {
+ this.registerFlag = res.data.platformValue
+ }
+ })
+ },
//获取密码加密规则
getEncrypte(){
var encryptedString = Vue.ls.get(ENCRYPTED_STRING);