Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
b09c337b
提交
b09c337b
编写于
12月 01, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
73ee698b
变更
35
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
35 个修改的文件
包含
3103 行增加
和
71 行删除
+3103
-71
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+1
-0
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+1
-0
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+1
-1
ibizorder-dashboard-view-base.vue
...bizorder-dashboard-view/ibizorder-dashboard-view-base.vue
+659
-0
ibizorder-dashboard-view.less
...le/ibizorder-dashboard-view/ibizorder-dashboard-view.less
+29
-0
ibizorder-dashboard-view.vue
...ple/ibizorder-dashboard-view/ibizorder-dashboard-view.vue
+22
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+1
-1
router.ts
app_Web/src/pages/sample/index/router.ts
+27
-27
state.ts
app_Web/src/store/modules/view-action/state.ts
+10
-11
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+26
-26
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+1
-1
guide-wizardpanel-model.ts
...ets/ibizbook/guide-wizardpanel/guide-wizardpanel-model.ts
+4
-0
main-multieditviewpanel-model.ts
.../main-multieditviewpanel/main-multieditviewpanel-model.ts
+3
-0
portal-components-chart-portlet-base.vue
...ts-chart-portlet/portal-components-chart-portlet-base.vue
+1
-1
portal-components-list2-portlet-base.vue
...ts-list2-portlet/portal-components-list2-portlet-base.vue
+339
-0
portal-components-list2-portlet-model.ts
...ts-list2-portlet/portal-components-list2-portlet-model.ts
+88
-0
portal-components-list2-portlet-service.ts
...-list2-portlet/portal-components-list2-portlet-service.ts
+11
-0
portal-components-list2-portlet.less
...onents-list2-portlet/portal-components-list2-portlet.less
+63
-0
portal-components-list2-portlet.vue
...ponents-list2-portlet/portal-components-list2-portlet.vue
+17
-0
usr-dashboard-base.vue
...rc/widgets/ibizorder/usr-dashboard/usr-dashboard-base.vue
+436
-0
usr-dashboard-model.ts
...rc/widgets/ibizorder/usr-dashboard/usr-dashboard-model.ts
+88
-0
usr-dashboard-service.ts
.../widgets/ibizorder/usr-dashboard/usr-dashboard-service.ts
+11
-0
usr-dashboard.less
...eb/src/widgets/ibizorder/usr-dashboard/usr-dashboard.less
+27
-0
usr-dashboard.vue
...Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard.vue
+18
-0
usr-list-base.vue
app_Web/src/widgets/ibizorder/usr-list/usr-list-base.vue
+817
-0
usr-list-model.ts
app_Web/src/widgets/ibizorder/usr-list/usr-list-model.ts
+92
-0
usr-list-service.ts
app_Web/src/widgets/ibizorder/usr-list/usr-list-service.ts
+163
-0
usr-list.less
app_Web/src/widgets/ibizorder/usr-list/usr-list.less
+81
-0
usr-list.vue
app_Web/src/widgets/ibizorder/usr-list/usr-list.vue
+14
-0
IBIZBOOK.java
...src/main/java/cn/ibizlab/core/sample/domain/IBIZBOOK.java
+15
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+2
-0
IBIZBOOKMapper.xml
.../main/resources/mapper/sample/ibizbook/IBIZBOOKMapper.xml
+3
-3
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+14
-0
IBIZBOOKDTO.java
...api/src/main/java/cn/ibizlab/demoapi/dto/IBIZBOOKDTO.java
+17
-0
StaticDict.java
demo-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
+1
-0
未找到文件。
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
b09c337b
...
...
@@ -16,6 +16,7 @@ export default {
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
icon
:
"图标"
,
sailstate
:
"图书销售状态"
,
},
views
:
{
editview3
:
{
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
b09c337b
...
...
@@ -15,6 +15,7 @@ export default {
lendouttime
:
"借出日期"
,
returntime
:
"归还日期"
,
icon
:
"图标"
,
sailstate
:
"图书销售状态"
,
},
views
:
{
editview3
:
{
...
...
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
b09c337b
...
...
@@ -1603,7 +1603,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
45
'
,
appfunctag
:
'AppFunc
50
'
,
resourcetag
:
''
,
},
],
...
...
app_Web/src/pages/sample/ibizorder-dashboard-view/ibizorder-dashboard-view-base.vue
0 → 100644
浏览文件 @
b09c337b
此差异已折叠。
点击以展开。
app_Web/src/pages/sample/ibizorder-dashboard-view/ibizorder-dashboard-view.less
0 → 100644
浏览文件 @
b09c337b
.ibizorder-dashboard-view{
position: relative;
}
.entitydatakanbanviewcard {
background-color: #F0F2F5;
box-shadow: none !important;
>.view-card {
background-color: #F0F2F5;
>.ivu-card-head{
display: none;
}
}
.portlet-card {
background-color: #f0f2f5;
}
.custom-card {
background-color: #ffffff;
margin: 5px;
box-shadow: 1px 1px 5px rgb(209, 205, 205);
.view-card {
background-color: #ffffff;
}
}
}
app_Web/src/pages/sample/ibizorder-dashboard-view/ibizorder-dashboard-view.vue
0 → 100644
浏览文件 @
b09c337b
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderDashboardViewBase
from
'./ibizorder-dashboard-view-base.vue'
;
import
view_dashboard
from
'@widgets/ibizorder/usr-dashboard/usr-dashboard.vue'
;
@
Component
({
components
:
{
view_dashboard
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
if
(
!
Object
.
is
(
vm
.
navModel
,
"route"
)){
vm
.
initNavDataWithTab
(
vm
.
viewCacheData
);
}
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
IBIZOrderDashboardView
extends
IBIZOrderDashboardViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
b09c337b
...
...
@@ -104,6 +104,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizsample0003-f4-tree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-f4-tree-exp-view/ibizsample0003-f4-tree-exp-view.vue'
));
Vue
.
component
(
'ibizorder-f10-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-f10-edit-view/ibizorder-f10-edit-view.vue'
));
Vue
.
component
(
'ibizsample0003-stree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-stree-exp-view/ibizsample0003-stree-exp-view.vue'
));
Vue
.
component
(
'ibizorder-dashboard-view'
,
()
=>
import
(
'@pages/sample/ibizorder-dashboard-view/ibizorder-dashboard-view.vue'
));
Vue
.
component
(
'ibizorder-sedit-view4'
,
()
=>
import
(
'@pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue'
));
Vue
.
component
(
'ibizsoftware-suit-grid-view9'
,
()
=>
import
(
'@pages/sample/ibizsoftware-suit-grid-view9/ibizsoftware-suit-grid-view9.vue'
));
Vue
.
component
(
'ibizbookhas-panel-list-view'
,
()
=>
import
(
'@pages/sample/ibizbookhas-panel-list-view/ibizbookhas-panel-list-view.vue'
));
...
...
@@ -143,7 +144,6 @@ export const PageComponents = {
Vue
.
component
(
'ibizsample0002-mpickup-view'
,
()
=>
import
(
'@pages/sample/ibizsample0002-mpickup-view/ibizsample0002-mpickup-view.vue'
));
Vue
.
component
(
'ibizorder-sf7-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf7-edit-view/ibizorder-sf7-edit-view.vue'
));
Vue
.
component
(
'ibizbookedit-view'
,
()
=>
import
(
'@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'
));
Vue
.
component
(
'ibizbookdashboard-view'
,
()
=>
import
(
'@pages/sample/ibizbookdashboard-view/ibizbookdashboard-view.vue'
));
Vue
.
component
(
'ibizsample0001-sf5-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0001-sf5-edit-view/ibizsample0001-sf5-edit-view.vue'
));
Vue
.
component
(
'ibizbookgroup-by-codelist-list-view'
,
()
=>
import
(
'@pages/sample/ibizbookgroup-by-codelist-list-view/ibizbookgroup-by-codelist-list-view.vue'
));
Vue
.
component
(
'ibizbookhas-panel-kan-ban-view'
,
()
=>
import
(
'@pages/sample/ibizbookhas-panel-kan-ban-view/ibizbookhas-panel-kan-ban-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
b09c337b
...
...
@@ -1596,6 +1596,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0003-stree-exp-view/ibizsample0003-stree-exp-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/dashboardview/:dashboardview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.dashboardview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'dashboardview'
,
parameterName
:
'dashboardview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-dashboard-view/ibizorder-dashboard-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/seditview4/:seditview4?'
,
meta
:
{
...
...
@@ -2142,20 +2156,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbookedit-view/ibizbookedit-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/dashboardview/:dashboardview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.dashboardview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'dashboardview'
,
parameterName
:
'dashboardview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookdashboard-view/ibizbookdashboard-view.vue'
),
},
{
path
:
'ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf5editview/:sf5editview?'
,
meta
:
{
...
...
@@ -2919,19 +2919,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-line-chart-view/ibizorder-line-chart-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/dashboardview/:dashboardview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.dashboardview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'dashboardview'
,
parameterName
:
'dashboardview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookdashboard-view/ibizbookdashboard-view.vue'
),
},
{
path
:
'/ibizcustomers/:ibizcustomer?/pickupgridview/:pickupgridview?'
,
meta
:
{
...
...
@@ -3389,6 +3376,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-bar-chart-view/ibizorder-bar-chart-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/dashboardview/:dashboardview?'
,
meta
:
{
caption
:
'entities.ibizorder.views.dashboardview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'dashboardview'
,
parameterName
:
'dashboardview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-dashboard-view/ibizorder-dashboard-view.vue'
),
},
{
path
:
'/ibizuniproducts/:ibizuniproduct?/pickupgridview/:pickupgridview?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
b09c337b
...
...
@@ -214,6 +214,7 @@ export const viewstate: any = {
'ad37d44e57c18e4431a609968203c646'
,
'fdb297cd4b12374534413c3053aec1b8'
,
'f4c5c766fd5755b694e0401dddc4d1ad'
,
'7f65e6161c444d29e1f53f1cb76e92de'
,
'e7441fa67d425df343d996c745fb5d6b'
,
'756fecec409c3a955f0cd737259d27c7'
,
'2ccd29eeaeded3ea5a713a19cd67a83e'
,
...
...
@@ -254,7 +255,6 @@ export const viewstate: any = {
'84904c93ceea3ab6551555ee20c41e27'
,
'6b3607e849c8517fd7ae1cab583f7393'
,
'41d3da0d37fb0135ace813f1ba06bd39'
,
'427821f1e67ee5b79dde237e66a7b9c9'
,
'b1256beac1e95915b675893c61559b59'
,
'b8ae19200ec9d4e8e588bc31e3f9bcb4'
,
'09663b7a4e3dce70524d1b64e02b5e2d'
,
...
...
@@ -501,16 +501,6 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'427821f1e67ee5b79dde237e66a7b9c9'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKDashboardView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'f73da4cb47a88d3fe5b92716e0137741'
,
],
},
{
viewtag
:
'460fc1d5b6f2e2012b281df34d929f3b'
,
viewmodule
:
'Sample'
,
...
...
@@ -834,6 +824,15 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'7f65e6161c444d29e1f53f1cb76e92de'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZOrderDashboardView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'80c9ae9ed04e7107ed9fc93734a447d1'
,
viewmodule
:
'Sample'
,
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
b09c337b
...
...
@@ -548,6 +548,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc29'
:
this
.
clickAppFunc29
(
item
);
return
;
case
'AppFunc50'
:
this
.
clickAppFunc50
(
item
);
return
;
case
'AppFunc18'
:
this
.
clickAppFunc18
(
item
);
return
;
...
...
@@ -776,9 +779,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc48'
:
this
.
clickAppFunc48
(
item
);
return
;
case
'AppFunc45'
:
this
.
clickAppFunc45
(
item
);
return
;
case
'AppFunc17'
:
this
.
clickAppFunc17
(
item
);
return
;
...
...
@@ -1063,6 +1063,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc50
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'dashboardview'
,
parameterName
:
'dashboardview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 补充示例数据
*
...
...
@@ -2813,29 +2836,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc45
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'dashboardview'
,
parameterName
:
'dashboardview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 图书列表(嵌入面板)
*
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
浏览文件 @
b09c337b
...
...
@@ -1693,7 +1693,7 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
45
'
,
appfunctag
:
'AppFunc
50
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem126'
,
},
...
...
app_Web/src/widgets/ibizbook/guide-wizardpanel/guide-wizardpanel-model.ts
浏览文件 @
b09c337b
...
...
@@ -74,6 +74,10 @@ export default class GuideModel {
name
:
'icon'
,
prop
:
'icon'
,
},
{
name
:
'sailstate'
,
prop
:
'sailstate'
,
},
]
}
...
...
app_Web/src/widgets/ibizbook/main-multieditviewpanel/main-multieditviewpanel-model.ts
浏览文件 @
b09c337b
...
...
@@ -60,6 +60,9 @@ export default class MainModel {
{
name
:
'icon'
,
},
{
name
:
'sailstate'
,
},
]
}
...
...
app_Web/src/widgets/ibizorder/portal-components-chart-portlet/portal-components-chart-portlet-base.vue
浏览文件 @
b09c337b
...
...
@@ -3,7 +3,7 @@
<p
class=
'portlet-title'
>
<span>
图表
订单金额区域图
</span>
</p>
<el-divider
class=
"divider"
></el-divider>
...
...
app_Web/src/widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet-base.vue
0 → 100644
浏览文件 @
b09c337b
<
template
>
<div
class=
'portlet portal-components-list2 '
:style=
"
{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p
class=
'portlet-title'
>
<span>
订单列表
</span>
</p>
<el-divider
class=
"divider"
></el-divider>
<div
class=
"portlet-with-title"
>
<!-- 测试 -->
<view
_dashboard_sysportlet2_list
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
createAction=
"Create"
removeAction=
"Remove"
updateAction=
"Update"
fetchAction=
"FetchDefault"
:showBusyIndicator=
"true"
name=
"dashboard_sysportlet2_list"
ref=
'dashboard_sysportlet2_list'
@
closeview=
"closeView($event)"
>
</view
_dashboard_sysportlet2_list
>
</div>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
PortalComponentsList2Service
from
'./portal-components-list2-portlet-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
UIService
from
'@/uiservice/ui-service'
;
import
{
Environment
}
from
'@/environments/environment'
;
@
Component
({
components
:
{
}
})
export
default
class
IBIZOrderPortalComponentsList2Base
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof PortalComponentsList2Base
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof PortalComponentsList2Base
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof PortalComponentsList2Base
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof PortalComponentsList2Base
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof PortalComponentsList2Base
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof PortalComponentsList2Base
*/
public
getControlType
():
string
{
return
'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof PortalComponentsList2Base
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {PortalComponentsList2Service}
* @memberof PortalComponentsList2Base
*/
public
service
:
PortalComponentsList2Service
=
new
PortalComponentsList2Service
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof PortalComponentsList2Base
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* 界面UI服务对象
*
* @type {IBIZOrderUIService}
* @memberof PortalComponentsList2Base
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 关闭视图
*
* @param {any} args
* @memberof PortalComponentsList2Base
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof PortalComponentsList2Base
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof PortalComponentsList2Base
*/
@
Prop
()
public
height
?:
number
;
/**
* 宽度
*
* @type {number}
* @memberof PortalComponentsList2Base
*/
@
Prop
()
public
width
?:
number
;
/**
* 门户部件类型
*
* @type {number}
* @memberof PortalComponentsList2Base
*/
public
portletType
:
string
=
'list'
;
/**
* 视图默认使用
*
* @type {string}
* @memberof PortalComponentsList2Base
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 界面行为模型数据
*
* @memberof PortalComponentsList2Base
*/
public
uiactionModel
:
any
=
{
}
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof PortalComponentsList2Base
*/
@
Prop
({
default
:
false
})
public
isAdaptiveSize
!
:
boolean
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PortalComponentsList2Base
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PortalComponentsList2Base
*/
public
getData
():
any
{
return
{};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof PortalComponentsList2Base
*/
get
getHeight
(){
if
(
!
this
.
$util
.
isEmpty
(
this
.
height
)
&&
!
this
.
$util
.
isNumberNaN
(
this
.
height
)){
if
(
this
.
height
==
0
){
return
'auto'
;
}
else
{
return
this
.
height
+
'px'
;
}
}
else
{
return
'400px'
;
}
}
/**
* 刷新
*
* @memberof PortalComponentsList2Base
*/
public
refresh
(
args
?:
any
)
{
this
.
viewState
.
next
({
tag
:
'dashboard_sysportlet2_list'
,
action
:
'refresh'
,
data
:
args
});
}
/**
* vue 生命周期
*
* @memberof PortalComponentsList2Base
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof PortalComponentsList2Base
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
Object
.
is
(
tag
,
"all-portlet"
)
&&
Object
.
is
(
action
,
'loadmodel'
)){
this
.
calcUIActionAuthState
(
data
);
}
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
const
refs
:
any
=
this
.
$refs
;
Object
.
keys
(
refs
).
forEach
((
_name
:
string
)
=>
{
this
.
viewState
.
next
({
tag
:
_name
,
action
:
action
,
data
:
data
});
});
});
}
}
/**
* vue 生命周期
*
* @memberof PortalComponentsList2Base
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PortalComponentsList2Base
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
/**
* 计算界面行为权限
*
* @memberof PortalComponentsList2Base
*/
public
calcUIActionAuthState
(
data
:
any
=
{})
{
// 如果是操作栏,不计算权限
if
(
this
.
portletType
&&
Object
.
is
(
'actionbar'
,
this
.
portletType
))
{
return
;
}
let
_this
:
any
=
this
;
let
uiservice
:
any
=
_this
.
appUIService
?
_this
.
appUIService
:
new
UIService
(
_this
.
$store
);
if
(
_this
.
uiactionModel
){
ViewTool
.
calcActionItemAuthState
(
data
,
_this
.
uiactionModel
,
uiservice
);
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './portal-components-list2-portlet.less';
</
style
>
app_Web/src/widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet-model.ts
0 → 100644
浏览文件 @
b09c337b
/**
* PortalComponentsList2 部件模型
*
* @export
* @class PortalComponentsList2Model
*/
export
default
class
PortalComponentsList2Model
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PortalComponentsList2Model
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'tp'
,
},
{
name
:
'endtime'
,
},
{
name
:
'wfstate'
,
},
{
name
:
'createdate'
,
},
{
name
:
'opinion'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'ordertype'
,
},
{
name
:
'detailnum'
,
},
{
name
:
'wfinstanceid'
,
},
{
name
:
'amount'
,
},
{
name
:
'orderuid'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
},
{
name
:
'orderstate'
,
},
{
name
:
'starttime'
,
},
{
name
:
'updateman'
,
},
{
name
:
'wfstep'
,
},
{
name
:
'createman'
,
},
{
name
:
'ibizordername'
,
},
{
name
:
'ordertime'
,
},
{
name
:
'memo'
,
},
{
name
:
'ibizcustomername'
,
},
{
name
:
'ibizcustomerid'
,
},
]
}
}
app_Web/src/widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet-service.ts
0 → 100644
浏览文件 @
b09c337b
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* PortalComponentsList2 部件服务对象
*
* @export
* @class PortalComponentsList2Service
*/
export
default
class
PortalComponentsList2Service
extends
ControlService
{
}
app_Web/src/widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet.less
0 → 100644
浏览文件 @
b09c337b
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 52px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
app_Web/src/widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet.vue
0 → 100644
浏览文件 @
b09c337b
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderPortalComponentsList2Base
from
'./portal-components-list2-portlet-base.vue'
;
import
view_dashboard_sysportlet2_list
from
'@widgets/ibizorder/usr-list/usr-list.vue'
;
@
Component
({
components
:
{
view_dashboard_sysportlet2_list
,
}
})
export
default
class
IBIZOrderPortalComponentsList2
extends
IBIZOrderPortalComponentsList2Base
{
}
</
script
>
app_Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard-base.vue
0 → 100644
浏览文件 @
b09c337b
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard-model.ts
0 → 100644
浏览文件 @
b09c337b
/**
* Usr 部件模型
*
* @export
* @class UsrModel
*/
export
default
class
UsrModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof UsrModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'tp'
,
},
{
name
:
'endtime'
,
},
{
name
:
'wfstate'
,
},
{
name
:
'createdate'
,
},
{
name
:
'opinion'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'ordertype'
,
},
{
name
:
'detailnum'
,
},
{
name
:
'wfinstanceid'
,
},
{
name
:
'amount'
,
},
{
name
:
'orderuid'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
},
{
name
:
'orderstate'
,
},
{
name
:
'starttime'
,
},
{
name
:
'updateman'
,
},
{
name
:
'wfstep'
,
},
{
name
:
'createman'
,
},
{
name
:
'ibizordername'
,
},
{
name
:
'ordertime'
,
},
{
name
:
'memo'
,
},
{
name
:
'ibizcustomername'
,
},
{
name
:
'ibizcustomerid'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard-service.ts
0 → 100644
浏览文件 @
b09c337b
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* Usr 部件服务对象
*
* @export
* @class UsrService
*/
export
default
class
UsrService
extends
ControlService
{
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard.less
0 → 100644
浏览文件 @
b09c337b
.dashboard {
flex-grow: 1;
height: 100%;
overflow: auto;
.portlet-without-title{
width: 100%;
}
.ivu-row{
.ivu-card{
.ivu-card-head{
border-bottom:0;
p{
display: flex;
height: 24px;
align-items: center;
.line{
width:100%;
border-bottom: 1px solid #e8eaec;
margin-left: 14px;
}
}
}
}
}
}
// this is less
app_Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard.vue
0 → 100644
浏览文件 @
b09c337b
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
UsrBase
from
'./usr-dashboard-base.vue'
;
import
view_dashboard_sysportlet2
from
'@widgets/ibizorder/portal-components-list2-portlet/portal-components-list2-portlet.vue'
;
import
view_dashboard_sysportlet1
from
'@widgets/ibizorder/portal-components-chart-portlet/portal-components-chart-portlet.vue'
;
@
Component
({
components
:
{
view_dashboard_sysportlet2
,
view_dashboard_sysportlet1
,
}
})
export
default
class
Usr
extends
UsrBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr-list/usr-list-base.vue
0 → 100644
浏览文件 @
b09c337b
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizorder/usr-list/usr-list-model.ts
0 → 100644
浏览文件 @
b09c337b
/**
* Usr 部件模型
*
* @export
* @class UsrModel
*/
export
default
class
UsrModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof UsrDashboard_sysportlet2_listMode
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfdescription'
,
prop
:
'orderstate'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'srfdate'
,
prop
:
'ordertime'
,
dataType
:
'DATE'
,
},
{
name
:
'srficon'
,
prop
:
'tp'
,
dataType
:
'LONGTEXT'
,
},
{
name
:
'srfmajortext'
,
prop
:
'ibizordername'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfkey'
,
prop
:
'ibizorderid'
,
dataType
:
'GUID'
,
},
{
name
:
'ibizcustomerid'
,
prop
:
'ibizcustomerid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'wfstep'
,
prop
:
'wfstep'
,
dataType
:
'SSCODELIST'
,
codelist
:{
tag
:
'ORDERSTEP'
,
codelistType
:
'STATIC'
},
},
{
name
:
'orderstate'
,
prop
:
'orderstate'
,
dataType
:
'SSCODELIST'
,
codelist
:{
tag
:
'ORDERSTATE'
,
codelistType
:
'STATIC'
},
},
{
name
:
'srfmstag'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
dataType
:
'FONTKEY'
,
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'page'
,
prop
:
'page'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr-list/usr-list-service.ts
0 → 100644
浏览文件 @
b09c337b
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
UsrModel
from
'./usr-list-model'
;
/**
* Usr 部件服务对象
*
* @export
* @class UsrService
*/
export
default
class
UsrService
extends
ControlService
{
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof UsrService
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof UsrService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of UsrService.
*
* @param {*} [opts={}]
* @memberof UsrService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
UsrModel
();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UsrService
*/
@
Errorlog
public
search
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
FetchDefault
(
Context
,
Data
,
isloading
);
}
result
.
then
(
async
(
response
)
=>
{
await
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UsrService
*/
@
Errorlog
public
delete
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
remove
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UsrService
*/
@
Errorlog
public
add
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof UsrService
*/
@
Errorlog
public
update
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
,
true
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
const
_appEntityService
:
any
=
this
.
appEntityService
;
let
result
:
Promise
<
any
>
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
_appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
}
\ No newline at end of file
app_Web/src/widgets/ibizorder/usr-list/usr-list.less
0 → 100644
浏览文件 @
b09c337b
// this is less
.app-list {
height:100%;
flex-grow: 1;
overflow-y: auto;
.el-collapse-item__header.is-active{
color: #409eff;
background-color: #ecf5ff;
}
.el-collapse{
.el-collapse-item{
.el-collapse-item__wrap{
.el-collapse-item__content{
padding: 10px 0 10px 0;
}
}
}
}
.app-list-item {
line-height: 34px;
padding: 12px 6px;
min-height: 24px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f0f0;
.app-list-item-content {
width: 70%;
display: flex;
align-items: center;
.item-icon {
width: 40px;
height: 40px;
margin-right: 14px;
img {
width: 40px;
height: 40px;
border-radius: 50%;
}
}
.item-content-text {
display: flex;
flex-direction: column;
.item-text {
font-size: 18px;
font-weight: bold;
}
.item-subtext {
color: #8c8c8c;
}
}
}
.app-list-item-date {
position: relative;
color: #8c8c8c;
}
}
.app-list-item.isSelect {
background: #ecf5ff;
border-radius: 2px;
border-color: rgb(197, 197, 197);
}
.app-list-item:hover {
background: #ecf5ff;
}
.loadmore {
text-align: center;
padding: 10px;
text-decoration: underline;
color: #82bff7;
cursor: default;
}
}
.app-list-empty {
height:100%;
color: #909399;
display: flex;
justify-content: center;
align-items: center;
}
app_Web/src/widgets/ibizorder/usr-list/usr-list.vue
0 → 100644
浏览文件 @
b09c337b
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
UsrBase
from
'./usr-list-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
Usr
extends
UsrBase
{
}
</
script
>
\ No newline at end of file
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZBOOK.java
浏览文件 @
b09c337b
...
...
@@ -157,6 +157,13 @@ public class IBIZBOOK extends EntityMP implements Serializable {
@JSONField
(
name
=
"icon"
)
@JsonProperty
(
"icon"
)
private
String
icon
;
/**
* 图书销售状态
*/
@TableField
(
value
=
"sailstate"
)
@JSONField
(
name
=
"sailstate"
)
@JsonProperty
(
"sailstate"
)
private
String
sailstate
;
...
...
@@ -260,6 +267,14 @@ public class IBIZBOOK extends EntityMP implements Serializable {
this
.
modify
(
"icon"
,
icon
);
}
/**
* 设置 [图书销售状态]
*/
public
void
setSailstate
(
String
sailstate
)
{
this
.
sailstate
=
sailstate
;
this
.
modify
(
"sailstate"
,
sailstate
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
b09c337b
...
...
@@ -61,6 +61,8 @@
</column>
<column
name=
"ICON"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"SAILSTATE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
...
...
demo-core/src/main/resources/mapper/sample/ibizbook/IBIZBOOKMapper.xml
浏览文件 @
b09c337b
...
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZBOOKResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1 ) t1 where ibizbookid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`S
AILSTATE`, t1.`S
UBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1 ) t1 where ibizbookid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
...
@@ -27,12 +27,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`S
AILSTATE`, t1.`S
UBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`SUBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
<![CDATA[ SELECT t1.`AUTHOR`, t1.`BOOKNUMBER`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZBOOKID`, t1.`IBIZBOOKNAME`, t1.`ICON`, t1.`LENDOUTTIME`, t1.`PRESS`, t1.`PRICE`, t1.`RETURNTIME`, t1.`S
AILSTATE`, t1.`S
UBTEXT`, t1.`TYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZBOOK` t1
]]>
</sql>
</mapper>
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
b09c337b
...
...
@@ -375,6 +375,20 @@
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"SAILSTATE"
,
"codename"
:
"Sailstate"
,
"field_logic_name"
:
"图书销售状态"
,
"entity_name"
:
"IBIZBOOK"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZBOOKDTO.java
浏览文件 @
b09c337b
...
...
@@ -165,6 +165,15 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
icon
;
/**
* 属性 [SAILSTATE]
*
*/
@JSONField
(
name
=
"sailstate"
)
@JsonProperty
(
"sailstate"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
sailstate
;
/**
* 设置 [IBIZBOOKNAME]
...
...
@@ -246,6 +255,14 @@ public class IBIZBOOKDTO extends DTOBase implements Serializable {
this
.
modify
(
"icon"
,
icon
);
}
/**
* 设置 [SAILSTATE]
*/
public
void
setSailstate
(
String
sailstate
){
this
.
sailstate
=
sailstate
;
this
.
modify
(
"sailstate"
,
sailstate
);
}
}
...
...
demo-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
浏览文件 @
b09c337b
...
...
@@ -377,6 +377,7 @@ public class StaticDict {
}
/**
* 代码表[年周(1~52)]
*/
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录