eoss-ui 0.4.55 → 0.4.57
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.
- package/lib/button-group.js +140 -102
- package/lib/button.js +142 -104
- package/lib/cascader.js +2 -2
- package/lib/checkbox-group.js +144 -106
- package/lib/config/api.js +4 -0
- package/lib/data-table-form.js +141 -103
- package/lib/data-table.js +149 -110
- package/lib/date-picker.js +149 -111
- package/lib/dialog.js +140 -102
- package/lib/eoss-ui.common.js +1107 -356
- package/lib/flow-group.js +140 -102
- package/lib/flow-list.js +147 -109
- package/lib/flow.js +462 -180
- package/lib/form.js +158 -121
- package/lib/handle-user.js +141 -103
- package/lib/handler.js +141 -103
- package/lib/index.js +1 -1
- package/lib/input-number.js +142 -104
- package/lib/input.js +142 -104
- package/lib/label.js +2 -2
- package/lib/login.js +176 -130
- package/lib/main.js +156 -118
- package/lib/mainComp.js +156 -118
- package/lib/menu.js +2 -2
- package/lib/nav.js +140 -102
- package/lib/notify.js +109 -101
- package/lib/page.js +140 -102
- package/lib/player.js +140 -102
- package/lib/qr-code.js +140 -102
- package/lib/radio-group.js +141 -103
- package/lib/retrial-auth.js +3330 -0
- package/lib/select-ganged.js +142 -104
- package/lib/select.js +143 -105
- package/lib/selector-panel.js +158 -120
- package/lib/selector.js +143 -105
- package/lib/sizer.js +144 -106
- package/lib/steps.js +142 -104
- package/lib/switch.js +142 -104
- package/lib/table-form.js +142 -104
- package/lib/tabs-panel.js +2 -2
- package/lib/tabs.js +149 -111
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/retrial-auth.css +1 -0
- package/lib/tips.js +143 -105
- package/lib/toolbar.js +14 -10
- package/lib/tree-group.js +142 -104
- package/lib/tree.js +143 -105
- package/lib/upload.js +150 -112
- package/lib/utils/util.js +36 -6
- package/lib/wujie.js +142 -104
- package/lib/wxlogin.js +142 -104
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +7 -7
- package/packages/data-table/src/main.vue +1 -0
- package/packages/flow/src/main.vue +148 -11
- package/packages/flow/src/startTaskRead.vue +12 -9
- package/packages/form/src/main.vue +13 -7
- package/packages/login/src/main.vue +27 -18
- package/packages/retrial-auth/index.js +5 -0
- package/packages/retrial-auth/src/main.vue +271 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/retrial-auth.css +1 -0
- package/packages/theme-chalk/src/index.scss +1 -0
- package/packages/theme-chalk/src/retrial-auth.scss +38 -0
- package/packages/toolbar/src/main.vue +6 -1
- package/src/config/api.js +4 -0
- package/src/index.js +4 -1
- package/src/utils/util.js +36 -6
- package/CHANGELOG.md +0 -929
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.es-retrial-auth-msg .el-message-box__header{background-color:#eee;font-size:14px!important;border-bottom:1px solid #d9d9d9}.es-retrial-auth-msg .el-message-box__header .el-message-box__title{font-size:14px;line-height:18px}.es-retrial-auth .es-retrial-auth-form{padding:24px 12px 12px}.es-retrial-auth .el-input__suffix{right:0}.es-retrial-auth .es-button-submit{width:100%}.es-retrial-auth .es-login-switchs{padding-top:12px;text-align:center;color:#d9d9d9}.es-retrial-auth .es-login-switchs .es-icon{font-size:24px;cursor:pointer}.es-retrial-auth .es-login-switchs .es-icon+.es-icon{margin-left:12px}.es-retrial-auth .es-login-switchs .es-icon.es-active{color:#1890ff}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@import './common/var.scss';
|
|
2
|
+
.es-retrial-auth-msg {
|
|
3
|
+
.el-message-box__header {
|
|
4
|
+
background-color: #eee;
|
|
5
|
+
font-size: 14px !important;
|
|
6
|
+
border-bottom: $--border-base;
|
|
7
|
+
.el-message-box__title {
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
line-height: 18px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.es-retrial-auth {
|
|
14
|
+
.es-retrial-auth-form {
|
|
15
|
+
padding: 24px 12px 12px 12px;
|
|
16
|
+
}
|
|
17
|
+
.el-input__suffix {
|
|
18
|
+
right: 0;
|
|
19
|
+
}
|
|
20
|
+
.es-button-submit {
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
.es-login-switchs {
|
|
24
|
+
padding-top: 12px;
|
|
25
|
+
text-align: center;
|
|
26
|
+
color: #d9d9d9;
|
|
27
|
+
.es-icon {
|
|
28
|
+
font-size: 24px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
& + .es-icon {
|
|
31
|
+
margin-left: 12px;
|
|
32
|
+
}
|
|
33
|
+
&.es-active {
|
|
34
|
+
color: $--color-primary-light-6;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -233,6 +233,7 @@ export default {
|
|
|
233
233
|
checkbox: 'es-toolbar-item-checkbox',
|
|
234
234
|
switch: 'es-toolbar-item-switch'
|
|
235
235
|
};
|
|
236
|
+
console.log();
|
|
236
237
|
search = [
|
|
237
238
|
h('es-form', {
|
|
238
239
|
class: [
|
|
@@ -241,12 +242,14 @@ export default {
|
|
|
241
242
|
this.showFormBtn ? '' : 'es-form-search-nobtn'
|
|
242
243
|
],
|
|
243
244
|
props: {
|
|
245
|
+
showButton: items.showButton,
|
|
246
|
+
formatSubmit: items.formatSubmit,
|
|
247
|
+
...(items.config || {}),
|
|
244
248
|
size: 'medium',
|
|
245
249
|
showLabel: false,
|
|
246
250
|
closeDialog: false,
|
|
247
251
|
model: this.searchData,
|
|
248
252
|
contents: items.contents,
|
|
249
|
-
showButton: items.showButton,
|
|
250
253
|
itemClass: itemClass,
|
|
251
254
|
inline: true,
|
|
252
255
|
search: true,
|
|
@@ -325,6 +328,8 @@ export default {
|
|
|
325
328
|
class: 'es-form-search',
|
|
326
329
|
ref: 'filter',
|
|
327
330
|
props: {
|
|
331
|
+
formatSubmit: items.formatSubmit,
|
|
332
|
+
...(items.config || {}),
|
|
328
333
|
size: 'medium',
|
|
329
334
|
closeDialog: false,
|
|
330
335
|
model: this.advancedData,
|
package/src/config/api.js
CHANGED
|
@@ -17,6 +17,10 @@ export const initModifyPassword = '/sso2/signIn/assembly/initModifyPassword'; //
|
|
|
17
17
|
export const doWechatQrLogin = '/sso2/signIn/auth/doWechatQrLogin'; // 微信扫码登录
|
|
18
18
|
export const getTwoFactorLoginCode = '/sso2/signIn/auth/getTwoFactorLoginCode'; // 双因素登录,通过消息中心发送登陆验证码给用户
|
|
19
19
|
export const doTwoFactorLogin = '/sso2/signIn/auth/doTwoFactorLogin'; // 双因素登录
|
|
20
|
+
export const initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化二级身份权限验证页面
|
|
21
|
+
export const getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
|
|
22
|
+
export const scanCodeRetrialAuth = '/sso2/retrialAuth/scanCodeRetrialAuth';// 二维码扫码验证(二级权限验证)
|
|
23
|
+
export const codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth';// 二级身份验证-验证码验证
|
|
20
24
|
// 框架
|
|
21
25
|
export const mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
|
|
22
26
|
export const initUserSet = '/main2/main/initUserSet'; // 获取用户信息
|
package/src/index.js
CHANGED
|
@@ -34,6 +34,7 @@ import Page from '../packages/page/index.js';
|
|
|
34
34
|
import Player from '../packages/player/index.js';
|
|
35
35
|
import QrCode from '../packages/qr-code/index.js';
|
|
36
36
|
import RadioGroup from '../packages/radio-group/index.js';
|
|
37
|
+
import RetrialAuth from '../packages/retrial-auth/index.js';
|
|
37
38
|
import Select from '../packages/select/index.js';
|
|
38
39
|
import SelectGanged from '../packages/select-ganged/index.js';
|
|
39
40
|
import Selector from '../packages/selector/index.js';
|
|
@@ -87,6 +88,7 @@ const components = [
|
|
|
87
88
|
Player,
|
|
88
89
|
QrCode,
|
|
89
90
|
RadioGroup,
|
|
91
|
+
RetrialAuth,
|
|
90
92
|
Select,
|
|
91
93
|
SelectGanged,
|
|
92
94
|
Selector,
|
|
@@ -117,7 +119,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
export default {
|
|
120
|
-
version: '0.4.
|
|
122
|
+
version: '0.4.57',
|
|
121
123
|
install,
|
|
122
124
|
Button,
|
|
123
125
|
ButtonGroup,
|
|
@@ -153,6 +155,7 @@ export default {
|
|
|
153
155
|
Player,
|
|
154
156
|
QrCode,
|
|
155
157
|
RadioGroup,
|
|
158
|
+
RetrialAuth,
|
|
156
159
|
Select,
|
|
157
160
|
SelectGanged,
|
|
158
161
|
Selector,
|
package/src/utils/util.js
CHANGED
|
@@ -23,6 +23,7 @@ const $lightColorCount = 5;
|
|
|
23
23
|
const $darkColorCount = 4;
|
|
24
24
|
const publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
|
|
25
25
|
let loginMsg;
|
|
26
|
+
let initAuth;
|
|
26
27
|
|
|
27
28
|
const JSONbigToString = JSONbig({ storeAsString: true });
|
|
28
29
|
import { MessageBox, Loading } from 'eoss-element';
|
|
@@ -176,7 +177,9 @@ const ajax = function ({
|
|
|
176
177
|
win.top.location.href.indexOf('/login.html') === -1
|
|
177
178
|
) {
|
|
178
179
|
clearTimeout(loginMsg);
|
|
179
|
-
|
|
180
|
+
let remind = sessionStorage.getItem('remind');
|
|
181
|
+
!remind && (loginMsg = setTimeout(() => {
|
|
182
|
+
sessionStorage.setItem('remind', 1);
|
|
180
183
|
MessageBox.confirm(
|
|
181
184
|
response.data.rCode === 69
|
|
182
185
|
? '该账号在其他地方已登陆!'
|
|
@@ -219,13 +222,40 @@ const ajax = function ({
|
|
|
219
222
|
})
|
|
220
223
|
.catch(e => {
|
|
221
224
|
});
|
|
222
|
-
}, 1000);
|
|
225
|
+
}, 1000));
|
|
223
226
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
} else if (response.data.rCode === 61) {
|
|
228
|
+
clearTimeout(initAuth);
|
|
229
|
+
initAuth = setTimeout(() => {
|
|
230
|
+
MessageBox({
|
|
231
|
+
title: '请进行二次鉴权',
|
|
232
|
+
closeOnClickModal: false,
|
|
233
|
+
closeOnPressEscape: false,
|
|
234
|
+
showConfirmButton: false,
|
|
235
|
+
dangerouslyUseHTMLString: true,
|
|
236
|
+
scroll: false,
|
|
237
|
+
customClass: 'es-retrial-auth-msg',
|
|
238
|
+
render: (h, msgBox) => {
|
|
239
|
+
return h('es-retrial-auth', {
|
|
240
|
+
ref: 'auth',
|
|
241
|
+
props: {
|
|
242
|
+
group: response.data.results.retrialAuthGroupIds,
|
|
243
|
+
type: response.data.results.retrialAuthType,
|
|
244
|
+
msgBox: msgBox
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
},
|
|
248
|
+
callback: (res, obj) => {
|
|
249
|
+
obj.$children.forEach(item => {
|
|
250
|
+
item.clearTimeouts && item.clearTimeouts();
|
|
251
|
+
return;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}, 1000);
|
|
228
256
|
}
|
|
257
|
+
// eslint-disable-next-line no-undef
|
|
258
|
+
return Promise.resolve(response.data);
|
|
229
259
|
}
|
|
230
260
|
},
|
|
231
261
|
error => {
|