Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
a86bb476
提交
a86bb476
编写于
12月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
c161a96b
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
158 行增加
和
3 行删除
+158
-3
usr-dataview-base.vue
...b/src/widgets/ibizbook/usr-dataview/usr-dataview-base.vue
+62
-0
IBIZVIEWMESS.java
...main/java/cn/ibizlab/core/sample/domain/IBIZVIEWMESS.java
+45
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+6
-0
IBIZVIEWMESSMapper.xml
...sources/mapper/sample/ibizviewmess/IBIZVIEWMESSMapper.xml
+3
-3
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+42
-0
未找到文件。
app_Web/src/widgets/ibizbook/usr-dataview/usr-dataview-base.vue
浏览文件 @
a86bb476
...
...
@@ -286,6 +286,60 @@ export default class UsrBase extends Vue implements ControlInterface {
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dataview_memo1_u8457362_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dataview_memo1_u693c051_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
* 新建
*
...
...
@@ -583,6 +637,8 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof UsrBase
*/
public
ActionModel
:
any
=
{
"Remove"
:{
name
:
"Remove"
,
icon
:
"fa fa-remove"
,
caption
:
"删除"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"MULTIKEY"
},
"Edit"
:{
name
:
"Edit"
,
icon
:
"fa fa-edit"
,
caption
:
"编辑"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"SINGLEKEY"
},
};
/**
...
...
@@ -1178,6 +1234,12 @@ export default class UsrBase extends Vue implements ControlInterface {
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview_batchtoolbar_deuiaction2_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview_memo1_u8457362_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Edit'
,
tag
))
{
this
.
dataview_memo1_u693c051_click
(
data
,
tag
,
$event
);
}
}
}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZVIEWMESS.java
浏览文件 @
a86bb476
...
...
@@ -92,6 +92,27 @@ public class IBIZVIEWMESS extends EntityMP implements Serializable {
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 文档地址
*/
@TableField
(
value
=
"documentaddress"
)
@JSONField
(
name
=
"documentaddress"
)
@JsonProperty
(
"documentaddress"
)
private
String
documentaddress
;
/**
* 视图实例地址
*/
@TableField
(
value
=
"instanceaddress"
)
@JSONField
(
name
=
"instanceaddress"
)
@JsonProperty
(
"instanceaddress"
)
private
String
instanceaddress
;
/**
* 视图类型
*/
@TableField
(
value
=
"viewtype"
)
@JSONField
(
name
=
"viewtype"
)
@JsonProperty
(
"viewtype"
)
private
String
viewtype
;
...
...
@@ -103,6 +124,30 @@ public class IBIZVIEWMESS extends EntityMP implements Serializable {
this
.
modify
(
"ibizviewmessname"
,
ibizviewmessname
);
}
/**
* 设置 [文档地址]
*/
public
void
setDocumentaddress
(
String
documentaddress
)
{
this
.
documentaddress
=
documentaddress
;
this
.
modify
(
"documentaddress"
,
documentaddress
);
}
/**
* 设置 [视图实例地址]
*/
public
void
setInstanceaddress
(
String
instanceaddress
)
{
this
.
instanceaddress
=
instanceaddress
;
this
.
modify
(
"instanceaddress"
,
instanceaddress
);
}
/**
* 设置 [视图类型]
*/
public
void
setViewtype
(
String
viewtype
)
{
this
.
viewtype
=
viewtype
;
this
.
modify
(
"viewtype"
,
viewtype
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
a86bb476
...
...
@@ -1171,6 +1171,12 @@
</column>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"DOCUMENTADDRESS"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"INSTANCEADDRESS"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"VIEWTYPE"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
...
...
demo-core/src/main/resources/mapper/sample/ibizviewmess/IBIZVIEWMESSMapper.xml
浏览文件 @
a86bb476
...
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZVIEWMESSResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`
IBIZVIEWMESSID`, t1.`IBIZVIEWMESSNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN
` FROM `T_IBIZVIEWMESS` t1 ) t1 where ibizviewmessid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`
DOCUMENTADDRESS`, t1.`IBIZVIEWMESSID`, t1.`IBIZVIEWMESSNAME`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`VIEWTYPE
` FROM `T_IBIZVIEWMESS` t1 ) t1 where ibizviewmessid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
...
@@ -27,12 +27,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`
IBIZVIEWMESSID`, t1.`IBIZVIEWMESSNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN
` FROM `T_IBIZVIEWMESS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`
DOCUMENTADDRESS`, t1.`IBIZVIEWMESSID`, t1.`IBIZVIEWMESSNAME`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`VIEWTYPE
` FROM `T_IBIZVIEWMESS` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`
IBIZVIEWMESSID`, t1.`IBIZVIEWMESSNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN
` FROM `T_IBIZVIEWMESS` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`
DOCUMENTADDRESS`, t1.`IBIZVIEWMESSID`, t1.`IBIZVIEWMESSNAME`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN`, t1.`VIEWTYPE
` FROM `T_IBIZVIEWMESS` t1
]]>
</sql>
</mapper>
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
a86bb476
...
...
@@ -8054,6 +8054,48 @@
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"DOCUMENTADDRESS"
,
"codename"
:
"Documentaddress"
,
"field_logic_name"
:
"文档地址"
,
"entity_name"
:
"IBIZVIEWMESS"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"INSTANCEADDRESS"
,
"codename"
:
"Instanceaddress"
,
"field_logic_name"
:
"视图实例地址"
,
"entity_name"
:
"IBIZVIEWMESS"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"VIEWTYPE"
,
"codename"
:
"Viewtype"
,
"field_logic_name"
:
"视图类型"
,
"entity_name"
:
"IBIZVIEWMESS"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录