@gct-paas/design 6.0.0-dev.28 → 6.0.0-dev.29
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.
|
@@ -52,7 +52,7 @@ export declare function loadDetailPageInfo(app: App): Promise<void>;
|
|
|
52
52
|
*/
|
|
53
53
|
export declare function toggleTxnPageInfo(mode: ContextTxnPageModeEnum): Promise<void>;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* 初始化界面占用信息,目前针对详情和事务,补充2个锁了type,分别是detail_page和transaction_module
|
|
56
56
|
*/
|
|
57
57
|
declare function initLockState(type?: string): void;
|
|
58
58
|
/**
|
|
@@ -10,7 +10,7 @@ import { useCacheHistory } from "../../develop/useCacheHistory.mjs";
|
|
|
10
10
|
import { useToolkit } from "../layout/useToolkit.mjs";
|
|
11
11
|
import { useDesigner } from "../useDesigner.mjs";
|
|
12
12
|
import { isEmpty, isNil } from "lodash-es";
|
|
13
|
-
import { ButtonSize, ButtonStyle,
|
|
13
|
+
import { ButtonSize, ButtonStyle, ContextTxnPageModeEnum, FormComponents, KitPkgUtil, PanelEnum, Platform, t } from "@gct-paas/core";
|
|
14
14
|
import { computed, createVNode, ref } from "vue";
|
|
15
15
|
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
|
16
16
|
import { Modal } from "ant-design-vue";
|
|
@@ -210,7 +210,7 @@ async function loadTxnPageInfo(app) {
|
|
|
210
210
|
initToolkitWidgets();
|
|
211
211
|
loadPageDesignHistoryList();
|
|
212
212
|
pagePermissions.value = await _api.apaas.permission.getList({ relationId: _gct.store.context.pid }) || [];
|
|
213
|
-
if (!pid.startsWith("___new___")) initLockState();
|
|
213
|
+
if (!pid.startsWith("___new___")) initLockState("transaction_module");
|
|
214
214
|
savePageJsonSnapshot();
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
@@ -295,7 +295,7 @@ async function toggleTxnPageInfo(mode) {
|
|
|
295
295
|
if (mode === ContextTxnPageModeEnum.CREATE) {
|
|
296
296
|
pageInfo.value.detailDesignerJson = JSON.stringify(pageJson);
|
|
297
297
|
pageInfo.value.txnPageMode = mode;
|
|
298
|
-
setTxnPageJson({ ...JSON.parse(pageInfo.value._designerJson) });
|
|
298
|
+
setTxnPageJson({ ...JSON.parse(pageInfo.value._designerJson) }, true);
|
|
299
299
|
} else {
|
|
300
300
|
pageInfo.value._designerJson = JSON.stringify(pageJson);
|
|
301
301
|
pageInfo.value.txnPageMode = mode;
|
|
@@ -308,14 +308,13 @@ async function toggleTxnPageInfo(mode) {
|
|
|
308
308
|
paddingBottom: "16",
|
|
309
309
|
paddingLeft: "16"
|
|
310
310
|
}
|
|
311
|
-
} });
|
|
311
|
+
} }, false);
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
/**
|
|
315
|
-
*
|
|
315
|
+
* 初始化界面占用信息,目前针对详情和事务,补充2个锁了type,分别是detail_page和transaction_module
|
|
316
316
|
*/
|
|
317
317
|
function initLockState(type) {
|
|
318
|
-
if (_gct.store.context.scene === ContextSceneEnum.TXN) return;
|
|
319
318
|
const { setLockInfo, initOccupy, loadOccupyInfo } = useUserOccupy();
|
|
320
319
|
const initData = {
|
|
321
320
|
id: _gct.store.context.pid || "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/design",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台设计界面底包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"react-dnd-html5-backend": "^16.0.1",
|
|
52
52
|
"vue": "^3.5.30",
|
|
53
53
|
"vue3-dnd": "^2.1.0",
|
|
54
|
-
"@gct-paas/core": "6.0.0-dev.
|
|
55
|
-
"@gct-paas/schema": "6.0.0-dev.
|
|
56
|
-
"@gct-paas/
|
|
57
|
-
"@gct-paas/
|
|
54
|
+
"@gct-paas/core": "6.0.0-dev.29",
|
|
55
|
+
"@gct-paas/schema": "6.0.0-dev.29",
|
|
56
|
+
"@gct-paas/core-web": "6.0.0-dev.29",
|
|
57
|
+
"@gct-paas/scss": "6.0.0-dev.29"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/babel__core": "^7.20.5",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"@gct-paas/api": "^6.0.0-dev.10",
|
|
66
66
|
"vue": ">=3",
|
|
67
|
-
"@gct-paas/core": "6.0.0-dev.
|
|
68
|
-
"@gct-paas/core-web": "6.0.0-dev.
|
|
69
|
-
"@gct-paas/
|
|
70
|
-
"@gct-paas/
|
|
67
|
+
"@gct-paas/core": "6.0.0-dev.29",
|
|
68
|
+
"@gct-paas/core-web": "6.0.0-dev.29",
|
|
69
|
+
"@gct-paas/scss": "6.0.0-dev.29",
|
|
70
|
+
"@gct-paas/schema": "6.0.0-dev.29"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|