agilebuilder-ui 1.1.15 → 1.1.16-tmp1
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/{401-08d35d52.js → 401-00c49690.js} +1 -1
- package/lib/{404-cfcc0ca9.js → 404-c4147027.js} +1 -1
- package/lib/{iframe-page-12d59e9c.js → iframe-page-e043d90e.js} +1 -1
- package/lib/{index-5a2a6a90.js → index-cd2cc1c6.js} +22247 -21835
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +91 -91
- package/lib/{tab-content-iframe-index-94a31c76.js → tab-content-iframe-index-5f22a3b1.js} +1 -1
- package/lib/{tab-content-index-ee4f5cec.js → tab-content-index-7b98f020.js} +1 -1
- package/lib/{tache-subprocess-history-5bbc0856.js → tache-subprocess-history-a0cb4649.js} +1 -1
- package/package.json +1 -1
- package/packages/index.js +1 -0
- package/packages/super-grid/src/apis.js +53 -1
- package/packages/super-grid/src/normal-column-content.vue +145 -3
- package/packages/super-grid/src/super-grid.vue +10 -1
- package/src/i18n/langs/cn.js +6 -0
- package/src/i18n/langs/en.js +6 -0
- package/src/store/getters.js +4 -0
- package/src/store/index.js +2 -0
- package/src/store/modules/table.js +76 -0
- package/src/store/modules/user.js +3 -1
- package/src/styles/display-layout.scss +10 -0
- package/src/styles/theme/tiffany-blue-mobile/card.scss +1 -2
- package/src/utils/auth-api.js +11 -8
- package/src/utils/auth.js +5 -0
- package/src/utils/common-util.js +41 -19
- package/src/utils/insert_css.js +33 -0
- package/src/utils/jump-page-utils.js +43 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 动态引入公共样式库
|
|
3
|
+
*/
|
|
4
|
+
if (!window.insertedCssFiles) {
|
|
5
|
+
// 存储 已经动态加入 样式地址
|
|
6
|
+
window.insertedCssFiles = new Set();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
if (!window.defaultCssUrl) {
|
|
10
|
+
window.defaultCssUrl = 'myapp-default-css/default.css';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (!window.insertCssFile) {
|
|
14
|
+
window.insertCssFile = (cssUrl) => {
|
|
15
|
+
if (!cssUrl || window.insertedCssFiles.has(cssUrl)) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const link = document.createElement('link');
|
|
19
|
+
link.rel = 'stylesheet';
|
|
20
|
+
link.href = cssUrl;
|
|
21
|
+
link.onload = function () {
|
|
22
|
+
window.insertedCssFiles.add(cssUrl);
|
|
23
|
+
};
|
|
24
|
+
link.onerror = function () {
|
|
25
|
+
console.error(`无法加载公共 CSS 文件: ${cssUrl}`);
|
|
26
|
+
};
|
|
27
|
+
document.head.appendChild(link);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (window.insertCssFile) {
|
|
32
|
+
window.insertCssFile(window.defaultCssUrl);
|
|
33
|
+
}
|
|
@@ -549,16 +549,57 @@ function getPageCode(jumpPageUrl) {
|
|
|
549
549
|
}
|
|
550
550
|
return pageCode
|
|
551
551
|
}
|
|
552
|
+
// 适配移动端跳转页面打开方式
|
|
553
|
+
function refreshMobileDialogType(jumpPageSetting, isMobile) {
|
|
554
|
+
if (jumpPageSetting && isMobile) {
|
|
555
|
+
let openMode = jumpPageSetting.jumpPageMobileOpenMode
|
|
556
|
+
if (!openMode) {
|
|
557
|
+
if (jumpPageSetting.jumpPageOpenMode) {
|
|
558
|
+
// 表示没有配移动端打开方式,根据pc端打开方式适配移动端
|
|
559
|
+
openMode = jumpPageSetting.jumpPageOpenMode
|
|
560
|
+
if (openMode === 'newTab') {
|
|
561
|
+
// 移动端不支持新页签,适配为刷新区域
|
|
562
|
+
openMode = 'refresh'
|
|
563
|
+
}
|
|
564
|
+
} else {
|
|
565
|
+
// 表示没有配置任何打开方式,默认是刷新区域
|
|
566
|
+
openMode = 'refresh'
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
if (openMode === 'refresh') {
|
|
570
|
+
// 如果是刷新区域,则解析时为全屏抽屉
|
|
571
|
+
jumpPageSetting.dialogType = 'drawer'
|
|
572
|
+
jumpPageSetting.jumpPageWidth = '100%'
|
|
573
|
+
jumpPageSetting.isRefreshWhenClosePopup = true
|
|
574
|
+
}
|
|
575
|
+
jumpPageSetting.jumpPageMobileOpenMode = openMode
|
|
576
|
+
// if(!jumpPageSetting.jumpPageTitle){
|
|
577
|
+
// jumpPageSetting.jumpPageTitle = 'QMS质量管理系统'
|
|
578
|
+
// }
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
552
582
|
// 使用页面组件内部调整
|
|
553
583
|
function jumpWithSuperPage(jumpPageUrl, system, dataId, jumpPageSetting, ids, buttonCode, isHasIdParam, isMobile) {
|
|
554
584
|
return new Promise((resolve, reject) => {
|
|
555
585
|
// 表示是自定义系统跳转页面编码
|
|
556
586
|
console.log('----jumpWithSuperPage---', jumpPageUrl, system, dataId, jumpPageSetting)
|
|
557
587
|
const pageCode = getPageCode(jumpPageUrl)
|
|
558
|
-
|
|
559
|
-
|
|
588
|
+
// 移动端newTab时更新页面打开方式为refresh
|
|
589
|
+
refreshMobileDialogType(jumpPageSetting, isMobile)
|
|
590
|
+
let jumpMode
|
|
591
|
+
if (isMobile && jumpPageSetting && jumpPageSetting.jumpPageMobileOpenMode) {
|
|
592
|
+
// 移动端时,获得移动端打开方式
|
|
593
|
+
jumpMode = jumpPageSetting.jumpPageMobileOpenMode
|
|
594
|
+
}
|
|
595
|
+
if(!jumpMode && jumpPageSetting) {
|
|
596
|
+
// 移动端没有配置则以 打开方式为准
|
|
560
597
|
jumpMode = jumpPageSetting.jumpPageOpenMode
|
|
561
598
|
}
|
|
599
|
+
if(!jumpMode){
|
|
600
|
+
// 默认是刷新页面
|
|
601
|
+
jumpMode = 'refresh'
|
|
602
|
+
}
|
|
562
603
|
const jumpJsonData = {
|
|
563
604
|
jumpMode: jumpMode
|
|
564
605
|
}
|