eoss-ui 0.5.68 → 0.5.70
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 +34 -36
- package/lib/button.js +34 -36
- package/lib/checkbox-group.js +70 -56
- package/lib/data-table-form.js +37 -39
- package/lib/data-table.js +73 -64
- package/lib/date-picker.js +34 -36
- package/lib/dialog.js +49 -51
- package/lib/eoss-ui.common.js +944 -728
- package/lib/flow-group.js +34 -36
- package/lib/flow-list.js +36 -38
- package/lib/flow.js +40 -42
- package/lib/form.js +410 -376
- package/lib/handle-user.js +36 -38
- package/lib/handler.js +34 -36
- package/lib/icon.js +12 -3593
- package/lib/icons.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +34 -36
- package/lib/input.js +65 -48
- package/lib/layout.js +2 -2
- package/lib/login.js +131 -114
- package/lib/main.js +80 -50
- package/lib/menu.js +91 -55
- package/lib/nav.js +66 -41
- package/lib/page.js +34 -36
- package/lib/player.js +36 -38
- package/lib/qr-code.js +34 -36
- package/lib/radio-group.js +69 -53
- package/lib/retrial-auth.js +34 -36
- package/lib/select-ganged.js +122 -106
- package/lib/select.js +112 -96
- package/lib/selector-panel.js +90 -76
- package/lib/selector.js +34 -36
- package/lib/sizer.js +36 -38
- package/lib/steps.js +60 -44
- package/lib/switch.js +34 -36
- package/lib/table-form.js +36 -38
- package/lib/tabs.js +34 -36
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +59 -42
- package/lib/tree-group.js +34 -36
- package/lib/tree.js +93 -77
- package/lib/upload.js +111 -94
- package/lib/utils/util.js +34 -36
- package/lib/wujie.js +34 -36
- package/lib/wxlogin.js +34 -36
- package/package.json +2 -2
- package/packages/checkbox-group/src/main.vue +7 -1
- package/packages/data-table/src/main.vue +13 -6
- package/packages/dialog/src/main.vue +2 -3
- package/packages/form/src/main.vue +11 -2
- package/packages/icon/src/main.vue +10 -3
- package/packages/icons/src/icon.json +1 -1
- package/packages/input/src/main.vue +8 -1
- package/packages/login/src/main.vue +36 -24
- package/packages/main/src/main.vue +28 -6
- package/packages/menu/src/main.vue +76 -65
- package/packages/nav/src/main.vue +23 -4
- package/packages/radio-group/src/main.vue +7 -1
- package/packages/select/src/main.vue +7 -1
- package/packages/select-ganged/src/main.vue +7 -1
- package/packages/selector-panel/src/main.vue +7 -1
- package/packages/steps/src/main.vue +9 -3
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/icon.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/common/var.scss +2 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/icon.scss +430 -426
- package/packages/theme-chalk/src/login.scss +2 -3
- package/packages/theme-chalk/src/main.scss +14 -5
- package/packages/theme-chalk/src/menu.scss +1 -1
- package/packages/theme-chalk/src/nav.scss +2 -2
- package/packages/tips/src/main.vue +8 -1
- package/packages/tree/src/main.vue +8 -2
- package/packages/upload/src/main.vue +11 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +34 -34
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
&::after {
|
|
56
56
|
content: '';
|
|
57
57
|
position: absolute;
|
|
58
|
-
left:
|
|
59
|
-
top:
|
|
58
|
+
left: 0;
|
|
59
|
+
top: 0;
|
|
60
60
|
border-color: transparent transparent #fff #fff;
|
|
61
61
|
border-style: solid;
|
|
62
62
|
border-width: 30px;
|
|
@@ -333,7 +333,6 @@
|
|
|
333
333
|
top: 20px;
|
|
334
334
|
}
|
|
335
335
|
.es-login-name {
|
|
336
|
-
width: 428px;
|
|
337
336
|
margin-bottom: 40px;
|
|
338
337
|
}
|
|
339
338
|
.es-login-main {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@extend .es-align-middle;
|
|
21
21
|
|
|
22
22
|
.es-main-logo {
|
|
23
|
-
height:
|
|
23
|
+
max-height: 60%;
|
|
24
24
|
margin-left: 20px;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
position: absolute;
|
|
52
52
|
left: 0;
|
|
53
53
|
right: 0;
|
|
54
|
-
height:
|
|
54
|
+
height: $--main-header-height;
|
|
55
55
|
}
|
|
56
56
|
.es-fourth-tabs {
|
|
57
57
|
border: 0;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.el-menu-item,
|
|
63
63
|
.es-submenu,
|
|
64
64
|
.el-submenu__title {
|
|
65
|
-
height:
|
|
65
|
+
height: $--main-header-height !important;
|
|
66
66
|
line-height: 1 !important;
|
|
67
67
|
color: rgba(255, 255, 255, 0.85) !important;
|
|
68
68
|
&:not(.is-disabled) {
|
|
@@ -110,9 +110,18 @@
|
|
|
110
110
|
height: $--main-header-height;
|
|
111
111
|
display: block;
|
|
112
112
|
width: 230px;
|
|
113
|
-
padding: 12px 0 12px 12px;
|
|
114
113
|
.es-main-logo {
|
|
115
|
-
height:
|
|
114
|
+
height: $--main-header-height;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.es-handle-user {
|
|
118
|
+
.es-user-info {
|
|
119
|
+
height: auto;
|
|
120
|
+
padding: 8px 4px 8px 0;
|
|
121
|
+
.es-user-name {
|
|
122
|
+
height: 30px;
|
|
123
|
+
line-height: 30px;
|
|
124
|
+
}
|
|
116
125
|
}
|
|
117
126
|
}
|
|
118
127
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
.es-nav-initial {
|
|
66
|
-
width:
|
|
66
|
+
width: $--nav-initial-width;
|
|
67
67
|
box-shadow: $--box-shadow-light;
|
|
68
68
|
position: relative;
|
|
69
69
|
z-index: 2;
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
position: relative;
|
|
82
82
|
.es-nav-main {
|
|
83
83
|
position: absolute;
|
|
84
|
-
left:
|
|
84
|
+
left: $--nav-initial-width;
|
|
85
85
|
top: 0;
|
|
86
86
|
bottom: 0;
|
|
87
87
|
}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
<script>
|
|
19
19
|
import { gethelpdoc } from 'eoss-ui/src/config/api.js';
|
|
20
|
+
import { debounce } from 'throttle-debounce';
|
|
20
21
|
import util from 'eoss-ui/src/utils/util.js';
|
|
21
22
|
export default {
|
|
22
23
|
name: 'EsTips',
|
|
@@ -100,13 +101,19 @@ export default {
|
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
},
|
|
104
|
+
beforeCreate() {
|
|
105
|
+
this.getTips = debounce(300, () => {
|
|
106
|
+
this.getTipsData();
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
created() {},
|
|
103
110
|
mounted() {
|
|
104
111
|
if (this.url && !this.contents && JSON.stringify(this.param) !== '{}') {
|
|
105
112
|
this.getTips();
|
|
106
113
|
}
|
|
107
114
|
},
|
|
108
115
|
methods: {
|
|
109
|
-
|
|
116
|
+
getTipsData() {
|
|
110
117
|
util
|
|
111
118
|
.ajax({
|
|
112
119
|
url: this.url,
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
|
|
89
89
|
<script>
|
|
90
90
|
import { getOrgMainTree } from 'eoss-ui/src/config/api.js';
|
|
91
|
+
import { debounce } from 'throttle-debounce';
|
|
91
92
|
import util from 'eoss-ui/src/utils/util';
|
|
92
93
|
export default {
|
|
93
94
|
name: 'EsTree',
|
|
@@ -366,11 +367,16 @@ export default {
|
|
|
366
367
|
}
|
|
367
368
|
}
|
|
368
369
|
},
|
|
370
|
+
beforeCreate() {
|
|
371
|
+
this.getTreeData = debounce(300, (param) => {
|
|
372
|
+
this.getTreeDatas(param);
|
|
373
|
+
});
|
|
374
|
+
},
|
|
369
375
|
created() {
|
|
370
376
|
if (Object.prototype.hasOwnProperty.call(this.search, 'value')) {
|
|
371
377
|
this.searchValue = this.search.value;
|
|
372
378
|
}
|
|
373
|
-
this.getTreeData();
|
|
379
|
+
this.getTreeData(param);
|
|
374
380
|
},
|
|
375
381
|
mounted() {},
|
|
376
382
|
methods: {
|
|
@@ -386,7 +392,7 @@ export default {
|
|
|
386
392
|
}
|
|
387
393
|
},
|
|
388
394
|
//获取树节点
|
|
389
|
-
|
|
395
|
+
getTreeDatas(param) {
|
|
390
396
|
this.loading = true;
|
|
391
397
|
let params = util.extend({}, this.param, this.where, param);
|
|
392
398
|
if (!this.url || !this.isRemote) return;
|
|
@@ -189,6 +189,7 @@ import {
|
|
|
189
189
|
delAdjunct,
|
|
190
190
|
downloadByAdjunctId
|
|
191
191
|
} from 'eoss-ui/src/config/api.js';
|
|
192
|
+
import { debounce } from 'throttle-debounce';
|
|
192
193
|
import util from 'eoss-ui/src/utils/util.js';
|
|
193
194
|
import picture from './picture.js';
|
|
194
195
|
import store from 'eoss-ui/src/utils/store';
|
|
@@ -675,6 +676,14 @@ export default {
|
|
|
675
676
|
val && this.getHeight();
|
|
676
677
|
}
|
|
677
678
|
},
|
|
679
|
+
beforeCreate() {
|
|
680
|
+
this.getFiles = debounce(300, (params) => {
|
|
681
|
+
this.getFileLists(params);
|
|
682
|
+
});
|
|
683
|
+
this.getAdjunctPropertie = debounce(300, () => {
|
|
684
|
+
this.getAdjunctProperties();
|
|
685
|
+
});
|
|
686
|
+
},
|
|
678
687
|
created() {
|
|
679
688
|
this.getAdjunctPropertie();
|
|
680
689
|
},
|
|
@@ -697,7 +706,7 @@ export default {
|
|
|
697
706
|
}
|
|
698
707
|
},
|
|
699
708
|
//根据code获取附件参数配置
|
|
700
|
-
|
|
709
|
+
getAdjunctProperties() {
|
|
701
710
|
if (this.code !== undefined) {
|
|
702
711
|
let config = store.get(this.code);
|
|
703
712
|
if (config) {
|
|
@@ -748,7 +757,7 @@ export default {
|
|
|
748
757
|
}
|
|
749
758
|
}
|
|
750
759
|
},
|
|
751
|
-
|
|
760
|
+
getFileLists(params) {
|
|
752
761
|
if (
|
|
753
762
|
!this.show ||
|
|
754
763
|
(this.fileList &&
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -49,17 +49,17 @@ import { MessageBox, Loading } from 'eoss-element';
|
|
|
49
49
|
* @param {Array} [encodes] - 需要对参数值进行encodeURIComponent编码的参数值名称
|
|
50
50
|
**/
|
|
51
51
|
// 请求
|
|
52
|
-
const pendingRequest = new Map();
|
|
53
|
-
function getRequestKey(config) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
function delPendingRequest(config) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
52
|
+
// const pendingRequest = new Map();
|
|
53
|
+
// function getRequestKey(config) {
|
|
54
|
+
// const { method, url, params, data } = config;
|
|
55
|
+
// return [method, url, qs.stringify(params), qs.stringify(data)].join('&');
|
|
56
|
+
// };
|
|
57
|
+
// function delPendingRequest(config) {
|
|
58
|
+
// let requestKey = getRequestKey(config);
|
|
59
|
+
// if (pendingRequest.has(requestKey)) {
|
|
60
|
+
// pendingRequest.delete(requestKey);
|
|
61
|
+
// }
|
|
62
|
+
// }
|
|
63
63
|
const ajax = function ({
|
|
64
64
|
headers,
|
|
65
65
|
method,
|
|
@@ -104,25 +104,25 @@ const ajax = function ({
|
|
|
104
104
|
config => {
|
|
105
105
|
config.headers.common = getStorage();
|
|
106
106
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
107
|
-
let requestKey = getRequestKey(config);
|
|
108
|
-
// 判断请求是否重复
|
|
109
|
-
if (pendingRequest.has(requestKey)) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
// 把请求信息,添加请求到map当中
|
|
117
|
-
// 生成取消方法
|
|
118
|
-
config.cancelToken =
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
107
|
+
// let requestKey = getRequestKey(config);
|
|
108
|
+
// // 判断请求是否重复
|
|
109
|
+
// if (pendingRequest.has(requestKey)) {
|
|
110
|
+
// // 取消上次请求
|
|
111
|
+
// let cancel = pendingRequest.get(requestKey);
|
|
112
|
+
// cancel();
|
|
113
|
+
// // 删除请求信息
|
|
114
|
+
// pendingRequest.delete(requestKey);
|
|
115
|
+
// }
|
|
116
|
+
// // 把请求信息,添加请求到map当中
|
|
117
|
+
// // 生成取消方法
|
|
118
|
+
// config.cancelToken =
|
|
119
|
+
// config.cancelToken ||
|
|
120
|
+
// new axios.CancelToken(cancel => {
|
|
121
|
+
// // 把取消方法添加到map
|
|
122
|
+
// if (!pendingRequest.has(requestKey)) {
|
|
123
|
+
// pendingRequest.set(requestKey, cancel);
|
|
124
|
+
// }
|
|
125
|
+
// });
|
|
126
126
|
return config;
|
|
127
127
|
},
|
|
128
128
|
err => {
|
|
@@ -132,7 +132,7 @@ const ajax = function ({
|
|
|
132
132
|
// 响应拦截
|
|
133
133
|
http.interceptors.response.use(
|
|
134
134
|
response => {
|
|
135
|
-
delPendingRequest(response.config);
|
|
135
|
+
// delPendingRequest(response.config);
|
|
136
136
|
loading && loading.close();
|
|
137
137
|
if (
|
|
138
138
|
response.headers.authorization &&
|
|
@@ -301,9 +301,9 @@ const ajax = function ({
|
|
|
301
301
|
},
|
|
302
302
|
error => {
|
|
303
303
|
loading && loading.close();
|
|
304
|
-
if (!axios.isCancel(error)) {
|
|
305
|
-
|
|
306
|
-
}
|
|
304
|
+
// if (!axios.isCancel(error)) {
|
|
305
|
+
// delPendingRequest(error.config || {});
|
|
306
|
+
// }
|
|
307
307
|
if (error && error.response) {
|
|
308
308
|
if (error.response.status) {
|
|
309
309
|
switch (error.response.status) {
|