Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
2097c555
提交
2097c555
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
d121d9d6
变更
44
隐藏空白字符变更
内嵌
并排
正在显示
44 个修改的文件
包含
1879 行增加
和
69 行删除
+1879
-69
portlet-data.json
app_Web/public/assets/json/portlet-data.json
+312
-0
auth-service-register.ts
app_Web/src/authservice/auth-service-register.ts
+1
-0
dynadashboard-auth-service-base.ts
...hservice/dynadashboard/dynadashboard-auth-service-base.ts
+44
-0
dynadashboard-auth-service.ts
...c/authservice/dynadashboard/dynadashboard-auth-service.ts
+24
-0
en-US.ts
app_Web/src/locale/lang/en-US.ts
+2
-0
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+2
-0
dynadashboard_en_US.ts
...cale/lanres/entities/dynadashboard/dynadashboard_en_US.ts
+15
-0
dynadashboard_zh_CN.ts
...cale/lanres/entities/dynadashboard/dynadashboard_zh_CN.ts
+14
-0
dynadashboards.ts
app_Web/src/mock/entity/dynadashboards/dynadashboards.ts
+380
-0
index.ts
app_Web/src/mock/index.ts
+1
-0
portlet.ts
app_Web/src/mock/portlet/portlet.ts
+313
-1
app-portal-view2-base.vue
...c/pages/sample/app-portal-view2/app-portal-view2-base.vue
+1
-1
portlet-register.ts
app_Web/src/portlet-register.ts
+59
-0
dynadashboard-service-base.ts
...b/src/service/dynadashboard/dynadashboard-service-base.ts
+201
-0
dynadashboard-service.ts
app_Web/src/service/dynadashboard/dynadashboard-service.ts
+25
-0
entity-service-register.ts
app_Web/src/service/entity-service-register.ts
+1
-0
dynadashboard-ui-service-base.ts
.../uiservice/dynadashboard/dynadashboard-ui-service-base.ts
+256
-0
dynadashboard-ui-service.ts
...b/src/uiservice/dynadashboard/dynadashboard-ui-service.ts
+21
-0
ui-service-register.ts
app_Web/src/uiservice/ui-service-register.ts
+1
-0
dyna-dashboard-util-service-base.ts
...ervice/dyna-dashboard/dyna-dashboard-util-service-base.ts
+133
-0
dyna-dashboard-util-service.ts
...utilservice/dyna-dashboard/dyna-dashboard-util-service.ts
+21
-0
util-service-register.ts
app_Web/src/utilservice/util-service-register.ts
+2
-1
app-portal-view-db-dashboard-base.vue
...l-view-db-dashboard/app-portal-view-db-dashboard-base.vue
+1
-1
app-portal-view2-db-dashboard-base.vue
...view2-db-dashboard/app-portal-view2-db-dashboard-base.vue
+1
-1
gridexpbar-grid-grid-base.vue
...izbook/gridexpbar-grid-grid/gridexpbar-grid-grid-base.vue
+2
-2
internal-func-grid-base.vue
...s/ibizbook/internal-func-grid/internal-func-grid-base.vue
+2
-2
main2-grid-base.vue
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-base.vue
+2
-2
main3-grid-base.vue
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-base.vue
+2
-2
main4-grid-base.vue
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-base.vue
+2
-2
main5-grid-base.vue
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-base.vue
+2
-2
main6-grid-base.vue
app_Web/src/widgets/ibizbook/main6-grid/main6-grid-base.vue
+2
-2
main7-grid-base.vue
app_Web/src/widgets/ibizbook/main7-grid/main7-grid-base.vue
+2
-2
new-default-grid-base.vue
...dgets/ibizbook/new-default-grid/new-default-grid-base.vue
+2
-2
row-edit-grid-base.vue
...src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
+2
-2
row-rules-grid-base.vue
...c/widgets/ibizbook/row-rules-grid/row-rules-grid-base.vue
+2
-2
tree-table-treegridex-base.vue
...book/tree-table-treegridex/tree-table-treegridex-base.vue
+5
-5
update-default-grid-base.vue
...ibizbook/update-default-grid/update-default-grid-base.vue
+2
-2
usr-gantt-base.vue
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-base.vue
+8
-8
config.xml
config.xml
+0
-5
Dockerfile
demo-app/demo-app-web/src/main/docker/Dockerfile
+1
-1
demo-app-web.yaml
demo-app/demo-app-web/src/main/docker/demo-app-web.yaml
+1
-16
application-web-prod.yml
.../demo-app-web/src/main/resources/application-web-prod.yml
+4
-0
IBIZBOOKDataImport.java
...va/cn/ibizlab/core/sample/mapping/IBIZBOOKDataImport.java
+4
-4
IBIZOrderImport.java
.../java/cn/ibizlab/core/sample/mapping/IBIZOrderImport.java
+1
-1
未找到文件。
app_Web/public/assets/json/portlet-data.json
浏览文件 @
2097c555
[
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewList"
,
"portletName"
:
"视图列表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizappview-app-view-list-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"viewChart"
,
"portletName"
:
"视图图表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizappview-view-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewAmount"
,
"portletName"
:
"视图数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappview-app-view-amount-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList5"
,
"portletName"
:
"订单明细产品类型"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizorder-detail-portal-components-list5-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsListView"
,
"portletName"
:
"订单明细列表视图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizorder-detail-portal-components-list-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList4"
,
"portletName"
:
"订单明细合计金额"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizorder-detail-portal-components-list4-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList3"
,
"portletName"
:
"订单明细总数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizorder-detail-portal-components-list3-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsHistogram"
,
"portletName"
:
"订单明细柱状图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizorder-detail-portal-components-histogram-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsChart"
,
"portletName"
:
"图表"
,
"groupCodeName"
:
"PortletCat5"
,
"groupName"
:
"订单"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizorder-portal-components-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsOperation"
,
"portletName"
:
"操作栏"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"ACTIONBAR"
,
"componentName"
:
"ibizorder-portal-components-operation-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appExtendEditor"
,
"portletName"
:
"扩展编辑器数量"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappeditor-app-extend-editor-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorListView"
,
"portletName"
:
"编辑器列表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizappeditor-app-editor-list-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"editorChart"
,
"portletName"
:
"编辑器图表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizappeditor-editor-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorAmount"
,
"portletName"
:
"编辑器数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappeditor-app-editor-amount-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsList"
,
"portletName"
:
"列表"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizbook-portal-components-list-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsView"
,
"portletName"
:
"视图"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizbook-portal-components-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlListView"
,
"portletName"
:
"部件列表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizappctrl-app-ctrl-list-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"ctrlChart"
,
"portletName"
:
"部件图表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizappctrl-ctrl-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlAmount"
,
"portletName"
:
"部件数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappctrl-app-ctrl-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsChart"
,
"portletName"
:
"图表"
,
"groupCodeName"
:
"PortletCat5"
,
"groupName"
:
"订单"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizorder-portal-components-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsList"
,
"portletName"
:
"列表"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizbook-portal-components-list-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsView"
,
"portletName"
:
"视图"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizbook-portal-components-view-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList3"
,
"portletName"
:
"订单明细总数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list3-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList5"
,
"portletName"
:
"订单明细产品类型"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list5-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList4"
,
"portletName"
:
"订单明细合计金额"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list4-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsOperation"
,
"portletName"
:
"操作栏"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"ACTIONBAR"
,
"componentName"
:
"app-ibizorder-portal-components-operation-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsHistogram"
,
"portletName"
:
"订单明细柱状图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizorder-detail-portal-components-histogram-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsListView"
,
"portletName"
:
"订单明细列表视图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list-view-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsWeb"
,
"portletName"
:
"网页部件"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"HTML"
,
"componentName"
:
"app-ibizorder-portal-components-web-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewAmount"
,
"portletName"
:
"视图数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappview-app-view-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlAmount"
,
"portletName"
:
"部件数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappctrl-app-ctrl-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorAmount"
,
"portletName"
:
"编辑器数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappeditor-app-editor-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appExtendEditor"
,
"portletName"
:
"扩展编辑器数量"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappeditor-app-extend-editor-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"viewChart"
,
"portletName"
:
"视图图表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizappview-view-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewList"
,
"portletName"
:
"视图列表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizappview-app-view-list-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"ctrlChart"
,
"portletName"
:
"部件图表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizappctrl-ctrl-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlListView"
,
"portletName"
:
"部件列表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizappctrl-app-ctrl-list-view-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"editorChart"
,
"portletName"
:
"编辑器图表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizappeditor-editor-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorListView"
,
"portletName"
:
"编辑器列表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizappeditor-app-editor-list-view-portlet"
}
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/authservice/auth-service-register.ts
浏览文件 @
2097c555
...
...
@@ -78,6 +78,7 @@ export class AuthServiceRegister {
this
.
allAuthService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/authservice/ibizcustom/ibizcustom-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/authservice/ibizsample0005/ibizsample0005-auth-service'
));
this
.
allAuthService
.
set
(
'ibizuniproduct'
,
()
=>
import
(
'@/authservice/ibizuniproduct/ibizuniproduct-auth-service'
));
this
.
allAuthService
.
set
(
'dynadashboard'
,
()
=>
import
(
'@/authservice/dynadashboard/dynadashboard-auth-service'
));
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/authservice/dynadashboard/dynadashboard-auth-service-base.ts
0 → 100644
浏览文件 @
2097c555
import
AuthService
from
'../auth-service'
;
/**
* 动态数据看板权限服务对象基类
*
* @export
* @class DYNADASHBOARDAuthServiceBase
* @extends {AuthService}
*/
export
default
class
DYNADASHBOARDAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of DYNADASHBOARDAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof DYNADASHBOARDAuthServiceBase
*/
public
getOPPrivs
(
mainSateOPPrivs
:
any
):
any
{
let
curDefaultOPPrivs
:
any
=
this
.
getSysOPPrivs
();
let
copyDefaultOPPrivs
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
curDefaultOPPrivs
));
if
(
mainSateOPPrivs
){
Object
.
assign
(
curDefaultOPPrivs
,
mainSateOPPrivs
);
}
// 统一资源优先
Object
.
keys
(
curDefaultOPPrivs
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
sysOPPrivsMap
.
get
(
name
)
&&
copyDefaultOPPrivs
[
name
]
===
0
){
curDefaultOPPrivs
[
name
]
=
copyDefaultOPPrivs
[
name
];
}
});
return
curDefaultOPPrivs
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/authservice/dynadashboard/dynadashboard-auth-service.ts
0 → 100644
浏览文件 @
2097c555
import
DYNADASHBOARDAuthServiceBase
from
'./dynadashboard-auth-service-base'
;
/**
* 动态数据看板权限服务对象
*
* @export
* @class DYNADASHBOARDAuthService
* @extends {DYNADASHBOARDAuthServiceBase}
*/
export
default
class
DYNADASHBOARDAuthService
extends
DYNADASHBOARDAuthServiceBase
{
/**
* Creates an instance of DYNADASHBOARDAuthService.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lang/en-US.ts
浏览文件 @
2097c555
...
...
@@ -37,6 +37,7 @@ import ibizcustomer_en_US from '@locale/lanres/entities/ibizcustomer/ibizcustome
import
ibizcustom_en_US
from
'@locale/lanres/entities/ibizcustom/ibizcustom_en_US'
;
import
ibizsample0005_en_US
from
'@locale/lanres/entities/ibizsample0005/ibizsample0005_en_US'
;
import
ibizuniproduct_en_US
from
'@locale/lanres/entities/ibizuniproduct/ibizuniproduct_en_US'
;
import
dynadashboard_en_US
from
'@locale/lanres/entities/dynadashboard/dynadashboard_en_US'
;
import
components_en_US
from
'@locale/lanres/components/components_en_US'
;
import
codelist_en_US
from
'@locale/lanres/codelist/codelist_en_US'
;
import
userCustom_en_US
from
'@locale/lanres/userCustom/userCustom_en_US'
;
...
...
@@ -490,6 +491,7 @@ export default {
ibizcustom
:
ibizcustom_en_US
,
ibizsample0005
:
ibizsample0005_en_US
,
ibizuniproduct
:
ibizuniproduct_en_US
,
dynadashboard
:
dynadashboard_en_US
,
},
components
:
components_en_US
,
codelist
:
codelist_en_US
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
2097c555
...
...
@@ -37,6 +37,7 @@ import ibizcustomer_zh_CN from '@locale/lanres/entities/ibizcustomer/ibizcustome
import
ibizcustom_zh_CN
from
'@locale/lanres/entities/ibizcustom/ibizcustom_zh_CN'
;
import
ibizsample0005_zh_CN
from
'@locale/lanres/entities/ibizsample0005/ibizsample0005_zh_CN'
;
import
ibizuniproduct_zh_CN
from
'@locale/lanres/entities/ibizuniproduct/ibizuniproduct_zh_CN'
;
import
dynadashboard_zh_CN
from
'@locale/lanres/entities/dynadashboard/dynadashboard_zh_CN'
;
import
components_zh_CN
from
'@locale/lanres/components/components_zh_CN'
;
import
codelist_zh_CN
from
'@locale/lanres/codelist/codelist_zh_CN'
;
import
userCustom_zh_CN
from
'@locale/lanres/userCustom/userCustom_zh_CN'
;
...
...
@@ -489,6 +490,7 @@ export default {
ibizcustom
:
ibizcustom_zh_CN
,
ibizsample0005
:
ibizsample0005_zh_CN
,
ibizuniproduct
:
ibizuniproduct_zh_CN
,
dynadashboard
:
dynadashboard_zh_CN
,
},
components
:
components_zh_CN
,
codelist
:
codelist_zh_CN
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/dynadashboard/dynadashboard_en_US.ts
0 → 100644
浏览文件 @
2097c555
export
default
{
fields
:
{
dynadashboardid
:
"动态数据看板标识"
,
dynadashboardname
:
"动态数据看板名称"
,
createman
:
"建立人"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
userid
:
"用户标识"
,
modelid
:
"模型标识"
,
appid
:
"应用标识"
,
model
:
"模型"
,
},
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/dynadashboard/dynadashboard_zh_CN.ts
0 → 100644
浏览文件 @
2097c555
export
default
{
fields
:
{
dynadashboardid
:
"动态数据看板标识"
,
dynadashboardname
:
"动态数据看板名称"
,
createman
:
"建立人"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
userid
:
"用户标识"
,
modelid
:
"模型标识"
,
appid
:
"应用标识"
,
model
:
"模型"
,
},
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/mock/entity/dynadashboards/dynadashboards.ts
0 → 100644
浏览文件 @
2097c555
import
qs
from
'qs'
;
import
{
MockAdapter
}
from
'@/mock/mock-adapter'
;
const
mock
=
MockAdapter
.
getInstance
();
// 模拟数据
const
mockDatas
:
Array
<
any
>
=
[
];
//getwflink
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
dynadashboards
\/[
a-zA-Z0-9
\-\;]
+
\/
usertasks
\/[
a-zA-Z0-9
\-\;]
+
\/
ways$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: getwflink"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,[
{
"sequenceFlowId"
:
"dfdsfdsfdsfdsfds"
,
"sequenceFlowName"
:
"同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddlfldldfldsfds"
,
"refViewKey"
:
""
},
{
"sequenceFlowId"
:
"ddssdfdfdfdfsfdf"
,
"sequenceFlowName"
:
"不同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddfdsldlfdlldsf"
,
"refViewKey"
:
"workorder_ltform_editview"
}
]];
});
// getwfstep
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
dynadashboards
\/
process-definitions-nodes$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: getwfstep"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
[
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-dfdfd"
,
"userTaskName"
:
"待审"
,
"cnt"
:
0
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
},
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-87927"
,
"userTaskName"
:
"待分配"
,
"cnt"
:
3
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
}
]];
});
// createBatch
mock
.
onPost
(
new
RegExp
(
/^
\/
dynadashboards
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: createBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// updateBatch
mock
.
onPut
(
new
RegExp
(
/^
\/
dynadashboards
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: updateBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// removeBatch
mock
.
onDelete
(
new
RegExp
(
/^
\/
dynadashboards
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: removeBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: Select"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'dynadashboardid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
dynadashboardid
,
tempValue
.
dynadashboardid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
];
});
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
dynadashboards
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: Create"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'dynadashboardid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
[
0
]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
[
0
]];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
dynadashboards
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: Update"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'dynadashboardid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.dynadashboardid, tempValue.dynadashboardid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'dynadashboardid'
]
==
tempValue
[
'dynadashboardid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
dynadashboards
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: GetDraft"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
// GetDraft
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
dynadashboards
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: CheckKey"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'dynadashboardid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.dynadashboardid, tempValue.dynadashboardid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'dynadashboardid'
]
==
tempValue
[
'dynadashboardid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
dynadashboards
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: Save"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'dynadashboardid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.dynadashboardid, tempValue.dynadashboardid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'dynadashboardid'
]
==
tempValue
[
'dynadashboardid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
dynadashboards
\/
fetchdefault$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
?
mockDatas
:
[]];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
dynadashboards
\/
fetchdefault
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
let
url
=
config
.
url
.
split
(
'?'
)[
1
];
let
params
=
qs
.
parse
(
url
);
Object
.
assign
(
config
,
params
);
}
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
let
total
=
mockDatas
.
length
;
let
records
:
Array
<
any
>
=
[];
if
(
!
config
.
page
||
!
config
.
size
){
records
=
mockDatas
;
}
else
{
if
((
config
.
page
-
1
)
*
config
.
size
<
total
){
records
=
mockDatas
.
slice
(
config
.
page
,
config
.
size
);
}
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
records
?
records
:
[]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
records
?
records
:
[]];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: Remove"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'dynadashboardid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
dynadashboardid
,
tempValue
.
dynadashboardid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:dynadashboard 方法: Get"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'dynadashboardid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
dynadashboards
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
dynadashboardid
,
tempValue
.
dynadashboardid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
This diff is collapsed.
Click to expand it.
app_Web/src/mock/index.ts
浏览文件 @
2097c555
...
...
@@ -46,3 +46,4 @@ import './entity/ibizcustomers/ibizcustomers';
import
'./entity/ibizcustoms/ibizcustoms'
;
import
'./entity/ibizsample0005s/ibizsample0005s'
;
import
'./entity/ibizuniproducts/ibizuniproducts'
;
import
'./entity/dynadashboards/dynadashboards'
;
This diff is collapsed.
Click to expand it.
app_Web/src/mock/portlet/portlet.ts
浏览文件 @
2097c555
...
...
@@ -9,5 +9,317 @@ mock.onGet('./assets/json/portlet-data.json').reply((config: any) => {
let
status
=
MockAdapter
.
mockStatus
(
config
);
return
[
status
,
[
]];
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewList"
,
"portletName"
:
"视图列表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizappview-app-view-list-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"viewChart"
,
"portletName"
:
"视图图表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizappview-view-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewAmount"
,
"portletName"
:
"视图数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappview-app-view-amount-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList5"
,
"portletName"
:
"订单明细产品类型"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizorder-detail-portal-components-list5-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsListView"
,
"portletName"
:
"订单明细列表视图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizorder-detail-portal-components-list-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList4"
,
"portletName"
:
"订单明细合计金额"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizorder-detail-portal-components-list4-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList3"
,
"portletName"
:
"订单明细总数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizorder-detail-portal-components-list3-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsHistogram"
,
"portletName"
:
"订单明细柱状图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizorder-detail-portal-components-histogram-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsChart"
,
"portletName"
:
"图表"
,
"groupCodeName"
:
"PortletCat5"
,
"groupName"
:
"订单"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizorder-portal-components-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsOperation"
,
"portletName"
:
"操作栏"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"ACTIONBAR"
,
"componentName"
:
"ibizorder-portal-components-operation-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appExtendEditor"
,
"portletName"
:
"扩展编辑器数量"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappeditor-app-extend-editor-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorListView"
,
"portletName"
:
"编辑器列表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizappeditor-app-editor-list-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"editorChart"
,
"portletName"
:
"编辑器图表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizappeditor-editor-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorAmount"
,
"portletName"
:
"编辑器数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappeditor-app-editor-amount-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsList"
,
"portletName"
:
"列表"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizbook-portal-components-list-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsView"
,
"portletName"
:
"视图"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizbook-portal-components-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlListView"
,
"portletName"
:
"部件列表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"ibizappctrl-app-ctrl-list-view-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"ctrlChart"
,
"portletName"
:
"部件图表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"ibizappctrl-ctrl-chart-portlet"
},
{
"type"
:
"appde"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlAmount"
,
"portletName"
:
"部件数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"ibizappctrl-app-ctrl-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsChart"
,
"portletName"
:
"图表"
,
"groupCodeName"
:
"PortletCat5"
,
"groupName"
:
"订单"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizorder-portal-components-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsList"
,
"portletName"
:
"列表"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizbook-portal-components-list-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZBOOK"
,
"appName"
:
"图书"
,
"portletCodeName"
:
"portalComponentsView"
,
"portletName"
:
"视图"
,
"groupCodeName"
:
"PortletCat"
,
"groupName"
:
"图书"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizbook-portal-components-view-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList3"
,
"portletName"
:
"订单明细总数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list3-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList5"
,
"portletName"
:
"订单明细产品类型"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list5-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsList4"
,
"portletName"
:
"订单明细合计金额"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list4-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsOperation"
,
"portletName"
:
"操作栏"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"ACTIONBAR"
,
"componentName"
:
"app-ibizorder-portal-components-operation-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsHistogram"
,
"portletName"
:
"订单明细柱状图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizorder-detail-portal-components-histogram-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrderDetail"
,
"appName"
:
"订单明细"
,
"portletCodeName"
:
"portalComponentsListView"
,
"portletName"
:
"订单明细列表视图"
,
"groupCodeName"
:
"PortletCat6"
,
"groupName"
:
"订单明细"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizorder-detail-portal-components-list-view-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZOrder"
,
"appName"
:
"订单"
,
"portletCodeName"
:
"portalComponentsWeb"
,
"portletName"
:
"网页部件"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"HTML"
,
"componentName"
:
"app-ibizorder-portal-components-web-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewAmount"
,
"portletName"
:
"视图数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappview-app-view-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlAmount"
,
"portletName"
:
"部件数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappctrl-app-ctrl-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorAmount"
,
"portletName"
:
"编辑器数"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappeditor-app-editor-amount-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appExtendEditor"
,
"portletName"
:
"扩展编辑器数量"
,
"groupCodeName"
:
"Ungroup"
,
"groupName"
:
"(未分类)"
,
"portletTYpe"
:
"LIST"
,
"componentName"
:
"app-ibizappeditor-app-extend-editor-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"viewChart"
,
"portletName"
:
"视图图表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizappview-view-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPVIEW"
,
"appName"
:
"应用视图"
,
"portletCodeName"
:
"appViewList"
,
"portletName"
:
"视图列表"
,
"groupCodeName"
:
"PortletCat2"
,
"groupName"
:
"视图"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizappview-app-view-list-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"ctrlChart"
,
"portletName"
:
"部件图表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizappctrl-ctrl-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPCTRL"
,
"appName"
:
"应用部件"
,
"portletCodeName"
:
"appCtrlListView"
,
"portletName"
:
"部件列表"
,
"groupCodeName"
:
"PortletCat3"
,
"groupName"
:
"部件"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizappctrl-app-ctrl-list-view-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"editorChart"
,
"portletName"
:
"编辑器图表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"CHART"
,
"componentName"
:
"app-ibizappeditor-editor-chart-portlet"
},
{
"type"
:
"app"
,
"appCodeName"
:
"IBIZAPPEDITOR"
,
"appName"
:
"编辑器"
,
"portletCodeName"
:
"appEditorListView"
,
"portletName"
:
"编辑器列表"
,
"groupCodeName"
:
"PortletCat4"
,
"groupName"
:
"编辑器"
,
"portletTYpe"
:
"VIEW"
,
"componentName"
:
"app-ibizappeditor-app-editor-list-view-portlet"
}
]];
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/app-portal-view2/app-portal-view2-base.vue
浏览文件 @
2097c555
...
...
@@ -13,7 +13,7 @@
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"JSON.parse(JSON.stringify(context))"
:isEnableCustomized =
"
fals
e"
:isEnableCustomized =
"
tru
e"
name=
"dashboard"
ref=
'dashboard'
@
closeview=
"closeView($event)"
>
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/portlet-register.ts
浏览文件 @
2097c555
import
IBIZOrderPortalComponentsWeb
from
'@/widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet.vue'
;
import
IBIZAPPVIEWAppViewList
from
'@/widgets/ibizappview/app-view-list-portlet/app-view-list-portlet.vue'
;
import
IBIZAPPVIEWViewChart
from
'@/widgets/ibizappview/view-chart-portlet/view-chart-portlet.vue'
;
import
IBIZAPPVIEWAppViewAmount
from
'@/widgets/ibizappview/app-view-amount-portlet/app-view-amount-portlet.vue'
;
import
IBIZOrderDetailPortalComponentsList5
from
'@/widgets/ibizorder-detail/portal-components-list5-portlet/portal-components-list5-portlet.vue'
;
import
IBIZOrderDetailPortalComponentsListView
from
'@/widgets/ibizorder-detail/portal-components-list-view-portlet/portal-components-list-view-portlet.vue'
;
import
IBIZOrderDetailPortalComponentsList4
from
'@/widgets/ibizorder-detail/portal-components-list4-portlet/portal-components-list4-portlet.vue'
;
import
IBIZOrderDetailPortalComponentsList3
from
'@/widgets/ibizorder-detail/portal-components-list3-portlet/portal-components-list3-portlet.vue'
;
import
IBIZOrderDetailPortalComponentsHistogram
from
'@/widgets/ibizorder-detail/portal-components-histogram-portlet/portal-components-histogram-portlet.vue'
;
import
IBIZOrderPortalComponentsChart
from
'@/widgets/ibizorder/portal-components-chart-portlet/portal-components-chart-portlet.vue'
;
import
IBIZOrderPortalComponentsOperation
from
'@/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet.vue'
;
import
IBIZAPPEDITORAppExtendEditor
from
'@/widgets/ibizappeditor/app-extend-editor-portlet/app-extend-editor-portlet.vue'
;
import
IBIZAPPEDITORAppEditorListView
from
'@/widgets/ibizappeditor/app-editor-list-view-portlet/app-editor-list-view-portlet.vue'
;
import
IBIZAPPEDITOREditorChart
from
'@/widgets/ibizappeditor/editor-chart-portlet/editor-chart-portlet.vue'
;
import
IBIZAPPEDITORAppEditorAmount
from
'@/widgets/ibizappeditor/app-editor-amount-portlet/app-editor-amount-portlet.vue'
;
import
IBIZBOOKPortalComponentsList
from
'@/widgets/ibizbook/portal-components-list-portlet/portal-components-list-portlet.vue'
;
import
IBIZBOOKPortalComponentsView
from
'@/widgets/ibizbook/portal-components-view-portlet/portal-components-view-portlet.vue'
;
import
IBIZAPPCTRLAppCtrlListView
from
'@/widgets/ibizappctrl/app-ctrl-list-view-portlet/app-ctrl-list-view-portlet.vue'
;
import
IBIZAPPCTRLCtrlChart
from
'@/widgets/ibizappctrl/ctrl-chart-portlet/ctrl-chart-portlet.vue'
;
import
IBIZAPPCTRLAppCtrlAmount
from
'@/widgets/ibizappctrl/app-ctrl-amount-portlet/app-ctrl-amount-portlet.vue'
;
export
const
PortletComponent
=
{
install
(
v
:
any
,
opt
:
any
)
{
v
.
component
(
'app-ibizorder-portal-components-chart-portlet'
,
IBIZOrderPortalComponentsChart
);
v
.
component
(
'app-ibizbook-portal-components-list-portlet'
,
IBIZBOOKPortalComponentsList
);
v
.
component
(
'app-ibizbook-portal-components-view-portlet'
,
IBIZBOOKPortalComponentsView
);
v
.
component
(
'app-ibizorder-detail-portal-components-list3-portlet'
,
IBIZOrderDetailPortalComponentsList3
);
v
.
component
(
'app-ibizorder-detail-portal-components-list5-portlet'
,
IBIZOrderDetailPortalComponentsList5
);
v
.
component
(
'app-ibizorder-detail-portal-components-list4-portlet'
,
IBIZOrderDetailPortalComponentsList4
);
v
.
component
(
'app-ibizorder-portal-components-operation-portlet'
,
IBIZOrderPortalComponentsOperation
);
v
.
component
(
'app-ibizorder-detail-portal-components-histogram-portlet'
,
IBIZOrderDetailPortalComponentsHistogram
);
v
.
component
(
'app-ibizorder-detail-portal-components-list-view-portlet'
,
IBIZOrderDetailPortalComponentsListView
);
v
.
component
(
'app-ibizorder-portal-components-web-portlet'
,
IBIZOrderPortalComponentsWeb
);
v
.
component
(
'app-ibizappview-app-view-amount-portlet'
,
IBIZAPPVIEWAppViewAmount
);
v
.
component
(
'app-ibizappctrl-app-ctrl-amount-portlet'
,
IBIZAPPCTRLAppCtrlAmount
);
v
.
component
(
'app-ibizappeditor-app-editor-amount-portlet'
,
IBIZAPPEDITORAppEditorAmount
);
v
.
component
(
'app-ibizappeditor-app-extend-editor-portlet'
,
IBIZAPPEDITORAppExtendEditor
);
v
.
component
(
'app-ibizappview-view-chart-portlet'
,
IBIZAPPVIEWViewChart
);
v
.
component
(
'app-ibizappview-app-view-list-portlet'
,
IBIZAPPVIEWAppViewList
);
v
.
component
(
'app-ibizappctrl-ctrl-chart-portlet'
,
IBIZAPPCTRLCtrlChart
);
v
.
component
(
'app-ibizappctrl-app-ctrl-list-view-portlet'
,
IBIZAPPCTRLAppCtrlListView
);
v
.
component
(
'app-ibizappeditor-editor-chart-portlet'
,
IBIZAPPEDITOREditorChart
);
v
.
component
(
'app-ibizappeditor-app-editor-list-view-portlet'
,
IBIZAPPEDITORAppEditorListView
);
v
.
component
(
'ibizappview-app-view-list-portlet'
,
IBIZAPPVIEWAppViewList
);
v
.
component
(
'ibizappview-view-chart-portlet'
,
IBIZAPPVIEWViewChart
);
v
.
component
(
'ibizappview-app-view-amount-portlet'
,
IBIZAPPVIEWAppViewAmount
);
v
.
component
(
'ibizorder-detail-portal-components-list5-portlet'
,
IBIZOrderDetailPortalComponentsList5
);
v
.
component
(
'ibizorder-detail-portal-components-list-view-portlet'
,
IBIZOrderDetailPortalComponentsListView
);
v
.
component
(
'ibizorder-detail-portal-components-list4-portlet'
,
IBIZOrderDetailPortalComponentsList4
);
v
.
component
(
'ibizorder-detail-portal-components-list3-portlet'
,
IBIZOrderDetailPortalComponentsList3
);
v
.
component
(
'ibizorder-detail-portal-components-histogram-portlet'
,
IBIZOrderDetailPortalComponentsHistogram
);
v
.
component
(
'ibizorder-portal-components-chart-portlet'
,
IBIZOrderPortalComponentsChart
);
v
.
component
(
'ibizorder-portal-components-operation-portlet'
,
IBIZOrderPortalComponentsOperation
);
v
.
component
(
'ibizappeditor-app-extend-editor-portlet'
,
IBIZAPPEDITORAppExtendEditor
);
v
.
component
(
'ibizappeditor-app-editor-list-view-portlet'
,
IBIZAPPEDITORAppEditorListView
);
v
.
component
(
'ibizappeditor-editor-chart-portlet'
,
IBIZAPPEDITOREditorChart
);
v
.
component
(
'ibizappeditor-app-editor-amount-portlet'
,
IBIZAPPEDITORAppEditorAmount
);
v
.
component
(
'ibizbook-portal-components-list-portlet'
,
IBIZBOOKPortalComponentsList
);
v
.
component
(
'ibizbook-portal-components-view-portlet'
,
IBIZBOOKPortalComponentsView
);
v
.
component
(
'ibizappctrl-app-ctrl-list-view-portlet'
,
IBIZAPPCTRLAppCtrlListView
);
v
.
component
(
'ibizappctrl-ctrl-chart-portlet'
,
IBIZAPPCTRLCtrlChart
);
v
.
component
(
'ibizappctrl-app-ctrl-amount-portlet'
,
IBIZAPPCTRLAppCtrlAmount
);
}
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/service/dynadashboard/dynadashboard-service-base.ts
0 → 100644
浏览文件 @
2097c555
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 动态数据看板服务对象基类
*
* @export
* @class DYNADASHBOARDServiceBase
* @extends {EntityServie}
*/
export
default
class
DYNADASHBOARDServiceBase
extends
EntityService
{
/**
* Creates an instance of DYNADASHBOARDServiceBase.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof DYNADASHBOARDServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'dynadashboard'
;
this
.
APPDEKEY
=
'dynadashboardid'
;
this
.
APPDENAME
=
'dynadashboards'
;
this
.
APPDETEXT
=
'dynadashboardname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'demosys'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/dynadashboards/
${
context
.
dynadashboard
}
/select`
,
isloading
);
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/dynadashboards`
,
data
,
isloading
);
return
res
;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/dynadashboards/
${
context
.
dynadashboard
}
`
,
data
,
isloading
);
return
res
;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/dynadashboards/
${
context
.
dynadashboard
}
`
,
isloading
);
return
res
;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/dynadashboards/
${
context
.
dynadashboard
}
`
,
isloading
);
return
res
;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/dynadashboards/getdraft`
,
isloading
);
res
.
data
.
dynadashboard
=
data
.
dynadashboard
;
return
res
;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/dynadashboards/
${
context
.
dynadashboard
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/dynadashboards/
${
context
.
dynadashboard
}
/save`
,
data
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/dynadashboards/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DYNADASHBOARDServiceBase
*/
public
async
searchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dynadashboards/searchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/service/dynadashboard/dynadashboard-service.ts
0 → 100644
浏览文件 @
2097c555
import
{
Http
,
Util
}
from
'@/utils'
;
import
DYNADASHBOARDServiceBase
from
'./dynadashboard-service-base'
;
/**
* 动态数据看板服务对象
*
* @export
* @class DYNADASHBOARDService
* @extends {DYNADASHBOARDServiceBase}
*/
export
default
class
DYNADASHBOARDService
extends
DYNADASHBOARDServiceBase
{
/**
* Creates an instance of DYNADASHBOARDService.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/service/entity-service-register.ts
浏览文件 @
2097c555
...
...
@@ -78,6 +78,7 @@ export class EntityServiceRegister {
this
.
allEntityService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/service/ibizcustom/ibizcustom-service'
));
this
.
allEntityService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/service/ibizsample0005/ibizsample0005-service'
));
this
.
allEntityService
.
set
(
'ibizuniproduct'
,
()
=>
import
(
'@/service/ibizuniproduct/ibizuniproduct-service'
));
this
.
allEntityService
.
set
(
'dynadashboard'
,
()
=>
import
(
'@/service/dynadashboard/dynadashboard-service'
));
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/uiservice/dynadashboard/dynadashboard-ui-service-base.ts
0 → 100644
浏览文件 @
2097c555
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
DYNADASHBOARDService
from
'@/service/dynadashboard/dynadashboard-service'
;
import
DYNADASHBOARDAuthService
from
'@/authservice/dynadashboard/dynadashboard-auth-service'
;
/**
* 动态数据看板UI服务对象基类
*
* @export
* @class DYNADASHBOARDUIServiceBase
*/
export
default
class
DYNADASHBOARDUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
dataService
:
DYNADASHBOARDService
=
new
DYNADASHBOARDService
();
/**
* 所有关联视图
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of DYNADASHBOARDUIServiceBase.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
DYNADASHBOARDAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof DYNADASHBOARDUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
dynadashboard
:
srfkey
});
const
curData
:
any
=
result
.
data
;
//判断当前数据模式,默认为true,todo
const
iRealDEModel
:
boolean
=
true
;
let
bDataInWF
:
boolean
=
false
;
let
bWFMode
:
any
=
false
;
// 计算数据模式
if
(
this
.
isEnableWorkflow
)
{
bDataInWF
=
await
this
.
dataService
.
testDataInWF
({
stateValue
:
this
.
stateValue
,
stateField
:
this
.
stateField
},
curData
);
if
(
bDataInWF
)
{
bDataInWF
=
true
;
bWFMode
=
await
this
.
dataService
.
testUserExistWorklist
(
null
,
curData
);
}
}
let
strPDTViewParam
:
string
=
await
this
.
getDESDDEViewPDTParam
(
curData
,
bDataInWF
,
bWFMode
);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return
this
.
allViewMap
.
get
(
strPDTViewParam
);
}
/**
* 获取实际的数据类型
*
* @memberof DYNADASHBOARDUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof DYNADASHBOARDUIServiceBase
*/
public
async
getDESDDEViewPDTParam
(
curData
:
any
,
bDataInWF
:
boolean
,
bWFMode
:
boolean
){
let
strPDTParam
:
string
=
''
;
if
(
bDataInWF
)
{
// 判断数据是否在流程中
}
//多表单,todo
const
multiFormDEField
:
string
|
null
=
null
;
if
(
multiFormDEField
)
{
const
objFormValue
:
string
=
curData
[
multiFormDEField
];
if
(
!
Environment
.
isAppMode
){
return
'MOBEDITVIEW:'
+
objFormValue
;
}
return
'EDITVIEW:'
+
objFormValue
;
}
if
(
!
Environment
.
isAppMode
){
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`MOBEDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'MOBEDITVIEW:'
;
}
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`EDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'EDITVIEW:'
;
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof DYNADASHBOARDUIServiceBase
*/
public
getDEMainStateTag
(
curData
:
any
){
if
(
this
.
mainStateFields
.
length
===
0
)
return
null
;
this
.
mainStateFields
.
forEach
((
singleMainField
:
any
)
=>
{
if
(
!
(
singleMainField
in
curData
)){
console
.
warn
(
`当前数据对象不包含属性「
${
singleMainField
}
」,根据「
${
singleMainField
}
」属性进行的主状态计算默认为空值`
);
}
})
for
(
let
i
=
0
;
i
<=
1
;
i
++
)
{
let
strTag
:
string
=
(
curData
[
this
.
mainStateFields
[
0
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
0
]]
!==
""
)?(
i
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
0
]]}
`
:
""
:
""
;
if
(
this
.
mainStateFields
.
length
>=
2
)
{
for
(
let
j
=
0
;
j
<=
1
;
j
++
)
{
let
strTag2
:
string
=
(
curData
[
this
.
mainStateFields
[
1
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
1
]]
!==
""
)?
`
${
strTag
}
__
${(
j
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
1
]]}
`
:
""
}
`
:
strTag
;
if
(
this
.
mainStateFields
.
length
>=
3
)
{
for
(
let
k
=
0
;
k
<=
1
;
k
++
)
{
let
strTag3
:
string
=
(
curData
[
this
.
mainStateFields
[
2
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
2
]]
!==
""
)?
`
${
strTag2
}
__
${(
k
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
2
]]}
`
:
""
}
`
:
strTag2
;
// 判断是否存在
return
this
.
allDeMainStateMap
.
get
(
strTag3
);
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag2
);
}
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag
);
}
}
return
null
;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof DYNADASHBOARDUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof DYNADASHBOARDUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/uiservice/dynadashboard/dynadashboard-ui-service.ts
0 → 100644
浏览文件 @
2097c555
import
DYNADASHBOARDUIServiceBase
from
'./dynadashboard-ui-service-base'
;
/**
* 动态数据看板UI服务对象
*
* @export
* @class DYNADASHBOARDUIService
*/
export
default
class
DYNADASHBOARDUIService
extends
DYNADASHBOARDUIServiceBase
{
/**
* Creates an instance of DYNADASHBOARDUIService.
*
* @param {*} [opts={}]
* @memberof DYNADASHBOARDUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/uiservice/ui-service-register.ts
浏览文件 @
2097c555
...
...
@@ -78,6 +78,7 @@ export class UIServiceRegister {
this
.
allUIService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/uiservice/ibizcustom/ibizcustom-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/uiservice/ibizsample0005/ibizsample0005-ui-service'
));
this
.
allUIService
.
set
(
'ibizuniproduct'
,
()
=>
import
(
'@/uiservice/ibizuniproduct/ibizuniproduct-ui-service'
));
this
.
allUIService
.
set
(
'dynadashboard'
,
()
=>
import
(
'@/uiservice/dynadashboard/dynadashboard-ui-service'
));
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/utilservice/dyna-dashboard/dyna-dashboard-util-service-base.ts
0 → 100644
浏览文件 @
2097c555
import
UtilService
from
'../util-service'
;
import
DYNADASHBOARDService
from
'@/service/dynadashboard/dynadashboard-service'
;
/**
* 动态数据看板功能服务对象基类
*
* @export
* @class DynaDashboardUtilServiceBase
*/
export
default
class
DynaDashboardUtilServiceBase
extends
UtilService
{
/**
* 存储数据服务
*
* @memberof DynaDashboardUtilServiceBase
*/
public
stoageDataService
:
DYNADASHBOARDService
=
new
DYNADASHBOARDService
();
/**
* 获取数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public
loadAction
:
string
=
"Get"
;
/**
* 建立数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public
createAction
:
string
=
"Create"
;
/**
* 更新数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public
updateAction
:
string
=
"Update"
;
/**
* 删除数据行为
*
* @memberof DynaDashboardUtilServiceBase
*/
public
removeAction
:
string
=
"Remove"
;
/**
* Creates an instance of DynaDashboardUtilServiceBase.
*
* @param {*} [opts={}]
* @memberof DynaDashboardUtilServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础参数
*
* @memberof DynaDashboardUtilServiceBase
*/
public
initBasicParam
(){
this
.
modelIdField
=
"modelid"
;
this
.
modelField
=
"model"
;
this
.
appIdField
=
"appid"
;
this
.
userIdField
=
"userid"
;
this
.
stoageEntityName
=
"dynadashboard"
;
this
.
stoageEntityKey
=
"dynadashboardid"
;
}
/**
* 获取模型数据
*
* @param context 应用上下文
* @param data 传入模型数据
* @param isloading 是否加载
* @memberof DynaDashboardUtilServiceBase
*/
public
loadModelData
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
//从接口加载
if
(
data
&&
data
.
utilServiceName
){
const
requestParam
:
any
=
{
configType
:
data
.
utilServiceName
,
targetType
:
data
.
modelid
};
this
.
stoageDataService
.
getDynaModel
(
context
,
requestParam
).
then
((
res
:
any
)
=>
{
if
(
res
&&
res
.
status
===
200
){
const
data
:
any
=
res
.
data
;
resolve
({
status
:
200
,
data
:(
data
&&
data
.
model
)?
data
.
model
:[]});
}
}).
catch
((
error
:
any
)
=>
{
reject
(
error
);
})
}
else
{
let
dataStr
=
window
.
localStorage
.
getItem
(
data
.
modelid
);
if
(
dataStr
)
{
const
data
:
any
=
JSON
.
parse
(
dataStr
);
resolve
({
status
:
200
,
data
:
data
.
model
});
}
else
{
resolve
({
status
:
200
,
data
:[]});
}
}
});
}
/**
* 保存模型数据
*
* @param context 应用上下文
* @param action 操作行为 Update|Create
* @param data 传入模型数据
* @param isloading 是否加载
* @memberof DynaDashboardUtilServiceBase
*/
public
saveModelData
(
context
:
any
=
{},
action
:
string
,
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
// 存储到数据库
if
(
data
&&
data
.
utilServiceName
){
const
requestParam
:
any
=
{
configType
:
data
.
utilServiceName
,
targetType
:
data
.
modelid
,
model
:
data
.
model
};
this
.
stoageDataService
.
setDynaModel
(
context
,
requestParam
).
then
((
res
:
any
)
=>
{
if
(
res
&&
res
.
status
===
200
){
resolve
({
status
:
200
,
data
:
data
.
model
});
}
}).
catch
((
error
:
any
)
=>
{
reject
(
error
);
})
}
else
{
window
.
localStorage
.
setItem
(
data
.
modelid
,
JSON
.
stringify
(
data
));
resolve
({
status
:
200
,
data
:
data
.
model
});
}
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/utilservice/dyna-dashboard/dyna-dashboard-util-service.ts
0 → 100644
浏览文件 @
2097c555
import
DynaDashboardUtilServiceBase
from
'./dyna-dashboard-util-service-base'
;
/**
* 动态数据看板功能服务对象
*
* @export
* @class DynaDashboardUtilService
*/
export
default
class
DynaDashboardUtilService
extends
DynaDashboardUtilServiceBase
{
/**
* Creates an instance of DynaDashboardUtilService.
*
* @param {*} [opts={}]
* @memberof DynaDashboardUtilService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/utilservice/util-service-register.ts
浏览文件 @
2097c555
...
...
@@ -39,7 +39,8 @@ export class UtilServiceRegister {
* @memberof UtilServiceRegister
*/
protected
init
():
void
{
}
this
.
allUtilService
.
set
(
'dynadashboard'
,
()
=>
import
(
'@/utilservice/dyna-dashboard/dyna-dashboard-util-service'
));
}
/**
* 加载服务实体
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/app/app-portal-view-db-dashboard/app-portal-view-db-dashboard-base.vue
浏览文件 @
2097c555
...
...
@@ -343,7 +343,7 @@ export default class AppPortalView_dbBase extends Vue implements ControlInterfac
* @type {string}
* @memberof AppPortalView_dbBase
*/
public
utilServiceName
:
string
=
""
;
public
utilServiceName
:
string
=
"
dynadashboard
"
;
/**
* 获取多项数据
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/app/app-portal-view2-db-dashboard/app-portal-view2-db-dashboard-base.vue
浏览文件 @
2097c555
...
...
@@ -193,7 +193,7 @@ export default class AppPortalView2_dbBase extends Vue implements ControlInterfa
* @type {string}
* @memberof AppPortalView2_dbBase
*/
public
utilServiceName
:
string
=
""
;
public
utilServiceName
:
string
=
"
dynadashboard
"
;
/**
* 获取多项数据
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/gridexpbar-grid-grid/gridexpbar-grid-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -930,10 +930,10 @@ export default class Gridexpbar_gridBase extends Vue implements ControlInterface
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/internal-func-grid/internal-func-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1201,10 +1201,10 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1081,10 +1081,10 @@ export default class Main2Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1081,10 +1081,10 @@ export default class Main3Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1072,10 +1072,10 @@ export default class Main4Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1088,10 +1088,10 @@ export default class Main5Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/main6-grid/main6-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1287,10 +1287,10 @@ export default class Main6Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/main7-grid/main7-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1158,10 +1158,10 @@ export default class Main7Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/new-default-grid/new-default-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1206,10 +1206,10 @@ export default class NewDefaultBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1287,10 +1287,10 @@ export default class RowEditBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/row-rules-grid/row-rules-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1183,10 +1183,10 @@ export default class RowRulesBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/tree-table-treegridex/tree-table-treegridex-base.vue
浏览文件 @
2097c555
...
...
@@ -15,6 +15,11 @@
<template
slot=
"empty"
>
{{
$t
(
'entities.ibizbook.treetable_treegridex.nodata'
)
}}
</
template
>
<el-table-column
show-overflow-tooltip
prop=
"author"
label=
"作者"
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'author'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"subtext"
label=
"图书描述"
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'subtext'
)
}}
</span>
...
...
@@ -25,11 +30,6 @@
<span>
{{
getColumnValue
(
row
,
'ibizbookname'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"author"
label=
"作者"
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'author'
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
</template>
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/update-default-grid/update-default-grid-base.vue
浏览文件 @
2097c555
...
...
@@ -1206,10 +1206,10 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"
UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman
"
,
"order"
:
1000
},
"
IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname
"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-base.vue
浏览文件 @
2097c555
...
...
@@ -253,14 +253,6 @@ export default class UsrBase extends Vue implements ControlInterface {
},
width
:
200
,
},
{
label
:
'归还日期'
,
value
:
'returntime'
,
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'returntime'
)
},
width
:
200
,
},
{
label
:
'作者'
,
value
:
'author'
,
...
...
@@ -277,6 +269,14 @@ export default class UsrBase extends Vue implements ControlInterface {
},
width
:
200
,
},
{
label
:
'归还日期'
,
value
:
'returntime'
,
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'returntime'
)
},
width
:
200
,
},
]
}
};
...
...
This diff is collapsed.
Click to expand it.
config.xml
浏览文件 @
2097c555
...
...
@@ -37,11 +37,6 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
mvn clean package -Pweb
cd demo-app/demo-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-app-web.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
This diff is collapsed.
Click to expand it.
demo-app/demo-app-web/src/main/docker/Dockerfile
浏览文件 @
2097c555
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-app-web.jar
EXPOSE
51001
EXPOSE
8080
ADD
demo-app-web.jar /demo-app-web.jar
This diff is collapsed.
Click to expand it.
demo-app/demo-app-web/src/main/docker/demo-app-web.yaml
浏览文件 @
2097c555
...
...
@@ -3,24 +3,9 @@ services:
demo-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/demo-app-web:latest
ports
:
-
"
51001:51001
"
-
"
8080:8080
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=51001
-
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_df847bdfd
-
SPRING_DATASOURCE_PASSWORD=3d6@460A
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_df847bdfd
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
This diff is collapsed.
Click to expand it.
demo-app/demo-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
2097c555
...
...
@@ -163,6 +163,10 @@ zuul:
path
:
/ibizuniproducts/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
dynadashboard
:
path
:
/dynadashboards/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
wfcore
:
path
:
/wfcore/**
serviceId
:
${ibiz.ref.service.wf:ibzwf-api}
...
...
This diff is collapsed.
Click to expand it.
demo-core/src/main/java/cn/ibizlab/core/sample/mapping/IBIZBOOKDataImport.java
浏览文件 @
2097c555
...
...
@@ -8,15 +8,15 @@ import java.util.List;
public
interface
IBIZBOOKDataImport
{
@Mappings
({
@Mapping
(
target
=
"ibizbookid"
,
source
=
"ibizbookid"
),
@Mapping
(
target
=
"createdate"
,
source
=
"createdate"
),
@Mapping
(
target
=
"ibizbookname"
,
source
=
"ibizbookname"
),
@Mapping
(
target
=
"press"
,
source
=
"press"
),
@Mapping
(
target
=
"updateman"
,
source
=
"updateman"
),
@Mapping
(
target
=
"author"
,
source
=
"author"
),
@Mapping
(
target
=
"price"
,
source
=
"price"
),
@Mapping
(
target
=
"booknumber"
,
source
=
"booknumber"
),
@Mapping
(
target
=
"createman"
,
source
=
"createman"
),
@Mapping
(
target
=
"createdate"
,
source
=
"createdate"
),
@Mapping
(
target
=
"ibizbookname"
,
source
=
"ibizbookname"
),
@Mapping
(
target
=
"updateman"
,
source
=
"updateman"
),
@Mapping
(
target
=
"updatedate"
,
source
=
"updatedate"
),
@Mapping
(
target
=
"createman"
,
source
=
"createman"
),
@Mapping
(
target
=
"type"
,
source
=
"type"
),
})
@BeanMapping
(
ignoreByDefault
=
true
)
...
...
This diff is collapsed.
Click to expand it.
demo-core/src/main/java/cn/ibizlab/core/sample/mapping/IBIZOrderImport.java
浏览文件 @
2097c555
...
...
@@ -8,10 +8,10 @@ import java.util.List;
public
interface
IBIZOrderImport
{
@Mappings
({
@Mapping
(
target
=
"ibizorderid"
,
source
=
"ibizorderid"
),
@Mapping
(
target
=
"ibizordername"
,
source
=
"ibizordername"
),
@Mapping
(
target
=
"ordertype"
,
source
=
"ordertype"
),
@Mapping
(
target
=
"ordertime"
,
source
=
"ordertime"
),
@Mapping
(
target
=
"orderuid"
,
source
=
"orderuid"
),
@Mapping
(
target
=
"ibizordername"
,
source
=
"ibizordername"
),
})
@BeanMapping
(
ignoreByDefault
=
true
)
IBIZOrder
toDomain
(
IBIZOrder
entity
);
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录