Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
1ec2e705
提交
1ec2e705
编写于
7月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 部署微服务应用
上级
cd874362
变更
27
显示空白字符变更
内嵌
并排
正在显示
27 个修改的文件
包含
1789 行增加
和
381 行删除
+1789
-381
data-dictionary.json
app_WebSite/public/assets/json/data-dictionary.json
+27
-0
codelist_en_US.ts
app_WebSite/src/locale/lanres/codelist/codelist_en_US.ts
+5
-0
codelist_zh_CN.ts
app_WebSite/src/locale/lanres/codelist/codelist_zh_CN.ts
+5
-0
web-site-channel_en_US.ts
...anres/entities/web-site-channel/web-site-channel_en_US.ts
+24
-16
web-site-channel_zh_CN.ts
...anres/entities/web-site-channel/web-site-channel_zh_CN.ts
+24
-16
web-site-content_en_US.ts
...anres/entities/web-site-content/web-site-content_en_US.ts
+24
-16
web-site-content_zh_CN.ts
...anres/entities/web-site-content/web-site-content_zh_CN.ts
+24
-16
web-site-resource_en_US.ts
...res/entities/web-site-resource/web-site-resource_en_US.ts
+24
-16
web-site-resource_zh_CN.ts
...res/entities/web-site-resource/web-site-resource_zh_CN.ts
+24
-16
web-site_en_US.ts
...ite/src/locale/lanres/entities/web-site/web-site_en_US.ts
+24
-16
web-site_zh_CN.ts
...ite/src/locale/lanres/entities/web-site/web-site_zh_CN.ts
+24
-16
codelist.ts
app_WebSite/src/mock/codelist/codelist.ts
+27
-0
web-site-channel-edit-view-base.tsx
...ite-channel-edit-view/web-site-channel-edit-view-base.tsx
+356
-42
web-site-content-edit-view-base.tsx
...ite-content-edit-view/web-site-content-edit-view-base.tsx
+356
-42
web-site-edit-view-base.tsx
...s/web-site/web-site-edit-view/web-site-edit-view-base.tsx
+356
-42
web-site-resource-edit-view-base.tsx
...e-resource-edit-view/web-site-resource-edit-view-base.tsx
+356
-42
web-site-service-base.ts
app_WebSite/src/service/web-site/web-site-service-base.ts
+50
-50
main-grid-base.tsx
...src/widgets/web-site-content/main-grid/main-grid-base.tsx
+8
-0
main-grid.html
...ite/src/widgets/web-site-content/main-grid/main-grid.html
+3
-1
Dockerfile
...al-app/businesscentral-app-crm/src/main/docker/Dockerfile
+1
-1
businesscentral-app-crm.yaml
...tral-app-crm/src/main/docker/businesscentral-app-crm.yaml
+15
-1
Dockerfile
...pp/businesscentral-app-website/src/main/docker/Dockerfile
+1
-1
businesscentral-app-website.yaml
...-website/src/main/docker/businesscentral-app-website.yaml
+15
-1
h2_table.xml
...esscentral-core/src/main/resources/liquibase/h2_table.xml
+9
-9
Dockerfile
...esscentral-provider-centralapi/src/main/docker/Dockerfile
+1
-1
businesscentral-provider-centralapi.yaml
.../src/main/docker/businesscentral-provider-centralapi.yaml
+1
-15
config.xml
config.xml
+5
-5
未找到文件。
app_WebSite/public/assets/json/data-dictionary.json
浏览文件 @
1ec2e705
...
@@ -7,6 +7,33 @@
...
@@ -7,6 +7,33 @@
"appdedataset"
:
""
,
"appdedataset"
:
""
,
"items"
:
[]
"items"
:
[]
},
},
{
"srfkey"
:
"ContentType"
,
"emptytext"
:
"未定义"
,
"codelisttype"
:
"static"
,
"items"
:
[
{
"id"
:
"CONTENT"
,
"label"
:
"内容"
,
"text"
:
"内容"
,
"data"
:
""
,
"codename"
:
"Content"
,
"value"
:
"CONTENT"
,
"disabled"
:
false
}
,
{
"id"
:
"LINK"
,
"label"
:
"链接"
,
"text"
:
"链接"
,
"data"
:
""
,
"codename"
:
"Link"
,
"value"
:
"LINK"
,
"disabled"
:
false
}
]
},
{
{
"srfkey"
:
"YesNo"
,
"srfkey"
:
"YesNo"
,
"emptytext"
:
"未定义"
,
"emptytext"
:
"未定义"
,
...
...
app_WebSite/src/locale/lanres/codelist/codelist_en_US.ts
浏览文件 @
1ec2e705
...
@@ -2,6 +2,11 @@ export default {
...
@@ -2,6 +2,11 @@ export default {
SysOperator
:
{
SysOperator
:
{
"empty"
:
""
,
"empty"
:
""
,
},
},
ContentType
:
{
"CONTENT"
:
"内容"
,
"LINK"
:
"链接"
,
"empty"
:
""
},
YesNo
:
{
YesNo
:
{
"1"
:
"是"
,
"1"
:
"是"
,
"0"
:
"否"
,
"0"
:
"否"
,
...
...
app_WebSite/src/locale/lanres/codelist/codelist_zh_CN.ts
浏览文件 @
1ec2e705
...
@@ -2,6 +2,11 @@ export default {
...
@@ -2,6 +2,11 @@ export default {
SysOperator
:
{
SysOperator
:
{
"empty"
:
""
,
"empty"
:
""
,
},
},
ContentType
:
{
"CONTENT"
:
"内容"
,
"LINK"
:
"链接"
,
"empty"
:
""
,
},
YesNo
:
{
YesNo
:
{
"1"
:
"是"
,
"1"
:
"是"
,
"0"
:
"否"
,
"0"
:
"否"
,
...
...
app_WebSite/src/locale/lanres/entities/web-site-channel/web-site-channel_en_US.ts
浏览文件 @
1ec2e705
...
@@ -101,33 +101,41 @@ export default {
...
@@ -101,33 +101,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"Edit"
,
caption
:
"Save"
,
tip
:
"Edit {0}"
,
tip
:
"Save"
,
},
tbitem4
:
{
caption
:
"Save And New"
,
tip
:
"Save And New"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"Remove And Close"
,
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
tip
:
"Remove And Close Window"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
New
"
,
tip
:
"
刷新
"
,
tip
:
"
New
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
Copy
"
,
tip
:
"
关闭
"
,
tip
:
"
Copy {0}
"
,
},
},
},
},
};
};
\ No newline at end of file
app_WebSite/src/locale/lanres/entities/web-site-channel/web-site-channel_zh_CN.ts
浏览文件 @
1ec2e705
...
@@ -100,33 +100,41 @@ export default {
...
@@ -100,33 +100,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"编辑"
,
caption
:
"保存"
,
tip
:
"编辑"
,
tip
:
"保存"
,
},
tbitem4
:
{
caption
:
"保存并新建"
,
tip
:
"保存并新建"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"删除并关闭"
,
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
新建
"
,
tip
:
"
刷新
"
,
tip
:
"
新建
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
拷贝
"
,
tip
:
"
关闭
"
,
tip
:
"
拷贝
"
,
},
},
},
},
};
};
\ No newline at end of file
app_WebSite/src/locale/lanres/entities/web-site-content/web-site-content_en_US.ts
浏览文件 @
1ec2e705
...
@@ -75,33 +75,41 @@ export default {
...
@@ -75,33 +75,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"Edit"
,
caption
:
"Save"
,
tip
:
"Edit {0}"
,
tip
:
"Save"
,
},
tbitem4
:
{
caption
:
"Save And New"
,
tip
:
"Save And New"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"Remove And Close"
,
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
tip
:
"Remove And Close Window"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
New
"
,
tip
:
"
刷新
"
,
tip
:
"
New
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
Copy
"
,
tip
:
"
关闭
"
,
tip
:
"
Copy {0}
"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
...
...
app_WebSite/src/locale/lanres/entities/web-site-content/web-site-content_zh_CN.ts
浏览文件 @
1ec2e705
...
@@ -74,33 +74,41 @@ export default {
...
@@ -74,33 +74,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"编辑"
,
caption
:
"保存"
,
tip
:
"编辑"
,
tip
:
"保存"
,
},
tbitem4
:
{
caption
:
"保存并新建"
,
tip
:
"保存并新建"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"删除并关闭"
,
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
新建
"
,
tip
:
"
刷新
"
,
tip
:
"
新建
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
拷贝
"
,
tip
:
"
关闭
"
,
tip
:
"
拷贝
"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
...
...
app_WebSite/src/locale/lanres/entities/web-site-resource/web-site-resource_en_US.ts
浏览文件 @
1ec2e705
...
@@ -87,33 +87,41 @@ export default {
...
@@ -87,33 +87,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"Edit"
,
caption
:
"Save"
,
tip
:
"Edit {0}"
,
tip
:
"Save"
,
},
tbitem4
:
{
caption
:
"Save And New"
,
tip
:
"Save And New"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"Remove And Close"
,
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
tip
:
"Remove And Close Window"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
New
"
,
tip
:
"
刷新
"
,
tip
:
"
New
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
Copy
"
,
tip
:
"
关闭
"
,
tip
:
"
Copy {0}
"
,
},
},
},
},
};
};
\ No newline at end of file
app_WebSite/src/locale/lanres/entities/web-site-resource/web-site-resource_zh_CN.ts
浏览文件 @
1ec2e705
...
@@ -86,33 +86,41 @@ export default {
...
@@ -86,33 +86,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"编辑"
,
caption
:
"保存"
,
tip
:
"编辑"
,
tip
:
"保存"
,
},
tbitem4
:
{
caption
:
"保存并新建"
,
tip
:
"保存并新建"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"删除并关闭"
,
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
新建
"
,
tip
:
"
刷新
"
,
tip
:
"
新建
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
拷贝
"
,
tip
:
"
关闭
"
,
tip
:
"
拷贝
"
,
},
},
},
},
};
};
\ No newline at end of file
app_WebSite/src/locale/lanres/entities/web-site/web-site_en_US.ts
浏览文件 @
1ec2e705
...
@@ -67,33 +67,41 @@ export default {
...
@@ -67,33 +67,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"Edit"
,
caption
:
"Save"
,
tip
:
"Edit {0}"
,
tip
:
"Save"
,
},
tbitem4
:
{
caption
:
"Save And New"
,
tip
:
"Save And New"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"Remove And Close"
,
caption
:
"Remove And Close"
,
tip
:
"Remove And Close Window"
,
tip
:
"Remove And Close Window"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
New
"
,
tip
:
"
刷新
"
,
tip
:
"
New
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
Copy
"
,
tip
:
"
关闭
"
,
tip
:
"
Copy {0}
"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
...
...
app_WebSite/src/locale/lanres/entities/web-site/web-site_zh_CN.ts
浏览文件 @
1ec2e705
...
@@ -66,33 +66,41 @@ export default {
...
@@ -66,33 +66,41 @@ export default {
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
deuiaction4
:
{
tbitem3
:
{
caption
:
"编辑"
,
caption
:
"保存"
,
tip
:
"编辑"
,
tip
:
"保存"
,
},
tbitem4
:
{
caption
:
"保存并新建"
,
tip
:
"保存并新建"
,
},
},
seperator4
:
{
tbitem5
:
{
caption
:
""
,
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
tbitem6
:
{
caption
:
"-"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction1
:
{
tbitem7
:
{
caption
:
"删除并关闭"
,
caption
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
tip
:
"删除并关闭"
,
},
},
seperator2
:
{
tbitem8
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
deuiaction
2
:
{
tbitem1
2
:
{
caption
:
"
刷新
"
,
caption
:
"
新建
"
,
tip
:
"
刷新
"
,
tip
:
"
新建
"
,
},
},
seperator1
:
{
tbitem13
:
{
caption
:
""
,
caption
:
"
-
"
,
tip
:
""
,
tip
:
""
,
},
},
tbitem1
2
:
{
tbitem1
4
:
{
caption
:
"
关闭
"
,
caption
:
"
拷贝
"
,
tip
:
"
关闭
"
,
tip
:
"
拷贝
"
,
},
},
},
},
gridviewtoolbar_toolbar
:
{
gridviewtoolbar_toolbar
:
{
...
...
app_WebSite/src/mock/codelist/codelist.ts
浏览文件 @
1ec2e705
...
@@ -15,6 +15,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
...
@@ -15,6 +15,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"appdedataset"
:
""
,
"appdedataset"
:
""
,
"items"
:
[]
"items"
:
[]
},
},
{
srfkey
:
"ContentType"
,
emptytext
:
"未定义"
,
"codelisttype"
:
"static"
,
items
:
[
{
id
:
"CONTENT"
,
label
:
"内容"
,
text
:
"内容"
,
"data"
:
""
,
"codename"
:
"Content"
,
value
:
"CONTENT"
,
disabled
:
false
,
},
{
id
:
"LINK"
,
label
:
"链接"
,
text
:
"链接"
,
"data"
:
""
,
"codename"
:
"Link"
,
value
:
"LINK"
,
disabled
:
false
,
},
]
},
{
{
srfkey
:
"YesNo"
,
srfkey
:
"YesNo"
,
emptytext
:
"未定义"
,
emptytext
:
"未定义"
,
...
...
app_WebSite/src/pages/web-site/web-site-channel-edit-view/web-site-channel-edit-view-base.tsx
浏览文件 @
1ec2e705
...
@@ -63,16 +63,20 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -63,16 +63,20 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @memberof WebSiteChannelEditView
* @memberof WebSiteChannelEditView
*/
*/
public
toolBarModels
:
any
=
{
public
toolBarModels
:
any
=
{
deuiaction4
:
{
name
:
'deuiaction4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY
'
},
class
:
''
},
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'保存'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存'
,
iconcls
:
'fa fa-save'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
'
'
},
class
:
''
},
seperator4
:
{
name
:
'seperator4'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'保存并新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并新建'
,
iconcls
:
'sx-tb-saveandnew'
,
icon
:
'../sasrfex/images/default/icon_saveandnew.png'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndNew'
,
target
:
''
},
class
:
''
},
deuiaction1
:
{
name
:
'deuiaction1'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator2
:
{
name
:
'seperator2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem5
:
{
name
:
'tbitem5'
,
caption
:
'保存并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并关闭'
,
iconcls
:
'fa fa-power-off'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
},
class
:
''
},
deuiaction2
:
{
name
:
'deuiaction2'
,
caption
:
'刷新'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'刷新'
,
iconcls
:
'fa fa-refresh'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator1
:
{
name
:
'seperator1'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem6
:
{
name
:
'tbitem6'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
},
class
:
''
},
tbitem7
:
{
name
:
'tbitem7'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem14
:
{
name
:
'tbitem14'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
};
};
...
@@ -122,18 +126,33 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -122,18 +126,33 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @memberof WebSiteChannelEditViewBase
* @memberof WebSiteChannelEditViewBase
*/
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction4'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_deuiaction4_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction1
'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem7
'
))
{
this
.
toolbar_
deuiaction1
_click
(
null
,
''
,
$event2
);
this
.
toolbar_
tbitem7
_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9'
))
{
this
.
toolbar_deuiaction2_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem9_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem10'
))
{
this
.
toolbar_tbitem10_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem14'
))
{
this
.
toolbar_tbitem14_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
}
/**
/**
...
@@ -177,7 +196,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -177,7 +196,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_
deuiaction4
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_
tbitem3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -194,7 +213,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -194,7 +213,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
}
/**
/**
...
@@ -205,7 +224,63 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -205,7 +224,63 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem4_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndNew
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem7_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -233,7 +308,35 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -233,7 +308,35 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem9_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem10_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -250,7 +353,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -250,7 +353,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
this
.
ViewWFStep
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
}
/**
/**
...
@@ -278,11 +381,67 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -278,11 +381,67 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Exit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem14_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteChannel"
);
}
}
/**
/**
*
编辑
*
保存
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -292,19 +451,79 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -292,19 +451,79 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
* @memberof WebSiteChannelEditViewBase
*/
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
return
;
}
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
*/
public
SaveAndNew
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
saveAndNew
instanceof
Function
))
{
const
data
:
any
=
{
};
return
;
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
websitechannel
:
args
[
0
].
websitechannel
})
}
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
xData
.
saveAndNew
().
then
((
response
:
any
)
=>
{
}
else
{
if
(
!
response
||
response
.
status
!==
200
)
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'error'
,
action
:
'saveAndNew'
}));
return
;
}
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'success'
,
action
:
'saveAndNew'
,
data
:
response
.
data
}));
if
(
xData
.
autoLoad
instanceof
Function
)
{
xData
.
autoLoad
();
}
});
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
}
}
/**
/**
...
@@ -341,7 +560,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -341,7 +560,7 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
}
}
}
}
/**
/**
*
刷新
*
开始流程
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -351,16 +570,29 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -351,16 +570,29 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
* @memberof WebSiteChannelEditViewBase
*/
*/
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
xData
.
refresh
(
args
);
return
;
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
_this
.
refresh
(
args
);
xData
.
wfstart
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
}
/**
/**
*
关闭
*
当前流程步骤
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -370,12 +602,94 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
...
@@ -370,12 +602,94 @@ export class WebSiteChannelEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
* @memberof WebSiteChannelEditViewBase
*/
*/
public
Exit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
ViewWFStep
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
closeView
(
args
)
;
let
_this
:
any
=
this
;
if
(
window
.
parent
)
{
if
(
!
xData
||
!
(
xData
.
wfsubmit
instanceof
Function
))
{
window
.
parent
.
postMessage
([{
...
args
}],
'*'
)
;
return
;
}
}
xData
.
wfsubmit
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
_this
.
$tabPageExp
)
{
_this
.
$tabPageExp
.
onClose
(
_this
.
$route
.
fullPath
);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
*/
public
Copy
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
if
(
args
.
length
>
0
)
{
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteChannelEditViewBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
}
}
\ No newline at end of file
app_WebSite/src/pages/web-site/web-site-content-edit-view/web-site-content-edit-view-base.tsx
浏览文件 @
1ec2e705
...
@@ -63,16 +63,20 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -63,16 +63,20 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @memberof WebSiteContentEditView
* @memberof WebSiteContentEditView
*/
*/
public
toolBarModels
:
any
=
{
public
toolBarModels
:
any
=
{
deuiaction4
:
{
name
:
'deuiaction4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY
'
},
class
:
''
},
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'保存'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存'
,
iconcls
:
'fa fa-save'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
'
'
},
class
:
''
},
seperator4
:
{
name
:
'seperator4'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'保存并新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并新建'
,
iconcls
:
'sx-tb-saveandnew'
,
icon
:
'../sasrfex/images/default/icon_saveandnew.png'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndNew'
,
target
:
''
},
class
:
''
},
deuiaction1
:
{
name
:
'deuiaction1'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator2
:
{
name
:
'seperator2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem5
:
{
name
:
'tbitem5'
,
caption
:
'保存并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并关闭'
,
iconcls
:
'fa fa-power-off'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
},
class
:
''
},
deuiaction2
:
{
name
:
'deuiaction2'
,
caption
:
'刷新'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'刷新'
,
iconcls
:
'fa fa-refresh'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator1
:
{
name
:
'seperator1'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem6
:
{
name
:
'tbitem6'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
},
class
:
''
},
tbitem7
:
{
name
:
'tbitem7'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem14
:
{
name
:
'tbitem14'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
};
};
...
@@ -122,18 +126,33 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -122,18 +126,33 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @memberof WebSiteContentEditViewBase
* @memberof WebSiteContentEditViewBase
*/
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction4'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_deuiaction4_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction1
'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem7
'
))
{
this
.
toolbar_
deuiaction1
_click
(
null
,
''
,
$event2
);
this
.
toolbar_
tbitem7
_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9'
))
{
this
.
toolbar_deuiaction2_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem9_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem10'
))
{
this
.
toolbar_tbitem10_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem14'
))
{
this
.
toolbar_tbitem14_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
}
/**
/**
...
@@ -177,7 +196,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -177,7 +196,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_
deuiaction4
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_
tbitem3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -194,7 +213,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -194,7 +213,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
}
/**
/**
...
@@ -205,7 +224,63 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -205,7 +224,63 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem4_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndNew
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem7_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -233,7 +308,35 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -233,7 +308,35 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem9_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem10_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -250,7 +353,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -250,7 +353,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
this
.
ViewWFStep
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
}
/**
/**
...
@@ -278,11 +381,67 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -278,11 +381,67 @@ export class WebSiteContentEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Exit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem14_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteContent"
);
}
}
/**
/**
*
编辑
*
保存
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -292,19 +451,79 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -292,19 +451,79 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
* @memberof WebSiteContentEditViewBase
*/
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
return
;
}
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
*/
public
SaveAndNew
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
saveAndNew
instanceof
Function
))
{
const
data
:
any
=
{
};
return
;
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
websitecontent
:
args
[
0
].
websitecontent
})
}
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
xData
.
saveAndNew
().
then
((
response
:
any
)
=>
{
}
else
{
if
(
!
response
||
response
.
status
!==
200
)
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'error'
,
action
:
'saveAndNew'
}));
return
;
}
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'success'
,
action
:
'saveAndNew'
,
data
:
response
.
data
}));
if
(
xData
.
autoLoad
instanceof
Function
)
{
xData
.
autoLoad
();
}
});
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
}
}
/**
/**
...
@@ -341,7 +560,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -341,7 +560,7 @@ export class WebSiteContentEditViewBase extends EditViewBase {
}
}
}
}
/**
/**
*
刷新
*
开始流程
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -351,16 +570,29 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -351,16 +570,29 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
* @memberof WebSiteContentEditViewBase
*/
*/
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
xData
.
refresh
(
args
);
return
;
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
_this
.
refresh
(
args
);
xData
.
wfstart
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
}
/**
/**
*
关闭
*
当前流程步骤
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -370,12 +602,94 @@ export class WebSiteContentEditViewBase extends EditViewBase {
...
@@ -370,12 +602,94 @@ export class WebSiteContentEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
* @memberof WebSiteContentEditViewBase
*/
*/
public
Exit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
ViewWFStep
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
closeView
(
args
)
;
let
_this
:
any
=
this
;
if
(
window
.
parent
)
{
if
(
!
xData
||
!
(
xData
.
wfsubmit
instanceof
Function
))
{
window
.
parent
.
postMessage
([{
...
args
}],
'*'
)
;
return
;
}
}
xData
.
wfsubmit
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
_this
.
$tabPageExp
)
{
_this
.
$tabPageExp
.
onClose
(
_this
.
$route
.
fullPath
);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
*/
public
Copy
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
if
(
args
.
length
>
0
)
{
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteContentEditViewBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
}
}
\ No newline at end of file
app_WebSite/src/pages/web-site/web-site-edit-view/web-site-edit-view-base.tsx
浏览文件 @
1ec2e705
...
@@ -63,16 +63,20 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -63,16 +63,20 @@ export class WebSiteEditViewBase extends EditViewBase {
* @memberof WebSiteEditView
* @memberof WebSiteEditView
*/
*/
public
toolBarModels
:
any
=
{
public
toolBarModels
:
any
=
{
deuiaction4
:
{
name
:
'deuiaction4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY
'
},
class
:
''
},
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'保存'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存'
,
iconcls
:
'fa fa-save'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
'
'
},
class
:
''
},
seperator4
:
{
name
:
'seperator4'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'保存并新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并新建'
,
iconcls
:
'sx-tb-saveandnew'
,
icon
:
'../sasrfex/images/default/icon_saveandnew.png'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndNew'
,
target
:
''
},
class
:
''
},
deuiaction1
:
{
name
:
'deuiaction1'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator2
:
{
name
:
'seperator2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem5
:
{
name
:
'tbitem5'
,
caption
:
'保存并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并关闭'
,
iconcls
:
'fa fa-power-off'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
},
class
:
''
},
deuiaction2
:
{
name
:
'deuiaction2'
,
caption
:
'刷新'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'刷新'
,
iconcls
:
'fa fa-refresh'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator1
:
{
name
:
'seperator1'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem6
:
{
name
:
'tbitem6'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
},
class
:
''
},
tbitem7
:
{
name
:
'tbitem7'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem14
:
{
name
:
'tbitem14'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
};
};
...
@@ -122,18 +126,33 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -122,18 +126,33 @@ export class WebSiteEditViewBase extends EditViewBase {
* @memberof WebSiteEditViewBase
* @memberof WebSiteEditViewBase
*/
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction4'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_deuiaction4_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction1
'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem7
'
))
{
this
.
toolbar_
deuiaction1
_click
(
null
,
''
,
$event2
);
this
.
toolbar_
tbitem7
_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9'
))
{
this
.
toolbar_deuiaction2_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem9_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem10'
))
{
this
.
toolbar_tbitem10_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem14'
))
{
this
.
toolbar_tbitem14_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
}
/**
/**
...
@@ -177,7 +196,7 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -177,7 +196,7 @@ export class WebSiteEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_
deuiaction4
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_
tbitem3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -194,7 +213,7 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -194,7 +213,7 @@ export class WebSiteEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
}
/**
/**
...
@@ -205,7 +224,63 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -205,7 +224,63 @@ export class WebSiteEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem4_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndNew
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem7_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -233,7 +308,35 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -233,7 +308,35 @@ export class WebSiteEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem9_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem10_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -250,7 +353,7 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -250,7 +353,7 @@ export class WebSiteEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
this
.
ViewWFStep
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
}
/**
/**
...
@@ -278,11 +381,67 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -278,11 +381,67 @@ export class WebSiteEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Exit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem14_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSite"
);
}
}
/**
/**
*
编辑
*
保存
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -292,19 +451,79 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -292,19 +451,79 @@ export class WebSiteEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
* @memberof WebSiteEditViewBase
*/
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
return
;
}
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
*/
public
SaveAndNew
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
saveAndNew
instanceof
Function
))
{
const
data
:
any
=
{
};
return
;
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
website
:
args
[
0
].
website
})
}
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
xData
.
saveAndNew
().
then
((
response
:
any
)
=>
{
}
else
{
if
(
!
response
||
response
.
status
!==
200
)
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'error'
,
action
:
'saveAndNew'
}));
return
;
}
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'success'
,
action
:
'saveAndNew'
,
data
:
response
.
data
}));
if
(
xData
.
autoLoad
instanceof
Function
)
{
xData
.
autoLoad
();
}
});
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
}
}
/**
/**
...
@@ -341,7 +560,7 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -341,7 +560,7 @@ export class WebSiteEditViewBase extends EditViewBase {
}
}
}
}
/**
/**
*
刷新
*
开始流程
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -351,16 +570,29 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -351,16 +570,29 @@ export class WebSiteEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
* @memberof WebSiteEditViewBase
*/
*/
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
xData
.
refresh
(
args
);
return
;
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
_this
.
refresh
(
args
);
xData
.
wfstart
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
}
/**
/**
*
关闭
*
当前流程步骤
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -370,12 +602,94 @@ export class WebSiteEditViewBase extends EditViewBase {
...
@@ -370,12 +602,94 @@ export class WebSiteEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
* @memberof WebSiteEditViewBase
*/
*/
public
Exit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
ViewWFStep
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
closeView
(
args
)
;
let
_this
:
any
=
this
;
if
(
window
.
parent
)
{
if
(
!
xData
||
!
(
xData
.
wfsubmit
instanceof
Function
))
{
window
.
parent
.
postMessage
([{
...
args
}],
'*'
)
;
return
;
}
}
xData
.
wfsubmit
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
_this
.
$tabPageExp
)
{
_this
.
$tabPageExp
.
onClose
(
_this
.
$route
.
fullPath
);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
*/
public
Copy
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
if
(
args
.
length
>
0
)
{
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteEditViewBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
}
}
\ No newline at end of file
app_WebSite/src/pages/web-site/web-site-resource-edit-view/web-site-resource-edit-view-base.tsx
浏览文件 @
1ec2e705
...
@@ -63,16 +63,20 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -63,16 +63,20 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @memberof WebSiteResourceEditView
* @memberof WebSiteResourceEditView
*/
*/
public
toolBarModels
:
any
=
{
public
toolBarModels
:
any
=
{
deuiaction4
:
{
name
:
'deuiaction4'
,
caption
:
'编辑'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'编辑'
,
iconcls
:
'fa fa-edit'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY
'
},
class
:
''
},
tbitem3
:
{
name
:
'tbitem3'
,
caption
:
'保存'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存'
,
iconcls
:
'fa fa-save'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
'
'
},
class
:
''
},
seperator4
:
{
name
:
'seperator4'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem4
:
{
name
:
'tbitem4'
,
caption
:
'保存并新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并新建'
,
iconcls
:
'sx-tb-saveandnew'
,
icon
:
'../sasrfex/images/default/icon_saveandnew.png'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndNew'
,
target
:
''
},
class
:
''
},
deuiaction1
:
{
name
:
'deuiaction1'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator2
:
{
name
:
'seperator2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem5
:
{
name
:
'tbitem5'
,
caption
:
'保存并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'保存并关闭'
,
iconcls
:
'fa fa-power-off'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'SaveAndExit'
,
target
:
''
},
class
:
''
},
deuiaction2
:
{
name
:
'deuiaction2'
,
caption
:
'刷新'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'刷新'
,
iconcls
:
'fa fa-refresh'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Refresh'
,
target
:
'SINGLEKEY'
},
class
:
''
},
seperator1
:
{
name
:
'seperator1'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem6
:
{
name
:
'tbitem6'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'关闭'
,
iconcls
:
'fa fa-sign-out'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Exit'
,
target
:
''
},
class
:
''
},
tbitem7
:
{
name
:
'tbitem7'
,
caption
:
'删除并关闭'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'删除并关闭'
,
iconcls
:
'fa fa-remove'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'RemoveAndExit'
,
target
:
'SINGLEKEY'
},
class
:
''
},
tbitem8
:
{
name
:
'tbitem8'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem12
:
{
name
:
'tbitem12'
,
caption
:
'新建'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'新建'
,
iconcls
:
'fa fa-file-text-o'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
},
class
:
''
},
tbitem13
:
{
name
:
'tbitem13'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem14
:
{
name
:
'tbitem14'
,
caption
:
'拷贝'
,
'isShowCaption'
:
true
,
'isShowIcon'
:
true
,
tooltip
:
'拷贝'
,
iconcls
:
'fa fa-copy'
,
icon
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
},
class
:
''
},
};
};
...
@@ -122,18 +126,33 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -122,18 +126,33 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @memberof WebSiteResourceEditViewBase
* @memberof WebSiteResourceEditViewBase
*/
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
):
void
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction4'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_deuiaction4_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem5'
))
{
this
.
toolbar_tbitem5_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'
deuiaction1
'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'
tbitem7
'
))
{
this
.
toolbar_
deuiaction1
_click
(
null
,
''
,
$event2
);
this
.
toolbar_
tbitem7
_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem9'
))
{
this
.
toolbar_deuiaction2_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem9_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem10'
))
{
this
.
toolbar_tbitem10_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem12'
))
{
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem12_click
(
null
,
''
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem14'
))
{
this
.
toolbar_tbitem14_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem15'
))
{
this
.
toolbar_tbitem15_click
(
null
,
''
,
$event2
);
}
}
}
/**
/**
...
@@ -177,7 +196,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -177,7 +196,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_
deuiaction4
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_
tbitem3
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -194,7 +213,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -194,7 +213,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
}
/**
/**
...
@@ -205,7 +224,63 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -205,7 +224,63 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem4_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndNew
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem5_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndExit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem7_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -233,7 +308,35 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -233,7 +308,35 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
toolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
toolbar_tbitem9_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
SaveAndStart
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem10_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -250,7 +353,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -250,7 +353,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
this
.
ViewWFStep
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
}
/**
/**
...
@@ -278,11 +381,67 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -278,11 +381,67 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
datas
=
[
params
];
datas
=
[
params
];
}
}
// 界面行为
// 界面行为
this
.
Exit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem14_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem15_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"WebSiteResource"
);
}
}
/**
/**
*
编辑
*
保存
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -292,19 +451,79 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -292,19 +451,79 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
* @memberof WebSiteResourceEditViewBase
*/
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
return
;
}
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
*/
public
SaveAndNew
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
saveAndNew
instanceof
Function
))
{
const
data
:
any
=
{
};
return
;
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
websiteresource
:
args
[
0
].
websiteresource
})
}
}
_this
.
opendata
([{
...
data
}],
params
,
$event
,
xData
);
xData
.
saveAndNew
().
then
((
response
:
any
)
=>
{
}
else
{
if
(
!
response
||
response
.
status
!==
200
)
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'error'
,
action
:
'saveAndNew'
}));
return
;
}
_this
.
$emit
(
'viewdataschange'
,
JSON
.
stringify
({
status
:
'success'
,
action
:
'saveAndNew'
,
data
:
response
.
data
}));
if
(
xData
.
autoLoad
instanceof
Function
)
{
xData
.
autoLoad
();
}
});
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
*/
public
SaveAndExit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
saveAndExit
instanceof
Function
)
{
xData
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
else
if
(
_this
.
saveAndExit
&&
_this
.
saveAndExit
instanceof
Function
)
{
_this
.
saveAndExit
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
if
(
window
.
parent
){
window
.
parent
.
postMessage
([{
...
response
.
data
}],
'*'
);
}
});
}
}
}
}
/**
/**
...
@@ -341,7 +560,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -341,7 +560,7 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
}
}
}
}
/**
/**
*
刷新
*
开始流程
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -351,16 +570,29 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -351,16 +570,29 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
* @memberof WebSiteResourceEditViewBase
*/
*/
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
SaveAndStart
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
if
(
!
xData
||
!
(
xData
.
wfstart
instanceof
Function
))
{
xData
.
refresh
(
args
);
return
;
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
_this
.
refresh
(
args
);
xData
.
wfstart
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
window
.
parent
){
window
.
parent
.
postMessage
({
...
_data
},
'*'
);
}
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
onClose
(
this
.
$route
.
fullPath
);
}
});
}
}
/**
/**
*
关闭
*
当前流程步骤
*
*
* @param {any[]} args 当前数据
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {any} contextJO 行为附加上下文
...
@@ -370,12 +602,94 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
...
@@ -370,12 +602,94 @@ export class WebSiteResourceEditViewBase extends EditViewBase {
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
* @memberof WebSiteResourceEditViewBase
*/
*/
public
Exit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
ViewWFStep
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
closeView
(
args
)
;
let
_this
:
any
=
this
;
if
(
window
.
parent
)
{
if
(
!
xData
||
!
(
xData
.
wfsubmit
instanceof
Function
))
{
window
.
parent
.
postMessage
([{
...
args
}],
'*'
)
;
return
;
}
}
xData
.
wfsubmit
(
args
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
}
const
{
data
:
_data
}
=
response
;
if
(
_this
.
viewdata
)
{
_this
.
$emit
(
'viewdataschange'
,
[{
...
_data
}]);
_this
.
$emit
(
'close'
);
}
else
if
(
_this
.
$tabPageExp
)
{
_this
.
$tabPageExp
.
onClose
(
_this
.
$route
.
fullPath
);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
*/
public
Copy
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
if
(
args
.
length
>
0
)
{
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof WebSiteResourceEditViewBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
}
}
\ No newline at end of file
app_WebSite/src/service/web-site/web-site-service-base.ts
浏览文件 @
1ec2e705
...
@@ -62,21 +62,6 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -62,21 +62,6 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
let
websitechannelsData
:
any
=
[];
let
websitechannelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
...
@@ -107,6 +92,21 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -107,6 +92,21 @@ export default class WebSiteServiceBase extends EntityService {
}
}
}
}
masterData
.
websiteresources
=
websiteresourcesData
;
masterData
.
websiteresources
=
websiteresourcesData
;
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
data
[
this
.
APPDEKEY
]
=
null
;
...
@@ -116,9 +116,9 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -116,9 +116,9 @@ export default class WebSiteServiceBase extends EntityService {
}
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -133,21 +133,6 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -133,21 +133,6 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
let
websitechannelsData
:
any
=
[];
let
websitechannelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
...
@@ -178,11 +163,26 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -178,11 +163,26 @@ export default class WebSiteServiceBase extends EntityService {
}
}
}
}
masterData
.
websiteresources
=
websiteresourcesData
;
masterData
.
websiteresources
=
websiteresourcesData
;
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/websites/
${
context
.
website
}
`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/websites/
${
context
.
website
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -210,9 +210,9 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -210,9 +210,9 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/
${
context
.
website
}
`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/
${
context
.
website
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -228,9 +228,9 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -228,9 +228,9 @@ export default class WebSiteServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/getdraft`
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/websites/getdraft`
,
isloading
);
res
.
data
.
website
=
data
.
website
;
res
.
data
.
website
=
data
.
website
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
@@ -258,21 +258,6 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -258,21 +258,6 @@ export default class WebSiteServiceBase extends EntityService {
*/
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
masterData
:
any
=
{};
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
let
websitechannelsData
:
any
=
[];
let
websitechannelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
),
'undefined'
)){
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
websitechannelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitechannels'
)
as
any
);
...
@@ -303,11 +288,26 @@ export default class WebSiteServiceBase extends EntityService {
...
@@ -303,11 +288,26 @@ export default class WebSiteServiceBase extends EntityService {
}
}
}
}
masterData
.
websiteresources
=
websiteresourcesData
;
masterData
.
websiteresources
=
websiteresourcesData
;
let
websitecontentsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
),
'undefined'
)){
websitecontentsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_websitecontents'
)
as
any
);
if
(
websitecontentsData
&&
websitecontentsData
.
length
&&
websitecontentsData
.
length
>
0
){
websitecontentsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
websitecontentid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
websitecontents
=
websitecontentsData
;
Object
.
assign
(
data
,
masterData
);
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites/
${
context
.
website
}
/save`
,
data
,
isloading
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/websites/
${
context
.
website
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitechannels'
,
JSON
.
stringify
(
res
.
data
.
websitechannels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websiteresources'
,
JSON
.
stringify
(
res
.
data
.
websiteresources
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_websitecontents'
,
JSON
.
stringify
(
res
.
data
.
websitecontents
));
return
res
;
return
res
;
}
}
...
...
app_WebSite/src/widgets/web-site-content/main-grid/main-grid-base.tsx
浏览文件 @
1ec2e705
...
@@ -195,6 +195,14 @@ export class MainGridBase extends GridControllerBase {
...
@@ -195,6 +195,14 @@ export class MainGridBase extends GridControllerBase {
*/
*/
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
public
async
formatExcelData
(
filterVal
:
any
,
jsonData
:
any
,
codelistColumns
?:
any
[]):
Promise
<
any
>
{
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
return
super
.
formatExcelData
(
filterVal
,
jsonData
,
[
{
name
:
'contenttype'
,
srfkey
:
'ContentType'
,
codelistType
:
'STATIC'
,
renderMode
:
'other'
,
textSeparator
:
'、'
,
valueSeparator
:
','
,
},
{
{
name
:
'validflag'
,
name
:
'validflag'
,
srfkey
:
'YesNo'
,
srfkey
:
'YesNo'
,
...
...
app_WebSite/src/widgets/web-site-content/main-grid/main-grid.html
浏览文件 @
1ec2e705
...
@@ -79,7 +79,9 @@
...
@@ -79,7 +79,9 @@
</span>
</span>
</template>
</template>
<template
v-slot=
"{row,column,$index}"
>
<template
v-slot=
"{row,column,$index}"
>
<span>
{{row.contenttype}}
</span>
<template
>
<codelist
:value=
"row.contenttype"
tag=
'ContentType'
codelistType=
'STATIC'
></codelist>
</template>
</template>
</template>
</el-table-column>
</el-table-column>
</template>
</template>
...
...
businesscentral-app/businesscentral-app-crm/src/main/docker/Dockerfile
浏览文件 @
1ec2e705
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-crm.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-crm.jar
EXPOSE
8080
EXPOSE
10324
ADD
businesscentral-app-crm.jar /businesscentral-app-crm.jar
ADD
businesscentral-app-crm.jar /businesscentral-app-crm.jar
businesscentral-app/businesscentral-app-crm/src/main/docker/businesscentral-app-crm.yaml
浏览文件 @
1ec2e705
...
@@ -3,9 +3,23 @@ services:
...
@@ -3,9 +3,23 @@ services:
businesscentral-app-crm
:
businesscentral-app-crm
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-crm:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-crm:latest
ports
:
ports
:
-
"
8080:8080
"
-
"
10324:10324
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10324
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
businesscentral-app/businesscentral-app-website/src/main/docker/Dockerfile
浏览文件 @
1ec2e705
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-website.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-app-website.jar
EXPOSE
8080
EXPOSE
10324
ADD
businesscentral-app-website.jar /businesscentral-app-website.jar
ADD
businesscentral-app-website.jar /businesscentral-app-website.jar
businesscentral-app/businesscentral-app-website/src/main/docker/businesscentral-app-website.yaml
浏览文件 @
1ec2e705
...
@@ -3,9 +3,23 @@ services:
...
@@ -3,9 +3,23 @@ services:
businesscentral-app-website
:
businesscentral-app-website
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-website:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-app-website:latest
ports
:
ports
:
-
"
8080:8080
"
-
"
10324:10324
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10324
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
businesscentral-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
1ec2e705
...
@@ -10853,7 +10853,7 @@
...
@@ -10853,7 +10853,7 @@
<!--输出实体[WEBSITE]数据结构 -->
<!--输出实体[WEBSITE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-website-2
1
-128"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-website-2
2
-128"
>
<createTable
tableName=
"WEBSITE"
>
<createTable
tableName=
"WEBSITE"
>
<column
name=
"WEBSITENAME"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"WEBSITENAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
</column>
...
@@ -10879,7 +10879,7 @@
...
@@ -10879,7 +10879,7 @@
<!--输出实体[WEBSITECHANNEL]数据结构 -->
<!--输出实体[WEBSITECHANNEL]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitechannel-3
0
-129"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitechannel-3
1
-129"
>
<createTable
tableName=
"WEBSITECHANNEL"
>
<createTable
tableName=
"WEBSITECHANNEL"
>
<column
name=
"WEBSITECHANNELID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"WEBSITECHANNELID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITECHANNEL_WEBSITECHANN"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITECHANNEL_WEBSITECHANN"
/>
...
@@ -10913,7 +10913,7 @@
...
@@ -10913,7 +10913,7 @@
<!--输出实体[WEBSITECONTENT]数据结构 -->
<!--输出实体[WEBSITECONTENT]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitecontent-
29
-130"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websitecontent-
31
-130"
>
<createTable
tableName=
"WEBSITECONTENT"
>
<createTable
tableName=
"WEBSITECONTENT"
>
<column
name=
"WEBSITECONTENTID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"WEBSITECONTENTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITECONTENT_WEBSITECONTE"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITECONTENT_WEBSITECONTE"
/>
...
@@ -10957,7 +10957,7 @@
...
@@ -10957,7 +10957,7 @@
<!--输出实体[WEBSITERESOURCE]数据结构 -->
<!--输出实体[WEBSITERESOURCE]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websiteresource-1
1
-131"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-websiteresource-1
2
-131"
>
<createTable
tableName=
"WEBSITERESOURCE"
>
<createTable
tableName=
"WEBSITERESOURCE"
>
<column
name=
"WEBSITERESOURCEID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"WEBSITERESOURCEID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITERESOURCE_WEBSITERESO"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_WEBSITERESOURCE_WEBSITERESO"
/>
...
@@ -11904,21 +11904,21 @@
...
@@ -11904,21 +11904,21 @@
<!--输出实体[UOMSCHEDULE]外键关系 -->
<!--输出实体[UOMSCHEDULE]外键关系 -->
<!--输出实体[WEBSITE]外键关系 -->
<!--输出实体[WEBSITE]外键关系 -->
<!--输出实体[WEBSITECHANNEL]外键关系 -->
<!--输出实体[WEBSITECHANNEL]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-3
0
-427"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-3
1
-427"
>
<addForeignKeyConstraint
baseColumnNames=
"PWEBSITECHANNELID"
baseTableName=
"WEBSITECHANNEL"
constraintName=
"DER1N_WEBSITECHANNEL_WEBSITECH"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITECHANNELID"
referencedTableName=
"WEBSITECHANNEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PWEBSITECHANNELID"
baseTableName=
"WEBSITECHANNEL"
constraintName=
"DER1N_WEBSITECHANNEL_WEBSITECH"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITECHANNELID"
referencedTableName=
"WEBSITECHANNEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-3
0
-428"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitechannel-3
1
-428"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITECHANNEL"
constraintName=
"DER1N_WEBSITECHANNEL_WEBSITE_W"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITECHANNEL"
constraintName=
"DER1N_WEBSITECHANNEL_WEBSITE_W"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[WEBSITECONTENT]外键关系 -->
<!--输出实体[WEBSITECONTENT]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-
29
-429"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-
31
-429"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITECHANNELID"
baseTableName=
"WEBSITECONTENT"
constraintName=
"DER1N_WEBSITECONTENT_WEBSITECH"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITECHANNELID"
referencedTableName=
"WEBSITECHANNEL"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITECHANNELID"
baseTableName=
"WEBSITECONTENT"
constraintName=
"DER1N_WEBSITECONTENT_WEBSITECH"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITECHANNELID"
referencedTableName=
"WEBSITECHANNEL"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-
29
-430"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websitecontent-
31
-430"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITECONTENT"
constraintName=
"DER1N_WEBSITECONTENT_WEBSITE_W"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITECONTENT"
constraintName=
"DER1N_WEBSITECONTENT_WEBSITE_W"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[WEBSITERESOURCE]外键关系 -->
<!--输出实体[WEBSITERESOURCE]外键关系 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websiteresource-1
1
-431"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"fk-websiteresource-1
2
-431"
>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITERESOURCE"
constraintName=
"DER1N_WEBSITERESOURCE_WEBSITE_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"WEBSITEID"
baseTableName=
"WEBSITERESOURCE"
constraintName=
"DER1N_WEBSITERESOURCE_WEBSITE_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"WEBSITEID"
referencedTableName=
"WEBSITE"
validate=
"true"
/>
</changeSet>
</changeSet>
...
...
businesscentral-provider/businesscentral-provider-centralapi/src/main/docker/Dockerfile
浏览文件 @
1ec2e705
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-provider-centralapi.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /businesscentral-provider-centralapi.jar
EXPOSE
10310
EXPOSE
8081
ADD
businesscentral-provider-centralapi.jar /businesscentral-provider-centralapi.jar
ADD
businesscentral-provider-centralapi.jar /businesscentral-provider-centralapi.jar
businesscentral-provider/businesscentral-provider-centralapi/src/main/docker/businesscentral-provider-centralapi.yaml
浏览文件 @
1ec2e705
...
@@ -3,23 +3,9 @@ services:
...
@@ -3,23 +3,9 @@ services:
businesscentral-provider-centralapi
:
businesscentral-provider-centralapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-centralapi:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/businesscentral-provider-centralapi:latest
ports
:
ports
:
-
"
10310:10310
"
-
"
8081:8081
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=10310
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
-
SPRING_DATASOURCE_PASSWORD=b1@@@772
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
-
CAS=https://passport.ibizlab.cn
-
NACOS=172.16.240.110:8848
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
config.xml
浏览文件 @
1ec2e705
...
@@ -37,11 +37,11 @@
...
@@ -37,11 +37,11 @@
git clone -b master $para2 ibizbusinesscentral/
git clone -b master $para2 ibizbusinesscentral/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibizbusinesscentral/
cd ibizbusinesscentral/
mvn clean package -P
centralapi
mvn clean package -P
website
cd businesscentral-
provider/businesscentral-provider-centralapi
cd businesscentral-
app/businesscentral-app-website
mvn -P
centralapi
docker:build
mvn -P
website
docker:build
mvn -P
centralapi
docker:push
mvn -P
website
docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-
provider-centralapi.yaml iBizEE --with-registry-auth
docker -H $para1 stack deploy --compose-file=src/main/docker/businesscentral-
app-website.yaml iBizEE --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录