Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
287fc3bb
提交
287fc3bb
编写于
12月 11, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kuaikuai 发布系统代码 [后台服务,演示应用]
上级
b95680db
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
94 行增加
和
3 行删除
+94
-3
view-message-group.json
app_Web/public/assets/json/view-message-group.json
+3
-0
message-service-register.ts
app_Web/src/message/message-service-register.ts
+1
-0
view-msg66-message-base.ts
app_Web/src/message/view-msg66/view-msg66-message-base.ts
+63
-0
view-msg66-message.ts
app_Web/src/message/view-msg66/view-msg66-message.ts
+21
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+3
-0
ibizsample0001-usr3-edit-view-base.vue
...001-usr3-edit-view/ibizsample0001-usr3-edit-view-base.vue
+3
-3
未找到文件。
app_Web/public/assets/json/view-message-group.json
浏览文件 @
287fc3bb
...
@@ -164,6 +164,9 @@
...
@@ -164,6 +164,9 @@
"VMGroup13"
:[
"VMGroup13"
:[
{
"tag"
:
"ViewMsg12"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
{
"tag"
:
"ViewMsg12"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
],
"VMGroup67"
:[
{
"tag"
:
"ViewMsg66"
,
"position"
:
"TOP"
,
"type"
:
"INFO"
}
],
"VMGroup39"
:[
"VMGroup39"
:[
{
"tag"
:
"ViewMsg38"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
{
"tag"
:
"ViewMsg38"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
],
...
...
app_Web/src/message/message-service-register.ts
浏览文件 @
287fc3bb
...
@@ -48,6 +48,7 @@ export class MessageServiceRegister {
...
@@ -48,6 +48,7 @@ export class MessageServiceRegister {
this
.
allMessageService
.
set
(
'ViewMsg40'
,
()
=>
import
(
'@/message/view-msg40/view-msg40-message'
));
this
.
allMessageService
.
set
(
'ViewMsg40'
,
()
=>
import
(
'@/message/view-msg40/view-msg40-message'
));
this
.
allMessageService
.
set
(
'ViewMsg53'
,
()
=>
import
(
'@/message/view-msg53/view-msg53-message'
));
this
.
allMessageService
.
set
(
'ViewMsg53'
,
()
=>
import
(
'@/message/view-msg53/view-msg53-message'
));
this
.
allMessageService
.
set
(
'ViewMsg2'
,
()
=>
import
(
'@/message/view-msg2/view-msg2-message'
));
this
.
allMessageService
.
set
(
'ViewMsg2'
,
()
=>
import
(
'@/message/view-msg2/view-msg2-message'
));
this
.
allMessageService
.
set
(
'ViewMsg66'
,
()
=>
import
(
'@/message/view-msg66/view-msg66-message'
));
this
.
allMessageService
.
set
(
'ViewMsg28'
,
()
=>
import
(
'@/message/view-msg28/view-msg28-message'
));
this
.
allMessageService
.
set
(
'ViewMsg28'
,
()
=>
import
(
'@/message/view-msg28/view-msg28-message'
));
this
.
allMessageService
.
set
(
'ViewMsg54'
,
()
=>
import
(
'@/message/view-msg54/view-msg54-message'
));
this
.
allMessageService
.
set
(
'ViewMsg54'
,
()
=>
import
(
'@/message/view-msg54/view-msg54-message'
));
this
.
allMessageService
.
set
(
'ViewMsg10'
,
()
=>
import
(
'@/message/view-msg10/view-msg10-message'
));
this
.
allMessageService
.
set
(
'ViewMsg10'
,
()
=>
import
(
'@/message/view-msg10/view-msg10-message'
));
...
...
app_Web/src/message/view-msg66/view-msg66-message-base.ts
0 → 100644
浏览文件 @
287fc3bb
import
ViewMessageService
from
'../view-message-service'
;
/**
* 编辑器插件示例视图消息服务对象基类
*
* @export
* @class ViewMsg66MessageServiceBase
*/
export
default
class
ViewMsg66MessageServiceBase
extends
ViewMessageService
{
/**
* Creates an instance of ViewMsg66MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg66MessageServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg66MessageServiceBase
*/
public
initBasicParam
(){
this
.
id
=
"ACA86674-1B80-484E-8D8F-94221697CF2F"
;
this
.
name
=
"编辑器插件示例"
;
this
.
codename
=
"ViewMsg66"
;
this
.
title
=
""
;
this
.
content
=
"该示例展示各编辑器插件的呈现样式"
;
this
.
closeMode
=
0
;
this
.
position
=
"TOP"
;
this
.
type
=
"info"
;
this
.
isEnableRemove
=
false
;
this
.
order
=
1
;
this
.
dynamicMode
=
"STATIC"
;
this
.
hasMessageTemp
=
false
;
this
.
messageType
=
"TEXT"
;
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg66MessageServiceBase
*/
public
translateMessageTemp
(
target
:
any
,
context
:
any
,
viewparam
:
any
,
item
?:
any
){
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"HTML"
)){
Object
.
assign
(
target
,{
title
:
``
});
Object
.
assign
(
target
,{
content
:
``
});
}
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"TEXT"
)){
Object
.
assign
(
target
,{
title
:
""
});
Object
.
assign
(
target
,{
content
:
""
});
}
}
}
\ No newline at end of file
app_Web/src/message/view-msg66/view-msg66-message.ts
0 → 100644
浏览文件 @
287fc3bb
import
ViewMsg66MessageServiceBase
from
'./view-msg66-message-base'
;
/**
* 编辑器插件示例视图消息服务对象
*
* @export
* @class ViewMsg66MessageService
*/
export
default
class
ViewMsg66MessageService
extends
ViewMsg66MessageServiceBase
{
/**
* Creates an instance of ViewMsg66MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg66MessageService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
287fc3bb
...
@@ -2075,6 +2075,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
...
@@ -2075,6 +2075,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup13"
:[
"VMGroup13"
:[
{
"tag"
:
"ViewMsg12"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
{
"tag"
:
"ViewMsg12"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
],
"VMGroup67"
:[
{
"tag"
:
"ViewMsg66"
,
"position"
:
"TOP"
,
"type"
:
"INFO"
}
],
"VMGroup39"
:[
"VMGroup39"
:[
{
"tag"
:
"ViewMsg38"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
{
"tag"
:
"ViewMsg38"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
],
...
...
app_Web/src/pages/sample/ibizsample0001-usr3-edit-view/ibizsample0001-usr3-edit-view-base.vue
浏览文件 @
287fc3bb
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
</div>
</div>
<div
class=
'view-top-messages'
>
<div
class=
'view-top-messages'
>
</div>
<
app-alert-group
position=
'TOP'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup67'
viewname=
'ibizsample0001usr3editview'
></app-alert-group>
<
/div>
<div
class=
"content-container"
>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
<div
class=
'view-body-messages'
>
</div>
<
app-alert-group
position=
'BODY'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup67'
viewname=
'ibizsample0001usr3editview'
></app-alert-group>
<
/div>
<view
_form
<view
_form
:viewState=
"viewState"
:viewState=
"viewState"
:viewparams=
"viewparams"
:viewparams=
"viewparams"
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</view
_form
>
</view
_form
>
</div>
</div>
<div
class=
'view-bottom-messages'
>
<div
class=
'view-bottom-messages'
>
</div>
<
app-alert-group
position=
'BOTTOM'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup67'
viewname=
'ibizsample0001usr3editview'
></app-alert-group>
<
/div>
</card>
</card>
</div>
</div>
</
template
>
</
template
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录