eoss-ui 0.5.63 → 0.5.64
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 +4 -2
- package/lib/button.js +4 -2
- package/lib/checkbox-group.js +4 -2
- package/lib/data-table-form.js +4 -2
- package/lib/data-table.js +4 -2
- package/lib/date-picker.js +4 -2
- package/lib/dialog.js +4 -2
- package/lib/eoss-ui.common.js +202 -168
- package/lib/flow-group.js +4 -2
- package/lib/flow-list.js +4 -2
- package/lib/flow.js +153 -123
- package/lib/form.js +9 -4
- package/lib/handle-user.js +4 -2
- package/lib/handler.js +4 -2
- package/lib/icon.js +4 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +4 -2
- package/lib/input.js +4 -2
- package/lib/login.js +14 -6
- package/lib/main.js +8 -9
- package/lib/nav.js +4 -2
- package/lib/page.js +4 -2
- package/lib/player.js +4 -2
- package/lib/qr-code.js +13 -13
- package/lib/radio-group.js +4 -2
- package/lib/retrial-auth.js +4 -2
- package/lib/select-ganged.js +4 -2
- package/lib/select.js +4 -2
- package/lib/selector-panel.js +4 -2
- package/lib/selector.js +4 -2
- package/lib/sizer.js +4 -2
- package/lib/steps.js +4 -2
- package/lib/switch.js +4 -2
- package/lib/table-form.js +4 -2
- package/lib/tabs.js +4 -2
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/qr-code.css +1 -1
- package/lib/tips.js +4 -2
- package/lib/tree-group.js +4 -2
- package/lib/tree.js +4 -2
- package/lib/upload.js +4 -2
- package/lib/utils/util.js +4 -2
- package/lib/wujie.js +4 -2
- package/lib/wxlogin.js +4 -2
- package/package.json +1 -1
- package/packages/flow/src/processForm.vue +32 -4
- package/packages/form/src/main.vue +3 -0
- package/packages/login/src/main.vue +4 -1
- package/packages/main/src/main.vue +6 -5
- package/packages/qr-code/src/main.vue +10 -5
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/qr-code.css +1 -1
- package/packages/theme-chalk/src/qr-code.scss +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +4 -1
- package/CHANGELOG.md +0 -929
|
@@ -1 +1 @@
|
|
|
1
|
-
.es-qrcode-box{position:relative;border-radius:10px;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-qrcode-box .es-qrcode-img,.es-qrcode-box .
|
|
1
|
+
.es-qrcode-box{position:relative;border-radius:10px;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.es-qrcode-box .es-qrcode-img,.es-qrcode-box .es-qrcode-logo{display:none}.es-qrcode-box .es-qrcode-img{border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box}
|
package/lib/tips.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/tree-group.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/tree.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/upload.js
CHANGED
|
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
}).catch(function (e) {});
|
|
2203
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2203
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
2204
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2205
2205
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2206
2206
|
} else {
|
|
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
|
|
|
2890
2890
|
* @param {string} [$color] - 颜色值
|
|
2891
2891
|
**/
|
|
2892
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2893
|
-
|
|
2893
|
+
if (!color) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2894
2896
|
|
|
2895
2897
|
if (send === undefined) {
|
|
2896
2898
|
send = true;
|
package/lib/utils/util.js
CHANGED
|
@@ -2118,7 +2118,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2118
2118
|
});
|
|
2119
2119
|
}
|
|
2120
2120
|
}).catch(function (e) {});
|
|
2121
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2121
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2122
2122
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2123
2123
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2124
2124
|
} else {
|
|
@@ -2808,7 +2808,9 @@ var toFunction = function toFunction(str) {
|
|
|
2808
2808
|
* @param {string} [$color] - 颜色值
|
|
2809
2809
|
**/
|
|
2810
2810
|
var updateTheme = function updateTheme(color, send) {
|
|
2811
|
-
|
|
2811
|
+
if (!color) {
|
|
2812
|
+
return false;
|
|
2813
|
+
}
|
|
2812
2814
|
|
|
2813
2815
|
if (send === undefined) {
|
|
2814
2816
|
send = true;
|
package/lib/wujie.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/wxlogin.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/package.json
CHANGED
|
@@ -257,6 +257,7 @@ import {
|
|
|
257
257
|
findSysCodes,
|
|
258
258
|
getNotificationMsg,
|
|
259
259
|
findCodeValues,
|
|
260
|
+
loginUserInfo,
|
|
260
261
|
register
|
|
261
262
|
} from 'eoss-ui/src/config/api';
|
|
262
263
|
import util from 'eoss-ui/src/utils/util';
|
|
@@ -342,6 +343,7 @@ export default {
|
|
|
342
343
|
}
|
|
343
344
|
}
|
|
344
345
|
},
|
|
346
|
+
userModel:{},
|
|
345
347
|
nextUserTabs: {},
|
|
346
348
|
selectPresetUserList: [],
|
|
347
349
|
presetOptions: [],
|
|
@@ -384,12 +386,38 @@ export default {
|
|
|
384
386
|
return ['employee', 'enterprise', 'department', 'persongroup'];
|
|
385
387
|
}
|
|
386
388
|
}
|
|
389
|
+
},
|
|
390
|
+
created() {
|
|
391
|
+
this.getUserInfo();
|
|
387
392
|
},
|
|
388
393
|
mounted() {
|
|
389
394
|
this.getStartFlow(this.processDefinitionId);
|
|
390
395
|
this.newOpinion = this.opinion;
|
|
391
396
|
},
|
|
392
397
|
methods: {
|
|
398
|
+
getUserInfo() {
|
|
399
|
+
let mainConfig = util.getStorage('mainConfig');
|
|
400
|
+
if (mainConfig) {
|
|
401
|
+
this.userModel = JSON.parse(mainConfig).userModel;
|
|
402
|
+
} else {
|
|
403
|
+
util
|
|
404
|
+
.ajax({ url: loginUserInfo })
|
|
405
|
+
.then((res) => {
|
|
406
|
+
const { status, data } = res;
|
|
407
|
+
if (status == 'success') {
|
|
408
|
+
this.userModel = data;
|
|
409
|
+
} else {
|
|
410
|
+
let msg = res.msg || '系统错误,请联系管理员!';
|
|
411
|
+
this.$message.error(msg);
|
|
412
|
+
}
|
|
413
|
+
})
|
|
414
|
+
.catch((err) => {
|
|
415
|
+
if (err.message && err.message !== 'canceled') {
|
|
416
|
+
this.$message.error(err.message);
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
},
|
|
393
421
|
getIsShowNextUser(val) {
|
|
394
422
|
if (
|
|
395
423
|
val == 7 ||
|
|
@@ -751,15 +779,15 @@ export default {
|
|
|
751
779
|
multiple = true;
|
|
752
780
|
}
|
|
753
781
|
if (val == 1 || val == 2 || val == 5) {
|
|
754
|
-
params.filid =
|
|
782
|
+
params.filid = this.userModel.orgId;
|
|
755
783
|
params.only_filid = true;
|
|
756
784
|
if (choiceOrgId) {
|
|
757
785
|
params.filid = choiceOrgId;
|
|
758
786
|
}
|
|
759
787
|
}
|
|
760
788
|
if (val == 5 || val == 6) {
|
|
761
|
-
params.filid =
|
|
762
|
-
params.deptid =
|
|
789
|
+
params.filid = this.userModel.orgId;
|
|
790
|
+
params.deptid = this.userModel.orgId;
|
|
763
791
|
if (choiceDeptId) {
|
|
764
792
|
params.deptid = choiceDeptId;
|
|
765
793
|
}
|
|
@@ -768,7 +796,7 @@ export default {
|
|
|
768
796
|
}
|
|
769
797
|
}
|
|
770
798
|
if (val == 15 || val == 16) {
|
|
771
|
-
params.filid =
|
|
799
|
+
params.filid = this.userModel.orgId;
|
|
772
800
|
if (pOrgId) {
|
|
773
801
|
params.filid = pOrgId;
|
|
774
802
|
}
|
|
@@ -5011,6 +5011,9 @@ export default {
|
|
|
5011
5011
|
this.$refs.esForm && this.$refs.esForm.clearValidate();
|
|
5012
5012
|
},
|
|
5013
5013
|
submitData(handle, close = true, type, validate = true) {
|
|
5014
|
+
if (this.readonly) {
|
|
5015
|
+
return Promise.resolve();
|
|
5016
|
+
}
|
|
5014
5017
|
if (!handle) {
|
|
5015
5018
|
handle = this.handles || {};
|
|
5016
5019
|
}
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
</div>
|
|
187
187
|
<es-qr-code
|
|
188
188
|
:content="identifyingId"
|
|
189
|
+
:logo="qrimg"
|
|
189
190
|
v-if="active == 3 && identifyingId"
|
|
190
191
|
></es-qr-code>
|
|
191
192
|
<div class="es-wx-qrcode-box" v-if="active == 9">
|
|
@@ -1011,7 +1012,9 @@ export default {
|
|
|
1011
1012
|
this.downloadSetup = res.downloadSetup;
|
|
1012
1013
|
document.title = res.subsystemName;
|
|
1013
1014
|
this.app = res.appName || res.subsystemName;
|
|
1014
|
-
|
|
1015
|
+
if (res.qrimg || res.qrImg) {
|
|
1016
|
+
this.qrimg = res.qrimg || res.qrImg;
|
|
1017
|
+
}
|
|
1015
1018
|
if (res.loginModel) {
|
|
1016
1019
|
this.loginModel = res.loginModel;
|
|
1017
1020
|
}
|
|
@@ -291,10 +291,7 @@ export default {
|
|
|
291
291
|
//菜单展开关闭
|
|
292
292
|
icons: Object,
|
|
293
293
|
//logo
|
|
294
|
-
logo:
|
|
295
|
-
type: String,
|
|
296
|
-
default: 'errorlogo'
|
|
297
|
-
},
|
|
294
|
+
logo: String,
|
|
298
295
|
//菜单显示类型
|
|
299
296
|
scene: {
|
|
300
297
|
type: String,
|
|
@@ -1734,7 +1731,11 @@ export default {
|
|
|
1734
1731
|
util.win.open(page);
|
|
1735
1732
|
} else if (type == 2) {
|
|
1736
1733
|
location.href = page;
|
|
1737
|
-
} else if (
|
|
1734
|
+
} else if (
|
|
1735
|
+
type == 3 ||
|
|
1736
|
+
this.loadWujie === false ||
|
|
1737
|
+
(this.downgrade && isIE)
|
|
1738
|
+
) {
|
|
1738
1739
|
this.method = 'iframe';
|
|
1739
1740
|
this.refresh = false;
|
|
1740
1741
|
this.page = util.handlerUrl(page, param);
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
ref="qrcodeImg"
|
|
8
8
|
alt="二维码图片"
|
|
9
9
|
/>
|
|
10
|
-
<img
|
|
10
|
+
<!-- <img
|
|
11
11
|
v-if="logo"
|
|
12
12
|
class="es-qrcode-logo"
|
|
13
13
|
ref="qrcodeLogo"
|
|
14
14
|
:src="logo"
|
|
15
15
|
alt="二维码logo"
|
|
16
|
-
/>
|
|
16
|
+
/> -->
|
|
17
17
|
<canvas
|
|
18
18
|
:width="_width"
|
|
19
19
|
:height="_height"
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
return {};
|
|
70
70
|
},
|
|
71
71
|
watch: {
|
|
72
|
-
logo: function(val) {
|
|
72
|
+
logo: function (val) {
|
|
73
73
|
this.$nextTick(() => {
|
|
74
74
|
this.createQRCode();
|
|
75
75
|
});
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
92
92
|
methods: {
|
|
93
93
|
createQRCode() {
|
|
94
94
|
let qrcodeImg = this.$refs.qrcodeImg;
|
|
95
|
-
let qrcodeLogo = this.$refs.qrcodeLogo;
|
|
95
|
+
//let qrcodeLogo = this.$refs.qrcodeLogo;
|
|
96
96
|
let canvas = this.$refs.canvas;
|
|
97
97
|
let option = util.extend({}, this.option, {
|
|
98
98
|
width: this._width,
|
|
@@ -110,6 +110,8 @@ export default {
|
|
|
110
110
|
//获取图片
|
|
111
111
|
ctx.drawImage(qrcodeImg, 0, 0, this._width, this._height);
|
|
112
112
|
if (this.logo && this.logo.indexOf('.') > -1) {
|
|
113
|
+
let logo = new Image();
|
|
114
|
+
logo.src = this.logo;
|
|
113
115
|
//设置logo大小
|
|
114
116
|
let logoPosition = (this._width - 46) / 2; //logo相对于canvas居中定位
|
|
115
117
|
//设置获取的logo将其变为圆角以及添加白色背景
|
|
@@ -127,7 +129,10 @@ export default {
|
|
|
127
129
|
ctx.arcTo(x, y, x + w, y, r);
|
|
128
130
|
ctx.closePath();
|
|
129
131
|
ctx.fill(); */
|
|
130
|
-
|
|
132
|
+
logo.onload = () => {
|
|
133
|
+
ctx.drawImage(logo, logoPosition, logoPosition, 46, 46);
|
|
134
|
+
qrcodeImg.src = canvas.toDataURL();
|
|
135
|
+
};
|
|
131
136
|
} else if (this.text) {
|
|
132
137
|
//设置字体
|
|
133
138
|
let fpadd = 10; //规定内间距
|