Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
2450369b
提交
2450369b
编写于
2年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
c026e326
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
89 行增加
和
321 行删除
+89
-321
grid-view-load-ui-logic-base.ts
...b/src/uiservice/ibizorder/grid-view-load-ui-logic-base.ts
+49
-155
open-yu-que-ui-logic-base.ts
app_Web/src/uiservice/ibizorder/open-yu-que-ui-logic-base.ts
+27
-153
default-searchform-base.vue
...zappeditor/default-searchform/default-searchform-base.vue
+2
-2
default-searchform-base.vue
...s/ibizbook/default-searchform/default-searchform-base.vue
+2
-2
main-form-base.vue
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
+5
-5
list-exp-list-base.vue
...rc/widgets/ibizorder/list-exp-list/list-exp-list-base.vue
+4
-4
未找到文件。
app_Web/src/uiservice/ibizorder/grid-view-load-ui-logic-base.ts
浏览文件 @
2450369b
import
{
ILogicNode
}
from
"@/interface/logic"
;
import
{
UIActionContext
,
UILogicAppendParamNode
,
UILogicBeginNode
,
UILogicBindParamNode
,
UILogicCopyParamNode
,
UILogicDataSetNode
,
UILogicDeActionNode
,
UILogicDebugParamNode
,
UILogicDeLogicNode
,
UILogicDeUIActionNode
,
UILogicEndNode
,
UILogicMsgboxNode
,
UILogicPrepareParamNode
,
UILogicRawCodeNode
,
UILogicReNewParamNode
,
UILogicResetParamNode
,
UILogicSortParamNode
,
UILogicThrowExceptionNode
,
UILogicViewctrlFireEventNode
,
UILogicViewctrlInvokeNode
}
from
"@/logic/ui-logic"
;
/**
/**
* 自定义表格数据加载
* 自定义表格数据加载
*
*
...
@@ -167,21 +143,6 @@ export default class GridViewLoadUILogicBase {
...
@@ -167,21 +143,6 @@ export default class GridViewLoadUILogicBase {
},
},
];
];
/**
* 逻辑节点
*
* @protected
* @type {ILogicNode[]}
* @memberof GridViewLoadUILogicBase
*/
protected
logicNodes
:
ILogicNode
[]
=
[
{
codeName
:
'Begin'
,
name
:
'开始'
,
logicNodeType
:
'BEGIN'
,
logicLinks
:
[
{
name
:
'连接名称'
,
dstLogicNode
:
'BINDPARAM1'
,
}
]
},
{
codeName
:
'BINDPARAM1'
,
name
:
'绑定当前搜索表单'
,
logicNodeType
:
'BINDPARAM'
,
dstParam
:
'searchForm'
,
srcParam
:
'view'
,
srcFieldName
:
'searchForm'
,
logicLinks
:
[
{
name
:
'连接名称'
,
dstLogicNode
:
'VIEWCTRLINVOKE1'
,
}
]
},
{
codeName
:
'VIEWCTRLINVOKE1'
,
name
:
'视图部件调用'
,
logicNodeType
:
'VIEWCTRLINVOKE'
,
dstParam
:
'viewParam'
,
srcParam
:
'searchForm'
,
logicLinks
:
[
{
name
:
'连接名称'
,
dstLogicNode
:
'VIEWCTRLINVOKE2'
,
}
]
},
{
codeName
:
'END1'
,
name
:
'结束'
,
logicNodeType
:
'END'
,
returnType
:
'NONEVALUE'
,
returnRawValue
:
''
,
},
{
codeName
:
'VIEWCTRLINVOKE2'
,
name
:
'视图部件调用'
,
logicNodeType
:
'VIEWCTRLINVOKE'
,
dstParam
:
'viewParam'
,
srcParam
:
'grid'
,
logicLinks
:
[
{
name
:
'连接名称'
,
dstLogicNode
:
'END1'
,
}
]
},
];
/**
/**
* 执行前
* 执行前
*
*
...
@@ -215,10 +176,7 @@ export default class GridViewLoadUILogicBase {
...
@@ -215,10 +176,7 @@ export default class GridViewLoadUILogicBase {
async
execute
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actioncontext
?:
any
,
srfParentDeName
?:
string
)
{
async
execute
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actioncontext
?:
any
,
srfParentDeName
?:
string
)
{
try
{
try
{
const
actionContext
=
this
.
beforeExecute
(
args
,
context
,
params
,
$event
,
xData
,
actioncontext
,
srfParentDeName
);
const
actionContext
=
this
.
beforeExecute
(
args
,
context
,
params
,
$event
,
xData
,
actioncontext
,
srfParentDeName
);
if
(
!
this
.
startLogicNode
)
{
await
this
.
execute_Begin_node
(
actionContext
);
throw
new
Error
(
'没有开始节点'
);
}
await
this
.
executeNode
(
this
.
startLogicNode
,
actionContext
);
return
actionContext
.
getResult
();
return
actionContext
.
getResult
();
}
catch
(
error
:
any
)
{
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
throw
new
Error
(
`
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
...
@@ -226,122 +184,58 @@ export default class GridViewLoadUILogicBase {
...
@@ -226,122 +184,58 @@ export default class GridViewLoadUILogicBase {
}
}
/**
/**
*
执行节点
*
处理参数
*
*
* @param {ILogicNode} logicNode
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {UIActionContext} actionContext
* @memberof GridViewLoadUILogicBase
*/
*/
async
executeNode
(
logicNodeName
:
string
,
actionContext
:
UIActionContext
)
{
protected
async
execute_begin_node
(
actionContext
:
UIActionContext
)
{
const
logicNode
=
this
.
logicNodes
.
find
((
node
:
ILogicNode
)
=>
node
.
codeName
===
logicNodeName
)
as
ILogicNode
;
// 自定义表格数据加载
if
(
!
logicNode
)
{
actionContext
.
setResult
(
actionContext
.
defaultParam
.
getReal
());
console
.
log
(
`未找到
${
logicNodeName
}
节点`
);
console
.
log
(
'已完成执行 开始 节点'
);
}
await
this
.
execute_bindparam1_node
(
actionContext
);
let
result
:
any
=
{
actionContext
};
}
try
{
switch
(
logicNode
.
logicNodeType
)
{
// 开始节点
case
'BEGIN'
:
result
=
await
new
UILogicBeginNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 准备参数节点
case
'PREPAREJSPARAM'
:
result
=
await
new
UILogicPrepareParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 重置参数节点
case
'RESETPARAM'
:
result
=
await
new
UILogicResetParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 拷贝参数
case
'COPYPARAM'
:
result
=
await
new
UILogicCopyParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 绑定参数
case
'BINDPARAM'
:
result
=
await
new
UILogicBindParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 重新建立参数
case
'RENEWPARAM'
:
result
=
await
new
UILogicReNewParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 调用实体界面行为
case
'DEUIACTION'
:
result
=
await
new
UILogicDeUIActionNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 行为处理节点
case
'DEACTION'
:
result
=
await
new
UILogicDeActionNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 实体处理逻辑
case
'DELOGIC'
:
result
=
await
new
UILogicDeLogicNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 实体数据集
case
'DEDATASET'
:
result
=
await
new
UILogicDataSetNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 附加到数组参数
case
'APPENDPARAM'
:
result
=
await
new
UILogicAppendParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 排序数组参数
case
'SORTPARAM'
:
result
=
await
new
UILogicSortParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 视图部件调用
case
'VIEWCTRLINVOKE'
:
result
=
await
new
UILogicViewctrlInvokeNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 视图部件事件触发
case
'VIEWCTRLFIREEVENT'
:
result
=
await
new
UILogicViewctrlFireEventNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 调试逻辑参数
case
'DEBUGPARAM'
:
result
=
await
new
UILogicDebugParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 消息弹窗
case
'MSGBOX'
:
result
=
await
new
UILogicMsgboxNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 前端代码
case
'RAWJSCODE'
:
result
=
await
new
UILogicRawCodeNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 异常处理
case
'THROWEXCEPTION'
:
result
=
await
new
UILogicThrowExceptionNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 结束
case
'END'
:
result
=
await
new
UILogicEndNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
default
:
console
.
log
(
`
${
logicNode
.
logicNodeType
}
暂未支持`
);
}
// 有后续节点时继续递归,反之返回,抛异常无返回值
if
(
result
&&
result
.
nextNodes
&&
result
.
nextNodes
.
length
>
0
)
{
await
this
.
executeNextNodes
(
result
.
nextNodes
,
actionContext
);
}
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
}
/**
/**
*
执行后续节点集合
*
处理参数
*
*
* @param {any[]} nextNodes
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {UIActionContext} actionContext
* @memberof GridViewLoadUILogicBase
*/
*/
public
async
executeNextNodes
(
nextNodes
:
any
[],
actionContext
:
UIActionContext
)
{
protected
async
execute_bindparam1_node
(
actionContext
:
UIActionContext
)
{
if
(
nextNodes
&&
(
nextNodes
.
length
>
0
))
{
// 自定义表格数据加载
for
(
let
nextNode
of
nextNodes
)
{
// TODO 等待补充
await
this
.
executeNode
(
nextNode
,
actionContext
);
console
.
log
(
'已完成执行 绑定当前搜索表单 节点'
);
}
await
this
.
execute_viewctrlinvoke1_node
(
actionContext
);
}
}
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_viewctrlinvoke1_node
(
actionContext
:
UIActionContext
)
{
// 自定义表格数据加载
// TODO 等待补充
console
.
log
(
'已完成执行 视图部件调用 节点'
);
await
this
.
execute_viewctrlinvoke2_node
(
actionContext
);
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_end1_node
(
actionContext
:
UIActionContext
)
{
// 自定义表格数据加载
// TODO 等待补充
console
.
log
(
'已完成执行 结束 节点'
);
}
/**
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_viewctrlinvoke2_node
(
actionContext
:
UIActionContext
)
{
// 自定义表格数据加载
// TODO 等待补充
console
.
log
(
'已完成执行 视图部件调用 节点'
);
await
this
.
execute_end1_node
(
actionContext
);
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/uiservice/ibizorder/open-yu-que-ui-logic-base.ts
浏览文件 @
2450369b
import
{
ILogicNode
}
from
"@/interface/logic"
;
import
{
UIActionContext
,
UILogicAppendParamNode
,
UILogicBeginNode
,
UILogicBindParamNode
,
UILogicCopyParamNode
,
UILogicDataSetNode
,
UILogicDeActionNode
,
UILogicDebugParamNode
,
UILogicDeLogicNode
,
UILogicDeUIActionNode
,
UILogicEndNode
,
UILogicMsgboxNode
,
UILogicPrepareParamNode
,
UILogicRawCodeNode
,
UILogicReNewParamNode
,
UILogicResetParamNode
,
UILogicSortParamNode
,
UILogicThrowExceptionNode
,
UILogicViewctrlFireEventNode
,
UILogicViewctrlInvokeNode
}
from
"@/logic/ui-logic"
;
/**
/**
* 打开语雀文档
* 打开语雀文档
*
*
...
@@ -79,19 +55,6 @@ export default class OpenYuQueUILogicBase {
...
@@ -79,19 +55,6 @@ export default class OpenYuQueUILogicBase {
},
},
];
];
/**
* 逻辑节点
*
* @protected
* @type {ILogicNode[]}
* @memberof OpenYuQueUILogicBase
*/
protected
logicNodes
:
ILogicNode
[]
=
[
{
codeName
:
'Begin'
,
name
:
'开始'
,
logicNodeType
:
'BEGIN'
,
logicLinks
:
[
{
name
:
'连接名称'
,
dstLogicNode
:
'DEUIACTION1'
,
}
]
},
{
codeName
:
'END1'
,
name
:
'结束'
,
logicNodeType
:
'END'
,
returnType
:
'NONEVALUE'
,
returnRawValue
:
''
,
},
{
codeName
:
'DEUIACTION1'
,
name
:
'界面行为'
,
logicNodeType
:
'DEUIACTION'
,
dstParam
:
'Default'
,
logicLinks
:
[
{
name
:
'连接名称'
,
dstLogicNode
:
'END1'
,
}
]
},
];
/**
/**
* 执行前
* 执行前
*
*
...
@@ -125,10 +88,7 @@ export default class OpenYuQueUILogicBase {
...
@@ -125,10 +88,7 @@ export default class OpenYuQueUILogicBase {
async
execute
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actioncontext
?:
any
,
srfParentDeName
?:
string
)
{
async
execute
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actioncontext
?:
any
,
srfParentDeName
?:
string
)
{
try
{
try
{
const
actionContext
=
this
.
beforeExecute
(
args
,
context
,
params
,
$event
,
xData
,
actioncontext
,
srfParentDeName
);
const
actionContext
=
this
.
beforeExecute
(
args
,
context
,
params
,
$event
,
xData
,
actioncontext
,
srfParentDeName
);
if
(
!
this
.
startLogicNode
)
{
await
this
.
execute_Begin_node
(
actionContext
);
throw
new
Error
(
'没有开始节点'
);
}
await
this
.
executeNode
(
this
.
startLogicNode
,
actionContext
);
return
actionContext
.
getResult
();
return
actionContext
.
getResult
();
}
catch
(
error
:
any
)
{
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
throw
new
Error
(
`
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
...
@@ -136,122 +96,36 @@ export default class OpenYuQueUILogicBase {
...
@@ -136,122 +96,36 @@ export default class OpenYuQueUILogicBase {
}
}
/**
/**
*
执行节点
*
处理参数
*
*
* @param {ILogicNode} logicNode
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {UIActionContext} actionContext
* @memberof OpenYuQueUILogicBase
*/
*/
async
executeNode
(
logicNodeName
:
string
,
actionContext
:
UIActionContext
)
{
protected
async
execute_begin_node
(
actionContext
:
UIActionContext
)
{
const
logicNode
=
this
.
logicNodes
.
find
((
node
:
ILogicNode
)
=>
node
.
codeName
===
logicNodeName
)
as
ILogicNode
;
// 打开语雀文档
if
(
!
logicNode
)
{
actionContext
.
setResult
(
actionContext
.
defaultParam
.
getReal
());
console
.
log
(
`未找到
${
logicNodeName
}
节点`
);
console
.
log
(
'已完成执行 开始 节点'
);
}
await
this
.
execute_deuiaction1_node
(
actionContext
);
let
result
:
any
=
{
actionContext
};
}
try
{
switch
(
logicNode
.
logicNodeType
)
{
// 开始节点
case
'BEGIN'
:
result
=
await
new
UILogicBeginNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 准备参数节点
case
'PREPAREJSPARAM'
:
result
=
await
new
UILogicPrepareParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 重置参数节点
case
'RESETPARAM'
:
result
=
await
new
UILogicResetParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 拷贝参数
case
'COPYPARAM'
:
result
=
await
new
UILogicCopyParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 绑定参数
case
'BINDPARAM'
:
result
=
await
new
UILogicBindParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 重新建立参数
case
'RENEWPARAM'
:
result
=
await
new
UILogicReNewParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 调用实体界面行为
case
'DEUIACTION'
:
result
=
await
new
UILogicDeUIActionNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 行为处理节点
case
'DEACTION'
:
result
=
await
new
UILogicDeActionNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 实体处理逻辑
case
'DELOGIC'
:
result
=
await
new
UILogicDeLogicNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 实体数据集
case
'DEDATASET'
:
result
=
await
new
UILogicDataSetNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 附加到数组参数
case
'APPENDPARAM'
:
result
=
await
new
UILogicAppendParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 排序数组参数
case
'SORTPARAM'
:
result
=
await
new
UILogicSortParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 视图部件调用
case
'VIEWCTRLINVOKE'
:
result
=
await
new
UILogicViewctrlInvokeNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 视图部件事件触发
case
'VIEWCTRLFIREEVENT'
:
result
=
await
new
UILogicViewctrlFireEventNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 调试逻辑参数
case
'DEBUGPARAM'
:
result
=
await
new
UILogicDebugParamNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 消息弹窗
case
'MSGBOX'
:
result
=
await
new
UILogicMsgboxNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 前端代码
case
'RAWJSCODE'
:
result
=
await
new
UILogicRawCodeNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 异常处理
case
'THROWEXCEPTION'
:
result
=
await
new
UILogicThrowExceptionNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
// 结束
case
'END'
:
result
=
await
new
UILogicEndNode
().
executeNode
(
logicNode
,
actionContext
);
break
;
default
:
console
.
log
(
`
${
logicNode
.
logicNodeType
}
暂未支持`
);
}
// 有后续节点时继续递归,反之返回,抛异常无返回值
if
(
result
&&
result
.
nextNodes
&&
result
.
nextNodes
.
length
>
0
)
{
await
this
.
executeNextNodes
(
result
.
nextNodes
,
actionContext
);
}
}
catch
(
error
:
any
)
{
throw
new
Error
(
`
${
error
&&
error
.
message
?
error
.
message
:
'发生未知错误!'
}
`
);
}
}
/**
/**
*
执行后续节点集合
*
处理参数
*
*
* @param {any[]} nextNodes
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {UIActionContext} actionContext
* @memberof OpenYuQueUILogicBase
*/
*/
public
async
executeNextNodes
(
nextNodes
:
any
[],
actionContext
:
UIActionContext
)
{
protected
async
execute_end1_node
(
actionContext
:
UIActionContext
)
{
if
(
nextNodes
&&
(
nextNodes
.
length
>
0
))
{
// 打开语雀文档
for
(
let
nextNode
of
nextNodes
)
{
// TODO 等待补充
await
this
.
executeNode
(
nextNode
,
actionContext
);
console
.
log
(
'已完成执行 结束 节点'
);
}
}
}
/**
}
* 处理参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
*/
protected
async
execute_deuiaction1_node
(
actionContext
:
UIActionContext
)
{
// 打开语雀文档
// TODO 等待补充
console
.
log
(
'已完成执行 界面行为 节点'
);
await
this
.
execute_end1_node
(
actionContext
);
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizappeditor/default-searchform/default-searchform-base.vue
浏览文件 @
2450369b
...
@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
load
(
opt
:
any
=
{}):
void
{
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
};
const
arg
:
any
=
{
...
opt
};
...
@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
}
;
const
arg
:
any
=
{
...
opt
}
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
2450369b
...
@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
load
(
opt
:
any
=
{}):
void
{
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
3Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
};
const
arg
:
any
=
{
...
opt
};
...
@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
3Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
}
;
const
arg
:
any
=
{
...
opt
}
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
浏览文件 @
2450369b
...
@@ -1800,7 +1800,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1800,7 +1800,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
load
(
opt
:
any
=
{}):
void
{
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
};
const
arg
:
any
=
{
...
opt
};
...
@@ -1835,7 +1835,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1835,7 +1835,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
loadDraft
(
opt
:
any
=
{}):
void
{
public
loadDraft
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loaddraftAction
){
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
}
;
const
arg
:
any
=
{
...
opt
}
;
...
@@ -1897,7 +1897,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1897,7 +1897,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
return
;
}
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
@@ -2005,7 +2005,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2005,7 +2005,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
return
;
}
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
public
remove
(
opt
:
Array
<
any
>
=
[],
showResultInfo
?:
boolean
):
Promise
<
any
>
{
public
remove
(
opt
:
Array
<
any
>
=
[],
showResultInfo
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
if
(
!
this
.
removeAction
){
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKOptionView'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
opt
[
0
];
const
arg
:
any
=
opt
[
0
];
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/list-exp-list/list-exp-list-base.vue
浏览文件 @
2450369b
...
@@ -522,7 +522,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
...
@@ -522,7 +522,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
*/
public
load
(
opt
:
any
=
{}):
void
{
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{...
opt
};
const
arg
:
any
=
{...
opt
};
...
@@ -638,7 +638,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
...
@@ -638,7 +638,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.removeAction'
)
as
string
)
});
return
;
return
;
}
}
if
(
datas
.
length
===
0
)
{
if
(
datas
.
length
===
0
)
{
...
@@ -733,7 +733,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
...
@@ -733,7 +733,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
try
{
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
}
else
{
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
@@ -741,7 +741,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
...
@@ -741,7 +741,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
}
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.warning'
)
as
string
),
desc
:
'IBIZOrderListExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.warning'
)
as
string
),
desc
:
'IBIZOrderListExpView'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
if
(
item
.
ibizorder
){
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录