Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
a22c11f2
提交
a22c11f2
编写于
12月 08, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
e70c76f3
变更
19
展开全部
显示空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
2515 行增加
和
33 行删除
+2515
-33
en-US.ts
app_Web/src/locale/lang/en-US.ts
+2
-1
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+2
-1
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+6
-4
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+6
-4
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+28
-10
ibizbookusr6-data-view-base.vue
...le/ibizbookusr6-data-view/ibizbookusr6-data-view-base.vue
+905
-0
ibizbookusr6-data-view.less
...sample/ibizbookusr6-data-view/ibizbookusr6-data-view.less
+22
-0
ibizbookusr6-data-view.vue
.../sample/ibizbookusr6-data-view/ibizbookusr6-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
-0
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+26
-0
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+31
-12
major-state-data-dataview-base.vue
...or-state-data-dataview/major-state-data-dataview-base.vue
+1002
-0
major-state-data-dataview-model.ts
...or-state-data-dataview/major-state-data-dataview-model.ts
+83
-0
major-state-data-dataview-service.ts
...-state-data-dataview/major-state-data-dataview-service.ts
+167
-0
major-state-data-dataview.less
.../major-state-data-dataview/major-state-data-dataview.less
+156
-0
major-state-data-dataview.vue
...k/major-state-data-dataview/major-state-data-dataview.vue
+14
-0
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+1
-1
未找到文件。
app_Web/src/locale/lang/en-US.ts
浏览文件 @
a22c11f2
...
...
@@ -336,9 +336,10 @@ export default {
menuitem45
:
"数据打印"
,
menuitem67
:
"索引实体"
,
menuitem68
:
"继承实体"
,
menuitem70
:
"表格主状态"
,
menuitem71
:
"多表单"
,
menuitem70
:
"表格主状态"
,
menuitem148
:
"列表主状态"
,
menuitem183
:
"数据主状态"
,
menuitem92
:
"其他"
,
menuitem93
:
"示例实体02示例数据补充"
,
menuitem100
:
"订单示例数据补充"
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
a22c11f2
...
...
@@ -336,9 +336,10 @@ export default {
menuitem45
:
"数据打印"
,
menuitem67
:
"索引实体"
,
menuitem68
:
"继承实体"
,
menuitem70
:
"表格主状态"
,
menuitem71
:
"多表单"
,
menuitem70
:
"表格主状态"
,
menuitem148
:
"列表主状态"
,
menuitem183
:
"数据主状态"
,
menuitem92
:
"其他"
,
menuitem93
:
"示例实体02示例数据补充"
,
menuitem100
:
"订单示例数据补充"
,
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
a22c11f2
...
...
@@ -684,12 +684,14 @@ export default {
remove
:
"Remove"
,
},
},
usr4
_dataview
:
{
majorstatedata
_dataview
:
{
nodata
:
""
,
uiactions
:
{
ibizbook_edit
:
"编辑"
,
ibizbook_delete
:
"删除"
,
},
},
majorstatedata
_dataview
:
{
usr4
_dataview
:
{
nodata
:
""
,
uiactions
:
{
},
...
...
@@ -1089,6 +1091,8 @@ export default {
tip
:
"Remove {0}"
,
},
},
usr6dataviewtoolbar_toolbar
:
{
},
usr2calendarviewcalendar_batchtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"Save"
,
...
...
@@ -1741,8 +1745,6 @@ export default {
},
haspanellistviewtoolbar_toolbar
:
{
},
usr6dataviewtoolbar_toolbar
:
{
},
tree_treeview
:
{
nodata
:
""
,
nodes
:
{
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
a22c11f2
...
...
@@ -683,12 +683,14 @@ export default {
remove
:
"删除"
,
},
},
usr4
_dataview
:
{
majorstatedata
_dataview
:
{
nodata
:
""
,
uiactions
:
{
ibizbook_edit
:
"编辑"
,
ibizbook_delete
:
"删除"
,
},
},
majorstatedata
_dataview
:
{
usr4
_dataview
:
{
nodata
:
""
,
uiactions
:
{
},
...
...
@@ -1088,6 +1090,8 @@ export default {
tip
:
"删除"
,
},
},
usr6dataviewtoolbar_toolbar
:
{
},
usr2calendarviewcalendar_batchtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"保存"
,
...
...
@@ -1740,8 +1744,6 @@ export default {
},
haspanellistviewtoolbar_toolbar
:
{
},
usr6dataviewtoolbar_toolbar
:
{
},
tree_treeview
:
{
nodata
:
""
,
nodes
:
{
...
...
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
a22c11f2
...
...
@@ -3067,12 +3067,12 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
resourcetag
:
''
,
},
{
id
:
'
c931e0ff705c4be3c4199457a0ac5b75
'
,
name
:
'menuitem7
0
'
,
text
:
'
表格主状态
'
,
id
:
'
9026dcd0d3fc539fbe02d12cd15968f8
'
,
name
:
'menuitem7
1
'
,
text
:
'
多表单
'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'
表格主状态
'
,
tooltip
:
'
多表单
'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
...
...
@@ -3081,16 +3081,16 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
ppFunc79
'
,
appfunctag
:
'A
uto116
'
,
resourcetag
:
''
,
},
{
id
:
'
9026dcd0d3fc539fbe02d12cd15968f8
'
,
name
:
'menuitem7
1
'
,
text
:
'
多表单
'
,
id
:
'
c931e0ff705c4be3c4199457a0ac5b75
'
,
name
:
'menuitem7
0
'
,
text
:
'
表格主状态
'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'
多表单
'
,
tooltip
:
'
表格主状态
'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
...
...
@@ -3099,7 +3099,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
uto116
'
,
appfunctag
:
'A
ppFunc79
'
,
resourcetag
:
''
,
},
{
...
...
@@ -3119,6 +3119,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls
:
''
,
appfunctag
:
'AppFunc80'
,
resourcetag
:
''
,
},
{
id
:
'4A657CD0-5B9E-4701-A600-33E4A981F549'
,
name
:
'menuitem183'
,
text
:
'数据主状态'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'数据主状态'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc81'
,
resourcetag
:
''
,
},
],
},
...
...
app_Web/src/pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view-base.vue
0 → 100644
浏览文件 @
a22c11f2
此差异已折叠。
点击以展开。
app_Web/src/pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.less
0 → 100644
浏览文件 @
a22c11f2
.ibizbookusr6-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
.ibizbookusr6-data-view{
display: block;
}
\ No newline at end of file
app_Web/src/pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.vue
0 → 100644
浏览文件 @
a22c11f2
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZBOOKUsr6DataViewBase
from
'./ibizbookusr6-data-view-base.vue'
;
import
view_searchform
from
'@widgets/ibizbook/default-searchform/default-searchform.vue'
;
import
view_dataview
from
'@widgets/ibizbook/major-state-data-dataview/major-state-data-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
IBIZBOOKUsr6DataView
extends
IBIZBOOKUsr6DataViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
a22c11f2
...
...
@@ -173,6 +173,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizorder-detail-f6-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-detail-f6-edit-view/ibizorder-detail-f6-edit-view.vue'
));
Vue
.
component
(
'ibizbookusr2-medit-view9'
,
()
=>
import
(
'@pages/sample/ibizbookusr2-medit-view9/ibizbookusr2-medit-view9.vue'
));
Vue
.
component
(
'ibizsample0001-usr3-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0001-usr3-edit-view/ibizsample0001-usr3-edit-view.vue'
));
Vue
.
component
(
'ibizbookusr6-data-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.vue'
));
Vue
.
component
(
'ibizsample0003-sf2-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-sf2-edit-view/ibizsample0003-sf2-edit-view.vue'
));
Vue
.
component
(
'ibizbookinternal-func-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbookinternal-func-grid-view/ibizbookinternal-func-grid-view.vue'
));
Vue
.
component
(
'ibizorder-odsp-d10-wfgrid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-odsp-d10-wfgrid-view/ibizorder-odsp-d10-wfgrid-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
a22c11f2
...
...
@@ -2711,6 +2711,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-usr3-edit-view/ibizsample0001-usr3-edit-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/usr6dataview/:usr6dataview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usr6dataview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr6dataview'
,
parameterName
:
'usr6dataview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.vue'
),
},
{
path
:
'ibizsample0003s/:ibizsample0003?/sf2editview/:sf2editview?'
,
meta
:
{
...
...
@@ -5106,6 +5120,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr6-grid-view/ibizbookusr6-grid-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usr6dataview/:usr6dataview?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usr6dataview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr6dataview'
,
parameterName
:
'usr6dataview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr6-data-view/ibizbookusr6-data-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/editview/:editview?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
a22c11f2
...
...
@@ -306,6 +306,7 @@ export const viewstate: any = {
'06E447F9-1AF8-464F-8F47-39CFC64B9A21'
,
'3bbf72a3e5b59fed0dee362a9b1384a8'
,
'f00438ae4a3c6969dfccd271c2be65da'
,
'c0129c921be7d85a22907979d8120c64'
,
'f73da4cb47a88d3fe5b92716e0137741'
,
'fdb8ed39fbfea00f65416b9aaebd64e7'
,
'd99f9680b535dcf3ad0d0f853a8b89d9'
,
...
...
@@ -1578,6 +1579,17 @@ export const viewstate: any = {
'efbe72fe207c5bb7ada28b278a9ea920'
,
],
},
{
viewtag
:
'c0129c921be7d85a22907979d8120c64'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKUsr6DataView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'b3429ecc4d89a02bc5f5279f1bd7f620'
,
'0d9d3edf2d060a859fa7f2e206556730'
,
],
},
{
viewtag
:
'c153da73d5d5b62475f4213de51a25e0'
,
viewmodule
:
'Sample'
,
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
a22c11f2
...
...
@@ -791,6 +791,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc54'
:
this
.
clickAppFunc54
(
item
);
return
;
case
'AppFunc81'
:
this
.
clickAppFunc81
(
item
);
return
;
case
'AppFunc80'
:
this
.
clickAppFunc80
(
item
);
return
;
...
...
@@ -3003,6 +3006,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 数据视图主状态
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc81
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr6dataview'
,
parameterName
:
'usr6dataview'
},
];
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
浏览文件 @
a22c11f2
...
...
@@ -3237,12 +3237,12 @@ export default class MainMenuModel {
authtag
:
'Web-MainMenu-menuitem68'
,
},
{
id
:
'
c931e0ff705c4be3c4199457a0ac5b75
'
,
name
:
'menuitem7
0
'
,
text
:
'
表格主状态
'
,
id
:
'
9026dcd0d3fc539fbe02d12cd15968f8
'
,
name
:
'menuitem7
1
'
,
text
:
'
多表单
'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'
表格主状态
'
,
tooltip
:
'
多表单
'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
...
...
@@ -3251,17 +3251,17 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
ppFunc79
'
,
appfunctag
:
'A
uto116
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem7
0
'
,
authtag
:
'Web-MainMenu-menuitem7
1
'
,
},
{
id
:
'
9026dcd0d3fc539fbe02d12cd15968f8
'
,
name
:
'menuitem7
1
'
,
text
:
'
多表单
'
,
id
:
'
c931e0ff705c4be3c4199457a0ac5b75
'
,
name
:
'menuitem7
0
'
,
text
:
'
表格主状态
'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'
多表单
'
,
tooltip
:
'
表格主状态
'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
...
...
@@ -3270,9 +3270,9 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
uto116
'
,
appfunctag
:
'A
ppFunc79
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem7
1
'
,
authtag
:
'Web-MainMenu-menuitem7
0
'
,
},
{
id
:
'49662DB0-CAB1-4131-A322-EF4EAA92F332'
,
...
...
@@ -3292,6 +3292,25 @@ export default class MainMenuModel {
appfunctag
:
'AppFunc80'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem148'
,
},
{
id
:
'4A657CD0-5B9E-4701-A600-33E4A981F549'
,
name
:
'menuitem183'
,
text
:
'数据主状态'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'数据主状态'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc81'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem183'
,
},
],
},
...
...
app_Web/src/widgets/ibizbook/major-state-data-dataview/major-state-data-dataview-base.vue
0 → 100644
浏览文件 @
a22c11f2
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizbook/major-state-data-dataview/major-state-data-dataview-model.ts
0 → 100644
浏览文件 @
a22c11f2
/**
* MajorStateData 部件模型
*
* @export
* @class MajorStateDataModel
*/
export
default
class
MajorStateDataModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MajorStateDataDataViewMode
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srfdescription'
,
prop
:
'type'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfmstag'
,
},
{
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/major-state-data-dataview/major-state-data-dataview-service.ts
0 → 100644
浏览文件 @
a22c11f2
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
MajorStateDataModel
from
'./major-state-data-dataview-model'
;
/**
* MajorStateData 部件服务对象
*
* @export
* @class MajorStateDataService
*/
export
default
class
MajorStateDataService
extends
ControlService
{
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof MajorStateDataService
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof MajorStateDataService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of MajorStateDataService.
*
* @param {*} [opts={}]
* @memberof MajorStateDataService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
MajorStateDataModel
();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MajorStateDataService
*/
@
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 MajorStateDataService
*/
@
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 MajorStateDataService
*/
@
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 MajorStateDataService
*/
@
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/major-state-data-dataview/major-state-data-dataview.less
0 → 100644
浏览文件 @
a22c11f2
.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/major-state-data-dataview/major-state-data-dataview.vue
0 → 100644
浏览文件 @
a22c11f2
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
MajorStateDataBase
from
'./major-state-data-dataview-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
MajorStateData
extends
MajorStateDataBase
{
}
</
script
>
\ No newline at end of file
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
a22c11f2
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录