cloud-web-corejs 1.0.54-dev.445 → 1.0.54-dev.447

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,16 @@
3
3
  class="login-container"
4
4
  :class="backgroundClass"
5
5
  ref="login-container"
6
+ :style="{
7
+ background: imageUrl
8
+ ? 'url(' + imageUrl + ') center center/cover no-repeat !important'
9
+ : 'auto',
10
+ }"
6
11
  v-show="showContent"
7
12
  >
8
13
  <div class="login-main" style="height: auto">
9
14
  <el-tabs v-model="activeName" @tab-click="changeTab">
10
- <el-tab-pane :label="$t1('账号登录')" name="first">
15
+ <el-tab-pane :label="$t1('账号登录')" name="first" v-if="accountLoagin">
11
16
  <el-form
12
17
  ref="loginForm"
13
18
  :model="loginForm"
@@ -72,11 +77,7 @@
72
77
  >
73
78
  </el-form>
74
79
  </el-tab-pane>
75
- <el-tab-pane
76
- :label="$t1('手机登录')"
77
- name="second"
78
- v-if="settingConfig.mobileLoginEnabled"
79
- >
80
+ <el-tab-pane :label="$t1('手机登录')" name="second" v-if="phoneLogin">
80
81
  <el-form
81
82
  ref="loginForm"
82
83
  :model="loginForm2"
@@ -128,11 +129,7 @@
128
129
  >
129
130
  </el-form>
130
131
  </el-tab-pane>
131
- <el-tab-pane
132
- :label="$t1('扫码登录')"
133
- name="third"
134
- v-if="settingConfig.qrLoginEnabled"
135
- >
132
+ <el-tab-pane :label="$t1('扫码登录')" name="third" v-if="qrLogin">
136
133
  <div class="login-qr">
137
134
  <img class="qr__img" :src="qrBase64" v-if="activeName === 'third'" />
138
135
  <span class="qr__txt">{{ $t1("扫一扫,登录系统") }}</span>
@@ -145,8 +142,13 @@
145
142
  </div>
146
143
  <div class="tc copyright">
147
144
  <slot name="footer">
148
- © {{ $t1("广州同望科技发展有限公司") }}
149
- <span style="margin-left: 50px">4000646100</span>
145
+ © {{ loginConfig.filing_company || this.$t1("广州同望科技发展有限公司") }}
146
+ <span style="margin-left: 50px" v-if="!!loginConfig.filing_number">{{
147
+ loginConfig.filing_number + " " + (loginConfig.phone || "4000646100")
148
+ }}</span>
149
+ <span style="margin-left: 50px" v-if="!loginConfig.filing_number">{{
150
+ loginConfig.phone || "4000646100"
151
+ }}</span>
150
152
  </slot>
151
153
  </div>
152
154
  </div>
@@ -67,7 +67,14 @@ export default {
67
67
  qrCodeFlag: 0,
68
68
  qrBase64: "",
69
69
  settingConfig: settingConfig,
70
- qrExpired: false
70
+ qrExpired: false,
71
+ loginConfig: {},
72
+ imageUrl: '',
73
+ loginMethod: '',
74
+
75
+ accountLoagin:true,
76
+ phoneLogin:false,
77
+ qrLogin:false,
71
78
  };
72
79
  },
73
80
  watch: {
@@ -101,6 +108,43 @@ export default {
101
108
  window.removeEventListener('keydown', this.keyDown, false);
102
109
  },
103
110
  methods: {
111
+ handleLoginConfig(){
112
+ let loginConfig = this.$store.getters.loginConfig;
113
+ debugger
114
+ this.loginConfig = loginConfig;
115
+ this.initImage();
116
+ this.initLoginMethod();
117
+ },
118
+ initImage(){
119
+ //初始化登录图片
120
+ let loginConfig = this.loginConfig;
121
+ if(loginConfig?.attachments?.length){
122
+ this.imageUrl = loginConfig.attachments[0].domain + loginConfig.attachments[0].source;
123
+ }
124
+ },
125
+
126
+ initLoginMethod(){
127
+ let loginConfig = this.loginConfig?.login_method;
128
+ if(loginConfig?.length){
129
+ this.accountLoagin = loginConfig.includes(1);
130
+ this.phoneLogin = loginConfig.includes(2);
131
+ this.qrLogin = loginConfig.includes(3);
132
+ if(this.accountLoagin){
133
+ this.activeName = "first";
134
+ }else if(this.phoneLogin){
135
+ this.activeName = "second";
136
+ }else if(this.qrLogin){
137
+ this.activeName = "third";
138
+ this.$nextTick(() => {
139
+ this.initQR();
140
+ })
141
+ }
142
+ }else{
143
+ this.accountLoagin = true;
144
+ this.phoneLogin = settingConfig.mobileLoginEnabled;
145
+ this.qrLogin = settingConfig.qrLoginEnabled;
146
+ }
147
+ },
104
148
  initLang(){
105
149
  let lang = this.$route.query.lang;
106
150
  if(!lang && !!this.lang){
@@ -117,6 +161,7 @@ export default {
117
161
  },
118
162
  init() {
119
163
  this.initLang();
164
+ this.handleLoginConfig();
120
165
  let searchParam = getUrlParams(location.search);
121
166
  this.searchParam = searchParam;
122
167
  //小熊SSO返回判断--目前因为小熊单点返回ticket有问题要特殊处理
@@ -7,7 +7,7 @@
7
7
  v-if="showWfDialog2"
8
8
  :visible.sync="showWfDialog2"
9
9
  :modal="false"
10
- custom-class="dialog-style designer-dialog indexUse"
10
+ custom-class="el-dialog dialog-style designer-dialog indexUse"
11
11
  width="100%"
12
12
  height="100%"
13
13
  top="0px"
@@ -107,8 +107,4 @@ export default {
107
107
  };
108
108
  </script>
109
109
 
110
- <style scoped>
111
- .designer-dialog.indexUse #containt .detail-wrap .d-cont {
112
- height: calc(100vh - 82px);
113
- }
114
- </style>
110
+ <style scoped></style>