eoss-ui 0.7.21 → 0.7.23
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 +5 -4
- package/lib/button.js +5 -4
- package/lib/calogin.js +5 -4
- package/lib/checkbox-group.js +5 -4
- package/lib/data-table-form.js +5 -4
- package/lib/data-table.js +5 -4
- package/lib/date-picker.js +5 -4
- package/lib/dialog.js +5 -4
- package/lib/eoss-ui.common.js +47 -31
- package/lib/flow-group.js +5 -4
- package/lib/flow-list.js +5 -4
- package/lib/flow.js +17 -11
- package/lib/form.js +5 -4
- package/lib/handle-user.js +5 -4
- package/lib/handler.js +5 -4
- package/lib/icon.js +5 -4
- package/lib/index.js +1 -1
- package/lib/input-number.js +5 -4
- package/lib/input.js +5 -4
- package/lib/login.js +19 -8
- package/lib/main.js +15 -14
- package/lib/nav.js +5 -4
- package/lib/page.js +5 -4
- package/lib/pagination.js +5 -4
- package/lib/player.js +5 -4
- package/lib/qr-code.js +5 -4
- package/lib/radio-group.js +5 -4
- package/lib/retrial-auth.js +5 -4
- package/lib/select-ganged.js +5 -4
- package/lib/select.js +5 -4
- package/lib/selector-panel.js +5 -4
- package/lib/selector.js +5 -4
- package/lib/sizer.js +5 -4
- package/lib/steps.js +5 -4
- package/lib/switch.js +5 -4
- package/lib/table-form.js +5 -4
- package/lib/tabs.js +5 -4
- package/lib/tips.js +5 -4
- package/lib/tree-group.js +5 -4
- package/lib/tree.js +5 -4
- package/lib/upload.js +5 -4
- package/lib/utils/util.js +5 -4
- package/lib/wujie.js +5 -4
- package/lib/wxlogin.js +5 -4
- package/package.json +1 -1
- package/packages/flow/src/processForm.vue +4 -0
- package/packages/login/src/main.vue +20 -2
- package/packages/main/src/simplicity/index.vue +2 -2
- package/src/index.js +1 -1
- package/src/utils/util.js +6 -5
package/lib/utils/util.js
CHANGED
|
@@ -159,16 +159,17 @@ var ajax = function ajax(_ref) {
|
|
|
159
159
|
http.interceptors.response.use(function (response) {
|
|
160
160
|
// delPendingRequest(response.config);
|
|
161
161
|
loading && loading.close();
|
|
162
|
-
if (response.headers.authorization
|
|
163
|
-
setStorage({
|
|
162
|
+
if (response.headers.authorization) {
|
|
163
|
+
response.headers.authorization !== getStorage('token') && setStorage({
|
|
164
|
+
|
|
164
165
|
key: ['token', 'Authorization'],
|
|
165
166
|
value: response.headers.authorization
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
169
|
var ssId = response.headers.ssId || response.headers.Ssid || response.headers.ssid;
|
|
169
170
|
|
|
170
|
-
if (ssId
|
|
171
|
-
setStorage({
|
|
171
|
+
if (ssId) {
|
|
172
|
+
ssId !== getStorage('ssId') && setStorage({
|
|
172
173
|
key: 'ssId',
|
|
173
174
|
value: ssId
|
|
174
175
|
});
|
package/lib/wujie.js
CHANGED
|
@@ -243,16 +243,17 @@ var ajax = function ajax(_ref) {
|
|
|
243
243
|
http.interceptors.response.use(function (response) {
|
|
244
244
|
// delPendingRequest(response.config);
|
|
245
245
|
loading && loading.close();
|
|
246
|
-
if (response.headers.authorization
|
|
247
|
-
setStorage({
|
|
246
|
+
if (response.headers.authorization) {
|
|
247
|
+
response.headers.authorization !== getStorage('token') && setStorage({
|
|
248
|
+
|
|
248
249
|
key: ['token', 'Authorization'],
|
|
249
250
|
value: response.headers.authorization
|
|
250
251
|
});
|
|
251
252
|
}
|
|
252
253
|
var ssId = response.headers.ssId || response.headers.Ssid || response.headers.ssid;
|
|
253
254
|
|
|
254
|
-
if (ssId
|
|
255
|
-
setStorage({
|
|
255
|
+
if (ssId) {
|
|
256
|
+
ssId !== getStorage('ssId') && setStorage({
|
|
256
257
|
key: 'ssId',
|
|
257
258
|
value: ssId
|
|
258
259
|
});
|
package/lib/wxlogin.js
CHANGED
|
@@ -243,16 +243,17 @@ var ajax = function ajax(_ref) {
|
|
|
243
243
|
http.interceptors.response.use(function (response) {
|
|
244
244
|
// delPendingRequest(response.config);
|
|
245
245
|
loading && loading.close();
|
|
246
|
-
if (response.headers.authorization
|
|
247
|
-
setStorage({
|
|
246
|
+
if (response.headers.authorization) {
|
|
247
|
+
response.headers.authorization !== getStorage('token') && setStorage({
|
|
248
|
+
|
|
248
249
|
key: ['token', 'Authorization'],
|
|
249
250
|
value: response.headers.authorization
|
|
250
251
|
});
|
|
251
252
|
}
|
|
252
253
|
var ssId = response.headers.ssId || response.headers.Ssid || response.headers.ssid;
|
|
253
254
|
|
|
254
|
-
if (ssId
|
|
255
|
-
setStorage({
|
|
255
|
+
if (ssId) {
|
|
256
|
+
ssId !== getStorage('ssId') && setStorage({
|
|
256
257
|
key: 'ssId',
|
|
257
258
|
value: ssId
|
|
258
259
|
});
|
package/package.json
CHANGED
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
:radioList="radioList"
|
|
145
145
|
:multiple="multiple"
|
|
146
146
|
:isCustomUser="!isShowNextUser ? 1 : isCustomUser"
|
|
147
|
+
:isCurrentNodeForbiddenChangeCandidate="isCurrentNodeForbiddenChangeCandidate"
|
|
147
148
|
:options="options"
|
|
148
149
|
:presetEdit="presetEdit"
|
|
149
150
|
:mix="multiple"
|
|
@@ -483,6 +484,7 @@ export default {
|
|
|
483
484
|
return {
|
|
484
485
|
loading: false,
|
|
485
486
|
isCustomUser: 0,
|
|
487
|
+
isCurrentNodeForbiddenChangeCandidate:0,
|
|
486
488
|
allLoading: null,
|
|
487
489
|
selectUser: false,
|
|
488
490
|
multiple: false,
|
|
@@ -1050,6 +1052,8 @@ export default {
|
|
|
1050
1052
|
this.allLoading.close();
|
|
1051
1053
|
}
|
|
1052
1054
|
if (status === 'success') {
|
|
1055
|
+
this.isCurrentNodeForbiddenChangeCandidate =
|
|
1056
|
+
nodeExtAttr.isCurrentNodeForbiddenChangeCandidate;
|
|
1053
1057
|
this.nextNode.userInfo = nextUserList;
|
|
1054
1058
|
this.countersignaturetypeCode = countersignaturetypeCode;
|
|
1055
1059
|
this.nextNode.countersignaturetypeText = countersignaturetypeText;
|
|
@@ -1766,9 +1766,27 @@ export default {
|
|
|
1766
1766
|
.then((res) => {
|
|
1767
1767
|
if (res.rCode === 0) {
|
|
1768
1768
|
const results = res.results;
|
|
1769
|
-
if (results.statusCode === 0) {
|
|
1769
|
+
if (results.statusCode === 0 || results.statusCode === 2) {
|
|
1770
|
+
// statusCode为2时 代表密码过期,也应执行handleResults
|
|
1770
1771
|
clearTimeout(this.interval);
|
|
1771
|
-
|
|
1772
|
+
if (results.statusCode === 2) {
|
|
1773
|
+
this.$alert(
|
|
1774
|
+
results.msg
|
|
1775
|
+
? results.msg
|
|
1776
|
+
: '您的初始密码已过期,请及时修改!',
|
|
1777
|
+
'提示',
|
|
1778
|
+
{
|
|
1779
|
+
confirmButtonText: '确定',
|
|
1780
|
+
type: 'warning'
|
|
1781
|
+
}
|
|
1782
|
+
)
|
|
1783
|
+
.then(() => {
|
|
1784
|
+
this.handleResults(results, 3);
|
|
1785
|
+
})
|
|
1786
|
+
.catch((e) => {});
|
|
1787
|
+
} else {
|
|
1788
|
+
this.handleResults(results, 3);
|
|
1789
|
+
}
|
|
1772
1790
|
} else {
|
|
1773
1791
|
this.loginInfo(true);
|
|
1774
1792
|
}
|
|
@@ -2076,11 +2076,11 @@ export default {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
if (close) {
|
|
2078
2078
|
if (close === old) {
|
|
2079
|
-
this.tabs.splice(n,
|
|
2079
|
+
this.tabs.splice(n, 1);
|
|
2080
2080
|
} else {
|
|
2081
2081
|
let d = util.indexOfObj(this.tabs, close, 'id,code,appCode');
|
|
2082
2082
|
if (d > -1) {
|
|
2083
|
-
this.tabs.splice(d,
|
|
2083
|
+
this.tabs.splice(d, 1);
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -125,18 +125,19 @@ const ajax = function ({
|
|
|
125
125
|
// delPendingRequest(response.config);
|
|
126
126
|
loading && loading.close();
|
|
127
127
|
if (
|
|
128
|
-
response.headers.authorization
|
|
129
|
-
|
|
128
|
+
response.headers.authorization
|
|
129
|
+
|
|
130
130
|
) {
|
|
131
|
-
setStorage({
|
|
131
|
+
response.headers.authorization !== getStorage('token') && setStorage({
|
|
132
|
+
|
|
132
133
|
key: ['token', 'Authorization'],
|
|
133
134
|
value: response.headers.authorization
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
137
|
const ssId = response.headers.ssId || response.headers.Ssid || response.headers.ssid;
|
|
137
138
|
|
|
138
|
-
if (ssId
|
|
139
|
-
|
|
139
|
+
if (ssId) {
|
|
140
|
+
ssId !== getStorage('ssId') && setStorage({
|
|
140
141
|
key: 'ssId',
|
|
141
142
|
value: ssId
|
|
142
143
|
});
|