Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
9d044396
提交
9d044396
编写于
2年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
d4ed2061
变更
26
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
1644 行增加
和
17 行删除
+1644
-17
index.ts
app_Web/src/logic/ui-logic/index.ts
+2
-2
ui-logic-active-container-param.ts
...c/ui-logic/logic-param/ui-logic-active-container-param.ts
+80
-0
ui-logic-active-ctrl-param.ts
.../logic/ui-logic/logic-param/ui-logic-active-ctrl-param.ts
+111
-0
ui-logic-active-view-param.ts
.../logic/ui-logic/logic-param/ui-logic-active-view-param.ts
+130
-0
ui-logic-app-global-param.ts
...c/logic/ui-logic/logic-param/ui-logic-app-global-param.ts
+85
-0
ui-logic-app-param.ts
app_Web/src/logic/ui-logic/logic-param/ui-logic-app-param.ts
+116
-0
ui-logic-ctrl-param.ts
...Web/src/logic/ui-logic/logic-param/ui-logic-ctrl-param.ts
+61
-0
ui-logic-entity-list-param.ts
.../logic/ui-logic/logic-param/ui-logic-entity-list-param.ts
+63
-0
ui-logic-entity-page-param.ts
.../logic/ui-logic/logic-param/ui-logic-entity-page-param.ts
+62
-0
ui-logic-entity-param.ts
...b/src/logic/ui-logic/logic-param/ui-logic-entity-param.ts
+51
-0
ui-logic-filter-param.ts
...b/src/logic/ui-logic/logic-param/ui-logic-filter-param.ts
+31
-0
ui-logic-last-return-param.ts
.../logic/ui-logic/logic-param/ui-logic-last-return-param.ts
+31
-0
ui-logic-nav-context-param.ts
.../logic/ui-logic/logic-param/ui-logic-nav-context-param.ts
+43
-0
ui-logic-nav-view-param.ts
...src/logic/ui-logic/logic-param/ui-logic-nav-view-param.ts
+42
-0
ui-logic-param-base.ts
...Web/src/logic/ui-logic/logic-param/ui-logic-param-base.ts
+248
-0
ui-logic-param-service.ts
.../src/logic/ui-logic/logic-param/ui-logic-param-service.ts
+108
-0
ui-logic-route-view-session-param.ts
...ui-logic/logic-param/ui-logic-route-view-session-param.ts
+87
-0
ui-logic-simple-list-param.ts
.../logic/ui-logic/logic-param/ui-logic-simple-list-param.ts
+63
-0
ui-logic-simple-param.ts
...b/src/logic/ui-logic/logic-param/ui-logic-simple-param.ts
+94
-0
ui-logic-view-navdata-param.ts
...logic/ui-logic/logic-param/ui-logic-view-navdata-param.ts
+46
-0
ui-logic-view-session-param.ts
...logic/ui-logic/logic-param/ui-logic-view-session-param.ts
+46
-0
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
card-navigation-dataview-base.vue
...ard-navigation-dataview/card-navigation-dataview-base.vue
+4
-4
main-grid-base.vue
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
+21
-7
main-grid-model.ts
app_Web/src/widgets/ibizorder/main-grid/main-grid-model.ts
+15
-0
未找到文件。
app_Web/src/logic/ui-logic/index.ts
浏览文件 @
9d044396
export
*
from
'./logic-node'
;
export
{
UIActionContext
}
from
'./uiaction-context'
;
export
{
UIActionContext
}
from
'./uiaction-context'
;
export
{
UILogicParamService
}
from
'./logic-param/ui-logic-param-service'
;
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-active-container-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 当前容器对象
*
* @export
* @class UILogicActiveContainerParam
*/
export
class
UILogicActiveContainerParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicActiveContainerParam.
* @param {*} opts
* @memberof UILogicActiveContainerParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicActiveContainerParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
activeContainerParam
;
this
.
setReal
(
params
.
actioncontext
);
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof UILogicActiveContainerParam
*/
public
reset
(
strName
:
string
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前容器类型,无法重置指定属性`
);
}
/**
* 重置全部
*
* @memberof UILogicActiveContainerParam
*/
public
resetAll
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前容器类型,无法重置全部`
);
}
/**
* 拷贝当前变量到指定变量
*
* @param {*} dstParam
* @memberof UILogicActiveContainerParam
*/
public
copyTo
(
dstParam
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前容器类型,无法拷贝当前变量到指定变量`
);
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof UILogicActiveContainerParam
*/
public
bind
(
opts
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前容器类型,无法绑定指定参数对象`
);
}
/**
* 重新建立参数对象
*
* @memberof UILogicActiveContainerParam
*/
public
renew
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前容器类型,无法重新建立参数对象`
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-active-ctrl-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 当前部件对象参数
*
* @export
* @class UILogicActiveCtrlParam
*/
export
class
UILogicActiveCtrlParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicActiveCtrlParam.
* @param {*} opts
* @memberof UILogicActiveCtrlParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicActiveCtrlParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
activeCtrlParam
;
this
.
setReal
(
this
.
getActiveCtrl
(
params
));
}
/**
* 获取激活部件
*
* @private
* @param {any} params
* @memberof UILogicActiveCtrlParam
*/
private
getActiveCtrl
(
params
:
any
)
{
const
{
actioncontext
,
xData
}
=
params
;
console
.
log
(
2222
,
params
);
if
(
xData
)
{
return
xData
;
}
else
{
// 部件触发肯定存在
if
(
actioncontext
.
viewCtx
&&
actioncontext
.
viewCtx
.
ctrl
)
{
return
actioncontext
.
viewCtx
.
ctrl
;
}
else
{
// 非部件触发(视图触发)
if
(
actioncontext
.
viewCtx
&&
actioncontext
.
viewCtx
.
view
)
{
const
view
=
actioncontext
.
viewCtx
.
view
;
const
xDataMap
:
string
[]
=
[
'GRID'
,
'LIST'
,
'FORM'
,
'TREEVIEW'
,
'DATAVIEW'
];
// const xDataControl = (view.viewInstance.getPSControls?.() || []).find((control: any) => xDataMap.indexOf(control.controlType) !== -1);
// const xDataCtrl = view.$refs[xDataControl.name.toLowerCase()].ctrl;
// return xDataCtrl ? xDataCtrl : null;
return
null
;
}
else
{
return
null
;
}
}
}
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof UILogicActiveCtrlParam
*/
public
reset
(
strName
:
string
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前部件类型,无法重置指定属性`
);
}
/**
* 重置全部
*
* @memberof UILogicActiveCtrlParam
*/
public
resetAll
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前部件类型,无法重置全部`
);
}
/**
* 拷贝当前变量到指定变量
*
* @param {*} dstParam
* @memberof UILogicActiveCtrlParam
*/
public
copyTo
(
dstParam
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前部件类型,无法拷贝当前变量到指定变量`
);
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof UILogicActiveCtrlParam
*/
public
bind
(
opts
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前部件类型,无法绑定指定参数对象`
);
}
/**
* 重新建立参数对象
*
* @memberof UILogicActiveCtrlParam
*/
public
renew
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前部件类型,无法重新建立参数对象`
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-active-view-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 当前视图
*
* @export
* @class UILogicActiveViewParam
*/
export
class
UILogicActiveViewParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicActiveViewParam.
* @param {*} opts
* @memberof UILogicActiveViewParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicActiveViewParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
activeViewParam
;
this
.
setReal
(
this
.
getActiveView
(
params
));
}
/**
* 获取激活视图
*
* @private
* @param {any} params
* @memberof UILogicActiveViewParam
*/
private
getActiveView
(
params
:
any
)
{
const
{
actioncontext
}
=
params
;
if
(
actioncontext
&&
actioncontext
.
viewCtx
&&
actioncontext
.
viewCtx
.
view
)
{
return
actioncontext
.
viewCtx
.
view
;
}
else
{
return
null
;
}
}
/**
* 获取指定属性值(获取当前视图指定名称部件)
*
* @param {string} strName
* @memberof UILogicActiveViewParam
*/
public
get
(
strName
:
string
)
{
const
actionContainer
=
this
.
actionSession
.
actionContainer
;
if
(
actionContainer
&&
actionContainer
.
viewCtx
&&
actionContainer
.
viewCtx
.
view
)
{
const
view
=
actionContainer
.
viewCtx
.
view
;
let
ctrl
=
view
.
$refs
[
strName
.
toLowerCase
()];
if
(
ctrl
)
{
return
ctrl
;
}
else
{
// 视图布局面板获取
if
(
Object
.
is
(
actionContainer
.
type
,
'VIEWLAYOUT'
))
{
const
{
args
}
=
this
.
actionSession
.
additionalParam
;
// 多数据域
if
(
args
&&
args
.
hasMulParent
)
{
ctrl
=
actionContainer
.
layoutDetailsModel
[
`
${
strName
.
toLowerCase
()}
_
${
args
.
index
}
`
];
}
else
{
ctrl
=
actionContainer
.
layoutDetailsModel
[
strName
.
toLowerCase
()];
}
if
(
ctrl
)
{
return
ctrl
;
}
else
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
无法找到指定部件`
);
}
}
else
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
无法找到指定部件`
);
}
}
}
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof UILogicActiveViewParam
*/
public
reset
(
strName
:
string
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前视图类型,无法重置指定属性`
);
}
/**
* 重置全部
*
* @memberof UILogicActiveViewParam
*/
public
resetAll
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前视图类型,无法重置全部`
);
}
/**
* 拷贝当前变量到指定变量
*
* @param {*} dstParam
* @memberof UILogicActiveViewParam
*/
public
copyTo
(
dstParam
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前视图类型,无法拷贝当前变量到指定变量`
);
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof UILogicActiveViewParam
*/
public
bind
(
opts
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前视图类型,无法绑定指定参数对象`
);
}
/**
* 重新建立参数对象
*
* @memberof UILogicActiveViewParam
*/
public
renew
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为当前视图类型,无法重新建立参数对象`
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-app-global-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 应用全局变量
*
* @export
* @class UILogicAppGlobalParam
*/
export
class
UILogicAppGlobalParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicAppGlobalParam.
* @param {*} opts
* @memberof UILogicAppGlobalParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicAppGlobalParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
appGlobalParam
;
this
.
setReal
(
this
.
getAppGlobalParam
(
params
));
}
/**
* 设置实际参数值
*
* @param {*} opts
* @memberof AppDeUILogicParamBase
*/
public
setReal
(
opts
:
any
)
{
this
.
realValue
=
opts
;
// AppServiceBase.getInstance().getAppStore().commit('addAppGlobal', { tag: this.logicParamModel.paramFieldName, param: opts });
}
/**
* 获取应用全局变量
*
* @private
* @param {any} params
* @memberof UILogicAppGlobalParam
*/
private
getAppGlobalParam
(
params
:
any
)
{
const
{
actioncontext
}
=
params
;
const
{
viewCtx
}
=
actioncontext
;
if
(
viewCtx
&&
viewCtx
[
'appGlobal'
])
{
let
result
=
actioncontext
.
viewCtx
[
'appGlobal'
][
this
.
logicParamModel
.
paramFieldName
];
if
(
!
result
)
{
result
=
{};
}
return
result
;
}
}
/**
* 设置指定属性值
*
* @param {string} strName
* @param {*} value
* @memberof UILogicAppGlobalParam
*/
public
set
(
strName
:
string
,
value
:
any
)
{
this
.
realValue
[
strName
]
=
value
;
// AppServiceBase.getInstance().getAppStore().commit('addAppGlobal', { tag: this.logicParamModel.paramFieldName, param: this.realValue });
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof UILogicAppGlobalParam
*/
public
reset
(
strName
:
string
)
{
this
.
realValue
[
strName
]
=
null
;
// AppServiceBase.getInstance().getAppStore().commit('addAppGlobal', { tag: this.logicParamModel.paramFieldName, param: this.realValue });
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-app-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 应用程序变量
*
* @export
* @class AppDeUILogicAppParam
*/
export
class
AppDeUILogicAppParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicAppParam.
* @param {*} opts
* @memberof AppDeUILogicAppParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicAppParam
*/
protected
init
(
params
:
any
)
{
this
.
setReal
(
this
.
getActiveApp
(
params
));
this
.
logicParamType
=
UILogicParamType
.
applicationParam
;
}
/**
* 获取激活视图
*
* @private
* @param {any} params
* @memberof AppDeUILogicAppParam
*/
private
getActiveApp
(
params
:
any
)
{
const
{
actioncontext
}
=
params
;
if
(
actioncontext
&&
actioncontext
.
viewCtx
&&
actioncontext
.
viewCtx
.
app
)
{
return
actioncontext
.
viewCtx
.
app
;
}
else
{
return
null
;
}
}
/**
* 设置指定属性值
*
* @param {string} strName
* @param {*} value
* @memberof AppDeUILogicAppParam
*/
public
set
(
strName
:
string
,
value
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为应用程序变量类型,无法设置指定属性值`
);
}
/**
* 获取指定属性值
*
* @param {string} strName
* @memberof AppDeUILogicAppParam
*/
public
get
(
strName
:
string
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为应用程序变量类型,无法获取指定属性值`
);
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof AppDeUILogicAppParam
*/
public
reset
(
strName
:
string
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为应用程序变量类型,无法重置指定属性`
);
}
/**
* 重置全部
*
* @memberof AppDeUILogicParamBase
*/
public
resetAll
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为应用程序变量类型,无法重置全部`
);
}
/**
* 拷贝当前变量到指定变量
*
* @param {*} dstParam
* @memberof AppDeUILogicParamBase
*/
public
copyTo
(
dstParam
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为应用程序变量类型,无法拷贝当前变量到指定变量`
);
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof AppDeUILogicParamBase
*/
public
bind
(
opts
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为应用程序变量类型,无法绑定指定参数对象`
);
}
/**
* 重新建立参数对象
*
* @memberof AppDeUILogicParamBase
*/
public
renew
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为应用程序变量类型,无法重新建立参数对象`
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-ctrl-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 指定部件对象参数
*
* @export
* @class UILogicCtrlParam
*/
export
class
UILogicCtrlParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicCtrlParam.
* @param {*} opts
* @memberof UILogicCtrlParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicCtrlParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
ctrlParam
;
this
.
setReal
({});
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof UILogicCtrlParam
*/
public
reset
(
strName
:
string
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为指定部件类型,无法重置指定属性`
);
}
/**
* 重置全部
*
* @memberof UILogicCtrlParam
*/
public
resetAll
()
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为指定部件类型,无法重置全部`
);
}
/**
* 拷贝当前变量到指定变量
*
* @param {*} dstParam
* @memberof UILogicCtrlParam
*/
public
copyTo
(
dstParam
:
any
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
为指定部件类型,无法拷贝当前变量到指定变量`
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-entity-list-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 逻辑数据对象列表参数
*
* @export
* @class AppDeUILogicEntityListParam
*/
export
class
AppDeUILogicEntityListParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicEntityListParam.
* @param {*} opts
* @memberof AppDeUILogicEntityListParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicEntityListParam
*/
protected
init
(
params
:
any
)
{
this
.
setReal
(
this
.
getDefaultValue
(
params
,
[]));
this
.
logicParamType
=
UILogicParamType
.
entityListParam
;
}
/**
* 重置全部
*
* @memberof AppDeUILogicEntityListParam
*/
public
resetAll
()
{
this
.
realValue
=
[];
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof AppDeUILogicEntityListParam
*/
public
bind
(
opts
:
any
)
{
if
(
Object
.
prototype
.
toString
.
call
(
opts
)
!==
'[object Array]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
无法绑定非数组类型参数`
);
}
this
.
setReal
(
opts
);
}
/**
* 重新建立参数对象
*
* @memberof AppDeUILogicEntityListParam
*/
public
renew
()
{
this
.
realValue
=
[];
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-entity-page-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 逻辑数据对象列表参数
*
* @export
* @class AppDeUILogicEntityPageParam
*/
export
class
AppDeUILogicEntityPageParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicEntityPageParam.
* @param {*} opts
* @memberof AppDeUILogicEntityPageParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicEntityPageParam
*/
protected
init
(
params
:
any
)
{
this
.
setReal
(
this
.
getDefaultValue
(
params
,
[]));
this
.
logicParamType
=
UILogicParamType
.
entityListParam
;
}
/**
* 重置全部
*
* @memberof AppDeUILogicEntityPageParam
*/
public
resetAll
()
{
this
.
realValue
=
[];
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof AppDeUILogicEntityPageParam
*/
public
bind
(
opts
:
any
)
{
if
(
Object
.
prototype
.
toString
.
call
(
opts
)
!==
'[object Array]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
无法绑定非数组类型参数`
);
}
this
.
setReal
(
opts
);
}
/**
* 重新建立参数对象
*
* @memberof AppDeUILogicEntityPageParam
*/
public
renew
()
{
this
.
realValue
=
[];
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-entity-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 逻辑数据对象参数
*
* @export
* @class AppDeUILogicEntityParam
*/
export
class
AppDeUILogicEntityParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicEntityParam.
* @param {*} opts
* @memberof AppDeUILogicEntityParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicEntityParam
*/
protected
init
(
params
:
any
)
{
super
.
init
(
params
);
this
.
logicParamType
=
UILogicParamType
.
entityParam
;
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof AppDeUILogicEntityParam
*/
public
bind
(
opts
:
any
)
{
let
srcObj
:
any
;
if
(
opts
)
{
if
(
Object
.
prototype
.
toString
.
call
(
opts
)
===
'[object Object]'
)
{
srcObj
=
opts
;
}
else
if
(
Object
.
prototype
.
toString
.
call
(
opts
)
===
'[object Array]'
)
{
srcObj
=
opts
[
0
];
}
else
{
srcObj
=
opts
;
}
this
.
setReal
(
srcObj
);
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-filter-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 逻辑过滤对象参数
*
* @export
* @class AppDeUILogicFilterParam
*/
export
class
AppDeUILogicFilterParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicFilterParam.
* @param {*} opts
* @memberof AppDeUILogicFilterParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicFilterParam
*/
protected
init
(
params
:
any
)
{
super
.
init
(
params
);
this
.
logicParamType
=
UILogicParamType
.
filterParam
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-last-return-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 逻辑上一次调用返回参数
*
* @export
* @class AppDeUILogicLastReturnParam
*/
export
class
AppDeUILogicLastReturnParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicLastReturnParam.
* @param {*} opts
* @memberof AppDeUILogicLastReturnParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicLastReturnParam
*/
protected
init
(
params
:
any
)
{
super
.
init
(
params
);
this
.
logicParamType
=
UILogicParamType
.
lastReturnParam
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-nav-context-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 导航上下文绑定参数
*
* @export
* @class UILogicNavContextParam
*/
export
class
UILogicNavContextParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicNavContextParam.
* @param {*} opts
* @memberof UILogicNavContextParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicNavContextParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
navContextParam
;
this
.
setReal
(
this
.
getNavContextParam
(
params
));
}
/**
* 获取导航上下文绑定参数
*
* @private
* @param {any} params
* @memberof UILogicNavContextParam
*/
private
getNavContextParam
(
params
:
any
)
{
const
{
context
}
=
params
;
return
context
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-nav-view-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 导航视图参数绑定参数
*
* @export
* @class UILogicNavViewParam
*/
export
class
UILogicNavViewParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicNavViewParam.
* @param {*} opts
* @memberof UILogicNavViewParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicNavViewParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
navViewParamParam
;
this
.
realValue
=
this
.
getNavViewParam
(
params
);
}
/**
* 获取导航视图参数绑定参数
*
* @private
* @param {any} params
* @memberof UILogicNavViewParam
*/
private
getNavViewParam
(
params
:
any
)
{
return
params
.
params
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-param-base.ts
0 → 100644
浏览文件 @
9d044396
import
{
Util
}
from
"@/utils"
;
/**
* 界面逻辑参数基类
*
* @export
* @class UILogicParamBase
*/
export
class
UILogicParamBase
{
/**
* 代码名称
*
* @type {*}
* @memberof UILogicParamBase
*/
protected
strCodeName
:
any
;
/**
* 操作会话
*
* @type {*}
* @memberof UILogicParamBase
*/
protected
actionSession
:
any
;
/**
* 逻辑参数模型
*
* @type {*}
* @memberof UILogicParamBase
*/
protected
logicParamModel
:
any
;
/**
* 逻辑类型
*
* @type {*}
* @memberof UILogicParamBase
*/
protected
logicParamType
:
any
;
/**
* 实际值
*
* @type {*}
* @memberof UILogicParamBase
*/
protected
realValue
:
any
;
/**
* Creates an instance of UILogicParamBase.
* @param {*} opts
* @memberof UILogicParamBase
*/
public
constructor
(
opts
:
any
)
{
const
{
actionSession
,
model
,
params
}
=
opts
;
this
.
actionSession
=
actionSession
;
this
.
logicParamModel
=
model
;
this
.
strCodeName
=
model
.
codeName
;
this
.
init
(
params
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicParamBase
*/
protected
init
(
params
:
any
)
{
this
.
setReal
(
this
.
getDefaultValue
(
params
,
{}));
}
/**
* 获取默认值
*
* @protected
* @memberof UILogicParamBase
*/
protected
getDefaultValue
(
params
:
any
,
defaultValue
:
any
)
{
const
{
args
}
=
params
;
if
(
this
.
logicParamModel
.
default
)
{
return
args
;
}
else
{
return
defaultValue
;
}
}
/**
* 获取实际参数值
*
* @memberof UILogicParamBase
*/
public
getReal
()
{
return
this
.
realValue
;
}
/**
* 设置实际参数值
*
* @param {*} opts
* @memberof UILogicParamBase
*/
public
setReal
(
opts
:
any
)
{
this
.
realValue
=
opts
;
}
/**
* 设置指定属性值
*
* @param {string} strName
* @param {*} value
* @memberof UILogicParamBase
*/
public
set
(
strName
:
string
,
value
:
any
)
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
realValue
)
!==
'[object Object]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
无法执行绑定非对象类型参数`
);
}
this
.
realValue
[
strName
]
=
value
;
}
/**
* 获取指定属性值
*
* @param {string} strName
* @memberof UILogicParamBase
*/
public
get
(
strName
:
string
)
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
realValue
)
!==
'[object Object]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
非对象类型参数无法执行获取指定属性值`
);
}
return
this
.
realValue
[
strName
];
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof UILogicParamBase
*/
public
reset
(
strName
:
string
)
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
realValue
)
!==
'[object Object]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
非对象类型参数无法执行重置指定属性`
);
}
this
.
realValue
[
strName
]
=
null
;
}
/**
* 重置全部
*
* @memberof UILogicParamBase
*/
public
resetAll
()
{
if
(
Object
.
prototype
.
toString
.
call
(
this
.
realValue
)
!==
'[object Object]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
非对象类型参数无法执行重置全部`
);
}
this
.
setReal
({});
}
/**
* 拷贝当前变量到指定变量
*
* @param {*} dstParam
* @memberof UILogicParamBase
*/
public
copyTo
(
dstParam
:
any
)
{
if
(
Object
.
is
(
typeof
(
this
.
realValue
),
'object'
))
{
dstParam
.
setReal
(
Util
.
deepCopy
(
this
.
realValue
));
}
else
{
dstParam
.
setReal
(
this
.
realValue
);
}
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof UILogicParamBase
*/
public
bind
(
opts
:
any
)
{
this
.
setReal
(
opts
);
}
/**
* 重新建立参数对象
*
* @memberof UILogicParamBase
*/
public
renew
()
{
this
.
setReal
({});
}
/**
* 附加参数对象
*
* @param {number} nPos
* @param {*} paramObject
* @param {number} nSrcPos
* @param {number} nSrcLength
* @memberof UILogicParamBase
*/
public
append
(
nPos
:
number
,
paramObject
:
any
,
nSrcPos
:
number
,
nSrcLength
:
number
)
{
if
(
Object
.
prototype
.
toString
.
call
(
paramObject
)
!==
'[object Array]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
源数据不是数据对象列表类型`
);
}
if
(
this
.
realValue
&&
!
Array
.
isArray
(
this
.
realValue
))
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
不是数据对象列表类型`
);
}
// 补足参数
if
(
nPos
===
-
1
)
{
nPos
=
0
;
}
if
(
nSrcPos
===
-
1
)
{
nSrcPos
=
0
;
}
if
(
nSrcLength
===
-
1
)
{
nSrcLength
=
paramObject
.
length
;
}
const
list
:
Array
<
any
>
=
this
.
realValue
;
if
(
nPos
>
list
.
length
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
插入位置溢出`
);
}
const
srcList
=
paramObject
.
slice
(
nSrcPos
,
nSrcLength
);
list
.
splice
(
nPos
,
0
,
...
srcList
);
}
/**
* 排序参数对象
*
* @param {string} strField
* @param {string} strSortDir
* @memberof UILogicParamBase
*/
public
sort
(
strField
:
string
,
strSortDir
:
string
)
{
if
(
this
.
realValue
&&
!
Array
.
isArray
(
this
.
realValue
))
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
不是数据对象列表类型`
);
}
// 是否降序
const
bSortDesc
:
boolean
=
Object
.
is
(
strSortDir
.
toLowerCase
(),
'desc'
)
?
true
:
false
;
// 对数组排序(升序)
this
.
realValue
.
sort
((
a
:
any
,
b
:
any
)
=>
{
return
a
[
strField
]
-
b
[
strField
];
})
if
(
bSortDesc
)
{
this
.
realValue
.
reverse
();
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-param-service.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicActiveContainerParam
}
from
"./ui-logic-active-container-param"
;
import
{
UILogicActiveCtrlParam
}
from
"./ui-logic-active-ctrl-param"
;
import
{
UILogicActiveViewParam
}
from
"./ui-logic-active-view-param"
;
import
{
UILogicAppGlobalParam
}
from
"./ui-logic-app-global-param"
;
import
{
AppDeUILogicAppParam
}
from
"./ui-logic-app-param"
;
import
{
UILogicCtrlParam
}
from
"./ui-logic-ctrl-param"
;
import
{
AppDeUILogicEntityListParam
}
from
"./ui-logic-entity-list-param"
;
import
{
AppDeUILogicEntityPageParam
}
from
"./ui-logic-entity-page-param"
;
import
{
AppDeUILogicEntityParam
}
from
"./ui-logic-entity-param"
;
import
{
AppDeUILogicFilterParam
}
from
"./ui-logic-filter-param"
;
import
{
AppDeUILogicLastReturnParam
}
from
"./ui-logic-last-return-param"
;
import
{
UILogicNavContextParam
}
from
"./ui-logic-nav-context-param"
;
import
{
UILogicNavViewParam
}
from
"./ui-logic-nav-view-param"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
import
{
UILogicRouteViewSessionParam
}
from
"./ui-logic-route-view-session-param"
;
import
{
AppDeUILogicSimpleListParam
}
from
"./ui-logic-simple-list-param"
;
import
{
AppDeUILogicSampleParam
}
from
"./ui-logic-simple-param"
;
import
{
UILogicViewNavDataParam
}
from
"./ui-logic-view-navdata-param"
;
import
{
UILogicViewSessionParam
}
from
"./ui-logic-view-session-param"
;
export
class
UILogicParamService
{
/**
* 获取界面逻辑参数实例
*
* @static
* @param {*} actionSession 操作会话
* @param {*} model 模型
* @memberof UILogicParamService
*/
public
static
getLogicParamInstance
(
actionSession
:
any
,
model
:
any
,
params
:
any
)
{
const
inputParam
=
{
actionSession
,
model
,
params
};
// 应用程序变量
if
(
model
.
applicationParam
)
{
return
new
AppDeUILogicAppParam
(
inputParam
);
}
// 当前容器对象
if
(
model
.
activeContainerParam
)
{
return
new
UILogicActiveContainerParam
(
inputParam
);
}
// 当前部件对象
if
(
model
.
activeCtrlParam
)
{
return
new
UILogicActiveCtrlParam
(
inputParam
);
}
// 指定部件对象
if
(
model
.
ctrlParam
)
{
return
new
UILogicCtrlParam
(
inputParam
);
}
// 当前视图对象
if
(
model
.
activeViewParam
)
{
return
new
UILogicActiveViewParam
(
inputParam
);
}
// 简单数据变量
if
(
model
.
simpleParam
)
{
return
new
AppDeUILogicSampleParam
(
inputParam
);
}
// 逻辑数据对象参数
if
(
model
.
entityParam
)
{
return
new
AppDeUILogicEntityParam
(
inputParam
);
}
// 数据对象列表变量
if
(
model
.
entityListParam
)
{
return
new
AppDeUILogicEntityListParam
(
inputParam
);
}
// 上一次调用返回变量
if
(
model
.
lastReturnParam
)
{
return
new
AppDeUILogicLastReturnParam
(
inputParam
);
}
// 简单数据列表变量
if
(
model
.
simpleListParam
)
{
return
new
AppDeUILogicSimpleListParam
(
inputParam
);
}
// 分页查询结果变量
if
(
model
.
entityPageParam
)
{
return
new
AppDeUILogicEntityPageParam
(
inputParam
);
}
// 应用全局参数绑定参数
if
(
model
.
appGlobalParam
)
{
return
new
UILogicAppGlobalParam
(
inputParam
);
}
// 过滤器
if
(
model
.
filterParam
)
{
return
new
AppDeUILogicFilterParam
(
inputParam
);
}
// 导航上下文绑定参数
if
(
model
.
navContextParam
)
{
return
new
UILogicNavContextParam
(
inputParam
);
}
// 导航视图参数绑定参数
if
(
model
.
navViewParamParam
)
{
return
new
UILogicNavViewParam
(
inputParam
);
}
// 顶级视图会话共享参数绑定参数
if
(
model
.
routeViewSessionParam
)
{
return
new
UILogicRouteViewSessionParam
(
inputParam
);
}
// 导航数据参数绑定参数
if
(
model
.
viewNavDataParam
)
{
return
new
UILogicViewNavDataParam
(
inputParam
);
}
// 当前视图会话共享参数绑定参数
if
(
model
.
viewSessionParam
)
{
return
new
UILogicViewSessionParam
(
inputParam
);
}
return
new
UILogicParamBase
(
inputParam
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-route-view-session-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 界面顶级视图会话共享参数绑定参数
*
* @export
* @class UILogicRouteViewSessionParam
*/
export
class
UILogicRouteViewSessionParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicRouteViewSessionParam.
* @param {*} opts
* @memberof UILogicRouteViewSessionParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicRouteViewSessionParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
routeViewSessionParam
;
this
.
realValue
=
this
.
setReal
(
this
.
getRouteViewSessionParam
(
params
));
}
/**
* 设置实际参数值
*
* @param {*} opts
* @memberof UILogicRouteViewSessionParam
*/
public
setReal
(
opts
:
any
)
{
this
.
realValue
=
opts
;
const
actionContainer
=
this
.
actionSession
.
actionContainer
;
this
.
$store
.
commit
(
'addRouteViewGlobal'
,
{
tag
:
actionContainer
.
context
.
srfsessionid
,
param
:
{
[
this
.
logicParamModel
.
paramFieldName
]:
opts
}
});
}
/**
* 获取界面顶级视图会话共享参数绑定参数
*
* @private
* @param {any} params
* @memberof UILogicRouteViewSessionParam
*/
private
getRouteViewSessionParam
(
params
:
any
)
{
const
{
actioncontext
}
=
params
;
const
{
viewCtx
,
context
}
=
actioncontext
;
if
(
viewCtx
&&
viewCtx
[
'routeViewGlobal'
])
{
let
result
=
actioncontext
.
viewCtx
[
'routeViewGlobal'
][
this
.
logicParamModel
.
paramFieldName
];
if
(
!
result
)
{
result
=
{};
}
return
result
;
}
}
/**
* 设置指定属性值
*
* @param {string} strName
* @param {*} value
* @memberof UILogicRouteViewSessionParam
*/
public
set
(
strName
:
string
,
value
:
any
)
{
this
.
realValue
[
strName
]
=
value
;
const
actionContainer
=
this
.
actionSession
.
actionContainer
;
this
.
$store
.
commit
(
'addRouteViewGlobal'
,
{
tag
:
actionContainer
.
context
.
srfsessionid
,
param
:
{
[
this
.
logicParamModel
.
paramFieldName
]:
this
.
realValue
}
});
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof UILogicRouteViewSessionParam
*/
public
reset
(
strName
:
string
)
{
this
.
realValue
[
strName
]
=
null
;
const
actionContainer
=
this
.
actionSession
.
actionContainer
;
this
.
$store
.
commit
(
'addRouteViewGlobal'
,
{
tag
:
actionContainer
.
context
.
srfsessionid
,
param
:
{
[
this
.
logicParamModel
.
paramFieldName
]:
this
.
realValue
}
});
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-simple-list-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 逻辑简单数据列表参数
*
* @export
* @class AppDeUILogicSimpleListParam
*/
export
class
AppDeUILogicSimpleListParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicSimpleListParam.
* @param {*} opts
* @memberof AppDeUILogicSimpleListParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicSimpleListParam
*/
protected
init
(
params
:
any
)
{
this
.
setReal
(
this
.
getDefaultValue
(
params
,
[]));
this
.
logicParamType
=
UILogicParamType
.
simpleListParam
;
}
/**
* 重置全部
*
* @memberof AppDeUILogicSimpleListParam
*/
public
resetAll
()
{
this
.
realValue
=
[];
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof AppDeUILogicSimpleListParam
*/
public
bind
(
opts
:
any
)
{
if
(
Object
.
prototype
.
toString
.
call
(
opts
)
!==
'[object Array]'
)
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
无法绑定非数组类型参数`
);
}
this
.
setReal
(
opts
);
}
/**
* 重新建立参数对象
*
* @memberof AppDeUILogicSimpleListParam
*/
public
renew
()
{
this
.
realValue
=
[];
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-simple-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 逻辑简单数据参数
*
* @export
* @class AppDeUILogicSampleParam
*/
export
class
AppDeUILogicSampleParam
extends
UILogicParamBase
{
/**
* Creates an instance of AppDeUILogicSampleParam.
* @param {*} opts
* @memberof AppDeUILogicSampleParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof AppDeUILogicParamBase
*/
protected
init
(
opts
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
simpleParam
;
this
.
setReal
(
null
);
}
/**
* 绑定指定参数对象
*
* @param {*} opts
* @memberof AppDeUILogicSampleParam
*/
public
bind
(
opts
:
any
)
{
const
typeResult
=
Object
.
prototype
.
toString
.
call
(
opts
);
if
((
typeResult
!==
'[object String]'
)
&&
(
typeResult
!==
'[object Boolean]'
)
&&
(
typeResult
!==
'[object Number]'
)
&&
(
typeResult
!==
'[object Null]'
)
&&
(
typeResult
!==
'[object Undefined]'
))
{
throw
new
Error
(
`逻辑参数
${
this
.
strCodeName
}
无法绑定非基本类型参数`
);
}
this
.
setReal
(
opts
);
}
/**
* 设置指定属性值
*
* @param {string} strName
* @param {*} value
* @memberof AppDeUILogicSampleParam
*/
public
set
(
strName
:
string
,
value
:
any
)
{
this
.
setReal
(
value
);
}
/**
* 获取指定属性值
*
* @param {string} strName
* @memberof AppDeUILogicSampleParam
*/
public
get
(
strName
:
string
)
{
return
this
.
realValue
;
}
/**
* 重置指定属性
*
* @param {string} strName
* @memberof AppDeUILogicSampleParam
*/
public
reset
(
strName
:
string
)
{
this
.
realValue
=
null
;
}
/**
* 重置全部
*
* @memberof AppDeUILogicSampleParam
*/
public
resetAll
()
{
this
.
realValue
=
null
;
}
/**
* 重新建立参数对象
*
* @memberof AppDeUILogicSampleParam
*/
public
renew
()
{
this
.
realValue
=
null
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-view-navdata-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 导航数据参数绑定参数
*
* @export
* @class UILogicViewNavDataParam
*/
export
class
UILogicViewNavDataParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicViewNavDataParam.
* @param {*} opts
* @memberof UILogicViewNavDataParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicViewNavDataParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
viewNavDataParam
;
this
.
realValue
=
this
.
getViewNavDataParam
(
params
);
}
/**
* 获取导航数据参数绑定参数
*
* @private
* @param {any} params
* @memberof UILogicViewNavDataParam
*/
private
getViewNavDataParam
(
params
:
any
)
{
const
{
actioncontext
}
=
params
;
const
{
viewCtx
}
=
actioncontext
;
if
(
viewCtx
&&
viewCtx
[
'viewNavData'
])
{
return
viewCtx
[
'viewNavData'
];
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/logic/ui-logic/logic-param/ui-logic-view-session-param.ts
0 → 100644
浏览文件 @
9d044396
import
{
UILogicParamType
}
from
"@/logic/const/ui-logic-param-type"
;
import
{
UILogicParamBase
}
from
"./ui-logic-param-base"
;
/**
* 当前视图会话共享参数绑定参数
*
* @export
* @class UILogicViewSessionParam
*/
export
class
UILogicViewSessionParam
extends
UILogicParamBase
{
/**
* Creates an instance of UILogicViewSessionParam.
* @param {*} opts
* @memberof UILogicViewSessionParam
*/
public
constructor
(
opts
:
any
)
{
super
(
opts
);
}
/**
* 初始化
*
* @protected
* @memberof UILogicViewSessionParam
*/
protected
init
(
params
:
any
)
{
this
.
logicParamType
=
UILogicParamType
.
viewSessionParam
;
this
.
realValue
=
this
.
getViewSessionParam
(
params
);
}
/**
* 获取当前视图会话共享参数绑定参数
*
* @private
* @param {any} params
* @memberof UILogicViewSessionParam
*/
private
getViewSessionParam
(
params
:
any
)
{
const
{
actioncontext
}
=
params
;
const
{
viewCtx
}
=
actioncontext
;
if
(
viewCtx
&&
viewCtx
[
'viewGlobal'
])
{
return
viewCtx
[
'viewGlobal'
];
}
}
}
\ 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
浏览文件 @
9d044396
...
@@ -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
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
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
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
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
浏览文件 @
9d044396
...
@@ -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
:
'IBIZBOOK
GroupByCodelistList
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr9Grid
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
:
'IBIZBOOK
GroupByCodelistList
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr9Grid
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/ibizorder/card-navigation-dataview/card-navigation-dataview-base.vue
浏览文件 @
9d044396
...
@@ -657,7 +657,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
...
@@ -657,7 +657,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/
*/
public
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
void
{
public
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
void
{
if
(
!
this
.
fetchAction
){
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{...
opt
};
const
arg
:
any
=
{...
opt
};
...
@@ -736,7 +736,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
...
@@ -736,7 +736,7 @@ export default class CardNavigationBase 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
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
return
;
}
}
let
_datas
:
any
[]
=
[];
let
_datas
:
any
[]
=
[];
...
@@ -845,7 +845,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
...
@@ -845,7 +845,7 @@ export default class CardNavigationBase 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
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
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
);
...
@@ -853,7 +853,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
...
@@ -853,7 +853,7 @@ export default class CardNavigationBase 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.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView
_layout
'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDataViewExpView'
+
(
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.
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
浏览文件 @
9d044396
...
@@ -291,7 +291,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -291,7 +291,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrder
Pickup
GridViewBase
* @memberof IBIZOrder
SF1
GridViewBase
*/
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
if
(
args
.
length
===
0
)
{
...
@@ -413,6 +413,20 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -413,6 +413,20 @@ export default class MainBase extends Vue implements ControlInterface {
return
this
.
selections
[
0
];
return
this
.
selections
[
0
];
}
}
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@
Prop
()
public
newdata
:
any
;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@
Prop
()
public
opendata
:
any
;
/**
/**
* 是否嵌入关系界面
* 是否嵌入关系界面
...
@@ -945,7 +959,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -945,7 +959,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
load
(
opt
:
any
=
{},
pageReset
:
boolean
=
false
):
void
{
public
load
(
opt
:
any
=
{},
pageReset
:
boolean
=
false
):
void
{
if
(
!
this
.
fetchAction
){
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
return
;
}
}
if
(
pageReset
){
if
(
pageReset
){
...
@@ -1040,7 +1054,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1040,7 +1054,7 @@ export default class MainBase 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
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
return
;
}
}
let
_datas
:
any
[]
=
[];
let
_datas
:
any
[]
=
[];
...
@@ -1146,7 +1160,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1146,7 +1160,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
addBatch
(
arg
:
any
=
{}):
void
{
public
addBatch
(
arg
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
return
;
}
}
if
(
!
arg
){
if
(
!
arg
){
...
@@ -2063,7 +2077,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2063,7 +2077,7 @@ export default class MainBase 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
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.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
);
...
@@ -2071,7 +2085,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2071,7 +2085,7 @@ export default class MainBase 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.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
}
else
{
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
if
(
item
.
ibizorder
){
...
@@ -2138,7 +2152,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2138,7 +2152,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
newRow
(
args
:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
):
void
{
public
newRow
(
args
:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
):
void
{
if
(
!
this
.
loaddraftAction
){
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
return
;
return
;
}
}
let
_this
=
this
;
let
_this
=
this
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/main-grid/main-grid-model.ts
浏览文件 @
9d044396
...
@@ -104,6 +104,21 @@ export default class MainModel {
...
@@ -104,6 +104,21 @@ export default class MainModel {
prop
:
'n_ibizordername_like'
,
prop
:
'n_ibizordername_like'
,
dataType
:
'QUERYPARAM'
dataType
:
'QUERYPARAM'
},
},
{
name
:
'n_orderstate_eq'
,
prop
:
'n_orderstate_eq'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_ordertime_gt'
,
prop
:
'n_ordertime_gt'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_ordertime_lt'
,
prop
:
'n_ordertime_lt'
,
dataType
:
'QUERYPARAM'
},
{
{
name
:
'size'
,
name
:
'size'
,
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录