@ibiz-template/full-code-template 0.7.40-alpha.7 → 0.7.41-alpha.3
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/package.json +2 -2
- package/src/index.js +1 -0
- package/static/package.json +8 -10
- package/static/pnpm-lock.yaml +67 -71
- package/static/public/environments/environment.js +2 -1
- package/static/src/components/view-shell/view-shell.tsx +4 -1
- package/static/src/main.ts +2 -1
- package/static/src/model/model-loader.ts +33 -21
- package/template/model/index.ts.hbs +1 -1
- package/template/pages/index.ts.hbs +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/full-code-template",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.41-alpha.3",
|
|
4
4
|
"description": "vue3全代码模版包,根据包内容生成项目代码。",
|
|
5
5
|
"bin": {
|
|
6
6
|
"code-generator": "src/index.js"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"author": "ibiz",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@ibizlab/cli": "^0.2.
|
|
19
|
+
"@ibizlab/cli": "^0.2.26",
|
|
20
20
|
"commander": "^12.0.0",
|
|
21
21
|
"prettier": "^3.2.5"
|
|
22
22
|
}
|
package/src/index.js
CHANGED
|
@@ -33,5 +33,6 @@ execSync(
|
|
|
33
33
|
`${binPath}/ibizlab pub -m ${modelPath} -t ${templatePath} -o ${outputPath}/src/publish --app ${app} && ${binPath}/prettier --ignore-path '' '${outputPath}/src/publish/**/*.(ts|vue|tsx)' -w`,
|
|
34
34
|
);
|
|
35
35
|
copyFiles(`${outputPath}/src/publish/app`, `${outputPath}/public/static/app`);
|
|
36
|
+
fs.rmSync(`${outputPath}/src/publish/app`, { recursive: true, force: true }); // 递归删除目录及其内容
|
|
36
37
|
|
|
37
38
|
console.log(`发布模板成功,模型路径:${modelPath},发布应用代码标识:${app},模板路径:${templatePath},输出路径:${outputPath}/src/publish`);
|
package/static/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/full-code-template",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.41-alpha.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
"compute-pkg": "ibiz-temp compute-pkg -m /root/workspace/plm-community-plugin/plmcom-core/src/main/resources/model/cn/ibizlab/plmcom --app plmcomweb",
|
|
15
15
|
"download-pkg": "ibiz-temp download-pkg",
|
|
16
16
|
"prettier": "prettier --ignore-path '' 'src/publish/**/*.(ts|vue|tsx)' -w",
|
|
17
|
-
"clear": "rm -rf src/publish"
|
|
18
|
-
"publish": "publish -p .",
|
|
19
|
-
"generate": "generate -m /root/workspace/plm-community-plugin/plmcom-core/src/main/resources/model/cn/ibizlab/plmcom -o ./temp --app plmcomweb -tv 0.7.40-alpha.7"
|
|
17
|
+
"clear": "rm -rf src/publish"
|
|
20
18
|
},
|
|
21
19
|
"dependencies": {
|
|
22
20
|
"@antv/x6": "^2.18.1",
|
|
@@ -25,13 +23,13 @@
|
|
|
25
23
|
"@ibiz-template-plugin/bi-report": "0.0.26",
|
|
26
24
|
"@ibiz-template-plugin/data-view": "0.0.4",
|
|
27
25
|
"@ibiz-template/cli": "^0.3.13",
|
|
28
|
-
"@ibiz-template/core": "0.7.
|
|
26
|
+
"@ibiz-template/core": "0.7.41-alpha.2",
|
|
29
27
|
"@ibiz-template/devtool": "0.0.11",
|
|
30
|
-
"@ibiz-template/model-helper": "0.7.
|
|
31
|
-
"@ibiz-template/runtime": "0.7.
|
|
28
|
+
"@ibiz-template/model-helper": "0.7.41-alpha.2",
|
|
29
|
+
"@ibiz-template/runtime": "0.7.41-alpha.2",
|
|
32
30
|
"@ibiz-template/theme": "0.7.39",
|
|
33
|
-
"@ibiz-template/vue3-components": "0.7.
|
|
34
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
31
|
+
"@ibiz-template/vue3-components": "0.7.41-alpha.2",
|
|
32
|
+
"@ibiz-template/vue3-util": "0.7.41-alpha.2",
|
|
35
33
|
"@ibiz-template/web-theme": "3.4.0",
|
|
36
34
|
"@ibiz/model-core": "^0.1.76",
|
|
37
35
|
"@ibiz/rt-model-api": "^0.2.73",
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
"devDependencies": {
|
|
63
61
|
"@commitlint/cli": "^17.8.0",
|
|
64
62
|
"@commitlint/config-conventional": "^17.8.0",
|
|
65
|
-
"@ibizlab/cli": "^0.2.
|
|
63
|
+
"@ibizlab/cli": "^0.2.26",
|
|
66
64
|
"@types/lodash-es": "^4.17.10",
|
|
67
65
|
"@types/node": "^20.8.7",
|
|
68
66
|
"@types/nprogress": "^0.2.2",
|
package/static/pnpm-lock.yaml
CHANGED
|
@@ -16,37 +16,37 @@ dependencies:
|
|
|
16
16
|
version: 0.0.28(cherry-markdown@0.8.26)(interactjs@1.10.26)(react@18.3.1)(vite@4.5.0)
|
|
17
17
|
'@ibiz-template-plugin/bi-report':
|
|
18
18
|
specifier: 0.0.26
|
|
19
|
-
version: 0.0.26(@ibiz-template/core@0.7.
|
|
19
|
+
version: 0.0.26(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz/model-core@0.1.76)(axios@1.6.7)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
|
|
20
20
|
'@ibiz-template-plugin/data-view':
|
|
21
21
|
specifier: 0.0.4
|
|
22
|
-
version: 0.0.4(@ibiz-template/core@0.7.
|
|
22
|
+
version: 0.0.4(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(axios@1.6.7)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
|
|
23
23
|
'@ibiz-template/cli':
|
|
24
24
|
specifier: ^0.3.13
|
|
25
25
|
version: 0.3.14(@types/node@20.8.7)(postcss@8.4.31)(vue@3.3.8)
|
|
26
26
|
'@ibiz-template/core':
|
|
27
|
-
specifier: 0.7.
|
|
28
|
-
version: 0.7.
|
|
27
|
+
specifier: 0.7.41-alpha.2
|
|
28
|
+
version: 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
29
29
|
'@ibiz-template/devtool':
|
|
30
30
|
specifier: 0.0.11
|
|
31
|
-
version: 0.0.11(@ibiz-template/core@0.7.
|
|
31
|
+
version: 0.0.11(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/model-helper@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.7)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
|
|
32
32
|
'@ibiz-template/model-helper':
|
|
33
|
-
specifier: 0.7.
|
|
34
|
-
version: 0.7.
|
|
33
|
+
specifier: 0.7.41-alpha.2
|
|
34
|
+
version: 0.7.41-alpha.2(@ibiz-template/runtime@0.7.41-alpha.2)(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
35
35
|
'@ibiz-template/runtime':
|
|
36
|
-
specifier: 0.7.
|
|
37
|
-
version: 0.7.
|
|
36
|
+
specifier: 0.7.41-alpha.2
|
|
37
|
+
version: 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
38
38
|
'@ibiz-template/theme':
|
|
39
39
|
specifier: 0.7.39
|
|
40
40
|
version: 0.7.39
|
|
41
41
|
'@ibiz-template/vue3-components':
|
|
42
|
-
specifier: 0.7.
|
|
43
|
-
version: 0.7.
|
|
42
|
+
specifier: 0.7.41-alpha.2
|
|
43
|
+
version: 0.7.41-alpha.2(@floating-ui/dom@1.5.3)(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/model-helper@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(@imengyu/vue3-context-menu@1.4.1)(@monaco-editor/loader@1.4.0)(@wangeditor/editor-for-vue@5.1.12)(@wangeditor/editor@5.1.23)(async-validator@4.2.5)(cherry-markdown@0.8.26)(dayjs@1.11.10)(echarts@5.4.3)(element-plus@2.4.4)(handlebars@4.7.8)(lodash-es@4.17.21)(monaco-editor@0.45.0)(mqtt@2.18.9)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(react@18.3.1)(vite@4.5.0)(vue-i18n@9.13.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
|
|
44
44
|
'@ibiz-template/vue3-util':
|
|
45
|
-
specifier: 0.7.
|
|
46
|
-
version: 0.7.
|
|
45
|
+
specifier: 0.7.41-alpha.2
|
|
46
|
+
version: 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
|
|
47
47
|
'@ibiz-template/web-theme':
|
|
48
48
|
specifier: 3.4.0
|
|
49
|
-
version: 3.4.0(@ibiz-template/core@0.7.
|
|
49
|
+
version: 3.4.0(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
50
50
|
'@ibiz/model-core':
|
|
51
51
|
specifier: ^0.1.76
|
|
52
52
|
version: 0.1.76
|
|
@@ -131,8 +131,8 @@ devDependencies:
|
|
|
131
131
|
specifier: ^17.8.0
|
|
132
132
|
version: 17.8.0
|
|
133
133
|
'@ibizlab/cli':
|
|
134
|
-
specifier: ^0.2.
|
|
135
|
-
version: 0.2.
|
|
134
|
+
specifier: ^0.2.26
|
|
135
|
+
version: 0.2.26(@ibizlab/model@0.2.15)
|
|
136
136
|
'@types/lodash-es':
|
|
137
137
|
specifier: ^4.17.10
|
|
138
138
|
version: 4.17.10
|
|
@@ -3727,7 +3727,7 @@ packages:
|
|
|
3727
3727
|
- vite
|
|
3728
3728
|
dev: false
|
|
3729
3729
|
|
|
3730
|
-
/@ibiz-template-plugin/bi-report@0.0.26(@ibiz-template/core@0.7.
|
|
3730
|
+
/@ibiz-template-plugin/bi-report@0.0.26(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz/model-core@0.1.76)(axios@1.6.7)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0):
|
|
3731
3731
|
resolution: {integrity: sha512-gDKx7eljqzqhbgDYNa2SiQme51aEJ1Wz3p8AhUyAHOsK0+N4SF94iOPknHRKsh4QUOwHy4/WnQvRNcMwnx0QqQ==}
|
|
3732
3732
|
peerDependencies:
|
|
3733
3733
|
'@ibiz-template/core': 0.7.35-alpha.1
|
|
@@ -3742,8 +3742,8 @@ packages:
|
|
|
3742
3742
|
vue: ^3.3.8
|
|
3743
3743
|
vuedraggable: ^4.1.0
|
|
3744
3744
|
dependencies:
|
|
3745
|
-
'@ibiz-template/core': 0.7.
|
|
3746
|
-
'@ibiz-template/runtime': 0.7.
|
|
3745
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3746
|
+
'@ibiz-template/runtime': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3747
3747
|
'@ibiz-template/theme': 0.7.39
|
|
3748
3748
|
'@ibiz/model-core': 0.1.76
|
|
3749
3749
|
'@wangeditor/editor': 5.1.23
|
|
@@ -3759,7 +3759,7 @@ packages:
|
|
|
3759
3759
|
vuedraggable: 4.1.0(vue@3.3.8)
|
|
3760
3760
|
dev: false
|
|
3761
3761
|
|
|
3762
|
-
/@ibiz-template-plugin/data-view@0.0.4(@ibiz-template/core@0.7.
|
|
3762
|
+
/@ibiz-template-plugin/data-view@0.0.4(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(axios@1.6.7)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0):
|
|
3763
3763
|
resolution: {integrity: sha512-Q4lHo/hLtSRZU/FxvUvmwUTHqq77OKtHguW7pKtOcAL9SNwhur4wbJVOalMrGlS1VajrMfn4Uqo2NE7NepfGmw==}
|
|
3764
3764
|
peerDependencies:
|
|
3765
3765
|
'@ibiz-template/core': 0.7.39
|
|
@@ -3775,10 +3775,10 @@ packages:
|
|
|
3775
3775
|
vue: ^3.3.8
|
|
3776
3776
|
vuedraggable: ^4.1.0
|
|
3777
3777
|
dependencies:
|
|
3778
|
-
'@ibiz-template/core': 0.7.
|
|
3779
|
-
'@ibiz-template/runtime': 0.7.
|
|
3778
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3779
|
+
'@ibiz-template/runtime': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3780
3780
|
'@ibiz-template/theme': 0.7.39
|
|
3781
|
-
'@ibiz-template/vue3-util': 0.7.
|
|
3781
|
+
'@ibiz-template/vue3-util': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
|
|
3782
3782
|
'@ibiz/model-core': 0.1.76
|
|
3783
3783
|
axios: 1.6.7
|
|
3784
3784
|
dayjs: 1.11.10
|
|
@@ -3919,8 +3919,8 @@ packages:
|
|
|
3919
3919
|
- vue
|
|
3920
3920
|
dev: false
|
|
3921
3921
|
|
|
3922
|
-
/@ibiz-template/core@0.7.
|
|
3923
|
-
resolution: {integrity: sha512-
|
|
3922
|
+
/@ibiz-template/core@0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
|
|
3923
|
+
resolution: {integrity: sha512-Ye5XRpLqBbzcXL6k2ovurP98DgS6B2BRiu9P+JMznWzX/eZleRKpub2vvy7tzpdJXYu5+vtfcZRNfZgSKoQ4EQ==}
|
|
3924
3924
|
peerDependencies:
|
|
3925
3925
|
axios: ^1.4.0
|
|
3926
3926
|
lodash-es: ^4.17.21
|
|
@@ -3938,7 +3938,7 @@ packages:
|
|
|
3938
3938
|
ramda: 0.29.1
|
|
3939
3939
|
dev: false
|
|
3940
3940
|
|
|
3941
|
-
/@ibiz-template/devtool@0.0.11(@ibiz-template/core@0.7.
|
|
3941
|
+
/@ibiz-template/devtool@0.0.11(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/model-helper@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.7)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0):
|
|
3942
3942
|
resolution: {integrity: sha512-IGS9hL3Tw+iJ7A60xgxBPNMpUK6AwXin3UEWHDKQAR5V4ZSURzTP4AMlDl4d8yVb84fVNl6d2as7OJIFnARfaQ==}
|
|
3943
3943
|
peerDependencies:
|
|
3944
3944
|
'@ibiz-template/core': ^0.6.2
|
|
@@ -3961,11 +3961,11 @@ packages:
|
|
|
3961
3961
|
vue-router: ^4.2.5
|
|
3962
3962
|
vuedraggable: ^4.1.0
|
|
3963
3963
|
dependencies:
|
|
3964
|
-
'@ibiz-template/core': 0.7.
|
|
3965
|
-
'@ibiz-template/model-helper': 0.7.
|
|
3966
|
-
'@ibiz-template/runtime': 0.7.
|
|
3964
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3965
|
+
'@ibiz-template/model-helper': 0.7.41-alpha.2(@ibiz-template/runtime@0.7.41-alpha.2)(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3966
|
+
'@ibiz-template/runtime': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3967
3967
|
'@ibiz-template/theme': 0.7.39
|
|
3968
|
-
'@ibiz-template/vue3-util': 0.7.
|
|
3968
|
+
'@ibiz-template/vue3-util': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
|
|
3969
3969
|
'@ibiz/model-core': 0.1.76
|
|
3970
3970
|
'@imengyu/vue3-context-menu': 1.4.1
|
|
3971
3971
|
'@monaco-editor/loader': 1.4.0(monaco-editor@0.45.0)
|
|
@@ -3986,16 +3986,16 @@ packages:
|
|
|
3986
3986
|
vuedraggable: 4.1.0(vue@3.3.8)
|
|
3987
3987
|
dev: false
|
|
3988
3988
|
|
|
3989
|
-
/@ibiz-template/model-helper@0.7.
|
|
3990
|
-
resolution: {integrity: sha512-
|
|
3989
|
+
/@ibiz-template/model-helper@0.7.41-alpha.2(@ibiz-template/runtime@0.7.41-alpha.2)(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
|
|
3990
|
+
resolution: {integrity: sha512-j3aXHhc/WgZS0TRRc8a/WTLzaekLyAgPWp7DjJrALbL/DqIf5XymjTez4PTrfbQYpTF1wYDbEq1/IVaWQZKqiA==}
|
|
3991
3991
|
peerDependencies:
|
|
3992
3992
|
'@ibiz-template/runtime': ^0.6.0
|
|
3993
3993
|
ramda: ^0.29.0
|
|
3994
3994
|
dependencies:
|
|
3995
|
-
'@ibiz-template/core': 0.7.
|
|
3996
|
-
'@ibiz-template/runtime': 0.7.
|
|
3995
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3996
|
+
'@ibiz-template/runtime': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
3997
3997
|
'@ibiz/model-core': 0.1.76
|
|
3998
|
-
'@ibiz/rt-model-api': 0.2.
|
|
3998
|
+
'@ibiz/rt-model-api': 0.2.73
|
|
3999
3999
|
pluralize: 8.0.0
|
|
4000
4000
|
ramda: 0.29.1
|
|
4001
4001
|
transitivePeerDependencies:
|
|
@@ -4005,7 +4005,7 @@ packages:
|
|
|
4005
4005
|
- qx-util
|
|
4006
4006
|
dev: false
|
|
4007
4007
|
|
|
4008
|
-
/@ibiz-template/runtime@0.6.18(@ibiz-template/core@0.7.
|
|
4008
|
+
/@ibiz-template/runtime@0.6.18(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
|
|
4009
4009
|
resolution: {integrity: sha512-aL3CxA0kHAoNfS6N+3dYyGzmX2hp97eu5YFH58HU5xmehywp7XlRsCgu/SK64SGhHeywS/fKg5LGFnbJmqu6SQ==}
|
|
4010
4010
|
peerDependencies:
|
|
4011
4011
|
'@ibiz-template/core': ^0.6.0
|
|
@@ -4021,7 +4021,7 @@ packages:
|
|
|
4021
4021
|
qx-util: ^0.4.8
|
|
4022
4022
|
ramda: ^0.29.0
|
|
4023
4023
|
dependencies:
|
|
4024
|
-
'@ibiz-template/core': 0.7.
|
|
4024
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4025
4025
|
'@ibiz/model-core': 0.1.76
|
|
4026
4026
|
animejs: 3.2.2
|
|
4027
4027
|
async-validator: 4.2.5
|
|
@@ -4036,11 +4036,11 @@ packages:
|
|
|
4036
4036
|
ramda: 0.29.1
|
|
4037
4037
|
dev: false
|
|
4038
4038
|
|
|
4039
|
-
/@ibiz-template/runtime@0.7.
|
|
4040
|
-
resolution: {integrity: sha512-
|
|
4039
|
+
/@ibiz-template/runtime@0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
|
|
4040
|
+
resolution: {integrity: sha512-KGrHZzRLe7ZbsjNmxn2S0My/LVW7a1oyFOcr9PXUL3gGq5jmtihgryNPf6fwxGEPEJ9RFUS8C8p1R2mnFrecJA==}
|
|
4041
4041
|
peerDependencies:
|
|
4042
4042
|
'@ibiz-template/core': ^0.6.0
|
|
4043
|
-
'@ibiz/model-core': ^0.1.
|
|
4043
|
+
'@ibiz/model-core': ^0.1.76
|
|
4044
4044
|
async-validator: ^4.2.5
|
|
4045
4045
|
dayjs: ^1.11.7
|
|
4046
4046
|
echarts: ^5.4.3
|
|
@@ -4052,7 +4052,7 @@ packages:
|
|
|
4052
4052
|
qx-util: ^0.4.8
|
|
4053
4053
|
ramda: ^0.29.0
|
|
4054
4054
|
dependencies:
|
|
4055
|
-
'@ibiz-template/core': 0.7.
|
|
4055
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4056
4056
|
'@ibiz/model-core': 0.1.76
|
|
4057
4057
|
animejs: 3.2.2
|
|
4058
4058
|
async-validator: 4.2.5
|
|
@@ -4079,8 +4079,8 @@ packages:
|
|
|
4079
4079
|
resolution: {integrity: sha512-jlZUaYJrzLDULbANGaxFXwbf+0uwJsC5bSRDLjM8A6wCqv7gC+V0Z/x8gSy2wsrcy0EwaRSd2gZ2Q5eEhgDqag==}
|
|
4080
4080
|
dev: false
|
|
4081
4081
|
|
|
4082
|
-
/@ibiz-template/vue3-components@0.7.
|
|
4083
|
-
resolution: {integrity: sha512-
|
|
4082
|
+
/@ibiz-template/vue3-components@0.7.41-alpha.2(@floating-ui/dom@1.5.3)(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/model-helper@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(@imengyu/vue3-context-menu@1.4.1)(@monaco-editor/loader@1.4.0)(@wangeditor/editor-for-vue@5.1.12)(@wangeditor/editor@5.1.23)(async-validator@4.2.5)(cherry-markdown@0.8.26)(dayjs@1.11.10)(echarts@5.4.3)(element-plus@2.4.4)(handlebars@4.7.8)(lodash-es@4.17.21)(monaco-editor@0.45.0)(mqtt@2.18.9)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(react@18.3.1)(vite@4.5.0)(vue-i18n@9.13.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0):
|
|
4083
|
+
resolution: {integrity: sha512-nhAjFK5q9BeVp/UBr42zCMtHpLoQQGxdJ0oNw7rsafCXrHOqOpvwpkz2Cr4QFJVMdC/R8mZc9eDyWrqN88Lhtg==}
|
|
4084
4084
|
peerDependencies:
|
|
4085
4085
|
'@floating-ui/dom': ^1.5.1
|
|
4086
4086
|
'@ibiz-template/core': ^0.7.0
|
|
@@ -4088,7 +4088,7 @@ packages:
|
|
|
4088
4088
|
'@ibiz-template/runtime': ^0.7.0
|
|
4089
4089
|
'@ibiz-template/theme': ^0.7.0
|
|
4090
4090
|
'@ibiz-template/vue3-util': ^0.7.0
|
|
4091
|
-
'@ibiz/model-core': ^0.1.
|
|
4091
|
+
'@ibiz/model-core': ^0.1.76
|
|
4092
4092
|
'@imengyu/vue3-context-menu': ^1.3.3
|
|
4093
4093
|
'@monaco-editor/loader': ^1.3.3
|
|
4094
4094
|
'@wangeditor/editor': ^5.1.23
|
|
@@ -4112,16 +4112,16 @@ packages:
|
|
|
4112
4112
|
'@amap/amap-jsapi-loader': 1.0.1
|
|
4113
4113
|
'@floating-ui/dom': 1.5.3
|
|
4114
4114
|
'@ibiz-template-plugin/ai-chat': 0.0.28(cherry-markdown@0.8.26)(interactjs@1.10.26)(react@18.3.1)(vite@4.5.0)
|
|
4115
|
-
'@ibiz-template-plugin/bi-report': 0.0.26(@ibiz-template/core@0.7.
|
|
4116
|
-
'@ibiz-template-plugin/data-view': 0.0.4(@ibiz-template/core@0.7.
|
|
4115
|
+
'@ibiz-template-plugin/bi-report': 0.0.26(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz/model-core@0.1.76)(axios@1.6.7)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
|
|
4116
|
+
'@ibiz-template-plugin/data-view': 0.0.4(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(axios@1.6.7)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
|
|
4117
4117
|
'@ibiz-template-plugin/gantt': 0.1.8-alpha.198(async-validator@4.2.5)(axios@1.6.7)(dayjs@1.11.10)(lodash-es@4.17.21)(nprogress@0.2.0)(vue@3.3.8)
|
|
4118
|
-
'@ibiz-template/core': 0.7.
|
|
4119
|
-
'@ibiz-template/devtool': 0.0.11(@ibiz-template/core@0.7.
|
|
4120
|
-
'@ibiz-template/model-helper': 0.7.
|
|
4121
|
-
'@ibiz-template/runtime': 0.7.
|
|
4118
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4119
|
+
'@ibiz-template/devtool': 0.0.11(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/model-helper@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.7)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
|
|
4120
|
+
'@ibiz-template/model-helper': 0.7.41-alpha.2(@ibiz-template/runtime@0.7.41-alpha.2)(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4121
|
+
'@ibiz-template/runtime': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4122
4122
|
'@ibiz-template/theme': 0.7.39
|
|
4123
|
-
'@ibiz-template/vue3-util': 0.7.
|
|
4124
|
-
'@ibiz-template/web-theme': 3.4.0(@ibiz-template/core@0.7.
|
|
4123
|
+
'@ibiz-template/vue3-util': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
|
|
4124
|
+
'@ibiz-template/web-theme': 3.4.0(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4125
4125
|
'@ibiz/model-core': 0.1.76
|
|
4126
4126
|
'@imengyu/vue3-context-menu': 1.4.1
|
|
4127
4127
|
'@monaco-editor/loader': 1.4.0(monaco-editor@0.45.0)
|
|
@@ -4167,12 +4167,12 @@ packages:
|
|
|
4167
4167
|
- vite
|
|
4168
4168
|
dev: false
|
|
4169
4169
|
|
|
4170
|
-
/@ibiz-template/vue3-util@0.7.
|
|
4171
|
-
resolution: {integrity: sha512-
|
|
4170
|
+
/@ibiz-template/vue3-util@0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz-template/runtime@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8):
|
|
4171
|
+
resolution: {integrity: sha512-NqyArUvJ7qgH2IJcccu5EruFmKRveGZUc4HtVMZNqwP89H8eBFqpIixRlah8ReaNumwYfgjYfy19DbK6/tp9pA==}
|
|
4172
4172
|
peerDependencies:
|
|
4173
4173
|
'@ibiz-template/core': ^0.6.0
|
|
4174
4174
|
'@ibiz-template/runtime': ^0.6.0
|
|
4175
|
-
'@ibiz/model-core': ^0.1.
|
|
4175
|
+
'@ibiz/model-core': ^0.1.76
|
|
4176
4176
|
dayjs: ^1.11.10
|
|
4177
4177
|
path-browserify: ^1.0.1
|
|
4178
4178
|
pinia: ^2.1.7
|
|
@@ -4182,8 +4182,8 @@ packages:
|
|
|
4182
4182
|
vue: ^3.3.8
|
|
4183
4183
|
vue-router: ^4.2.4
|
|
4184
4184
|
dependencies:
|
|
4185
|
-
'@ibiz-template/core': 0.7.
|
|
4186
|
-
'@ibiz-template/runtime': 0.7.
|
|
4185
|
+
'@ibiz-template/core': 0.7.41-alpha.2(axios@1.6.7)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4186
|
+
'@ibiz-template/runtime': 0.7.41-alpha.2(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4187
4187
|
'@ibiz/model-core': 0.1.76
|
|
4188
4188
|
dayjs: 1.11.10
|
|
4189
4189
|
path-browserify: 1.0.1
|
|
@@ -4195,10 +4195,10 @@ packages:
|
|
|
4195
4195
|
vue-router: 4.2.5(vue@3.3.8)
|
|
4196
4196
|
dev: false
|
|
4197
4197
|
|
|
4198
|
-
/@ibiz-template/web-theme@3.4.0(@ibiz-template/core@0.7.
|
|
4198
|
+
/@ibiz-template/web-theme@3.4.0(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
|
|
4199
4199
|
resolution: {integrity: sha512-Y7XpqzZezyJ/ZRN1VpCu0UOT9YeBN/2BZZ+sEL9viPh1BIm0BdMiKGP4jKRlvPUlQd4tzsHpXYmroff3031vSw==}
|
|
4200
4200
|
dependencies:
|
|
4201
|
-
'@ibiz-template/runtime': 0.6.18(@ibiz-template/core@0.7.
|
|
4201
|
+
'@ibiz-template/runtime': 0.6.18(@ibiz-template/core@0.7.41-alpha.2)(@ibiz/model-core@0.1.76)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
|
|
4202
4202
|
transitivePeerDependencies:
|
|
4203
4203
|
- '@ibiz-template/core'
|
|
4204
4204
|
- '@ibiz/model-core'
|
|
@@ -4218,18 +4218,14 @@ packages:
|
|
|
4218
4218
|
resolution: {integrity: sha512-N837a/mgDOzPlaipNTqeF4GrP8zHFXJ8vuKrY5UWRo4CgT29K215zy1M1BCwcJjFCuLBM1Uz6stxh7Bo+Luu9w==}
|
|
4219
4219
|
dev: false
|
|
4220
4220
|
|
|
4221
|
-
/@ibiz/rt-model-api@0.2.72:
|
|
4222
|
-
resolution: {integrity: sha512-t4Q7Vbb5skMi949F7kLI8lIh3bxum88z9sVaEwlPv4uyFVm0mdJljpp1OGtqvptnXpr5HXjuHjjN24y/DUJUug==}
|
|
4223
|
-
dev: false
|
|
4224
|
-
|
|
4225
4221
|
/@ibiz/rt-model-api@0.2.73:
|
|
4226
4222
|
resolution: {integrity: sha512-lrJzvrwqeXGuGcE+3WML4O4d2oty+cD35cA7XdTtNVX9XrmJdpYmSAGb2s2BKuNxrrIsfiJJhKblKLdwGywMwA==}
|
|
4227
4223
|
|
|
4228
|
-
/@ibizlab/cli@0.2.
|
|
4229
|
-
resolution: {integrity: sha512-
|
|
4224
|
+
/@ibizlab/cli@0.2.26(@ibizlab/model@0.2.15):
|
|
4225
|
+
resolution: {integrity: sha512-2+Ea35ziD7B0xub4ND89ln5VAWzA1sKi1/OWGVAzgF2QQ1LyWbw+DNMdw11PJb+dum4lH2ElAw++Awbj3sZB1g==}
|
|
4230
4226
|
hasBin: true
|
|
4231
4227
|
dependencies:
|
|
4232
|
-
'@ibizlab/template': 0.2.
|
|
4228
|
+
'@ibizlab/template': 0.2.26(@ibizlab/model@0.2.15)
|
|
4233
4229
|
chalk: 4.1.2
|
|
4234
4230
|
commander: 11.1.0
|
|
4235
4231
|
fs-extra: 11.2.0
|
|
@@ -4276,8 +4272,8 @@ packages:
|
|
|
4276
4272
|
tapable: 2.2.1
|
|
4277
4273
|
dev: true
|
|
4278
4274
|
|
|
4279
|
-
/@ibizlab/template-model@0.2.
|
|
4280
|
-
resolution: {integrity: sha512-
|
|
4275
|
+
/@ibizlab/template-model@0.2.26(@ibizlab/model@0.2.15):
|
|
4276
|
+
resolution: {integrity: sha512-hhBOpE2fXUkAIIhbzaGjMO73NJtCFfYIhpfoEK72dRTQL7QCExTEspDVK4Ks2wyMiDpJz5Zk/jqqkbF7W5yCBQ==}
|
|
4281
4277
|
peerDependencies:
|
|
4282
4278
|
'@ibizlab/model': ^0.2.15
|
|
4283
4279
|
dependencies:
|
|
@@ -4290,8 +4286,8 @@ packages:
|
|
|
4290
4286
|
qx-util: 0.4.8
|
|
4291
4287
|
dev: true
|
|
4292
4288
|
|
|
4293
|
-
/@ibizlab/template@0.2.
|
|
4294
|
-
resolution: {integrity: sha512-
|
|
4289
|
+
/@ibizlab/template@0.2.26(@ibizlab/model@0.2.15):
|
|
4290
|
+
resolution: {integrity: sha512-lnhNNyWbdLNJUxJMfIPyQXq8pGWfi5Ib2/l19TV9B/keMB3TutIkuVJ6RQfexdo3LhojHA2vSdc6zUeNJaIgdw==}
|
|
4295
4291
|
peerDependencies:
|
|
4296
4292
|
'@ibizlab/model': ^0.2.14
|
|
4297
4293
|
dependencies:
|
|
@@ -4299,7 +4295,7 @@ packages:
|
|
|
4299
4295
|
'@ibizlab/template-core': 0.2.2
|
|
4300
4296
|
'@ibizlab/template-generator': 0.2.4
|
|
4301
4297
|
'@ibizlab/template-handlebars': 0.2.4
|
|
4302
|
-
'@ibizlab/template-model': 0.2.
|
|
4298
|
+
'@ibizlab/template-model': 0.2.26(@ibizlab/model@0.2.15)
|
|
4303
4299
|
chokidar: 3.6.0
|
|
4304
4300
|
fs-extra: 11.2.0
|
|
4305
4301
|
qx-util: 0.4.8
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
window.Environment = {
|
|
2
|
-
appVersion: '0.7.
|
|
2
|
+
appVersion: '0.7.41-alpha.2',
|
|
3
3
|
// 是否为开发模式
|
|
4
4
|
dev: true,
|
|
5
5
|
// 日志输出级别, 支持: TRACE,DEBUG,INFO,WARN,ERROR,SILENT
|
|
@@ -18,4 +18,5 @@ window.Environment = {
|
|
|
18
18
|
mockDcSystemId: 'ibizplm',
|
|
19
19
|
AppTitle: '应用首页',
|
|
20
20
|
favicon: './favicon.ico',
|
|
21
|
+
runContainer: 'FULLCODE',
|
|
21
22
|
};
|
|
@@ -25,8 +25,11 @@ export const IBizViewShell = defineComponent({
|
|
|
25
25
|
// 初始化方法
|
|
26
26
|
const init = async (): Promise<void> => {
|
|
27
27
|
const viewId = props.modelData ? props.modelData.id! : props.viewId!;
|
|
28
|
-
viewComponent.value = await getAppViewComponent(viewId);
|
|
29
28
|
viewModel.value = await ibiz.hub.getAppView(viewId);
|
|
29
|
+
viewComponent.value = await getAppViewComponent(
|
|
30
|
+
viewId,
|
|
31
|
+
viewModel.value.appId,
|
|
32
|
+
);
|
|
30
33
|
if (!viewComponent.value) {
|
|
31
34
|
errMsg.value = `未找到${viewId}对应的视图组件`;
|
|
32
35
|
}
|
package/static/src/main.ts
CHANGED
|
@@ -14,7 +14,8 @@ import '@/publish/sys.css';
|
|
|
14
14
|
// {
|
|
15
15
|
// name: 'plmcomweb',
|
|
16
16
|
// entry: 'http://localhost:4173',
|
|
17
|
-
// baseUrl: '
|
|
17
|
+
// baseUrl: '0887f742467822fadc6d27196587a993__plmweb__plmcomweb',
|
|
18
|
+
// pluginBaseUrl: './plugins',
|
|
18
19
|
// },
|
|
19
20
|
// ]);
|
|
20
21
|
// });
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
ModelLoaderProvider,
|
|
16
16
|
} from '@ibiz-template/runtime';
|
|
17
17
|
import { kebabCase } from 'lodash-es';
|
|
18
|
+
import { clone } from 'ramda';
|
|
18
19
|
import {
|
|
19
20
|
getAppDataEntityModel,
|
|
20
21
|
getAppViewModel,
|
|
@@ -122,10 +123,10 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
122
123
|
for (let i = 0; i < appSourceModel.allPSAppCodeLists.length; i++) {
|
|
123
124
|
const tempCodeList = appSourceModel.allPSAppCodeLists[i];
|
|
124
125
|
// eslint-disable-next-line no-await-in-loop
|
|
125
|
-
const module = await import(
|
|
126
|
+
const module = await System.import(
|
|
126
127
|
`${microAppConfig!.entry}/static/js/model/code-list/${kebabCase(
|
|
127
128
|
tempCodeList.id,
|
|
128
|
-
).toLowerCase()}.js
|
|
129
|
+
).toLowerCase()}-legacy.js`,
|
|
129
130
|
);
|
|
130
131
|
if (module && module.default) {
|
|
131
132
|
this.deepFillSubAppId(module.default, appId);
|
|
@@ -154,12 +155,14 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
154
155
|
}
|
|
155
156
|
});
|
|
156
157
|
// 子应用模型相关处理
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
if (!appId || appId === ibiz.env.appId) {
|
|
159
|
+
const microApps = ibiz.hub.microAppConfigCenter.getMicroApps();
|
|
160
|
+
if (microApps && microApps.length > 0) {
|
|
161
|
+
for (let i = 0; i < microApps.length; i++) {
|
|
162
|
+
const microApp = microApps[i];
|
|
163
|
+
// eslint-disable-next-line no-await-in-loop
|
|
164
|
+
await this.initSubApp(appService, microApp);
|
|
165
|
+
}
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
return true;
|
|
@@ -205,6 +208,8 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
205
208
|
app: IAppService,
|
|
206
209
|
microAppConfig: IMicroAppConfig,
|
|
207
210
|
): Promise<void> {
|
|
211
|
+
const targetSubAppRef = await this.getSubAppRef(microAppConfig.name);
|
|
212
|
+
if (targetSubAppRef) return;
|
|
208
213
|
const res = await ibiz.net.axios({
|
|
209
214
|
method: 'get',
|
|
210
215
|
headers: { 'Access-Control-Allow-Origin': '*' },
|
|
@@ -215,7 +220,12 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
215
220
|
const subApp = this.dsl.subAppRef(sourceSubApp);
|
|
216
221
|
subApp.appId = microAppConfig.name;
|
|
217
222
|
subApp.serviceId = microAppConfig?.baseUrl;
|
|
218
|
-
|
|
223
|
+
if (subApp.appMenuModel) {
|
|
224
|
+
this.deepFillSubAppId(subApp.appMenuModel, microAppConfig.name);
|
|
225
|
+
}
|
|
226
|
+
if (!targetSubAppRef) {
|
|
227
|
+
this.subAppRefs.push(subApp as ISubAppRef);
|
|
228
|
+
}
|
|
219
229
|
// 设置视图到hub中
|
|
220
230
|
const views = sourceSubApp.getAllPSAppViews || [];
|
|
221
231
|
views.forEach((view: IModel) => {
|
|
@@ -234,6 +244,7 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
234
244
|
sourceSubApp.getAllPSDEDRControls || [],
|
|
235
245
|
);
|
|
236
246
|
drCtrls.forEach((drCtrl: IModel) => {
|
|
247
|
+
this.deepFillSubAppId(drCtrl, microAppConfig.name);
|
|
237
248
|
ibiz.hub.registerSubAppDrControls(
|
|
238
249
|
microAppConfig.name || ibiz.env.appId,
|
|
239
250
|
drCtrl,
|
|
@@ -358,8 +369,8 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
358
369
|
return mergeUIActions(app);
|
|
359
370
|
}
|
|
360
371
|
const microAppConfig = ibiz.hub.microAppConfigCenter.getMicroApp(appId);
|
|
361
|
-
const module = await import(
|
|
362
|
-
`${microAppConfig!.entry}/static/js/model/app/app.js
|
|
372
|
+
const module = await System.import(
|
|
373
|
+
`${microAppConfig!.entry}/static/js/model/app/app-legacy.js`,
|
|
363
374
|
);
|
|
364
375
|
this.deepFillSubAppId(module.default, appId);
|
|
365
376
|
return module.default;
|
|
@@ -374,16 +385,17 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
374
385
|
*/
|
|
375
386
|
async getAppView(appId: string, codeName: string): Promise<IAppView> {
|
|
376
387
|
if (appId === ibiz.env.appId) {
|
|
377
|
-
const
|
|
388
|
+
const viewModel = await getAppViewModel(codeName);
|
|
389
|
+
const dsl = clone(viewModel);
|
|
390
|
+
this.deepFillSubAppId(dsl, appId);
|
|
378
391
|
this.calcAppViewSubAppModel(dsl);
|
|
379
392
|
return dsl;
|
|
380
393
|
}
|
|
381
394
|
const microAppConfig = ibiz.hub.microAppConfigCenter.getMicroApp(appId);
|
|
382
|
-
const module = await import(
|
|
383
|
-
`${microAppConfig!.entry}/static/js/model/views/${
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
)}.js`
|
|
395
|
+
const module = await System.import(
|
|
396
|
+
`${microAppConfig!.entry}/static/js/model/views/${kebabCase(
|
|
397
|
+
codeName,
|
|
398
|
+
).toLowerCase()}-legacy.js`,
|
|
387
399
|
);
|
|
388
400
|
this.deepFillSubAppId(module.default, appId);
|
|
389
401
|
return module.default;
|
|
@@ -401,10 +413,10 @@ export class ModelLoader implements ModelLoaderProvider {
|
|
|
401
413
|
return getAppDataEntityModel(id);
|
|
402
414
|
}
|
|
403
415
|
const microAppConfig = ibiz.hub.microAppConfigCenter.getMicroApp(appId);
|
|
404
|
-
const module = await import(
|
|
405
|
-
`${microAppConfig!.entry}/static/js/model/entities/${
|
|
406
|
-
.split('.')[1]
|
|
407
|
-
|
|
416
|
+
const module = await System.import(
|
|
417
|
+
`${microAppConfig!.entry}/static/js/model/entities/${
|
|
418
|
+
id.indexOf('.') !== -1 ? kebabCase(id.split('.')[1]).toLowerCase() : id
|
|
419
|
+
}-legacy.js`,
|
|
408
420
|
);
|
|
409
421
|
this.deepFillSubAppId(module.default, appId);
|
|
410
422
|
return module.default;
|
|
@@ -11,10 +11,13 @@ function calcAppViewId(tag: string): string {
|
|
|
11
11
|
return id;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export async function getAppViewComponent(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export async function getAppViewComponent(
|
|
15
|
+
name: string,
|
|
16
|
+
appId: string,
|
|
17
|
+
): Promise<Component> {
|
|
18
|
+
const _name = calcAppViewId(name).toLowerCase();
|
|
19
|
+
// 子应用视图
|
|
20
|
+
if (appId !== ibiz.env.appId) {
|
|
18
21
|
return defineAsyncComponent(
|
|
19
22
|
() => import('../../components/sub-app-view/sub-app-view.vue'),
|
|
20
23
|
);
|