Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
f21f8b6a
提交
f21f8b6a
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
fc995e39
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
77 行增加
和
0 行删除
+77
-0
ibizappview_en_US.ts
...c/locale/lanres/entities/ibizappview/ibizappview_en_US.ts
+1
-0
ibizappview_zh_CN.ts
...c/locale/lanres/entities/ibizappview/ibizappview_zh_CN.ts
+1
-0
ibizappview-ui-service-base.ts
.../src/uiservice/ibizappview/ibizappview-ui-service-base.ts
+43
-0
view-list-list-base.vue
...idgets/ibizappview/view-list-list/view-list-list-base.vue
+32
-0
未找到文件。
app_Web/src/locale/lanres/entities/ibizappview/ibizappview_en_US.ts
浏览文件 @
f21f8b6a
...
@@ -83,6 +83,7 @@ export default {
...
@@ -83,6 +83,7 @@ export default {
print
:
"Print"
,
print
:
"Print"
,
exportmodel
:
"Export Data Model"
,
exportmodel
:
"Export Data Model"
,
import
:
"数据导入"
,
import
:
"数据导入"
,
ibizappview_opendocument
:
"打开文档"
,
},
},
},
},
viewchart_chart
:
{
viewchart_chart
:
{
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizappview/ibizappview_zh_CN.ts
浏览文件 @
f21f8b6a
...
@@ -82,6 +82,7 @@ export default {
...
@@ -82,6 +82,7 @@ export default {
print
:
"打印"
,
print
:
"打印"
,
exportmodel
:
"导出数据模型"
,
exportmodel
:
"导出数据模型"
,
import
:
"数据导入"
,
import
:
"数据导入"
,
ibizappview_opendocument
:
"打开文档"
,
},
},
},
},
viewchart_chart
:
{
viewchart_chart
:
{
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/uiservice/ibizappview/ibizappview-ui-service-base.ts
浏览文件 @
f21f8b6a
...
@@ -162,6 +162,49 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
...
@@ -162,6 +162,49 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
openIndexViewTab
(
data
);
openIndexViewTab
(
data
);
}
}
/**
* 打开文档
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
IBIZAPPVIEW_openDocument
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
ibizappview
:
'%ibizappview%'
});
Object
.
assign
(
params
,
{
ibizappviewid
:
'%ibizappview%'
});
Object
.
assign
(
params
,
{
ibizappviewname
:
'%ibizappviewname%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
const
openPopupApp
=
(
url
:
string
)
=>
{
window
.
open
(
url
,
'_blank'
);
return
null
;
}
const
url
=
`
${
data
.
documentaddress
}
`
;
openPopupApp
(
url
);
}
/**
/**
* 获取指定数据的重定向页面
* 获取指定数据的重定向页面
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizappview/view-list-list/view-list-list-base.vue
浏览文件 @
f21f8b6a
...
@@ -632,6 +632,34 @@ export default class ViewListBase extends Vue implements ControlInterface {
...
@@ -632,6 +632,34 @@ export default class ViewListBase extends Vue implements ControlInterface {
this
.
Import
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZAPPVIEW"
);
this
.
Import
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZAPPVIEW"
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
list_operation_u59112f7_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
];
}
// 界面行为
const
curUIService
:
IBIZAPPVIEWUIService
=
new
IBIZAPPVIEWUIService
();
curUIService
.
IBIZAPPVIEW_openDocument
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZAPPVIEW"
);
}
/**
/**
* 新建
* 新建
*
*
...
@@ -1611,6 +1639,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
...
@@ -1611,6 +1639,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
* @memberof ViewListBase
* @memberof ViewListBase
*/
*/
public
actionModel
:
any
=
{
public
actionModel
:
any
=
{
"openDocument"
:{
name
:
"openDocument"
,
icon
:
""
,
caption
:
"打开文档"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"SINGLEKEY"
},
};
};
/**
/**
...
@@ -1662,6 +1691,9 @@ export default class ViewListBase extends Vue implements ControlInterface {
...
@@ -1662,6 +1691,9 @@ export default class ViewListBase extends Vue implements ControlInterface {
if
(
Object
.
is
(
'Import'
,
tag
))
{
if
(
Object
.
is
(
'Import'
,
tag
))
{
this
.
list_quicktoolbar_tbitem23_click
(
data
,
tag
,
$event
);
this
.
list_quicktoolbar_tbitem23_click
(
data
,
tag
,
$event
);
}
}
if
(
Object
.
is
(
'openDocument'
,
tag
))
{
this
.
list_operation_u59112f7_click
(
data
,
tag
,
$event
);
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录