Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
8ab773b4
提交
8ab773b4
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kuaikuai 发布系统代码 [后台服务,演示应用]
上级
ba7b0464
变更
13
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
1874 行增加
和
41 行删除
+1874
-41
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+9
-20
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+9
-20
ibizbookusr5-data-view.vue
.../sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue
+1
-1
usr5-dataview-base.vue
...src/widgets/ibizbook/usr5-dataview/usr5-dataview-base.vue
+931
-0
usr5-dataview-model.ts
...src/widgets/ibizbook/usr5-dataview/usr5-dataview-model.ts
+83
-0
usr5-dataview-service.ts
...c/widgets/ibizbook/usr5-dataview/usr5-dataview-service.ts
+167
-0
usr5-dataview.less
...Web/src/widgets/ibizbook/usr5-dataview/usr5-dataview.less
+156
-0
usr5-dataview.vue
app_Web/src/widgets/ibizbook/usr5-dataview/usr5-dataview.vue
+16
-0
usr5-panel-base.vue
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-base.vue
+431
-0
usr5-panel-model.ts
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-model.ts
+19
-0
usr5-panel-service.ts
...Web/src/widgets/ibizbook/usr5-panel/usr5-panel-service.ts
+11
-0
usr5-panel.less
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel.less
+27
-0
usr5-panel.vue
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel.vue
+14
-0
未找到文件。
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
8ab773b4
...
...
@@ -567,12 +567,9 @@ export default {
uiactions
:
{
},
},
usr_dataview
:
{
usr
5
_dataview
:
{
nodata
:
""
,
uiactions
:
{
new
:
"New"
,
edit
:
"Edit"
,
remove
:
"Remove"
,
},
},
usr2_dataview
:
{
...
...
@@ -585,6 +582,14 @@ export default {
uiactions
:
{
},
},
usr_dataview
:
{
nodata
:
""
,
uiactions
:
{
new
:
"New"
,
edit
:
"Edit"
,
remove
:
"Remove"
,
},
},
usr4_dataview
:
{
nodata
:
""
,
uiactions
:
{
...
...
@@ -699,22 +704,6 @@ export default {
},
usr5dataviewtoolbar_toolbar
:
{
},
usr5dataviewdataview_quicktoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"New"
,
tip
:
"New"
,
},
},
usr5dataviewdataview_batchtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
deuiaction2
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
},
roweditgridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
8ab773b4
...
...
@@ -566,12 +566,9 @@ export default {
uiactions
:
{
},
},
usr_dataview
:
{
usr
5
_dataview
:
{
nodata
:
""
,
uiactions
:
{
new
:
"新建"
,
edit
:
"编辑"
,
remove
:
"删除"
,
},
},
usr2_dataview
:
{
...
...
@@ -584,6 +581,14 @@ export default {
uiactions
:
{
},
},
usr_dataview
:
{
nodata
:
""
,
uiactions
:
{
new
:
"新建"
,
edit
:
"编辑"
,
remove
:
"删除"
,
},
},
usr4_dataview
:
{
nodata
:
""
,
uiactions
:
{
...
...
@@ -698,22 +703,6 @@ export default {
},
usr5dataviewtoolbar_toolbar
:
{
},
usr5dataviewdataview_quicktoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
},
usr5dataviewdataview_batchtoolbar_toolbar
:
{
deuiaction1
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
deuiaction2
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
},
roweditgridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookusr5-data-view/ibizbookusr5-data-view.vue
浏览文件 @
8ab773b4
...
...
@@ -3,7 +3,7 @@ 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/usr
-dataview/usr
-dataview.vue'
;
import
view_dataview
from
'@widgets/ibizbook/usr
5-dataview/usr5
-dataview.vue'
;
@
Component
({
components
:
{
view_searchform
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-dataview/usr5-dataview-base.vue
0 → 100644
浏览文件 @
8ab773b4
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizbook/usr5-dataview/usr5-dataview-model.ts
0 → 100644
浏览文件 @
8ab773b4
/**
* Usr5 部件模型
*
* @export
* @class Usr5Model
*/
export
default
class
Usr5Model
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Usr5DataViewMode
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'srficon'
,
prop
:
'icon'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfdescription'
,
prop
:
'subtext'
,
dataType
:
'TEXT'
,
},
{
name
:
'srfkey'
,
prop
:
'ibizbookid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
},
{
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
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-dataview/usr5-dataview-service.ts
0 → 100644
浏览文件 @
8ab773b4
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
Usr5Model
from
'./usr5-dataview-model'
;
/**
* Usr5 部件服务对象
*
* @export
* @class Usr5Service
*/
export
default
class
Usr5Service
extends
ControlService
{
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof Usr5Service
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof Usr5Service
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of Usr5Service.
*
* @param {*} [opts={}]
* @memberof Usr5Service
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
Usr5Model
();
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Usr5Service
*/
@
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 Usr5Service
*/
@
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 Usr5Service
*/
@
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 Usr5Service
*/
@
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
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-dataview/usr5-dataview.less
0 → 100644
浏览文件 @
8ab773b4
.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
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-dataview/usr5-dataview.vue
0 → 100644
浏览文件 @
8ab773b4
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
Usr5Base
from
'./usr5-dataview-base.vue'
;
import
layout_itemlayoutpanel
from
'@widgets/ibizbook/usr5-panel/usr5-panel.vue'
;
@
Component
({
components
:
{
layout_itemlayoutpanel
,
}
})
export
default
class
Usr5
extends
Usr5Base
{
}
</
script
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-base.vue
0 → 100644
浏览文件 @
8ab773b4
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-model.ts
0 → 100644
浏览文件 @
8ab773b4
/**
* Usr5 部件模型
*
* @export
* @class Usr5Model
*/
export
default
class
Usr5Model
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Usr5Model
*/
public
getDataItems
():
any
[]
{
return
[
]
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel-service.ts
0 → 100644
浏览文件 @
8ab773b4
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* Usr5 部件服务对象
*
* @export
* @class Usr5Service
*/
export
default
class
Usr5Service
extends
ControlService
{
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel.less
0 → 100644
浏览文件 @
8ab773b4
// this is less
.app-layoutpanel {
height: 100%;
.app-layoutpanel-container {
padding: 6px;
}
.app-layoutpanel-tabpanel{
>.el-tabs {
>.el-.el-tabs__header{
margin: 0 0 10px;
}
.app-layoutpanel-tabpage{
padding: 6px;
}
}
}
.app-layoutpanel-button,.app-layoutpanel-conctrl,.app-layoutpanel-ctrlpos,.app-layoutpanel-field,.app-layoutpanel-rowitem,.app-layoutpanel-usercontrol{
padding: 6px;
}
.item-field{
padding: 0 4px;
display: flex;
>.item-field-label{
padding: 0 8px;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr5-panel/usr5-panel.vue
0 → 100644
浏览文件 @
8ab773b4
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
Usr5Base
from
'./usr5-panel-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
Usr5
extends
Usr5Base
{
}
</
script
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录