eoss-ui 0.5.33 → 0.5.35
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/CHANGELOG.md +929 -0
- package/lib/button-group.js +115 -95
- package/lib/button.js +115 -95
- package/lib/checkbox-group.js +118 -99
- package/lib/config/api.js +2 -0
- package/lib/data-table-form.js +116 -96
- package/lib/data-table.js +119 -99
- package/lib/date-picker.js +115 -95
- package/lib/dialog.js +123 -99
- package/lib/eoss-ui.common.js +628 -436
- package/lib/flow-group.js +184 -134
- package/lib/flow-list.js +119 -99
- package/lib/flow.js +163 -143
- package/lib/form.js +116 -96
- package/lib/handle-user.js +116 -96
- package/lib/handler.js +229 -161
- package/lib/index.js +1 -1
- package/lib/input-number.js +115 -95
- package/lib/input.js +115 -95
- package/lib/login.js +243 -126
- package/lib/main.js +149 -138
- package/lib/nav.js +115 -95
- package/lib/notify.js +103 -100
- package/lib/page.js +115 -95
- package/lib/player.js +115 -95
- package/lib/qr-code.js +115 -95
- package/lib/radio-group.js +116 -96
- package/lib/retrial-auth.js +118 -98
- package/lib/select-ganged.js +115 -95
- package/lib/select.js +116 -96
- package/lib/selector-panel.js +133 -113
- package/lib/selector.js +116 -96
- package/lib/sizer.js +117 -97
- package/lib/steps.js +115 -95
- package/lib/switch.js +115 -95
- package/lib/table-form.js +115 -95
- package/lib/tabs.js +115 -95
- package/lib/theme-chalk/handler.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/tips.js +116 -96
- package/lib/toolbar.js +24 -21
- package/lib/tree-group.js +115 -95
- package/lib/tree.js +116 -96
- package/lib/upload.js +125 -105
- package/lib/utils/util.js +17 -0
- package/lib/wujie.js +115 -95
- package/lib/wxlogin.js +115 -95
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +0 -1
- package/packages/dialog/src/main.vue +6 -2
- package/packages/flow-group/src/main.vue +40 -18
- package/packages/handler/src/main.vue +52 -32
- package/packages/login/src/main.vue +78 -10
- package/packages/login/src/resetPassword.vue +7 -5
- package/packages/main/src/main.vue +11 -26
- package/packages/main/src/userinfo.vue +1 -1
- package/packages/theme-chalk/lib/handler.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/handler.scss +3 -1
- package/packages/toolbar/src/main.vue +20 -20
- package/src/config/api.js +2 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +22 -2
|
@@ -65,8 +65,10 @@
|
|
|
65
65
|
.es-popper-sub-system {
|
|
66
66
|
background-color: $--color-primary-light-6 !important;
|
|
67
67
|
color: #ffff;
|
|
68
|
-
max-width: 346px;
|
|
69
68
|
min-width: unset;
|
|
69
|
+
&.is-width {
|
|
70
|
+
width: 346px;
|
|
71
|
+
}
|
|
70
72
|
.popper__arrow {
|
|
71
73
|
&::after {
|
|
72
74
|
border-bottom-color: $--color-primary-light-7 !important;
|
|
@@ -149,24 +149,25 @@ export default {
|
|
|
149
149
|
let filter = [];
|
|
150
150
|
|
|
151
151
|
this.contents.forEach((items) => {
|
|
152
|
-
|
|
152
|
+
let { config, type, reset, multiCondition, contents, ...other } = items;
|
|
153
|
+
if (type === 'text') {
|
|
153
154
|
text = [
|
|
154
155
|
h(
|
|
155
156
|
'div',
|
|
156
157
|
{ class: 'es-toolbar-text' },
|
|
157
|
-
Array.isArray(
|
|
158
|
-
?
|
|
158
|
+
Array.isArray(contents)
|
|
159
|
+
? contents.map((item) => {
|
|
159
160
|
return h('span', { class: 'es-text' }, [
|
|
160
161
|
h('span', { class: 'es-info-label' }, [`${item.label}:`]),
|
|
161
162
|
h('span', { class: 'es-info-value' }, [item.value])
|
|
162
163
|
]);
|
|
163
164
|
})
|
|
164
|
-
:
|
|
165
|
+
: contents
|
|
165
166
|
)
|
|
166
167
|
];
|
|
167
168
|
}
|
|
168
|
-
if (
|
|
169
|
-
|
|
169
|
+
if (type === 'button') {
|
|
170
|
+
contents.forEach((item) => {
|
|
170
171
|
if (!item.hide && (item.upload || (item.code && item.ownId))) {
|
|
171
172
|
buttons.push(
|
|
172
173
|
h('es-upload', {
|
|
@@ -201,7 +202,7 @@ export default {
|
|
|
201
202
|
}
|
|
202
203
|
});
|
|
203
204
|
}
|
|
204
|
-
if (
|
|
205
|
+
if (type === 'tabs') {
|
|
205
206
|
buttons = buttons.concat([
|
|
206
207
|
h(
|
|
207
208
|
'el-menu',
|
|
@@ -209,18 +210,18 @@ export default {
|
|
|
209
210
|
props: {
|
|
210
211
|
defaultActive: this.active
|
|
211
212
|
? this.active
|
|
212
|
-
:
|
|
213
|
-
?
|
|
213
|
+
: contents[0].name
|
|
214
|
+
? contents[0].name
|
|
214
215
|
: '0',
|
|
215
216
|
mode: 'horizontal'
|
|
216
217
|
},
|
|
217
218
|
on: {
|
|
218
219
|
select: (res) => {
|
|
219
|
-
this.handleSelect(
|
|
220
|
+
this.handleSelect(contents[parseInt(res, 10)], res);
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
223
|
},
|
|
223
|
-
|
|
224
|
+
contents.map((item, index) => {
|
|
224
225
|
return h(
|
|
225
226
|
'el-menu-item',
|
|
226
227
|
{
|
|
@@ -234,8 +235,7 @@ export default {
|
|
|
234
235
|
)
|
|
235
236
|
]);
|
|
236
237
|
}
|
|
237
|
-
|
|
238
|
-
if (items.type === 'search') {
|
|
238
|
+
if (type === 'search') {
|
|
239
239
|
let itemClass = {
|
|
240
240
|
radio: 'es-toolbar-item-radio',
|
|
241
241
|
checkbox: 'es-toolbar-item-checkbox',
|
|
@@ -254,18 +254,18 @@ export default {
|
|
|
254
254
|
labelWidth: this.labelWidth,
|
|
255
255
|
closeDialog: false,
|
|
256
256
|
model: this.searchData,
|
|
257
|
-
contents:
|
|
257
|
+
contents: contents,
|
|
258
258
|
itemClass: itemClass,
|
|
259
259
|
inline: true,
|
|
260
260
|
search: true,
|
|
261
|
-
isReset:
|
|
261
|
+
isReset: reset,
|
|
262
262
|
showButton: this.showFormBtn,
|
|
263
263
|
...other,
|
|
264
264
|
...(config || {})
|
|
265
265
|
},
|
|
266
266
|
on: {
|
|
267
267
|
submit: (data) => {
|
|
268
|
-
this.hanleSearch(data,
|
|
268
|
+
this.hanleSearch(data, multiCondition);
|
|
269
269
|
},
|
|
270
270
|
reset: this.hanleReset,
|
|
271
271
|
change: this.handleChange
|
|
@@ -273,12 +273,12 @@ export default {
|
|
|
273
273
|
})
|
|
274
274
|
];
|
|
275
275
|
}
|
|
276
|
-
if (
|
|
276
|
+
if (type === 'info') {
|
|
277
277
|
info = [
|
|
278
278
|
h(
|
|
279
279
|
'div',
|
|
280
280
|
{ class: 'es-toolbar-info' },
|
|
281
|
-
|
|
281
|
+
contents.map((item) => {
|
|
282
282
|
return h('span', { class: 'es-info' }, [
|
|
283
283
|
h('span', { class: 'es-info-label' }, [`${item.label}:`]),
|
|
284
284
|
h('span', { class: 'es-info-value' }, [item.value])
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
287
287
|
)
|
|
288
288
|
];
|
|
289
289
|
}
|
|
290
|
-
if (
|
|
290
|
+
if (type === 'filter') {
|
|
291
291
|
info.push(
|
|
292
292
|
h(
|
|
293
293
|
'el-button',
|
|
@@ -340,7 +340,7 @@ export default {
|
|
|
340
340
|
size: 'medium',
|
|
341
341
|
closeDialog: false,
|
|
342
342
|
model: this.advancedData,
|
|
343
|
-
contents:
|
|
343
|
+
contents: contents
|
|
344
344
|
},
|
|
345
345
|
on: {
|
|
346
346
|
submit: this.hanleSubmit,
|
package/src/config/api.js
CHANGED
|
@@ -22,6 +22,8 @@ export const initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化
|
|
|
22
22
|
export const getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
|
|
23
23
|
export const scanCodeRetrialAuth = '/sso2/retrialAuth/scanCodeRetrialAuth';// 二维码扫码验证(二级权限验证)
|
|
24
24
|
export const codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth';// 二级身份验证-验证码验证
|
|
25
|
+
export const doAssistanceQrLogin = '/sso2/signIn/auth/doAssistanceQrLogin';// 二级身份验证-验证码验证
|
|
26
|
+
|
|
25
27
|
// 框架
|
|
26
28
|
export const mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
|
|
27
29
|
export const initUserSet = '/main2/main/initUserSet'; // 获取用户信息
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
/* eslint-disable indent */
|
|
9
9
|
const sm2 = require('sm-crypto').sm2;
|
|
10
|
-
import { authCenter } from '../config/api';
|
|
10
|
+
import { authCenter, mainConfig } from '../config/api';
|
|
11
11
|
import axios from 'axios';
|
|
12
12
|
import qs from 'qs';
|
|
13
13
|
import JSONbig from 'json-bigint';
|
|
@@ -1206,6 +1206,7 @@ const getLength = function (text) {
|
|
|
1206
1206
|
* @desc:转换明度
|
|
1207
1207
|
* @author huangbo
|
|
1208
1208
|
* @date 2022年5月7日
|
|
1209
|
+
* @return {string,array} 元素类名或者id
|
|
1209
1210
|
**/
|
|
1210
1211
|
const getLightness = function ($v, $i, $isLight) {
|
|
1211
1212
|
let $value = $isLight
|
|
@@ -1215,6 +1216,24 @@ const getLightness = function ($v, $i, $isLight) {
|
|
|
1215
1216
|
return toFixed($value, 2);
|
|
1216
1217
|
};
|
|
1217
1218
|
|
|
1219
|
+
/**
|
|
1220
|
+
* getMainConfig
|
|
1221
|
+
* @desc 获取系统配置
|
|
1222
|
+
* @author huangbo
|
|
1223
|
+
* @date 2022年5月7日
|
|
1224
|
+
* @param {function} callback - 回调函数
|
|
1225
|
+
**/
|
|
1226
|
+
const getMainConfig = function (callback) {
|
|
1227
|
+
ajax({ url: mainConfig })
|
|
1228
|
+
.then((res) => {
|
|
1229
|
+
if (res && res.rCode === 0) {
|
|
1230
|
+
callback(res.results);
|
|
1231
|
+
}
|
|
1232
|
+
})
|
|
1233
|
+
.catch(() => {
|
|
1234
|
+
});
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1218
1237
|
/**
|
|
1219
1238
|
* getMinute
|
|
1220
1239
|
* @desc 获取分钟
|
|
@@ -1857,7 +1876,7 @@ const indexOfObj = function (arry, target, key) {
|
|
|
1857
1876
|
* @date 2022年5月7日
|
|
1858
1877
|
* @param {Object} [obj] -
|
|
1859
1878
|
**/
|
|
1860
|
-
const isExist = function(obj) {
|
|
1879
|
+
const isExist = function (obj) {
|
|
1861
1880
|
return obj !== undefined && obj !== null && obj !== '';
|
|
1862
1881
|
};
|
|
1863
1882
|
|
|
@@ -2868,6 +2887,7 @@ export default {
|
|
|
2868
2887
|
getHour,
|
|
2869
2888
|
getWeekNumber,
|
|
2870
2889
|
getLength,
|
|
2890
|
+
getMainConfig,
|
|
2871
2891
|
getMinute,
|
|
2872
2892
|
getMonth,
|
|
2873
2893
|
getObjectType,
|