eoss-ui 0.5.34 → 0.5.37
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 +17 -0
- package/lib/button.js +17 -0
- package/lib/checkbox-group.js +17 -0
- package/lib/data-table-form.js +17 -0
- package/lib/data-table.js +17 -0
- package/lib/date-picker.js +17 -0
- package/lib/dialog.js +17 -0
- package/lib/eoss-ui.common.js +493 -368
- package/lib/flow-group.js +17 -0
- package/lib/flow-list.js +17 -0
- package/lib/flow.js +425 -305
- package/lib/form.js +17 -0
- package/lib/handle-user.js +17 -0
- package/lib/handler.js +17 -0
- package/lib/index.js +1 -1
- package/lib/input-number.js +17 -0
- package/lib/input.js +17 -0
- package/lib/login.js +41 -15
- package/lib/main.js +35 -24
- package/lib/nav.js +17 -0
- package/lib/page.js +17 -0
- package/lib/player.js +17 -0
- package/lib/qr-code.js +17 -0
- package/lib/radio-group.js +17 -0
- package/lib/retrial-auth.js +17 -0
- package/lib/select-ganged.js +17 -0
- package/lib/select.js +17 -0
- package/lib/selector-panel.js +17 -0
- package/lib/selector.js +17 -0
- package/lib/sizer.js +17 -0
- package/lib/steps.js +17 -0
- package/lib/switch.js +17 -0
- package/lib/table-form.js +25 -6
- package/lib/tabs.js +17 -0
- package/lib/tips.js +17 -0
- package/lib/tree-group.js +17 -0
- package/lib/tree.js +17 -0
- package/lib/upload.js +17 -0
- package/lib/utils/util.js +17 -0
- package/lib/wujie.js +17 -0
- package/lib/wxlogin.js +17 -0
- package/package.json +1 -1
- package/packages/flow/src/main.vue +117 -23
- package/packages/flow/src/processForm.vue +7 -1
- package/packages/flow/src/processReject.vue +4 -1
- package/packages/form/src/table.vue +2 -1
- package/packages/login/src/main.vue +9 -2
- package/packages/login/src/resetPassword.vue +7 -5
- package/packages/main/src/main.vue +11 -20
- package/packages/main/src/userinfo.vue +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +22 -2
- package/CHANGELOG.md +0 -929
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
>
|
|
443
443
|
<el-button
|
|
444
444
|
v-show="isSubmitButtonShowAgreeAndDisagree != 1"
|
|
445
|
-
v-for="item of hideBtn? btnList.slice(0,1) : btnList"
|
|
445
|
+
v-for="item of hideBtn ? btnList.slice(0, 1) : btnList"
|
|
446
446
|
:key="item.name"
|
|
447
447
|
:type="item.type"
|
|
448
448
|
:style="btnStyle"
|
|
@@ -457,17 +457,17 @@
|
|
|
457
457
|
(!isFlow && (rejectObj.fun || pointsReadingObj.fun || moreList))
|
|
458
458
|
"
|
|
459
459
|
placement="top"
|
|
460
|
-
:class="{'em-flow-more-btn'
|
|
460
|
+
:class="{ 'em-flow-more-btn': !hideBtn }"
|
|
461
461
|
trigger="click"
|
|
462
462
|
>
|
|
463
463
|
<div v-if="!isFlow && !hideBtn" class="es-footer-btn">
|
|
464
464
|
<el-button
|
|
465
465
|
v-if="rejectObj.fun"
|
|
466
466
|
@click="rejectBtn"
|
|
467
|
-
style="margin-right:10px"
|
|
467
|
+
style="margin-right: 10px"
|
|
468
468
|
type="danger"
|
|
469
469
|
>
|
|
470
|
-
|
|
470
|
+
{{ rejectObj.value }}
|
|
471
471
|
</el-button>
|
|
472
472
|
<el-button
|
|
473
473
|
v-if="pointsReadingObj.fun"
|
|
@@ -484,7 +484,11 @@
|
|
|
484
484
|
{{ item.value }}
|
|
485
485
|
</el-button>
|
|
486
486
|
</div>
|
|
487
|
-
<el-button-group
|
|
487
|
+
<el-button-group
|
|
488
|
+
slot="reference"
|
|
489
|
+
style="margin: 0px 10px"
|
|
490
|
+
v-if="hideBtn"
|
|
491
|
+
>
|
|
488
492
|
<el-button
|
|
489
493
|
v-show="isSubmitButtonShowAgreeAndDisagree != 1"
|
|
490
494
|
v-for="item of btnList.slice(1)"
|
|
@@ -500,7 +504,7 @@
|
|
|
500
504
|
<el-dropdown
|
|
501
505
|
v-if="
|
|
502
506
|
!isFlow &&
|
|
503
|
-
(rejectObj.fun || pointsReadingObj.fun || moreList.length > 0)
|
|
507
|
+
(rejectObj.fun || pointsReadingObj.fun || moreList.length > 0)
|
|
504
508
|
"
|
|
505
509
|
trigger="click"
|
|
506
510
|
placement="top"
|
|
@@ -1199,7 +1203,10 @@ export default {
|
|
|
1199
1203
|
util
|
|
1200
1204
|
.ajax({
|
|
1201
1205
|
url: findCodeValues,
|
|
1202
|
-
params: {
|
|
1206
|
+
params: {
|
|
1207
|
+
ccCode: 'notification_type',
|
|
1208
|
+
userId: util.getStorage('userId')
|
|
1209
|
+
}
|
|
1203
1210
|
})
|
|
1204
1211
|
.then((res) => {
|
|
1205
1212
|
const { status, data } = res;
|
|
@@ -1305,10 +1312,21 @@ export default {
|
|
|
1305
1312
|
**/
|
|
1306
1313
|
rejectBtn() {
|
|
1307
1314
|
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
1308
|
-
if (
|
|
1309
|
-
|
|
1315
|
+
if (this.beforeSubmit != undefined) {
|
|
1316
|
+
this.beforeSubmit()
|
|
1317
|
+
.then((next) => {
|
|
1318
|
+
if (!this.value) {
|
|
1319
|
+
return this.$message.warning('请填写意见');
|
|
1320
|
+
}
|
|
1321
|
+
this.showReject = true;
|
|
1322
|
+
})
|
|
1323
|
+
.catch((e) => {});
|
|
1324
|
+
} else {
|
|
1325
|
+
if (!this.value) {
|
|
1326
|
+
return this.$message.warning('请填写意见');
|
|
1327
|
+
}
|
|
1328
|
+
this.showReject = true;
|
|
1310
1329
|
}
|
|
1311
|
-
this.showReject = true;
|
|
1312
1330
|
},
|
|
1313
1331
|
/**
|
|
1314
1332
|
* taskReadBtn
|
|
@@ -1318,9 +1336,19 @@ export default {
|
|
|
1318
1336
|
**/
|
|
1319
1337
|
taskReadBtn() {
|
|
1320
1338
|
// return this.$message.warning('暂未开放!敬请期待');
|
|
1321
|
-
if (this.
|
|
1322
|
-
|
|
1323
|
-
|
|
1339
|
+
if (this.beforeSubmit != undefined) {
|
|
1340
|
+
this.beforeSubmit()
|
|
1341
|
+
.then((next) => {
|
|
1342
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
1343
|
+
this.taskReadType = 'create';
|
|
1344
|
+
this.showTaskRead = true;
|
|
1345
|
+
})
|
|
1346
|
+
.catch((e) => {});
|
|
1347
|
+
} else {
|
|
1348
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
1349
|
+
this.taskReadType = 'create';
|
|
1350
|
+
this.showTaskRead = true;
|
|
1351
|
+
}
|
|
1324
1352
|
},
|
|
1325
1353
|
/**
|
|
1326
1354
|
* getFind
|
|
@@ -1353,6 +1381,17 @@ export default {
|
|
|
1353
1381
|
* @date 2022年5月25日
|
|
1354
1382
|
**/
|
|
1355
1383
|
endFlows(res) {
|
|
1384
|
+
if (this.beforeSubmit != undefined) {
|
|
1385
|
+
this.beforeSubmit()
|
|
1386
|
+
.then((next) => {
|
|
1387
|
+
this.saveEndFlows(res);
|
|
1388
|
+
})
|
|
1389
|
+
.catch((e) => {});
|
|
1390
|
+
} else {
|
|
1391
|
+
this.saveEndFlows(res);
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
saveEndFlows(res) {
|
|
1356
1395
|
this.$confirm('确认' + res.value + '?')
|
|
1357
1396
|
.then(() => {
|
|
1358
1397
|
let params = {
|
|
@@ -1485,6 +1524,18 @@ export default {
|
|
|
1485
1524
|
* @date 2022年9月29日
|
|
1486
1525
|
**/
|
|
1487
1526
|
toTakeAdvice(res) {
|
|
1527
|
+
if (this.beforeSubmit != undefined) {
|
|
1528
|
+
this.beforeSubmit()
|
|
1529
|
+
.then((next) => {
|
|
1530
|
+
this.saveToTakeAdvice(res);
|
|
1531
|
+
})
|
|
1532
|
+
.catch((e) => {});
|
|
1533
|
+
} else {
|
|
1534
|
+
this.saveToTakeAdvice(res);
|
|
1535
|
+
}
|
|
1536
|
+
// return this.$message.warning('暂未开放!敬请期待');
|
|
1537
|
+
},
|
|
1538
|
+
saveToTakeAdvice(res) {
|
|
1488
1539
|
let params = {
|
|
1489
1540
|
url: isCanStartSubFlow,
|
|
1490
1541
|
data: {
|
|
@@ -1512,7 +1563,6 @@ export default {
|
|
|
1512
1563
|
this.$message.error(err.message);
|
|
1513
1564
|
}
|
|
1514
1565
|
});
|
|
1515
|
-
// return this.$message.warning('暂未开放!敬请期待');
|
|
1516
1566
|
},
|
|
1517
1567
|
/**
|
|
1518
1568
|
* toStartDraf
|
|
@@ -1521,7 +1571,15 @@ export default {
|
|
|
1521
1571
|
* @date 2022年9月29日
|
|
1522
1572
|
**/
|
|
1523
1573
|
toStartDraf(res) {
|
|
1524
|
-
this.
|
|
1574
|
+
if (this.beforeSubmit != undefined) {
|
|
1575
|
+
this.beforeSubmit()
|
|
1576
|
+
.then((next) => {
|
|
1577
|
+
this.showTaskUnionExamine = true;
|
|
1578
|
+
})
|
|
1579
|
+
.catch((e) => {});
|
|
1580
|
+
} else {
|
|
1581
|
+
this.showTaskUnionExamine = true;
|
|
1582
|
+
}
|
|
1525
1583
|
},
|
|
1526
1584
|
/**
|
|
1527
1585
|
* toSendMsg
|
|
@@ -1530,7 +1588,15 @@ export default {
|
|
|
1530
1588
|
* @date 2022年9月29日
|
|
1531
1589
|
**/
|
|
1532
1590
|
toSendMsg(res) {
|
|
1533
|
-
this.
|
|
1591
|
+
if (this.beforeSubmit != undefined) {
|
|
1592
|
+
this.beforeSubmit()
|
|
1593
|
+
.then((next) => {
|
|
1594
|
+
this.showSendMsg = true;
|
|
1595
|
+
})
|
|
1596
|
+
.catch((e) => {});
|
|
1597
|
+
} else {
|
|
1598
|
+
this.showSendMsg = true;
|
|
1599
|
+
}
|
|
1534
1600
|
},
|
|
1535
1601
|
/**
|
|
1536
1602
|
* toTaskReadAndEnd
|
|
@@ -1539,9 +1605,19 @@ export default {
|
|
|
1539
1605
|
* @date 2022年9月29日
|
|
1540
1606
|
**/
|
|
1541
1607
|
toTaskReadAndEnd(res) {
|
|
1542
|
-
if (this.
|
|
1543
|
-
|
|
1544
|
-
|
|
1608
|
+
if (this.beforeSubmit != undefined) {
|
|
1609
|
+
this.beforeSubmit()
|
|
1610
|
+
.then((next) => {
|
|
1611
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
1612
|
+
this.taskReadType = 'taskReadAndEnd';
|
|
1613
|
+
this.showTaskRead = true;
|
|
1614
|
+
})
|
|
1615
|
+
.catch((e) => {});
|
|
1616
|
+
} else {
|
|
1617
|
+
if (this.value === '') this.value = this.nodeDefaultRejectOpinion;
|
|
1618
|
+
this.taskReadType = 'taskReadAndEnd';
|
|
1619
|
+
this.showTaskRead = true;
|
|
1620
|
+
}
|
|
1545
1621
|
},
|
|
1546
1622
|
/**
|
|
1547
1623
|
* rejectAndEnd
|
|
@@ -1550,6 +1626,17 @@ export default {
|
|
|
1550
1626
|
* @date 2022年9月29日
|
|
1551
1627
|
**/
|
|
1552
1628
|
rejectAndEnd(res) {
|
|
1629
|
+
if (this.beforeSubmit != undefined) {
|
|
1630
|
+
this.beforeSubmit()
|
|
1631
|
+
.then((next) => {
|
|
1632
|
+
this.saveRejectAndEnd(res);
|
|
1633
|
+
})
|
|
1634
|
+
.catch((e) => {});
|
|
1635
|
+
} else {
|
|
1636
|
+
this.saveRejectAndEnd(res);
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
saveRejectAndEnd(res) {
|
|
1553
1640
|
this.$confirm('确认' + res.value + '?')
|
|
1554
1641
|
.then(() => {
|
|
1555
1642
|
if (this.isOpinionRequired == 1 && (this.value == '' || !this.value))
|
|
@@ -1588,7 +1675,6 @@ export default {
|
|
|
1588
1675
|
.catch(() => {
|
|
1589
1676
|
// on cancel
|
|
1590
1677
|
});
|
|
1591
|
-
// return this.$message.warning('暂未开放!敬请期待');
|
|
1592
1678
|
},
|
|
1593
1679
|
/**
|
|
1594
1680
|
* toTransfer
|
|
@@ -1597,9 +1683,17 @@ export default {
|
|
|
1597
1683
|
* @date 2022年9月29日
|
|
1598
1684
|
**/
|
|
1599
1685
|
toTransfer(res) {
|
|
1600
|
-
this.
|
|
1601
|
-
|
|
1602
|
-
|
|
1686
|
+
if (this.beforeSubmit != undefined) {
|
|
1687
|
+
this.beforeSubmit()
|
|
1688
|
+
.then((next) => {
|
|
1689
|
+
this.taskReadType = 'transfer';
|
|
1690
|
+
this.showTaskRead = true;
|
|
1691
|
+
})
|
|
1692
|
+
.catch((e) => {});
|
|
1693
|
+
} else {
|
|
1694
|
+
this.taskReadType = 'transfer';
|
|
1695
|
+
this.showTaskRead = true;
|
|
1696
|
+
}
|
|
1603
1697
|
},
|
|
1604
1698
|
/**
|
|
1605
1699
|
* getNodeInfo
|
|
@@ -482,7 +482,10 @@ export default {
|
|
|
482
482
|
util
|
|
483
483
|
.ajax({
|
|
484
484
|
url: findCodeValues,
|
|
485
|
-
params: {
|
|
485
|
+
params: {
|
|
486
|
+
ccCode: 'notification_type',
|
|
487
|
+
userId: util.getStorage('userId')
|
|
488
|
+
}
|
|
486
489
|
})
|
|
487
490
|
.then((res) => {
|
|
488
491
|
const { status, data } = res;
|
|
@@ -520,6 +523,9 @@ export default {
|
|
|
520
523
|
},
|
|
521
524
|
// 提交表单
|
|
522
525
|
subProcess(formName) {
|
|
526
|
+
this.saveProcess(formName);
|
|
527
|
+
},
|
|
528
|
+
saveProcess(formName) {
|
|
523
529
|
this.$refs[formName].validate((valid) => {
|
|
524
530
|
if (valid) {
|
|
525
531
|
const {
|
|
@@ -148,7 +148,10 @@ export default {
|
|
|
148
148
|
},
|
|
149
149
|
// 提交表单
|
|
150
150
|
subProcess(formName) {
|
|
151
|
-
this
|
|
151
|
+
this.saveProcess(formName);
|
|
152
|
+
},
|
|
153
|
+
saveProcess(formName){
|
|
154
|
+
this.$refs[formName].validate(valid => {
|
|
152
155
|
if (valid) {
|
|
153
156
|
if (!this.option && this.isOpinionRequired === 1) {
|
|
154
157
|
this.$message.warning('请选择输入审批意见');
|
|
@@ -99,7 +99,8 @@
|
|
|
99
99
|
class="es-table-form-label"
|
|
100
100
|
:class="{
|
|
101
101
|
'es-align-middle': item.labelRow,
|
|
102
|
-
'is-required':
|
|
102
|
+
'is-required':
|
|
103
|
+
item.rules && item.rules.required && !hideRequiredAsterisk,
|
|
103
104
|
'required-after': after
|
|
104
105
|
}"
|
|
105
106
|
:key="'label' + index"
|
|
@@ -291,12 +291,12 @@
|
|
|
291
291
|
<span class="es-login-icp-item" :style="_copyrightStyle">{{
|
|
292
292
|
icpInfo.copyright_unit
|
|
293
293
|
}}</span>
|
|
294
|
-
<
|
|
294
|
+
<span
|
|
295
295
|
class="es-login-icp-item"
|
|
296
296
|
target="_blank"
|
|
297
297
|
:style="_copyrightStyle"
|
|
298
298
|
:href="icpInfo.copyright_icp_url"
|
|
299
|
-
>{{ icpInfo.copyright_icp }}</
|
|
299
|
+
>{{ icpInfo.copyright_icp }}</span
|
|
300
300
|
>
|
|
301
301
|
</div>
|
|
302
302
|
<es-dialog
|
|
@@ -778,6 +778,7 @@ export default {
|
|
|
778
778
|
} else {
|
|
779
779
|
this.getLogin();
|
|
780
780
|
document.addEventListener('keyup', this.doLogin);
|
|
781
|
+
document.addEventListener('keydown', this.forbiddenTab);
|
|
781
782
|
}
|
|
782
783
|
},
|
|
783
784
|
mounted() {
|
|
@@ -1494,10 +1495,16 @@ export default {
|
|
|
1494
1495
|
},
|
|
1495
1496
|
handleSuccess() {
|
|
1496
1497
|
this.showResetPassword = false;
|
|
1498
|
+
},
|
|
1499
|
+
forbiddenTab(e) {
|
|
1500
|
+
if (e.keyCode == 9) {
|
|
1501
|
+
return false;
|
|
1502
|
+
}
|
|
1497
1503
|
}
|
|
1498
1504
|
},
|
|
1499
1505
|
beforeDestroy() {
|
|
1500
1506
|
document.removeEventListener('keyup', this.doLogin);
|
|
1507
|
+
document.removeEventListener('keydown', this.forbiddenTab);
|
|
1501
1508
|
}
|
|
1502
1509
|
};
|
|
1503
1510
|
</script>
|
|
@@ -395,7 +395,7 @@ export default {
|
|
|
395
395
|
this.checkPassword = new RegExp(results.checkPassword);
|
|
396
396
|
}
|
|
397
397
|
if (results.checkPasswordMsg) {
|
|
398
|
-
this.checkPasswordMsg =
|
|
398
|
+
this.checkPasswordMsg = results.checkPasswordMsg;
|
|
399
399
|
}
|
|
400
400
|
} else {
|
|
401
401
|
let msg = res.msg || '系统错误,请联系管理员!';
|
|
@@ -476,10 +476,12 @@ export default {
|
|
|
476
476
|
data: data.password,
|
|
477
477
|
key: this.secret
|
|
478
478
|
});
|
|
479
|
-
data.oldPassword
|
|
480
|
-
data
|
|
481
|
-
|
|
482
|
-
|
|
479
|
+
if (data.oldPassword) {
|
|
480
|
+
data.oldPassword = util.esmEncrypt({
|
|
481
|
+
data: data.oldPassword,
|
|
482
|
+
key: this.secret
|
|
483
|
+
});
|
|
484
|
+
}
|
|
483
485
|
}
|
|
484
486
|
if (this.activeIndex == '0') {
|
|
485
487
|
data.operationCheckCode = this.operationCheckCode;
|
|
@@ -928,6 +928,9 @@ export default {
|
|
|
928
928
|
sessionStorage.setItem('sysLogoIco', results[i]);
|
|
929
929
|
util.setFavicon(results[i]);
|
|
930
930
|
}
|
|
931
|
+
if (i === 'subsystemExtend' && results[i].themeColor) {
|
|
932
|
+
this.color = unescape(results[i].themeColor).toLowerCase();
|
|
933
|
+
}
|
|
931
934
|
if (i === 'userStyle' && results[i].color) {
|
|
932
935
|
this.color = unescape(results[i].color).toLowerCase();
|
|
933
936
|
}
|
|
@@ -972,26 +975,14 @@ export default {
|
|
|
972
975
|
}
|
|
973
976
|
return true;
|
|
974
977
|
}
|
|
975
|
-
util
|
|
976
|
-
.
|
|
977
|
-
.
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
this.renderMenu();
|
|
984
|
-
}
|
|
985
|
-
} else {
|
|
986
|
-
let msg = res.msg || '系统错误,请联系管理员!';
|
|
987
|
-
this.$message.error(msg);
|
|
988
|
-
}
|
|
989
|
-
})
|
|
990
|
-
.catch((err) => {
|
|
991
|
-
if (err.message && err.message !== 'canceled') {
|
|
992
|
-
this.$message.error(err.message);
|
|
993
|
-
}
|
|
994
|
-
});
|
|
978
|
+
util.getMainConfig((res) => {
|
|
979
|
+
this.setConfig(res, 1);
|
|
980
|
+
if (this.remote) {
|
|
981
|
+
this.getMenu();
|
|
982
|
+
} else {
|
|
983
|
+
this.renderMenu();
|
|
984
|
+
}
|
|
985
|
+
});
|
|
995
986
|
},
|
|
996
987
|
reGetConfig() {
|
|
997
988
|
util
|
|
@@ -267,7 +267,7 @@ export default {
|
|
|
267
267
|
this.checkPassword = new RegExp(results.checkPassword);
|
|
268
268
|
}
|
|
269
269
|
if (results.checkPasswordMsg) {
|
|
270
|
-
this.checkPasswordMsg =
|
|
270
|
+
this.checkPasswordMsg = results.checkPasswordMsg;
|
|
271
271
|
}
|
|
272
272
|
this.results = results.simpleUserInfo;
|
|
273
273
|
this.values.orgName = results.simpleUserInfo.orgName;
|
package/src/index.js
CHANGED
package/src/utils/util.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
/* eslint-disable indent */
|
|
9
9
|
const sm2 = require('sm-crypto').sm2;
|
|
10
|
-
import { authCenter } from '../config/api';
|
|
10
|
+
import { authCenter, mainConfig } from '../config/api';
|
|
11
11
|
import axios from 'axios';
|
|
12
12
|
import qs from 'qs';
|
|
13
13
|
import JSONbig from 'json-bigint';
|
|
@@ -1206,6 +1206,7 @@ const getLength = function (text) {
|
|
|
1206
1206
|
* @desc:转换明度
|
|
1207
1207
|
* @author huangbo
|
|
1208
1208
|
* @date 2022年5月7日
|
|
1209
|
+
* @return {string,array} 元素类名或者id
|
|
1209
1210
|
**/
|
|
1210
1211
|
const getLightness = function ($v, $i, $isLight) {
|
|
1211
1212
|
let $value = $isLight
|
|
@@ -1215,6 +1216,24 @@ const getLightness = function ($v, $i, $isLight) {
|
|
|
1215
1216
|
return toFixed($value, 2);
|
|
1216
1217
|
};
|
|
1217
1218
|
|
|
1219
|
+
/**
|
|
1220
|
+
* getMainConfig
|
|
1221
|
+
* @desc 获取系统配置
|
|
1222
|
+
* @author huangbo
|
|
1223
|
+
* @date 2022年5月7日
|
|
1224
|
+
* @param {function} callback - 回调函数
|
|
1225
|
+
**/
|
|
1226
|
+
const getMainConfig = function (callback) {
|
|
1227
|
+
ajax({ url: mainConfig })
|
|
1228
|
+
.then((res) => {
|
|
1229
|
+
if (res && res.rCode === 0) {
|
|
1230
|
+
callback(res.results);
|
|
1231
|
+
}
|
|
1232
|
+
})
|
|
1233
|
+
.catch(() => {
|
|
1234
|
+
});
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1218
1237
|
/**
|
|
1219
1238
|
* getMinute
|
|
1220
1239
|
* @desc 获取分钟
|
|
@@ -1857,7 +1876,7 @@ const indexOfObj = function (arry, target, key) {
|
|
|
1857
1876
|
* @date 2022年5月7日
|
|
1858
1877
|
* @param {Object} [obj] -
|
|
1859
1878
|
**/
|
|
1860
|
-
const isExist = function(obj) {
|
|
1879
|
+
const isExist = function (obj) {
|
|
1861
1880
|
return obj !== undefined && obj !== null && obj !== '';
|
|
1862
1881
|
};
|
|
1863
1882
|
|
|
@@ -2868,6 +2887,7 @@ export default {
|
|
|
2868
2887
|
getHour,
|
|
2869
2888
|
getWeekNumber,
|
|
2870
2889
|
getLength,
|
|
2890
|
+
getMainConfig,
|
|
2871
2891
|
getMinute,
|
|
2872
2892
|
getMonth,
|
|
2873
2893
|
getObjectType,
|