eoss-ui 0.7.57 → 0.7.58
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/eoss-ui.common.js +86 -65
- package/lib/flow-group.js +17 -4
- package/lib/flow.js +19 -15
- package/lib/index.js +1 -1
- package/lib/main.js +39 -35
- package/package.json +1 -1
- package/packages/flow/src/component/CommonOpinions.vue +1 -0
- package/packages/flow/src/form.vue +2 -0
- package/packages/flow-group/src/main.vue +17 -2
- package/packages/main/src/main.vue +2 -2
- package/packages/main/src/simplicity/index.vue +26 -28
- package/src/index.js +1 -1
package/lib/main.js
CHANGED
|
@@ -4538,7 +4538,7 @@ var nightImg = 'data:image/jpeg;base64,/9j/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBA
|
|
|
4538
4538
|
// ESM COMPAT FLAG
|
|
4539
4539
|
__webpack_require__.r(__webpack_exports__);
|
|
4540
4540
|
|
|
4541
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=
|
|
4541
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=02fe8fea&
|
|
4542
4542
|
var render = function () {
|
|
4543
4543
|
var _vm = this
|
|
4544
4544
|
var _h = _vm.$createElement
|
|
@@ -4663,13 +4663,13 @@ var staticRenderFns = []
|
|
|
4663
4663
|
render._withStripped = true
|
|
4664
4664
|
|
|
4665
4665
|
|
|
4666
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4666
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=02fe8fea&
|
|
4667
4667
|
|
|
4668
4668
|
// EXTERNAL MODULE: ./src/config/image.js
|
|
4669
4669
|
var config_image = __webpack_require__(19);
|
|
4670
4670
|
|
|
4671
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
4672
|
-
var
|
|
4671
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=c0669294&scoped=true&
|
|
4672
|
+
var simplicityvue_type_template_id_c0669294_scoped_true_render = function () {
|
|
4673
4673
|
var _vm = this
|
|
4674
4674
|
var _h = _vm.$createElement
|
|
4675
4675
|
var _c = _vm._self._c || _h
|
|
@@ -5433,11 +5433,11 @@ var simplicityvue_type_template_id_129bf7fd_scoped_true_render = function () {
|
|
|
5433
5433
|
),
|
|
5434
5434
|
])
|
|
5435
5435
|
}
|
|
5436
|
-
var
|
|
5437
|
-
|
|
5436
|
+
var simplicityvue_type_template_id_c0669294_scoped_true_staticRenderFns = []
|
|
5437
|
+
simplicityvue_type_template_id_c0669294_scoped_true_render._withStripped = true
|
|
5438
5438
|
|
|
5439
5439
|
|
|
5440
|
-
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=
|
|
5440
|
+
// CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=c0669294&scoped=true&
|
|
5441
5441
|
|
|
5442
5442
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
|
|
5443
5443
|
var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
|
|
@@ -12350,42 +12350,43 @@ var events = [function (tabs, index, that) {
|
|
|
12350
12350
|
setTips: function setTips(obj) {
|
|
12351
12351
|
var _this4 = this;
|
|
12352
12352
|
|
|
12353
|
+
if (!this.menuTips || !Object.keys(this.menuTips).length) {
|
|
12354
|
+
return false;
|
|
12355
|
+
}
|
|
12353
12356
|
if (Array.isArray(obj)) {
|
|
12354
12357
|
obj.forEach(function (item) {
|
|
12355
|
-
_this4.setTips(item);
|
|
12358
|
+
var n = _this4.setTips(item);
|
|
12359
|
+
n = n ? parseInt(n) : 0;
|
|
12360
|
+
_this4.$set(obj, 'tips', n);
|
|
12361
|
+
_this4.setDot(_this4.userApps, item.appCode, n);
|
|
12362
|
+
_this4.setDot(_this4.applications, item.appCode, n);
|
|
12363
|
+
_this4.setDot(_this4.business, item.appCode, n);
|
|
12364
|
+
_this4.setDot(_this4.systems, item.appCode, n);
|
|
12356
12365
|
});
|
|
12357
12366
|
} else {
|
|
12358
|
-
if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
|
|
12359
|
-
this.$set(obj, 'tips', false);
|
|
12360
|
-
delete obj.tips;
|
|
12361
|
-
}
|
|
12362
12367
|
var flag = 0;
|
|
12363
12368
|
if (obj.children && obj.children.length) {
|
|
12364
12369
|
obj.children.forEach(function (item) {
|
|
12365
12370
|
var n = _this4.setTips(item);
|
|
12366
12371
|
flag += n ? parseInt(n) : 0;
|
|
12367
12372
|
});
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
return flag;
|
|
12375
|
-
}
|
|
12373
|
+
this.$set(obj, 'tips', flag);
|
|
12374
|
+
this.setDot(this.userApps, obj.appCode, flag);
|
|
12375
|
+
this.setDot(this.applications, obj.appCode, flag);
|
|
12376
|
+
this.setDot(this.business, obj.appCode, flag);
|
|
12377
|
+
this.setDot(this.systems, obj.appCode, flag);
|
|
12378
|
+
return flag;
|
|
12376
12379
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
12377
12380
|
obj.fourthTabs.forEach(function (item) {
|
|
12378
12381
|
var n = _this4.setTips(item);
|
|
12379
12382
|
flag += n ? parseInt(n) : 0;
|
|
12380
12383
|
});
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
return flag;
|
|
12388
|
-
}
|
|
12384
|
+
this.$set(obj, 'tips', flag);
|
|
12385
|
+
this.setDot(this.userApps, obj.appCode, flag);
|
|
12386
|
+
this.setDot(this.applications, obj.appCode, flag);
|
|
12387
|
+
this.setDot(this.business, obj.appCode, flag);
|
|
12388
|
+
this.setDot(this.systems, obj.appCode, flag);
|
|
12389
|
+
return flag;
|
|
12389
12390
|
} else {
|
|
12390
12391
|
var num = this.menuTips[obj.id] || this.menuTips[obj.code] || this.menuTips[obj.appCode];
|
|
12391
12392
|
if (num && Number(num)) {
|
|
@@ -12399,12 +12400,15 @@ var events = [function (tabs, index, that) {
|
|
|
12399
12400
|
setDot: function setDot(obj, code) {
|
|
12400
12401
|
var _this5 = this;
|
|
12401
12402
|
|
|
12403
|
+
var flag = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
12404
|
+
|
|
12405
|
+
flag = flag ? true : false;
|
|
12402
12406
|
if (Array.isArray(obj)) {
|
|
12403
12407
|
obj.forEach(function (item) {
|
|
12404
|
-
_this5.setDot(item, code);
|
|
12408
|
+
_this5.setDot(item, code, flag);
|
|
12405
12409
|
});
|
|
12406
12410
|
} else if (obj.code === code) {
|
|
12407
|
-
this.$set(obj, 'tips',
|
|
12411
|
+
this.$set(obj, 'tips', flag);
|
|
12408
12412
|
}
|
|
12409
12413
|
},
|
|
12410
12414
|
|
|
@@ -13191,11 +13195,11 @@ var events = [function (tabs, index, that) {
|
|
|
13191
13195
|
|
|
13192
13196
|
var simplicity_component = Object(componentNormalizer["a" /* default */])(
|
|
13193
13197
|
src_simplicityvue_type_script_lang_js_,
|
|
13194
|
-
|
|
13195
|
-
|
|
13198
|
+
simplicityvue_type_template_id_c0669294_scoped_true_render,
|
|
13199
|
+
simplicityvue_type_template_id_c0669294_scoped_true_staticRenderFns,
|
|
13196
13200
|
false,
|
|
13197
13201
|
null,
|
|
13198
|
-
"
|
|
13202
|
+
"c0669294",
|
|
13199
13203
|
null
|
|
13200
13204
|
|
|
13201
13205
|
)
|
|
@@ -17384,8 +17388,8 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
17384
17388
|
external_wujie_vue2_default.a.bus.$on('reLogin', _this.handleReLogin);
|
|
17385
17389
|
external_wujie_vue2_default.a.bus.$on('refresh', _this.$refs.main.handleRefresh);
|
|
17386
17390
|
external_wujie_vue2_default.a.bus.$on('jumpMenu', _this.$refs.main.jumpMenu);
|
|
17387
|
-
external_wujie_vue2_default.a.bus.$on('windowOpen', _this
|
|
17388
|
-
external_wujie_vue2_default.a.bus.$on('windowClose', _this
|
|
17391
|
+
external_wujie_vue2_default.a.bus.$on('windowOpen', _this.winOpen);
|
|
17392
|
+
external_wujie_vue2_default.a.bus.$on('windowClose', _this.winClose);
|
|
17389
17393
|
external_wujie_vue2_default.a.bus.$on('emit', function (method, args) {
|
|
17390
17394
|
// 主应用发送事件
|
|
17391
17395
|
external_wujie_vue2_default.a.bus.$emit(method, args);
|
package/package.json
CHANGED
|
@@ -465,6 +465,7 @@ export default {
|
|
|
465
465
|
default: '0'
|
|
466
466
|
},
|
|
467
467
|
contents: Array,
|
|
468
|
+
closeWindow: Boolean,
|
|
468
469
|
closeDialog: {
|
|
469
470
|
type: Boolean,
|
|
470
471
|
default: true
|
|
@@ -682,7 +683,14 @@ export default {
|
|
|
682
683
|
this.$emit('endMessageChange', val);
|
|
683
684
|
},
|
|
684
685
|
handleSuccess() {
|
|
685
|
-
|
|
686
|
+
let windowOpenConfig = sessionStorage.getItem('windowOpenConfig');
|
|
687
|
+
if (this.closeWindow && windowOpenConfig) {
|
|
688
|
+
util.busEmit(this, {
|
|
689
|
+
method: 'windowClose',
|
|
690
|
+
...JSON.parse(windowOpenConfig)
|
|
691
|
+
});
|
|
692
|
+
util.win.top.windowClose(JSON.parse(windowOpenConfig));
|
|
693
|
+
} else if (this.closeDialog && this.esDialog) {
|
|
686
694
|
this.esDialog.handleClose();
|
|
687
695
|
} else if (util.win.top.COOS_SDK) {
|
|
688
696
|
util.win.top.COOS_SDK.closePopup && util.win.top.COOS_SDK.closePopup();
|
|
@@ -695,7 +703,14 @@ export default {
|
|
|
695
703
|
this.$emit('success');
|
|
696
704
|
},
|
|
697
705
|
handleSave(id, event) {
|
|
698
|
-
|
|
706
|
+
let windowOpenConfig = sessionStorage.getItem('windowOpenConfig');
|
|
707
|
+
if (this.closeWindow && windowOpenConfig) {
|
|
708
|
+
util.busEmit(this, {
|
|
709
|
+
method: 'windowClose',
|
|
710
|
+
...JSON.parse(windowOpenConfig)
|
|
711
|
+
});
|
|
712
|
+
util.win.top.windowClose(JSON.parse(windowOpenConfig));
|
|
713
|
+
} else if (this.closeDialog && this.esDialog) {
|
|
699
714
|
this.esDialog.handleClose();
|
|
700
715
|
} else if (util.win.top.COOS_SDK) {
|
|
701
716
|
util.win.top.COOS_SDK.closePopup && util.win.top.COOS_SDK.closePopup();
|
|
@@ -175,8 +175,8 @@ export default {
|
|
|
175
175
|
WujieVue.bus.$on('reLogin', this.handleReLogin);
|
|
176
176
|
WujieVue.bus.$on('refresh', this.$refs.main.handleRefresh);
|
|
177
177
|
WujieVue.bus.$on('jumpMenu', this.$refs.main.jumpMenu);
|
|
178
|
-
WujieVue.bus.$on('windowOpen', this
|
|
179
|
-
WujieVue.bus.$on('windowClose', this
|
|
178
|
+
WujieVue.bus.$on('windowOpen', this.winOpen);
|
|
179
|
+
WujieVue.bus.$on('windowClose', this.winClose);
|
|
180
180
|
WujieVue.bus.$on('emit', (method, args) => {
|
|
181
181
|
// 主应用发送事件
|
|
182
182
|
WujieVue.bus.$emit(method, args);
|
|
@@ -1447,46 +1447,43 @@ export default {
|
|
|
1447
1447
|
* @date 2024年9月7日
|
|
1448
1448
|
**/
|
|
1449
1449
|
setTips(obj) {
|
|
1450
|
+
if (!this.menuTips || !Object.keys(this.menuTips).length) {
|
|
1451
|
+
return false;
|
|
1452
|
+
}
|
|
1450
1453
|
if (Array.isArray(obj)) {
|
|
1451
1454
|
obj.forEach((item) => {
|
|
1452
|
-
this.setTips(item);
|
|
1455
|
+
let n = this.setTips(item);
|
|
1456
|
+
n = n ? parseInt(n) : 0;
|
|
1457
|
+
this.$set(obj, 'tips', n);
|
|
1458
|
+
this.setDot(this.userApps, item.appCode, n);
|
|
1459
|
+
this.setDot(this.applications, item.appCode, n);
|
|
1460
|
+
this.setDot(this.business, item.appCode, n);
|
|
1461
|
+
this.setDot(this.systems, item.appCode, n);
|
|
1453
1462
|
});
|
|
1454
1463
|
} else {
|
|
1455
|
-
if (
|
|
1456
|
-
obj &&
|
|
1457
|
-
Object.prototype.hasOwnProperty.call(obj, 'tips') &&
|
|
1458
|
-
obj.tips
|
|
1459
|
-
) {
|
|
1460
|
-
this.$set(obj, 'tips', false);
|
|
1461
|
-
delete obj.tips;
|
|
1462
|
-
}
|
|
1463
1464
|
let flag = 0;
|
|
1464
1465
|
if (obj.children && obj.children.length) {
|
|
1465
1466
|
obj.children.forEach((item) => {
|
|
1466
1467
|
let n = this.setTips(item);
|
|
1467
1468
|
flag += n ? parseInt(n) : 0;
|
|
1468
1469
|
});
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
return flag;
|
|
1476
|
-
}
|
|
1470
|
+
this.$set(obj, 'tips', flag);
|
|
1471
|
+
this.setDot(this.userApps, obj.appCode, flag);
|
|
1472
|
+
this.setDot(this.applications, obj.appCode, flag);
|
|
1473
|
+
this.setDot(this.business, obj.appCode, flag);
|
|
1474
|
+
this.setDot(this.systems, obj.appCode, flag);
|
|
1475
|
+
return flag;
|
|
1477
1476
|
} else if (obj.fourthTabs && obj.fourthTabs.length) {
|
|
1478
1477
|
obj.fourthTabs.forEach((item) => {
|
|
1479
1478
|
let n = this.setTips(item);
|
|
1480
1479
|
flag += n ? parseInt(n) : 0;
|
|
1481
1480
|
});
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
return flag;
|
|
1489
|
-
}
|
|
1481
|
+
this.$set(obj, 'tips', flag);
|
|
1482
|
+
this.setDot(this.userApps, obj.appCode, flag);
|
|
1483
|
+
this.setDot(this.applications, obj.appCode, flag);
|
|
1484
|
+
this.setDot(this.business, obj.appCode, flag);
|
|
1485
|
+
this.setDot(this.systems, obj.appCode, flag);
|
|
1486
|
+
return flag;
|
|
1490
1487
|
} else {
|
|
1491
1488
|
let num =
|
|
1492
1489
|
this.menuTips[obj.id] ||
|
|
@@ -1500,13 +1497,14 @@ export default {
|
|
|
1500
1497
|
}
|
|
1501
1498
|
return false;
|
|
1502
1499
|
},
|
|
1503
|
-
setDot(obj, code) {
|
|
1500
|
+
setDot(obj, code, flag = true) {
|
|
1501
|
+
flag = flag ? true : false;
|
|
1504
1502
|
if (Array.isArray(obj)) {
|
|
1505
1503
|
obj.forEach((item) => {
|
|
1506
|
-
this.setDot(item, code);
|
|
1504
|
+
this.setDot(item, code, flag);
|
|
1507
1505
|
});
|
|
1508
1506
|
} else if (obj.code === code) {
|
|
1509
|
-
this.$set(obj, 'tips',
|
|
1507
|
+
this.$set(obj, 'tips', flag);
|
|
1510
1508
|
}
|
|
1511
1509
|
},
|
|
1512
1510
|
/**
|