eoss-ui 0.4.52 → 0.4.54
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 +3 -0
- package/lib/button.js +3 -0
- package/lib/checkbox-group.js +3 -0
- package/lib/data-table-form.js +3 -0
- package/lib/data-table.js +3 -0
- package/lib/date-picker.js +3 -0
- package/lib/dialog.js +3 -0
- package/lib/eoss-ui.common.js +79 -117
- package/lib/flow-group.js +3 -0
- package/lib/flow-list.js +3 -0
- package/lib/flow.js +49 -94
- package/lib/form.js +3 -0
- package/lib/handle-user.js +3 -0
- package/lib/handler.js +3 -0
- package/lib/index.js +1 -1
- package/lib/input-number.js +3 -0
- package/lib/input.js +3 -0
- package/lib/login.js +18 -12
- package/lib/main.js +3 -0
- package/lib/mainComp.js +3 -0
- package/lib/nav.js +3 -0
- package/lib/page.js +3 -0
- package/lib/player.js +3 -0
- package/lib/qr-code.js +3 -0
- package/lib/radio-group.js +3 -0
- package/lib/select-ganged.js +3 -0
- package/lib/select.js +3 -0
- package/lib/selector-panel.js +3 -0
- package/lib/selector.js +3 -0
- package/lib/sizer.js +3 -0
- package/lib/steps.js +3 -0
- package/lib/switch.js +3 -0
- package/lib/table-form.js +3 -0
- package/lib/tabs.js +3 -0
- package/lib/tips.js +3 -0
- package/lib/tree-group.js +3 -0
- package/lib/tree.js +3 -0
- package/lib/upload.js +3 -0
- package/lib/utils/util.js +3 -0
- package/lib/wujie.js +3 -0
- package/lib/wxlogin.js +3 -0
- package/package.json +1 -1
- package/packages/flow/src/main.vue +7 -9
- package/packages/flow/src/startTaskRead.vue +2 -6
- package/packages/login/src/main.vue +11 -9
- package/src/index.js +1 -1
- package/src/utils/util.js +2 -0
|
@@ -213,6 +213,7 @@
|
|
|
213
213
|
/>
|
|
214
214
|
</el-form-item>
|
|
215
215
|
<el-form-item
|
|
216
|
+
v-if="isNextUser"
|
|
216
217
|
:prop="isShowNextUser ? 'nextUserId' : 'nextOrgId'"
|
|
217
218
|
:label="isShowNextUser ? '下步办理人' : '办理对象'"
|
|
218
219
|
>
|
|
@@ -242,7 +243,7 @@
|
|
|
242
243
|
:tabs="nextUserTabs"
|
|
243
244
|
/>
|
|
244
245
|
</el-form-item>
|
|
245
|
-
<el-form-item
|
|
246
|
+
<!-- <el-form-item
|
|
246
247
|
v-if="isHideCurrentOrg"
|
|
247
248
|
prop="nextCurrentOrgObj"
|
|
248
249
|
:label="currentOrgName ? currentOrgName : '本单位'"
|
|
@@ -256,7 +257,7 @@
|
|
|
256
257
|
:types="['department', 'employee']"
|
|
257
258
|
:params="{ filid: userModel.orgId }"
|
|
258
259
|
/>
|
|
259
|
-
</el-form-item>
|
|
260
|
+
</el-form-item> -->
|
|
260
261
|
<TimeLimit
|
|
261
262
|
v-if="nodeType !== 0 && isLimitedTimeHandling === 1"
|
|
262
263
|
:newsList="newsList"
|
|
@@ -598,7 +599,6 @@ import {
|
|
|
598
599
|
taskHandleHtml
|
|
599
600
|
} from 'eoss-ui/src/config/api';
|
|
600
601
|
import util from 'eoss-ui/src/utils/util';
|
|
601
|
-
import qs from 'qs';
|
|
602
602
|
export default {
|
|
603
603
|
name: 'EsFlow',
|
|
604
604
|
componentName: 'EsFlow',
|
|
@@ -970,13 +970,10 @@ export default {
|
|
|
970
970
|
url: taskReadHtml,
|
|
971
971
|
params: { taskAction: 'complete' },
|
|
972
972
|
headers: {
|
|
973
|
-
Accept: 'application/json,text/plain'
|
|
974
|
-
'Content-Type':
|
|
975
|
-
' application/x-www-form-urlencoded; charset=UTF-8'
|
|
973
|
+
Accept: 'application/json,text/plain'
|
|
976
974
|
},
|
|
977
975
|
method: 'post',
|
|
978
|
-
|
|
979
|
-
data: qs.stringify(params)
|
|
976
|
+
data: params
|
|
980
977
|
})
|
|
981
978
|
.then((res) => {
|
|
982
979
|
const { status, message } = res;
|
|
@@ -1969,6 +1966,7 @@ export default {
|
|
|
1969
1966
|
this.getNodeInfo();
|
|
1970
1967
|
} else {
|
|
1971
1968
|
if (res.status === 'taskCompleted') {
|
|
1969
|
+
this.$emit('shrink', true)
|
|
1972
1970
|
this.shrinkAbled = true;
|
|
1973
1971
|
this.$message.warning(res.message || '系统错误,请联系管理员!');
|
|
1974
1972
|
} else {
|
|
@@ -2149,7 +2147,7 @@ export default {
|
|
|
2149
2147
|
this.nextNode.isRemoveSign != '1' &&
|
|
2150
2148
|
this.isSpecial &&
|
|
2151
2149
|
!this.isReject &&
|
|
2152
|
-
this.nodeInfos.length != 0
|
|
2150
|
+
this.nodeInfos.length != 0 && this.isNextUser
|
|
2153
2151
|
) {
|
|
2154
2152
|
if (this.isShowNextUser) {
|
|
2155
2153
|
if (
|
|
@@ -152,7 +152,6 @@ import {
|
|
|
152
152
|
} from 'eoss-ui/src/config/api';
|
|
153
153
|
import util from 'eoss-ui/src/utils/util';
|
|
154
154
|
import SelectUser from './selectUser.vue';
|
|
155
|
-
import qs from 'qs';
|
|
156
155
|
export default {
|
|
157
156
|
name: 'StartTaskRead',
|
|
158
157
|
components: {
|
|
@@ -497,13 +496,10 @@ export default {
|
|
|
497
496
|
url: taskReadHtml,
|
|
498
497
|
params: { taskAction: this.type },
|
|
499
498
|
headers: {
|
|
500
|
-
Accept: 'application/json,text/plain'
|
|
501
|
-
'Content-Type':
|
|
502
|
-
' application/x-www-form-urlencoded; charset=UTF-8'
|
|
499
|
+
Accept: 'application/json,text/plain'
|
|
503
500
|
},
|
|
504
501
|
method: 'post',
|
|
505
|
-
|
|
506
|
-
data: qs.stringify(params)
|
|
502
|
+
data: params
|
|
507
503
|
})
|
|
508
504
|
.then((res) => {
|
|
509
505
|
const { message, status } = res;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
></i>
|
|
46
46
|
</div>
|
|
47
47
|
<div class="es-login-form-box">
|
|
48
|
-
<template v-if="isShow(active) && (active == 0 || active == 2)">
|
|
48
|
+
<template v-if="isShow(active) && (active == 0 || active == 2 ||active == 12)">
|
|
49
49
|
<el-form ref="login" class="es-login-form" :model="formData">
|
|
50
50
|
<div class="es-login-title">
|
|
51
51
|
<span class="es-login-title-content">{{ title }}</span>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<el-button
|
|
111
111
|
class="es-get-code"
|
|
112
112
|
type="primary"
|
|
113
|
-
v-show="active == 2 && showVerifyCode"
|
|
113
|
+
v-show="(active == 2 || active == 12) && showVerifyCode"
|
|
114
114
|
:disabled="disabled"
|
|
115
115
|
@click.stop="getCode"
|
|
116
116
|
>{{ btnText }}</el-button
|
|
@@ -587,7 +587,8 @@ export default {
|
|
|
587
587
|
6: { type: '6', icon: 'es-icon-duanxin', name: '短信登录' },
|
|
588
588
|
7: { type: '7', icon: 'es-icon-dingding', name: '钉钉扫码登录' },
|
|
589
589
|
9: { type: '9', icon: 'es-icon-weixin', name: '微信扫码登录' },
|
|
590
|
-
11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' }
|
|
590
|
+
11: { type: '11', icon: 'es-icon-youxiang', name: '邮箱登录' },
|
|
591
|
+
12: { type: '12', icon: 'es-icon-zhuanhuan', name: '双因素登录' }
|
|
591
592
|
}
|
|
592
593
|
: {
|
|
593
594
|
0: { type: '0', icon: 'es-icon-jianpan', name: '账号登录' },
|
|
@@ -601,7 +602,8 @@ export default {
|
|
|
601
602
|
type: '11',
|
|
602
603
|
icon: 'es-icon-wodeyouxiang',
|
|
603
604
|
name: '邮箱登录'
|
|
604
|
-
}
|
|
605
|
+
},
|
|
606
|
+
12: { type: '12', icon: 'es-icon-zhuanhuan', name: '双因素登录' }
|
|
605
607
|
};
|
|
606
608
|
},
|
|
607
609
|
icons() {
|
|
@@ -913,7 +915,7 @@ export default {
|
|
|
913
915
|
this.app = res.appName || res.subsystemName;
|
|
914
916
|
this.qrimg = res.qrimg || res.qrImg;
|
|
915
917
|
this.loginModel = res.loginModel;
|
|
916
|
-
// this.loginModel = '0,3,11,6,9,
|
|
918
|
+
// this.loginModel = '0,3,11,6,9,12';
|
|
917
919
|
this.loginBackgroundImg = res.loginBackgroundUrl
|
|
918
920
|
? res.loginBackgroundUrl.split(',')
|
|
919
921
|
: null;
|
|
@@ -978,7 +980,7 @@ export default {
|
|
|
978
980
|
}
|
|
979
981
|
let data = {};
|
|
980
982
|
let flag = false;
|
|
981
|
-
if (this.active == 2) {
|
|
983
|
+
if (this.active == 2 || this.active == 12) {
|
|
982
984
|
if (!this.formData.username) {
|
|
983
985
|
this.$refs.login.validateField('username');
|
|
984
986
|
return false;
|
|
@@ -1025,7 +1027,7 @@ export default {
|
|
|
1025
1027
|
.ajax({
|
|
1026
1028
|
method: 'post',
|
|
1027
1029
|
url:
|
|
1028
|
-
this.active ==
|
|
1030
|
+
this.active == 12 ? this.getTwoFactorLoginCode : this.getLoginCode,
|
|
1029
1031
|
data: data
|
|
1030
1032
|
})
|
|
1031
1033
|
.then((res) => {
|
|
@@ -1069,7 +1071,7 @@ export default {
|
|
|
1069
1071
|
identifyingCode: this.formData.identifyingCode,
|
|
1070
1072
|
identifyingId: this.identifyingId
|
|
1071
1073
|
}
|
|
1072
|
-
: this.active == '
|
|
1074
|
+
: this.active == '12'
|
|
1073
1075
|
? {
|
|
1074
1076
|
username: this.formData.username,
|
|
1075
1077
|
password:
|
|
@@ -1120,7 +1122,7 @@ export default {
|
|
|
1120
1122
|
url:
|
|
1121
1123
|
this.active == '0'
|
|
1122
1124
|
? this.actionUrl
|
|
1123
|
-
: this.active == '
|
|
1125
|
+
: this.active == '12'
|
|
1124
1126
|
? this.doTwoFactorLogin
|
|
1125
1127
|
: this.doCodeLogin,
|
|
1126
1128
|
data: extUserBindHandleId
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -94,6 +94,8 @@ const ajax = function ({
|
|
|
94
94
|
// 请求拦截
|
|
95
95
|
http.interceptors.request.use(
|
|
96
96
|
config => {
|
|
97
|
+
config.header &&
|
|
98
|
+
(config.headers = { ...config.headers, ...config.header });
|
|
97
99
|
config.headers.common = getStorage();
|
|
98
100
|
// 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
|
|
99
101
|
let requestKey = getRequestKey(config);
|