agilebuilder-ui 1.1.15 → 1.1.16-tmp6
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-1093bbcf.js} +1 -1
- package/lib/{404-cfcc0ca9.js → 404-09cf9017.js} +1 -1
- package/lib/{iframe-page-12d59e9c.js → iframe-page-15b8354e.js} +1 -1
- package/lib/{index-5a2a6a90.js → index-2b8eabca.js} +4699 -4687
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +3 -3
- package/lib/{tab-content-iframe-index-94a31c76.js → tab-content-iframe-index-a43cac7b.js} +1 -1
- package/lib/{tab-content-index-ee4f5cec.js → tab-content-index-133a2913.js} +1 -1
- package/lib/{tache-subprocess-history-5bbc0856.js → tache-subprocess-history-c7779e85.js} +1 -1
- package/package.json +1 -1
- package/packages/super-grid/src/dynamic-input.vue +9 -3
- package/src/store/modules/user.js +3 -1
- package/src/utils/auth-api.js +11 -8
- package/src/utils/auth.js +5 -0
- package/src/utils/common-util.js +46 -29
- package/src/utils/jump-page-utils.js +43 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
|
|
2
|
-
import { _ as s } from "./index-
|
|
2
|
+
import { _ as s } from "./index-2b8eabca.js";
|
|
3
3
|
const u = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
|
|
4
4
|
this.src = this.$route.query.src;
|
|
5
5
|
} }, mounted() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-
|
|
1
|
+
import { _ as v, c as $, g as x, b as P, s as h, m as M, M as O, i as I } from "./index-2b8eabca.js";
|
|
2
2
|
import { resolveComponent as m, openBlock as l, createBlock as b, withCtx as g, createVNode as w, TransitionGroup as L, createElementBlock as p, Fragment as T, renderList as C, createElementVNode as u, toDisplayString as y, createCommentVNode as f, normalizeClass as S } from "vue";
|
|
3
3
|
const A = { class: "no-redirect" }, k = v({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
|
|
4
4
|
return this.levelList.filter((e) => e.meta.title !== void 0 && e.meta.title !== null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as t, openBlock as a, createElementBlock as s, createElementVNode as y, createVNode as l, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
|
|
2
|
-
import { _ as I } from "./index-
|
|
2
|
+
import { _ as I } from "./index-2b8eabca.js";
|
|
3
3
|
const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
|
|
4
4
|
const o = this.$route.query.workflowId;
|
|
5
5
|
o && (this.workflowId = parseInt(o));
|
package/package.json
CHANGED
|
@@ -517,7 +517,7 @@ import apis from './apis'
|
|
|
517
517
|
import ViewImageDialog from './view-image-dialog'
|
|
518
518
|
import { $emit } from '../../utils/gogocodeTransfer'
|
|
519
519
|
import eventBus from './eventBus'
|
|
520
|
-
import { isMobileBrowser } from '../../../src/utils/common-util'
|
|
520
|
+
import { isMobileBrowser, getAuthSource } from '../../../src/utils/common-util'
|
|
521
521
|
import { analysisScanValue, setScanAnalysisValue } from './scan-util.ts'
|
|
522
522
|
import customFormatter from './custom-formatter'
|
|
523
523
|
export default {
|
|
@@ -648,8 +648,10 @@ export default {
|
|
|
648
648
|
userAgent = 'browser'
|
|
649
649
|
}
|
|
650
650
|
console.log('superGrid----window.location.protocol---', window.location.protocol)
|
|
651
|
+
const isDingTalk = getAuthSource() === 'dingtalk' ? true : false
|
|
651
652
|
const isApk = isMobile && userAgent && userAgent === 'app' ? true : false
|
|
652
|
-
const isShowScanIcon =
|
|
653
|
+
const isShowScanIcon =
|
|
654
|
+
isApk || isDingTalk || (isMobile && scanEnable && window.location.protocol === 'https:' ? true : false)
|
|
653
655
|
|
|
654
656
|
let baseURL = gridParams.options.backendUrl
|
|
655
657
|
if (!baseURL) {
|
|
@@ -725,6 +727,7 @@ export default {
|
|
|
725
727
|
scanEnable,
|
|
726
728
|
userAgent,
|
|
727
729
|
isApk,
|
|
730
|
+
isDingTalk,
|
|
728
731
|
isShowBrowserScan: false,
|
|
729
732
|
isShowScanIcon,
|
|
730
733
|
baseURL,
|
|
@@ -1912,7 +1915,7 @@ export default {
|
|
|
1912
1915
|
},
|
|
1913
1916
|
scanClick() {
|
|
1914
1917
|
console.log('scanClick----userAgent=', this.userAgent)
|
|
1915
|
-
if (this.isApk) {
|
|
1918
|
+
if (this.isApk || this.isDingTalk) {
|
|
1916
1919
|
// 表示是APK中
|
|
1917
1920
|
const message = {
|
|
1918
1921
|
type: 'scan',
|
|
@@ -1920,6 +1923,9 @@ export default {
|
|
|
1920
1923
|
systemCode: this.pageContext.systemCode,
|
|
1921
1924
|
listCode: this.listCode
|
|
1922
1925
|
}
|
|
1926
|
+
if (this.isDingTalk) {
|
|
1927
|
+
message.type = 'dingTalkScan'
|
|
1928
|
+
}
|
|
1923
1929
|
window.parent.postMessage(JSON.stringify(message), '*')
|
|
1924
1930
|
} else {
|
|
1925
1931
|
// 表示是移动端浏览器中
|
|
@@ -10,7 +10,8 @@ import {
|
|
|
10
10
|
setToken,
|
|
11
11
|
removeProjectSettings,
|
|
12
12
|
removeProjectCode,
|
|
13
|
-
setTheme
|
|
13
|
+
setTheme,
|
|
14
|
+
removeSystemCacheUrl
|
|
14
15
|
} from '../../utils/auth'
|
|
15
16
|
|
|
16
17
|
import {
|
|
@@ -205,6 +206,7 @@ const user = {
|
|
|
205
206
|
removeDevpPermissions()
|
|
206
207
|
removeProjectSettings()
|
|
207
208
|
removeProjectCode()
|
|
209
|
+
removeSystemCacheUrl()
|
|
208
210
|
resolve(data)
|
|
209
211
|
})
|
|
210
212
|
.catch((error) => {
|
package/src/utils/auth-api.js
CHANGED
|
@@ -178,10 +178,11 @@ function getSystemCacheUrlByCode(systemCode) {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
function getSystemCacheUrl() {
|
|
181
|
-
let systemUrlJson = getCookieCache(currentSystemUrlKey)
|
|
182
|
-
if (!systemUrlJson) {
|
|
183
|
-
|
|
184
|
-
}
|
|
181
|
+
// let systemUrlJson = getCookieCache(currentSystemUrlKey)
|
|
182
|
+
// if (!systemUrlJson) {
|
|
183
|
+
// systemUrlJson = getSessionCache(currentSystemUrlKey)
|
|
184
|
+
// }
|
|
185
|
+
let systemUrlJson = localStorage.getItem(currentSystemUrlKey)
|
|
185
186
|
if (systemUrlJson) {
|
|
186
187
|
return JSON.parse(systemUrlJson)
|
|
187
188
|
}
|
|
@@ -190,14 +191,16 @@ function getSystemCacheUrl() {
|
|
|
190
191
|
function setSystemCacheUrl(systemUrlObj) {
|
|
191
192
|
if (systemUrlObj) {
|
|
192
193
|
const systemUrlStr = JSON.stringify(systemUrlObj)
|
|
193
|
-
|
|
194
|
-
|
|
194
|
+
localStorage.setItem(currentSystemUrlKey, systemUrlStr)
|
|
195
|
+
// setSessionCache(currentSystemUrlKey, systemUrlStr)
|
|
196
|
+
// setCookieCache(currentSystemUrlKey, systemUrlStr)
|
|
195
197
|
}
|
|
196
198
|
}
|
|
197
199
|
|
|
198
200
|
function removeSystemCacheUrl() {
|
|
199
|
-
removeSessionCache(currentSystemUrlKey)
|
|
200
|
-
removeCookieCache(currentSystemUrlKey)
|
|
201
|
+
// removeSessionCache(currentSystemUrlKey)
|
|
202
|
+
// removeCookieCache(currentSystemUrlKey)
|
|
203
|
+
localStorage.removeItem(currentSystemUrlKey)
|
|
201
204
|
}
|
|
202
205
|
|
|
203
206
|
function getLanguage() {
|
package/src/utils/auth.js
CHANGED
|
@@ -143,6 +143,10 @@ export function removeProjectCode() {
|
|
|
143
143
|
authApi.removeCookieCache('_PROJECT_CDOE')
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
+
export function removeSystemCacheUrl() {
|
|
147
|
+
authApi.removeSystemCacheUrl()
|
|
148
|
+
}
|
|
149
|
+
|
|
146
150
|
export function getRunCurrentRole() {
|
|
147
151
|
let runCurrentRoleKey = '_RUN_CURRENT_ROLE'
|
|
148
152
|
if(!isDevpSystem()){
|
|
@@ -160,4 +164,5 @@ export function clearPermission() {
|
|
|
160
164
|
|
|
161
165
|
removeAllSystemPermissions()
|
|
162
166
|
removePublishControl()
|
|
167
|
+
removeSystemCacheUrl()
|
|
163
168
|
}
|
package/src/utils/common-util.js
CHANGED
|
@@ -546,25 +546,26 @@ async function handlePlateSysLang(currentLanguage) {
|
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
export function setProjectSetting() {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
this
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
549
|
+
// export function setProjectSetting() {
|
|
550
|
+
// const projectSettingCache = Cookies.get('PROJECT_SETTINGS')
|
|
551
|
+
// let projectSettings = null
|
|
552
|
+
// if (projectSettingCache) {
|
|
553
|
+
// projectSettings = JSON.parse(projectSettingCache)
|
|
554
|
+
// // TODO:工具方法中没有this,这个代码会报错,先注释该方法,没找到调用它的地方
|
|
555
|
+
// this.setLogoUrl(projectSettings)
|
|
556
|
+
// } else {
|
|
557
|
+
// window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/cfg/project-settings').then((data) => {
|
|
558
|
+
// Cookies.set('PROJECT_SETTINGS', JSON.stringify(data))
|
|
559
|
+
// projectSettings = data
|
|
560
|
+
// })
|
|
561
|
+
// }
|
|
562
|
+
// if (projectSettings.browserImageUuid) {
|
|
563
|
+
// const linkElement = document.getElementById('ambBrowserIcon')
|
|
564
|
+
// if (linkElement) {
|
|
565
|
+
// linkElement.href = window.$vueApp.config.globalProperties.baseAPI + '/cfg/project/icon/browserIcon'
|
|
566
|
+
// }
|
|
567
|
+
// }
|
|
568
|
+
// }
|
|
568
569
|
|
|
569
570
|
// 动态加载css
|
|
570
571
|
export function loadCSS() {
|
|
@@ -675,16 +676,8 @@ export function getCurrentSystemCode() {
|
|
|
675
676
|
|
|
676
677
|
export function isLogoutTimeout(event) {
|
|
677
678
|
let isTimeout = false
|
|
678
|
-
if (
|
|
679
|
-
event &&
|
|
680
|
-
typeof event.data === 'string' &&
|
|
681
|
-
event.data.indexOf('loginTimeout') >= 0
|
|
682
|
-
) {
|
|
683
|
-
if (
|
|
684
|
-
event &&
|
|
685
|
-
typeof event.data === 'string' &&
|
|
686
|
-
event.data.indexOf('loginTimeout') >= 0
|
|
687
|
-
) {
|
|
679
|
+
if (event && typeof event.data === 'string' && event.data.indexOf('loginTimeout') >= 0) {
|
|
680
|
+
if (event && typeof event.data === 'string' && event.data.indexOf('loginTimeout') >= 0) {
|
|
688
681
|
// removeToken()
|
|
689
682
|
// this.$router.replace({
|
|
690
683
|
// path: '/login'
|
|
@@ -694,3 +687,27 @@ export function isLogoutTimeout(event) {
|
|
|
694
687
|
}
|
|
695
688
|
return isTimeout
|
|
696
689
|
}
|
|
690
|
+
|
|
691
|
+
export function cacheSystemUrl() {
|
|
692
|
+
return new Promise((resolve, reject) => {
|
|
693
|
+
const systemUrls = window.$authApi.getSystemCacheUrl()
|
|
694
|
+
if (!systemUrls) {
|
|
695
|
+
window.$vueApp.config.globalProperties.$http
|
|
696
|
+
.get(window.$vueApp.config.globalProperties.baseAPI + '/component/business-systems/without-plate')
|
|
697
|
+
.then((urlMap) => {
|
|
698
|
+
if (urlMap) {
|
|
699
|
+
window.$authApi.setSystemCacheUrl(urlMap)
|
|
700
|
+
}
|
|
701
|
+
resolve()
|
|
702
|
+
})
|
|
703
|
+
} else {
|
|
704
|
+
resolve()
|
|
705
|
+
}
|
|
706
|
+
})
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* 登录源是哪种方式,例如:portal、dingtalk、weixin、mobile等
|
|
710
|
+
*/
|
|
711
|
+
export function getAuthSource() {
|
|
712
|
+
return window.localStorage.getItem('auth_source')
|
|
713
|
+
}
|
|
@@ -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
|
}
|