Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
4ec3d8a0
提交
4ec3d8a0
编写于
12月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kuaikuai 发布系统代码 [后台服务,演示应用]
上级
47fae236
变更
20
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
2618 行增加
和
30 行删除
+2618
-30
en-US.ts
app_Web/src/locale/lang/en-US.ts
+1
-0
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+1
-0
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+7
-7
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+7
-7
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+18
-0
ibizbookusr5-data-view-base.vue
...le/ibizbookusr5-data-view/ibizbookusr5-data-view-base.vue
+905
-0
ibizbookusr5-data-view.less
...sample/ibizbookusr5-data-view/ibizbookusr5-data-view.less
+22
-0
ibizbookusr5-data-view.vue
.../sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue
+24
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+1
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+27
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+12
-1
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+40
-14
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+19
-0
group-by-codelist-kan-ban-dataview-base.vue
...-ban-dataview/group-by-codelist-kan-ban-dataview-base.vue
+1076
-0
group-by-codelist-kan-ban-dataview-model.ts
...-ban-dataview/group-by-codelist-kan-ban-dataview-model.ts
+110
-0
group-by-codelist-kan-ban-dataview-service.ts
...an-dataview/group-by-codelist-kan-ban-dataview-service.ts
+167
-0
group-by-codelist-kan-ban-dataview.less
...-kan-ban-dataview/group-by-codelist-kan-ban-dataview.less
+156
-0
group-by-codelist-kan-ban-dataview.vue
...t-kan-ban-dataview/group-by-codelist-kan-ban-dataview.vue
+14
-0
group-by-codelist-kan-ban-kanban-model.ts
...-kan-ban-kanban/group-by-codelist-kan-ban-kanban-model.ts
+10
-0
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+1
-1
未找到文件。
app_Web/src/locale/lang/en-US.ts
浏览文件 @
4ec3d8a0
...
...
@@ -219,6 +219,7 @@ export default {
menuitem89
:
"自动分组"
,
menuitem90
:
"代码表分组"
,
menuitem94
:
"项布局面板"
,
menuitem152
:
"自定义插件"
,
menuitem17
:
"向导面板"
,
menuitem134
:
"基础用法"
,
menuitem135
:
"状态属性"
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
4ec3d8a0
...
...
@@ -219,6 +219,7 @@ export default {
menuitem89
:
"自动分组"
,
menuitem90
:
"代码表分组"
,
menuitem94
:
"项布局面板"
,
menuitem152
:
"自定义插件"
,
menuitem17
:
"向导面板"
,
menuitem134
:
"基础用法"
,
menuitem135
:
"状态属性"
,
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
4ec3d8a0
...
...
@@ -567,6 +567,11 @@ export default {
uiactions
:
{
},
},
groupbycodelistkanban_dataview
:
{
nodata
:
""
,
uiactions
:
{
},
},
usr2_dataview
:
{
nodata
:
""
,
uiactions
:
{
...
...
@@ -590,11 +595,6 @@ export default {
uiactions
:
{
},
},
groupbycodelistkanban_dataview
:
{
nodata
:
""
,
uiactions
:
{
},
},
groupbycodelistkanban_kanban
:
{
nodata
:
""
,
uiactions
:
{
...
...
@@ -702,6 +702,8 @@ export default {
},
treegridexviewtoolbar_toolbar
:
{
},
usr5dataviewtoolbar_toolbar
:
{
},
roweditgridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
@@ -1532,8 +1534,6 @@ export default {
},
haspanellistviewtoolbar_toolbar
:
{
},
usr5dataviewtoolbar_toolbar
:
{
},
tree_treeview
:
{
nodata
:
""
,
nodes
:
{
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
4ec3d8a0
...
...
@@ -566,6 +566,11 @@ export default {
uiactions
:
{
},
},
groupbycodelistkanban_dataview
:
{
nodata
:
""
,
uiactions
:
{
},
},
usr2_dataview
:
{
nodata
:
""
,
uiactions
:
{
...
...
@@ -589,11 +594,6 @@ export default {
uiactions
:
{
},
},
groupbycodelistkanban_dataview
:
{
nodata
:
""
,
uiactions
:
{
},
},
groupbycodelistkanban_kanban
:
{
nodata
:
""
,
uiactions
:
{
...
...
@@ -701,6 +701,8 @@ export default {
},
treegridexviewtoolbar_toolbar
:
{
},
usr5dataviewtoolbar_toolbar
:
{
},
roweditgridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
@@ -1531,8 +1533,6 @@ export default {
},
haspanellistviewtoolbar_toolbar
:
{
},
usr5dataviewtoolbar_toolbar
:
{
},
tree_treeview
:
{
nodata
:
""
,
nodes
:
{
...
...
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
4ec3d8a0
...
...
@@ -899,6 +899,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls
:
''
,
appfunctag
:
'AppFunc19'
,
resourcetag
:
''
,
},
{
id
:
'6E8D1669-FA60-46AC-BC55-C61EB0010CB1'
,
name
:
'menuitem152'
,
text
:
'自定义插件'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'自定义插件'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc71'
,
resourcetag
:
''
,
},
],
},
...
...
app_Web/src/pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view-base.vue
0 → 100644
浏览文件 @
4ec3d8a0
此差异已折叠。
点击以展开。
app_Web/src/pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.less
0 → 100644
浏览文件 @
4ec3d8a0
.ibizbookusr5-data-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.ibizbookusr5-data-view{
display: block;
}
\ No newline at end of file
app_Web/src/pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue
0 → 100644
浏览文件 @
4ec3d8a0
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZBOOKUsr5DataViewBase
from
'./ibizbookusr5-data-view-base.vue'
;
import
view_searchform
from
'@widgets/ibizbook/default-searchform/default-searchform.vue'
;
import
view_dataview
from
'@widgets/ibizbook/group-by-codelist-kan-ban-dataview/group-by-codelist-kan-ban-dataview.vue'
;
@
Component
({
components
:
{
view_searchform
,
view_dataview
,
},
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
IBIZBOOKUsr5DataView
extends
IBIZBOOKUsr5DataViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
4ec3d8a0
...
...
@@ -23,6 +23,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizbookoption-view'
,
()
=>
import
(
'@pages/sample/ibizbookoption-view/ibizbookoption-view.vue'
));
Vue
.
component
(
'ibizsample0001-sf2-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0001-sf2-edit-view/ibizsample0001-sf2-edit-view.vue'
));
Vue
.
component
(
'ibizorder-detail-sf2-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-detail-sf2-edit-view/ibizorder-detail-sf2-edit-view.vue'
));
Vue
.
component
(
'ibizbookusr5-data-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue'
));
Vue
.
component
(
'ibizorder-list-exp-view'
,
()
=>
import
(
'@pages/sample/ibizorder-list-exp-view/ibizorder-list-exp-view.vue'
));
Vue
.
component
(
'ibizbooknew-default-value-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbooknew-default-value-grid-view/ibizbooknew-default-value-grid-view.vue'
));
Vue
.
component
(
'ibizbookcalendar-view'
,
()
=>
import
(
'@pages/sample/ibizbookcalendar-view/ibizbookcalendar-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
4ec3d8a0
...
...
@@ -447,6 +447,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-detail-sf2-edit-view/ibizorder-detail-sf2-edit-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/usr5dataview/:usr5dataview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usr5dataview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr5dataview'
,
parameterName
:
'usr5dataview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/listexpview/:listexpview?'
,
meta
:
{
...
...
@@ -3395,6 +3409,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbookgroup-by-codelist-kan-ban-view/ibizbookgroup-by-codelist-kan-ban-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usr5dataview/:usr5dataview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usr5dataview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr5dataview'
,
parameterName
:
'usr5dataview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/odsp_d20_wfgridview/:odsp_d20_wfgridview?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
4ec3d8a0
...
...
@@ -196,6 +196,7 @@ export const viewstate: any = {
'39e841c85d9bbfc7ecf009c4202dbf0c'
,
'658d519f1868979431e7e0da5d967e6b'
,
'8a3f2cc88421d9f07cbb53dd78e11495'
,
'323ab2f980880093a8f5fbaf3e0965a0'
,
'9127e2414d8e646fd2b473695d17c485'
,
'fdb297cd4b12374534413c3053aec1b8'
,
'f4c5c766fd5755b694e0401dddc4d1ad'
,
...
...
@@ -218,8 +219,8 @@ export const viewstate: any = {
'5ccbd78fe47300a160915d6398b59604'
,
'd9f9f0dede285235e3d0ad5101188d1e'
,
'5f21463b9d808170d4023d8402cc6e9e'
,
'84904c93ceea3ab6551555ee20c41e27'
,
'ffedffb9c57cb200c275ba15e9100da4'
,
'84904c93ceea3ab6551555ee20c41e27'
,
'41d3da0d37fb0135ace813f1ba06bd39'
,
'1ee924c4a616343b6b4cd42150b799fa'
,
'b8ae19200ec9d4e8e588bc31e3f9bcb4'
,
...
...
@@ -468,6 +469,16 @@ export const viewstate: any = {
'b3429ecc4d89a02bc5f5279f1bd7f620'
,
],
},
{
viewtag
:
'323ab2f980880093a8f5fbaf3e0965a0'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKUsr5DataView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'b3429ecc4d89a02bc5f5279f1bd7f620'
,
],
},
{
viewtag
:
'3561860a1fae5554621b47824d1d3abc'
,
viewmodule
:
'Sample'
,
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
4ec3d8a0
...
...
@@ -680,15 +680,15 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'Auto3'
:
this
.
clickAuto3
(
item
);
return
;
case
'AppFunc22'
:
this
.
clickAppFunc22
(
item
);
return
;
case
'Auto279'
:
this
.
clickAuto279
(
item
);
return
;
case
'AppFunc31'
:
this
.
clickAppFunc31
(
item
);
return
;
case
'AppFunc22'
:
this
.
clickAppFunc22
(
item
);
return
;
case
'AppFunc46'
:
this
.
clickAppFunc46
(
item
);
return
;
...
...
@@ -743,6 +743,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc8'
:
this
.
clickAppFunc8
(
item
);
return
;
case
'AppFunc71'
:
this
.
clickAppFunc71
(
item
);
return
;
case
'Auto173'
:
this
.
clickAuto173
(
item
);
return
;
...
...
@@ -2121,18 +2124,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
表单项输入提示
*
自定义视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickA
uto279
(
item
:
any
=
{})
{
public
clickA
ppFunc22
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
sf2editview'
,
parameterName
:
'sf2edit
view'
},
{
pathName
:
'ibiz
books'
,
parameterName
:
'ibizbook
'
},
{
pathName
:
'
customview'
,
parameterName
:
'custom
view'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2144,18 +2147,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
图书实体表单(内置功能)
*
表单项输入提示
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickA
ppFunc31
(
item
:
any
=
{})
{
public
clickA
uto279
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
books'
,
parameterName
:
'ibizbook
'
},
{
pathName
:
'
interfunceditview'
,
parameterName
:
'interfunc
editview'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
sf2editview'
,
parameterName
:
'sf2
editview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2167,18 +2170,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
自定义视图
*
图书实体表单(内置功能)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc
22
(
item
:
any
=
{})
{
public
clickAppFunc
31
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'
customview'
,
parameterName
:
'custom
view'
},
{
pathName
:
'
interfunceditview'
,
parameterName
:
'interfuncedit
view'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2603,6 +2606,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 图书实体数据视图(自定义插件)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc71
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr5dataview'
,
parameterName
:
'usr5dataview'
},
];
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
浏览文件 @
4ec3d8a0
...
...
@@ -952,6 +952,25 @@ export default class MainMenuModel {
appfunctag
:
'AppFunc19'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem94'
,
},
{
id
:
'6E8D1669-FA60-46AC-BC55-C61EB0010CB1'
,
name
:
'menuitem152'
,
text
:
'自定义插件'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'自定义插件'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc71'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem152'
,
},
],
},
...
...
app_Web/src/widgets/ibizbook/group-by-codelist-kan-ban-dataview/group-by-codelist-kan-ban-dataview-base.vue
0 → 100644
浏览文件 @
4ec3d8a0
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizbook/group-by-codelist-kan-ban-dataview/group-by-codelist-kan-ban-dataview-model.ts
0 → 100644
浏览文件 @
4ec3d8a0
/**
* GroupByCodelistKanBan 部件模型
*
* @export
* @class GroupByCodelistKanBanModel
*/
export
default
class
GroupByCodelistKanBanModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof GroupByCodelistKanBanDataViewMode
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'author'
,
prop
:
'author'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfsubtext'
,
prop
:
'subtext'
,
dataType
:
'TEXT'
,
},
{
name
:
'press'
,
prop
:
'press'
,
dataType
:
'TEXT'
,
},
{
name
:
'price'
,
prop
:
'price'
,
dataType
:
'FLOAT'
,
},
{
name
:
'srficon'
,
prop
:
'icon'
,
dataType
:
'TEXT'
,
},
{
name
:
'booknumber'
,
prop
:
'booknumber'
,
dataType
:
'INT'
,
},
{
name
:
'type'
,
prop
:
'type'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfkey'
,
prop
:
'ibizbookid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'ibizbookname'
,
dataType
:
'TEXT'
,
},
{
name
:
'ibizbook'
,
prop
:
'ibizbookid'
,
dataType
:
'FONTKEY'
,
},
{
name
:
'n_ibizbookname_like'
,
prop
:
'n_ibizbookname_like'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_price_gtandeq'
,
prop
:
'n_price_gtandeq'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'size'
,
prop
:
'size'
},
{
name
:
'query'
,
prop
:
'query'
},
{
name
:
'sort'
,
prop
:
'sort'
},
{
name
:
'page'
,
prop
:
'page'
},
{
name
:
'srfparentdata'
,
prop
:
'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/group-by-codelist-kan-ban-dataview/group-by-codelist-kan-ban-dataview-service.ts
0 → 100644
浏览文件 @
4ec3d8a0
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
GroupByCodelistKanBanModel
from
'./group-by-codelist-kan-ban-dataview-model'
;
/**
* GroupByCodelistKanBan 部件服务对象
*
* @export
* @class GroupByCodelistKanBanService
*/
export
default
class
GroupByCodelistKanBanService
extends
ControlService
{
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof GroupByCodelistKanBanService
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof GroupByCodelistKanBanService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of GroupByCodelistKanBanService.
*
* @param {*} [opts={}]
* @memberof GroupByCodelistKanBanService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
GroupByCodelistKanBanModel
();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof GroupByCodelistKanBanService
*/
@
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
((
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 GroupByCodelistKanBanService
*/
@
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 GroupByCodelistKanBanService
*/
@
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 GroupByCodelistKanBanService
*/
@
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/ibizbook/group-by-codelist-kan-ban-dataview/group-by-codelist-kan-ban-dataview.less
0 → 100644
浏览文件 @
4ec3d8a0
.app-data-view {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
position: relative;
// 排序栏样式
.bar-container{
padding: 6px 8px;
background-color: #F1F1F1;
.ivu-row-flex.page-sort-bar{
width: 100%;
height: 30px;
.ivu-col{
user-select: none;
text-align: center;
display: flex;
align-items: flex-end;
padding-bottom: 4px;
background-color: #FFF;
border: 1px solid #CCC;
margin-left: -1px;
.sort-field-text{
margin-left: 7px;
}
.caret-wrapper{
width: 15px;
display: inline-block;
padding-bottom: 2px;
.ivu-icon{
display: block;
line-height: 0.5;
color: #c5c8ce;
}
}
}
// 悬浮样式
.ivu-col:hover{
border:1px solid #82bff7;
position:relative;
z-index:2;
.sort-field-text{
color: #82bff7;
}
}
// 选中样式
.sort-ascending, .sort-descending{
border:1px solid #82bff7;
position:relative;
z-index:2;
.sort-field-text{
color:#82bff7;
font-weight: 800;
}
}
.sort-ascending .caret-wrapper .ivu-icon.ivu-icon-md-arrow-dropup,
.sort-descending .caret-wrapper .ivu-icon.ivu-icon-md-arrow-dropdown{
color: #82bff7;
}
}
}
.data-view-container {
height: calc(100% - 42px);
align-content: start;
.el-collapse{
width: 100%;
.el-collapse-item__content{
padding: 10px 0px 0px 0px;
display: flex;
.item-nodata {
padding-bottom: 10px;
width: 100%;
text-align: center;
}
}
}
.el-collapse-item__header.is-active{
color: #409eff;
background-color: #ecf5ff;
}
.ivu-col{
padding: 10px;
.el-card__body{
padding: 10px;
}
}
.el-card{
background-color: #f6f6f6;
color: #666666;
box-shadow: 0 2px 12px 0 #909399;
}
.single-card-data{
height: 100%;
width: 100%;
cursor: pointer;
border: 2px solid transparent;
.data-view-item{
.single-card-default {
.ivu-tooltip{
.ivu-tooltip-rel{
width: 150px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: left;
padding-left: 5px;
font-size: 18px;
font-weight: 800;
}
}
}
.single-card-img {
width: 150px;
height: calc(100% - 32px);
}
}
.data-view-item-action{
button{
margin: 0 3px;
cursor: pointer;
padding:3px;
}
button:hover{
color: #409eff;
}
}
}
.isselected{
border: 2px solid #82bff7;
box-shadow: 5px 5px 12px 0 #82bff7;
.ivu-tooltip{
color: #82bff7;
font-weight: 800;
}
}
.single-card-data:hover{
border: 2px solid #82bff7;
box-shadow: 5px 5px 12px 0 #82bff7;
.ivu-tooltip{
color: #82bff7;
font-weight: 800;
}
}
}
// 空值文本
.app-data-empty {
height: calc(100% - 42px);
color: #909399;
display: flex;
justify-content: center;
align-items: center;
}
.el-backtop {
position: absolute;
}
}
// this is less
app_Web/src/widgets/ibizbook/group-by-codelist-kan-ban-dataview/group-by-codelist-kan-ban-dataview.vue
0 → 100644
浏览文件 @
4ec3d8a0
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
GroupByCodelistKanBanBase
from
'./group-by-codelist-kan-ban-dataview-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
GroupByCodelistKanBan
extends
GroupByCodelistKanBanBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/ibizbook/group-by-codelist-kan-ban-kanban/group-by-codelist-kan-ban-kanban-model.ts
浏览文件 @
4ec3d8a0
...
...
@@ -19,6 +19,11 @@ export default class GroupByCodelistKanBanModel {
prop
:
'author'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfsubtext'
,
prop
:
'subtext'
,
dataType
:
'TEXT'
,
},
{
name
:
'press'
,
prop
:
'press'
,
...
...
@@ -29,6 +34,11 @@ export default class GroupByCodelistKanBanModel {
prop
:
'price'
,
dataType
:
'FLOAT'
,
},
{
name
:
'srficon'
,
prop
:
'icon'
,
dataType
:
'TEXT'
,
},
{
name
:
'booknumber'
,
prop
:
'booknumber'
,
...
...
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
4ec3d8a0
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录