eoss-ui 0.5.69 → 0.5.71
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 +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 +59 -59
- package/lib/date-picker.js +34 -36
- package/lib/dialog.js +49 -51
- package/lib/eoss-ui.common.js +665 -573
- 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/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 +54 -55
- package/lib/main.js +39 -41
- package/lib/menu.js +5 -4
- package/lib/nav.js +34 -36
- package/lib/page.js +34 -36
- package/lib/player.js +34 -36
- 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 +115 -105
- 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/index.css +1 -1
- package/lib/theme-chalk/login.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 +4 -2
- package/packages/dialog/src/main.vue +2 -3
- package/packages/form/src/main.vue +11 -2
- package/packages/input/src/main.vue +8 -1
- package/packages/login/src/main.vue +15 -11
- package/packages/menu/src/main.vue +3 -2
- package/packages/radio-group/src/main.vue +7 -1
- package/packages/select/src/main.vue +10 -10
- 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/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/src/login.scss +1 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-login-screen{width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover;position:relative;overflow:hidden}.es-login-screen .es-login-logo{height:58px;position:absolute;left:24px;top:24px}.es-login{width:540px;position:absolute;padding:0 12px}.es-login .es-login-name{display:block;margin-bottom:56px;position:relative;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.es-login .es-login-main{padding:60px
|
|
1
|
+
@charset "UTF-8";.es-login-screen{width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover;position:relative;overflow:hidden}.es-login-screen .es-login-logo{height:58px;position:absolute;left:24px;top:24px}.es-login{width:540px;position:absolute;padding:0 12px}.es-login .es-login-name{display:block;margin-bottom:56px;position:relative;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.es-login .es-login-main{padding:60px 70px;position:relative;border-radius:20px;background-size:100% 100%;background-color:#fff;background-repeat:no-repeat;-webkit-box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08);box-shadow:0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08)}.es-login .es-login-main .es-login-title-image{margin:-60px -80px 30px}.es-login .es-login-main .es-login-title-image .es-login-title-img{width:100%}.es-login .es-login-main .es-login-switch{position:absolute;right:10px;top:10px;overflow:hidden;z-index:99}.es-login .es-login-main .es-login-switch .es-icon{font-size:60px;color:#1890ff;cursor:pointer;position:relative;top:-1px}.es-login .es-login-main .es-login-switch .es-icon::after{content:'';position:absolute;left:0;top:0;border-color:transparent transparent #fff #fff;border-style:solid;border-width:30px}.es-login .es-login-main .es-login-switchs{position:absolute;bottom:0;left:0;right:0;text-align:center;padding-bottom:16px;color:#d9d9d9;z-index:99}.es-login .es-login-main .es-login-switchs .es-icon{font-size:24px;cursor:pointer}.es-login .es-login-main .es-login-switchs .es-icon+.es-icon{margin-left:12px}.es-login .es-login-main .es-login-switchs .es-icon.es-icon-active{color:#1890ff}.es-login .es-login-main .es-downloadSetup{font-size:14px;text-align:center;line-height:18px;padding-bottom:12px}.es-login .es-login-main .es-downloadSetup span{cursor:pointer;color:#333}.es-login .es-login-main .es-downloadSetup span:hover{color:#f9d900}.es-login .es-login-main .es-warning{color:#a90404;line-height:18px;font-size:16px;text-align:center;padding-bottom:12px}.es-login .es-login-title{color:#1890ff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:24px;font-size:24px;line-height:24px;font-weight:700;margin-bottom:48px;position:relative}.es-login .es-login-title::after,.es-login .es-login-title::before{content:'';height:1px;-webkit-box-flex:1;-ms-flex:1;flex:1;background-color:#eee}.es-login .es-login-title .es-login-title-content{margin:0 24px}.es-login .es-login-form{border-radius:20px;background-color:rgba(255,255,255,.3);position:relative;padding-bottom:20px}.es-login .es-login-form .el-form-item{margin-bottom:32px}.es-login .es-login-form .el-form-item__content{line-height:normal}.es-login .es-login-form .el-form-item__error{font-size:14px}.es-login .es-login-form .el-input__clear{font-size:18px}.es-login .es-login-form .el-input__inner{height:50px;font-size:18px;background-color:#f7f7f7;border-radius:10px;padding-left:52px}.es-login .es-login-form .el-input__inner::-webkit-input-placeholder{font-size:16px}.es-login .es-login-form .el-input__inner:-moz-placeholder{font-size:16px}.es-login .es-login-form .el-input__inner::-moz-placeholder{font-size:16px}.es-login .es-login-form .el-input__inner:-ms-input-placeholder{font-size:16px}.es-login .es-login-form .el-input__prefix{left:20px;line-height:52px}.es-login .es-login-form .es-label-user{font-size:18px;color:#333}.es-login .es-login-form .es-label-password{font-size:22px;color:#333;position:relative;top:2px}.es-login .es-login-form .es-label-image-code{padding-right:120px}.es-login .es-login-form .es-label-image-code .el-input__suffix{padding:5px;right:0}.es-login .es-login-form .es-label-image-code .es-img-code{cursor:pointer}.es-login .es-login-form .es-label-image-code .es-get-code{margin-top:-5px;margin-bottom:-5px;line-height:32px;font-size:16px;padding:8px 16px}.es-login .es-login-form .es-label-code-image{font-size:20px;color:#333;line-height:50px}.es-login .es-login-form .es-password-handle{height:22px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:-8px;margin-bottom:40px}.es-login .es-login-form .es-password-handle .el-checkbox__label{font-size:16px;font-weight:400;color:#333!important}.es-login .es-login-form .es-password-handle .el-checkbox__input .el-checkbox__inner{width:18px;height:18px;border-radius:10px}.es-login .es-login-form .es-password-handle .el-checkbox__input .el-checkbox__inner::after{border:2px solid #fff;border-left:0;border-top:0;height:8px;left:6px;top:2px}.es-login .es-login-form .es-password-handle .es-password-forget{font-size:16px;color:#999;text-align:right;float:right;cursor:pointer}.es-login .es-login-form .es-button-submit{width:100%;height:50px;font-size:20px;font-weight:500;border-radius:10px}.es-login .es-login-form.es-login-verify .es-login-title{margin-bottom:70px}.es-login .es-login-form.es-login-verify .el-form-item{margin-bottom:62px}.es-login .es-login-form .el-autocomplete{width:100%}.es-login .es-login-qrcode .es-login-down-app{font-size:14px;font-weight:400;text-align:center;line-height:20px}.es-login .es-login-qrcode .es-login-down-app .es-login-app-name{color:#a90404;padding:0 8px}.es-login .es-login-qrcode .es-qrcode-box,.es-login .es-login-qrcode .es-wx-qrcode-box{padding-top:25px;padding-bottom:25px}.es-login .es-login-qrcode .es-qrcode-img{border:1px solid #d9d9d9}.es-login.es-simple .es-login-form .el-input__inner{border-width:0 0 1px;border-radius:0;background-color:#fff;padding-left:32px;padding-right:16px;-webkit-box-shadow:none;box-shadow:none}.es-login.es-simple .es-login-form .el-input__inner::-webkit-input-placeholder{font-size:16px;color:#999}.es-login.es-simple .es-login-form .el-input__inner:-moz-placeholder{font-size:16px;color:#999}.es-login.es-simple .es-login-form .el-input__inner::-moz-placeholder{font-size:16px;color:#999}.es-login.es-simple .es-login-form .el-input__inner:-ms-input-placeholder{font-size:16px;color:#999}.es-login.es-simple .el-input__prefix{left:0}@media screen and (max-width:1600px){.es-login{width:428px;padding:0 8px}.es-login .es-login-logo{height:42px;left:20px;top:20px}.es-login .es-login-name{margin-bottom:40px}.es-login .es-login-main{padding:40px 44px}.es-login .es-login-main .es-login-switch{right:24px;top:24px}.es-login .es-login-main .es-login-switch .es-icon{font-size:60px}.es-login .es-login-main .es-login-switch .es-icon::after{left:-10px;border-width:30px}.es-login .es-login-main .es-warning{font-size:14px}.es-login .es-login-title{height:22px;margin-bottom:36px;font-size:18px;line-height:22px}.es-login .es-login-title .es-login-title-content{margin:0 12px}.es-login .es-login-form .el-input__inner{padding-left:40px;height:44px;line-height:44px;font-size:13px}.es-login .es-login-form .el-input__inner::-webkit-input-placeholder{font-size:13px}.es-login .es-login-form .el-input__prefix{left:16px;line-height:36px}.es-login .es-login-form .es-label-user{font-size:14px}.es-login .es-login-form .es-label-password{font-size:16px;top:0}.es-login .es-login-form .el-input__clear{font-size:14px;line-height:36px}.es-login .es-login-form .es-label-code-image{font-size:16px;line-height:36px}.es-login .es-login-form .el-form-item__error,.es-login .es-login-form .es-password-handle .el-checkbox__label,.es-login .es-login-form .es-password-handle .es-password-forget{font-size:12px}.es-login .es-login-form .es-label-image-code{padding-right:100px}.es-login .es-login-form .es-label-image-code .el-input__suffix{padding:2px}.es-login .es-login-form .es-label-image-code .el-input__suffix .es-get-code{margin-top:-2px;margin-bottom:-2px;padding:5px 6px}.es-login .es-login-form .es-label-image-code .es-img-code{height:32px}.es-login .es-login-form .es-password-handle{margin-top:0;margin-bottom:20px}.es-login .es-login-form .es-password-handle .el-checkbox__input .el-checkbox__inner{width:14px;height:14px;top:1px;padding-left:6px}.es-login .es-login-form .es-password-handle .el-checkbox__input .el-checkbox__inner::after{left:4px;top:0}.es-login .es-login-form .es-password-handle .el-checkbox__input.is-checked .el-checkbox__inner::after{-webkit-transform:rotate(45deg) scaleY(.9);transform:rotate(45deg) scaleY(.9)}.es-login .es-login-form .extra{margin-top:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.es-login .es-login-form .extra span{cursor:pointer;font-size:14px;color:#12278b}.es-login .es-login-form .es-button-submit{height:44px;line-height:44px;font-size:16px;padding:0 8px;border-radius:8px}.es-login .es-login-form.es-login-verify .es-login-title{margin-bottom:68px}.es-login .es-login-form.es-login-verify .el-form-item{margin-bottom:54px}.es-login .es-login-qrcode .es-login-title{margin-bottom:18px}.es-login .es-login-qrcode .es-qrcode-box,.es-login .es-login-qrcode .es-wx-qrcode-box{padding-top:16px;padding-bottom:16px}}.es-user-info .es-form-content{padding-right:30px}.es-user-info .es-form-button{padding-right:20px}.es-login-icp{display:-webkit-box;display:-ms-flexbox;display:flex;position:fixed;left:50%;bottom:20px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.es-login-icp .es-login-icp-item{display:block;white-space:nowrap;font-size:14px;font-weight:400}.es-login-icp .es-login-icp-item+.es-login-icp-item{margin-left:20px}.es-login-icp a:hover{text-decoration:underline}.rest-password-box{height:100%;position:relative}.rest-password-box.rest-password-cut{padding-top:60px}.rest-password-box .rest-menu-cut{position:absolute;left:0;top:0;right:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
|
|
@@ -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(500, () => {
|
|
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(500, (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(500, (params) => {
|
|
681
|
+
this.getFileLists(params);
|
|
682
|
+
});
|
|
683
|
+
this.getAdjunctPropertie = debounce(500, () => {
|
|
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) {
|