Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
a4d0afc8
提交
a4d0afc8
编写于
11月 30, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kuaikuai 发布系统代码 [后台服务,演示应用]
上级
3a3b7653
变更
18
隐藏空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
1006 行增加
和
221 行删除
+1006
-221
view-config.json
app_Web/public/assets/json/view-config.json
+8
-0
ibizorder_en_US.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
+4
-0
ibizorder_zh_CN.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
+4
-0
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+3
-3
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+8
-0
ibizorder-sedit-view4-base.vue
...mple/ibizorder-sedit-view4/ibizorder-sedit-view4-base.vue
+711
-0
ibizorder-sedit-view4.less
...s/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.less
+9
-0
ibizorder-sedit-view4.vue
...es/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue
+24
-0
ibizsample0001-usr2-grid-view-base.vue
...001-usr2-grid-view/ibizsample0001-usr2-grid-view-base.vue
+4
-4
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+1
-3
router.ts
app_Web/src/pages/sample/index/router.ts
+27
-81
state.ts
app_Web/src/store/modules/view-action/state.ts
+13
-30
ibizorder-ui-service-base.ts
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
+1
-0
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+77
-77
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+3
-3
main-form-base.vue
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
+5
-5
main-grid-base.vue
...b/src/widgets/ibizsample0001/main-grid/main-grid-base.vue
+103
-15
main-grid-model.ts
...b/src/widgets/ibizsample0001/main-grid/main-grid-model.ts
+1
-0
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
a4d0afc8
...
...
@@ -567,6 +567,14 @@
"viewname"
:
"IBIZSample0017F10EditView"
,
"viewtag"
:
"70df82f4cd265e92e9d9add5e05a8399"
},
"ibizorderseditview4"
:
{
"title"
:
"订单编辑视图"
,
"caption"
:
"订单"
,
"viewtype"
:
"DEEDITVIEW4"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderSEditView4"
,
"viewtag"
:
"756fecec409c3a955f0cd737259d27c7"
},
"ibizstorageeditview"
:
{
"title"
:
"存储编辑视图"
,
"caption"
:
"存储"
,
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
浏览文件 @
a4d0afc8
...
...
@@ -97,6 +97,10 @@ export default {
caption
:
"订单"
,
title
:
"订单编辑视图"
,
},
seditview4
:
{
caption
:
"订单"
,
title
:
"订单编辑视图"
,
},
sgridview
:
{
caption
:
"订单"
,
title
:
"订单表格视图"
,
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
浏览文件 @
a4d0afc8
...
...
@@ -96,6 +96,10 @@ export default {
caption
:
"订单"
,
title
:
"订单编辑视图"
,
},
seditview4
:
{
caption
:
"订单"
,
title
:
"订单编辑视图"
,
},
sgridview
:
{
caption
:
"订单"
,
title
:
"订单表格视图"
,
...
...
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
a4d0afc8
...
...
@@ -441,7 +441,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
ppFunc38
'
,
appfunctag
:
'A
uto402
'
,
resourcetag
:
''
,
},
{
...
...
@@ -459,7 +459,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
37
'
,
appfunctag
:
'AppFunc
41
'
,
resourcetag
:
''
,
},
{
...
...
@@ -477,7 +477,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
ppFunc39
'
,
appfunctag
:
'A
uto337
'
,
resourcetag
:
''
,
},
],
...
...
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
a4d0afc8
...
...
@@ -575,6 +575,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZSample0017F10EditView"
,
"viewtag"
:
"70df82f4cd265e92e9d9add5e05a8399"
},
"ibizorderseditview4"
:
{
"title"
:
"订单编辑视图"
,
"caption"
:
"订单"
,
"viewtype"
:
"DEEDITVIEW4"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderSEditView4"
,
"viewtag"
:
"756fecec409c3a955f0cd737259d27c7"
},
"ibizstorageeditview"
:
{
"title"
:
"存储编辑视图"
,
"caption"
:
"存储"
,
...
...
app_Web/src/pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4-base.vue
0 → 100644
浏览文件 @
a4d0afc8
<
template
>
<div
class=
"view-container deeditview4 ibizorder-sedit-view4"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderseditview4"
></app-studioaction>
<card
class=
'view-card view-no-toolbar'
:disHover=
"true"
:padding=
"0"
:bordered=
"false"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
</div>
<div
class=
'view-top-messages'
>
</div>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
</div>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:autosave=
"false"
:viewtag=
"viewtag"
:showBusyIndicator=
"true"
updateAction=
"Update"
removeAction=
"Remove"
loaddraftAction=
"GetDraft"
loadAction=
"Get"
createAction=
"Create"
WFSubmitAction=
""
WFStartAction=
""
style=
''
name=
"form"
ref=
'form'
@
save=
"form_save($event)"
@
remove=
"form_remove($event)"
@
load=
"form_load($event)"
@
closeview=
"closeView($event)"
>
</view
_form
>
<view
_drtab
:viewState=
"viewState"
name=
'drtab'
ref=
'drtab'
:viewparams=
"viewparams"
:context=
"context"
:formData=
"formData"
parentName =
"IBIZOrder"
:isShowSlot=
"false"
@
selectionchange=
'drtab_selectionchange($event)'
@
closeview=
'closeView($event)'
>
</view
_drtab
>
</div>
<div
class=
'view-bottom-messages'
>
</div>
</card>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
IBIZOrderAuthService
from
'@/authservice/ibizorder/ibizorder-auth-service'
;
import
EditView4Engine
from
'@engine/view/edit-view4-engine'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZOrderSEditView4Base
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof IBIZOrderSEditView4Base
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
;
/**
* 实体UI服务对象
*
* @type IBIZOrderUIService
* @memberof IBIZOrderSEditView4Base
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZOrderSEditView4Base
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZOrderSEditView4Base
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZOrderSEditView4Base
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZOrderSEditView4Base
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZOrderSEditView4Base
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZOrderSEditView4Base
*/
public
viewtag
:
string
=
'756fecec409c3a955f0cd737259d27c7'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizorder.views.seditview4.caption'
,
srfTitle
:
'entities.ibizorder.views.seditview4.title'
,
srfSubTitle
:
'entities.ibizorder.views.seditview4.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZOrderSEditView4Base
*/
@
Watch
(
'viewparam'
,{
immediate
:
true
,
deep
:
true
})
onParamData
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
this
.
viewparams
=
{};
if
(
typeof
newVal
==
'string'
)
{
Object
.
assign
(
this
.
viewparams
,
JSON
.
parse
(
this
.
viewparam
));
}
else
{
this
.
viewparams
=
Util
.
deepCopy
(
this
.
viewparam
);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZOrderSEditView4Base
*/
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
containerModel
:
any
=
{
view_drtab
:
{
name
:
'drtab'
,
type
:
'DRTAB'
},
view_form
:
{
name
:
'form'
,
type
:
'FORM'
},
wflinks
:
[],
};
/**
* 视图刷新
*
* @param {*} args
* @memberof IBIZOrderSEditView4Base
*/
public
refresh
(
args
?:
any
):
void
{
const
refs
:
any
=
this
.
$refs
;
if
(
refs
&&
refs
.
form
)
{
refs
.
form
.
refresh
();
}
}
/**
* 计数器刷新
*
* @memberof IBIZOrderSEditView4Base
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof IBIZOrderSEditView4Base
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZOrderSEditView4Base
*/
public
engine
:
EditView4Engine
=
new
EditView4Engine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZOrderSEditView4Base
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
form
:
this
.
$refs
.
form
,
p2k
:
'0'
,
drtab
:
this
.
$refs
.
drtab
,
keyPSDEField
:
'ibizorder'
,
majorPSDEField
:
'ibizordername'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
navDataService
=
NavDataService
.
getInstance
(
this
.
$store
);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderSEditView4Base
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZOrderSEditView4Base
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZOrderSEditView4Base
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZOrderSEditView4Base
*/
public
parseViewParam
(
inputvalue
:
any
=
null
):
void
{
for
(
let
key
in
this
.
context
){
delete
this
.
context
[
key
];
}
if
(
this
.
$store
.
getters
.
getAppData
()
&&
this
.
$store
.
getters
.
getAppData
().
context
){
Object
.
assign
(
this
.
context
,
this
.
$store
.
getters
.
getAppData
().
context
);
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
if
(
typeof
this
.
viewdata
==
'string'
)
{
Object
.
assign
(
this
.
context
,
JSON
.
parse
(
this
.
viewdata
));
}
if
(
this
.
context
&&
this
.
context
.
srfparentdename
){
Object
.
assign
(
this
.
viewparams
,{
srfparentdename
:
this
.
context
.
srfparentdename
});
}
if
(
this
.
context
&&
this
.
context
.
srfparentkey
){
Object
.
assign
(
this
.
viewparams
,{
srfparentkey
:
this
.
context
.
srfparentkey
});
}
this
.
handleCustomViewData
();
return
;
}
const
path
=
(
this
.
$route
.
matched
[
this
.
$route
.
matched
.
length
-
1
]).
path
;
const
keys
:
Array
<
any
>
=
[];
const
curReg
=
this
.
$pathToRegExp
.
pathToRegexp
(
path
,
keys
);
const
matchArray
=
curReg
.
exec
(
this
.
$route
.
path
);
let
tempValue
:
Object
=
{};
keys
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
.
name
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
this
.
$viewTool
.
formatRouteParams
(
tempValue
,
this
.
$route
,
this
.
context
,
this
.
viewparams
);
if
(
inputvalue
){
Object
.
assign
(
this
.
context
,{
'ibizorder'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZOrderSEditView4Base
*/
public
handleCustomViewData
(){
if
(
Object
.
keys
(
this
.
customViewNavContexts
).
length
>
0
){
Object
.
keys
(
this
.
customViewNavContexts
).
forEach
((
item
:
any
)
=>
{
let
tempContext
:
any
=
{};
let
curNavContext
:
any
=
this
.
customViewNavContexts
[
item
];
this
.
handleCustomDataLogic
(
curNavContext
,
tempContext
,
item
);
Object
.
assign
(
this
.
context
,
tempContext
);
})
}
if
(
Object
.
keys
(
this
.
customViewParams
).
length
>
0
){
Object
.
keys
(
this
.
customViewParams
).
forEach
((
item
:
any
)
=>
{
let
tempParam
:
any
=
{};
let
curNavParam
:
any
=
this
.
customViewParams
[
item
];
this
.
handleCustomDataLogic
(
curNavParam
,
tempParam
,
item
);
Object
.
assign
(
this
.
viewparams
,
tempParam
);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof IBIZOrderSEditView4Base
*/
public
handleCustomDataLogic
(
curNavData
:
any
,
tempData
:
any
,
item
:
string
){
// 直接值直接赋值
if
(
curNavData
.
isRawValue
){
if
(
Object
.
is
(
curNavData
.
value
,
"null"
)
||
Object
.
is
(
curNavData
.
value
,
""
)){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
curNavData
.
value
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
else
{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if
(
this
.
context
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
context
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
if
(
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZOrderSEditView4Base
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizorder-sedit-view4'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizorder
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZOrderSEditView4Base
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizorder-sedit-view4'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizorder
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZOrderSEditView4Base
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZOrderSEditView4Base
*/
public
afterCreated
(){
let
_this
:
any
=
this
;
const
secondtag
=
_this
.
$util
.
createUUID
();
_this
.
$store
.
commit
(
'viewaction/createdView'
,
{
viewtag
:
_this
.
viewtag
,
secondtag
:
secondtag
});
_this
.
viewtag
=
secondtag
;
_this
.
parseViewParam
();
_this
.
serviceStateEvent
=
_this
.
navDataService
.
serviceState
.
subscribe
(({
action
,
name
,
data
}:{
action
:
string
,
name
:
any
,
data
:
any
})
=>
{
if
(
!
Object
.
is
(
name
,
'ibizorder-sedit-view4'
)){
return
;
}
if
(
Object
.
is
(
action
,
'viewrefresh'
))
{
_this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
(
data
);
if
(
_this
.
engine
){
_this
.
engine
.
load
();
}
});
}
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'IBIZOrderSEditView4'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZOrderSEditView4Base
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZOrderSEditView4Base
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZOrderSEditView4Base
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* drtab 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderSEditView4Base
*/
public
drtab_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'drtab'
,
'selectionchange'
,
$event
);
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderSEditView4Base
*/
public
form_save
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'save'
,
$event
);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderSEditView4Base
*/
public
form_remove
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'remove'
,
$event
);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderSEditView4Base
*/
public
form_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'form'
,
'load'
,
$event
);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZOrderSEditView4Base
*/
public
closeView
(
args
:
any
[]):
void
{
let
_view
:
any
=
this
;
if
(
_view
.
viewdata
)
{
_view
.
$emit
(
'viewdataschange'
,
[
args
]);
_view
.
$emit
(
'close'
,
[
args
]);
}
else
if
(
_view
.
$tabPageExp
)
{
_view
.
$tabPageExp
.
onClose
(
_view
.
$route
.
fullPath
);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZOrderSEditView4Base
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZOrderSEditView4Base
*/
public
afterDestroyed
(){
if
(
this
.
viewDefaultUsage
){
let
localStoreLength
=
Object
.
keys
(
localStorage
);
if
(
localStoreLength
.
length
>
0
){
localStoreLength
.
forEach
((
item
:
string
)
=>
{
if
(
item
.
startsWith
(
this
.
context
.
srfsessionid
)){
localStorage
.
removeItem
(
item
);
}
})
}
if
(
Object
.
is
(
this
.
navModel
,
"tab"
)){
this
.
navDataService
.
removeNavDataByTag
(
this
.
viewtag
);
}
if
(
this
.
serviceStateEvent
)
{
this
.
serviceStateEvent
.
unsubscribe
();
}
}
// 销毁计数器定时器
if
(
this
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
if
(
this
.
portletStateEvent
){
this
.
portletStateEvent
.
unsubscribe
();
}
}
/**
* 表单数据
*
* @type {*}
* @memberof IBIZOrderSEditView4Base
*/
public
formData
:
any
=
{};
}
</
script
>
<
style
lang=
'less'
>
@import './ibizorder-sedit-view4.less';
</
style
>
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.less
0 → 100644
浏览文件 @
a4d0afc8
.ibizorder-sedit-view4{
position: relative;
}
.view-container.ibizorder-sedit-view4 > .view-card > .ivu-card-body > .content-container {
height: calc(100% - 30px);
}
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue
0 → 100644
浏览文件 @
a4d0afc8
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderSEditView4Base
from
'./ibizorder-sedit-view4-base.vue'
;
import
view_drtab
from
'@widgets/ibizorder/default-drtab/default-drtab.vue'
;
import
view_form
from
'@widgets/ibizorder/main-form/main-form.vue'
;
@
Component
({
components
:
{
view_drtab
,
view_form
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
if
(
!
Object
.
is
(
vm
.
navModel
,
"route"
)){
vm
.
initNavDataWithTab
(
vm
.
viewCacheData
);
}
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
IBIZOrderSEditView4
extends
IBIZOrderSEditView4Base
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view-base.vue
浏览文件 @
a4d0afc8
...
...
@@ -43,11 +43,11 @@
:gridRowActiveMode=
"gridRowActiveMode"
:isformDruipart=
"isformDruipart"
@
save=
"onSave"
updateAction=
""
updateAction=
"
Update
"
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
loaddraftAction=
"
GetDraft
"
loadAction=
"
Get
"
createAction=
"
Create
"
fetchAction=
"FetchDefault"
:newdata=
"newdata"
:opendata=
"opendata"
...
...
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
a4d0afc8
...
...
@@ -34,7 +34,6 @@ export const PageComponents = {
Vue
.
component
(
'ibizorder-sf1-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf1-grid-view/ibizorder-sf1-grid-view.vue'
));
Vue
.
component
(
'ibizsample0003-pickup-grid-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-pickup-grid-view/ibizsample0003-pickup-grid-view.vue'
));
Vue
.
component
(
'ibizsample0003-pickup-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue'
));
Vue
.
component
(
'ibizbookedit-view3'
,
()
=>
import
(
'@pages/sample/ibizbookedit-view3/ibizbookedit-view3.vue'
));
Vue
.
component
(
'ibizhardware-sgrid-view'
,
()
=>
import
(
'@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'
));
Vue
.
component
(
'ibizsample0017-form-pickup-data-view'
,
()
=>
import
(
'@pages/sample/ibizsample0017-form-pickup-data-view/ibizsample0017-form-pickup-data-view.vue'
));
Vue
.
component
(
'ibizbookmedit-view9'
,
()
=>
import
(
'@pages/sample/ibizbookmedit-view9/ibizbookmedit-view9.vue'
));
...
...
@@ -98,6 +97,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizsample0003-f4-tree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-f4-tree-exp-view/ibizsample0003-f4-tree-exp-view.vue'
));
Vue
.
component
(
'ibizorder-f10-edit-view'
,
()
=>
import
(
'@pages/sample/ibizorder-f10-edit-view/ibizorder-f10-edit-view.vue'
));
Vue
.
component
(
'ibizsample0003-stree-exp-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-stree-exp-view/ibizsample0003-stree-exp-view.vue'
));
Vue
.
component
(
'ibizorder-sedit-view4'
,
()
=>
import
(
'@pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue'
));
Vue
.
component
(
'ibizsoftware-suit-grid-view9'
,
()
=>
import
(
'@pages/sample/ibizsoftware-suit-grid-view9/ibizsoftware-suit-grid-view9.vue'
));
Vue
.
component
(
'ibizbookhas-panel-list-view'
,
()
=>
import
(
'@pages/sample/ibizbookhas-panel-list-view/ibizbookhas-panel-list-view.vue'
));
Vue
.
component
(
'ibizorder-sf6-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-sf6-grid-view/ibizorder-sf6-grid-view.vue'
));
...
...
@@ -124,12 +124,10 @@ export const PageComponents = {
Vue
.
component
(
'ibizstorage-edit-view'
,
()
=>
import
(
'@pages/sample/ibizstorage-edit-view/ibizstorage-edit-view.vue'
));
Vue
.
component
(
'ibizorder-grid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-grid-view/ibizorder-grid-view.vue'
));
Vue
.
component
(
'ibizbookusr3-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr3-grid-view/ibizbookusr3-grid-view.vue'
));
Vue
.
component
(
'ibizbookedit-view2'
,
()
=>
import
(
'@pages/sample/ibizbookedit-view2/ibizbookedit-view2.vue'
));
Vue
.
component
(
'ibizsample0003-mpickup-view'
,
()
=>
import
(
'@pages/sample/ibizsample0003-mpickup-view/ibizsample0003-mpickup-view.vue'
));
Vue
.
component
(
'ibizorder-odsp-d20-wfgrid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-odsp-d20-wfgrid-view/ibizorder-odsp-d20-wfgrid-view.vue'
));
Vue
.
component
(
'ibizorder-wfaction-view'
,
()
=>
import
(
'@pages/sample/ibizorder-wfaction-view/ibizorder-wfaction-view.vue'
));
Vue
.
component
(
'ibizsample0017-f20-edit-view'
,
()
=>
import
(
'@pages/sample/ibizsample0017-f20-edit-view/ibizsample0017-f20-edit-view.vue'
));
Vue
.
component
(
'ibizbookedit-view4'
,
()
=>
import
(
'@pages/sample/ibizbookedit-view4/ibizbookedit-view4.vue'
));
Vue
.
component
(
'ibizorder-odsp-w-wfgrid-view'
,
()
=>
import
(
'@pages/sample/ibizorder-odsp-w-wfgrid-view/ibizorder-odsp-w-wfgrid-view.vue'
));
Vue
.
component
(
'ibizbookvalue-rules-grid-view'
,
()
=>
import
(
'@pages/sample/ibizbookvalue-rules-grid-view/ibizbookvalue-rules-grid-view.vue'
));
Vue
.
component
(
'ibizcustomer-pickup-grid-view'
,
()
=>
import
(
'@pages/sample/ibizcustomer-pickup-grid-view/ibizcustomer-pickup-grid-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
a4d0afc8
...
...
@@ -556,20 +556,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0003-pickup-view/ibizsample0003-pickup-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/editview3/:editview3?'
,
meta
:
{
caption
:
'entities.ibizbook.views.editview3.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview3'
,
parameterName
:
'editview3'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookedit-view3/ibizbookedit-view3.vue'
),
},
{
path
:
'ibizhardwares/:ibizhardware?/sgridview/:sgridview?'
,
meta
:
{
...
...
@@ -1467,6 +1453,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0003-stree-exp-view/ibizsample0003-stree-exp-view.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/seditview4/:seditview4?'
,
meta
:
{
caption
:
'entities.ibizorder.views.seditview4.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'seditview4'
,
parameterName
:
'seditview4'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue'
),
},
{
path
:
'ibizsoftwaresuits/:ibizsoftwaresuit?/gridview9/:gridview9?'
,
meta
:
{
...
...
@@ -1831,20 +1831,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr3-grid-view/ibizbookusr3-grid-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/editview2/:editview2?'
,
meta
:
{
caption
:
'entities.ibizbook.views.editview2.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview2'
,
parameterName
:
'editview2'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookedit-view2/ibizbookedit-view2.vue'
),
},
{
path
:
'ibizsample0003s/:ibizsample0003?/mpickupview/:mpickupview?'
,
meta
:
{
...
...
@@ -1901,20 +1887,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0017-f20-edit-view/ibizsample0017-f20-edit-view.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/editview4/:editview4?'
,
meta
:
{
caption
:
'entities.ibizbook.views.editview4.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview4'
,
parameterName
:
'editview4'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookedit-view4/ibizbookedit-view4.vue'
),
},
{
path
:
'ibizorders/:ibizorder?/odsp_w_wfgridview/:odsp_w_wfgridview?'
,
meta
:
{
...
...
@@ -2407,19 +2379,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0014-edit-view/ibizsample0014-edit-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/editview3/:editview3?'
,
meta
:
{
caption
:
'entities.ibizbook.views.editview3.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview3'
,
parameterName
:
'editview3'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookedit-view3/ibizbookedit-view3.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/wfstartview/:wfstartview?'
,
meta
:
{
...
...
@@ -2915,19 +2874,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0001-usr2-grid-view/ibizsample0001-usr2-grid-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/editview2/:editview2?'
,
meta
:
{
caption
:
'entities.ibizbook.views.editview2.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview2'
,
parameterName
:
'editview2'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookedit-view2/ibizbookedit-view2.vue'
),
},
{
path
:
'/ibizsample0002s/:ibizsample0002?/ibizsample0001s/:ibizsample0001?/sf2editview/:sf2editview?'
,
meta
:
{
...
...
@@ -3033,6 +2979,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0017-f10-edit-view/ibizsample0017-f10-edit-view.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/seditview4/:seditview4?'
,
meta
:
{
caption
:
'entities.ibizorder.views.seditview4.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'seditview4'
,
parameterName
:
'seditview4'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-sedit-view4/ibizorder-sedit-view4.vue'
),
},
{
path
:
'/ibizstorages/:ibizstorage?/editview/:editview?'
,
meta
:
{
...
...
@@ -4087,19 +4046,6 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-edit-view/ibizorder-edit-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/editview4/:editview4?'
,
meta
:
{
caption
:
'entities.ibizbook.views.editview4.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview4'
,
parameterName
:
'editview4'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookedit-view4/ibizbookedit-view4.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/internalfuncgridview/:internalfuncgridview?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
a4d0afc8
...
...
@@ -191,6 +191,7 @@ export const viewstate: any = {
'fdb297cd4b12374534413c3053aec1b8'
,
'f4c5c766fd5755b694e0401dddc4d1ad'
,
'e7441fa67d425df343d996c745fb5d6b'
,
'756fecec409c3a955f0cd737259d27c7'
,
'2ccd29eeaeded3ea5a713a19cd67a83e'
,
'490f607f17e7cc8ceccc77f2d0b9a70d'
,
'13ed6c02918e612bac45715a6f300f2f'
,
...
...
@@ -207,7 +208,6 @@ export const viewstate: any = {
'bc76c982dd2264463427eb57e9ed3fba'
,
'3ebf0cd640e39a4e7efe30ec1cf32b43'
,
'9f80ed66360fbbb9bc57c575fdd8814f'
,
'2021cd02ec871a6984b17c9dc84c5c3a'
,
'94e6694a65d9cacb171b6e0b581216ba'
,
'8a4ccafa81445d49488874a8c7575932'
,
'3bbf72a3e5b59fed0dee362a9b1384a8'
,
...
...
@@ -217,11 +217,9 @@ export const viewstate: any = {
'59500fe075fdae44c35c88b95e64d9c8'
,
'd99f9680b535dcf3ad0d0f853a8b89d9'
,
'3041238537beef69c0f3410a1ba04c84'
,
'60be190e67cf550ae216be262fcebdf7'
,
'dd8d7ffe00cabb07784f30f66a5b34da'
,
'e14e0fa8f3def77ebbcf18f1f39c0225'
,
'd3255261c8522c660c1000cd0a61c3b0'
,
'f54effa21e9231945eea4ff2f9b2af6f'
,
'5ccbd78fe47300a160915d6398b59604'
,
'51dc78a9ed0e9cd37d46bec7dbc7d172'
,
'd9f9f0dede285235e3d0ad5101188d1e'
,
...
...
@@ -261,15 +259,6 @@ export const viewstate: any = {
'2acfa7c67cff5b1f6fc0d46f6a1c06bf'
,
],
},
{
viewtag
:
'2021cd02ec871a6984b17c9dc84c5c3a'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKEditView3'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'2640aa1ca02649c8831b43023d449945'
,
viewmodule
:
'Sample'
,
...
...
@@ -638,15 +627,6 @@ export const viewstate: any = {
'658d519f1868979431e7e0da5d967e6b'
,
],
},
{
viewtag
:
'60be190e67cf550ae216be262fcebdf7'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKEditView2'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'658d519f1868979431e7e0da5d967e6b'
,
viewmodule
:
'Sample'
,
...
...
@@ -716,6 +696,18 @@ export const viewstate: any = {
refviews
:
[
],
},
{
viewtag
:
'756fecec409c3a955f0cd737259d27c7'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZOrderSEditView4'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'f90fa878f2ed0eb4e27353786b10c3f4'
,
'f7ce60a7707de1ef9f926b3f9d5d6954'
,
'b4db5cb272d2da535285852bc436e9de'
,
],
},
{
viewtag
:
'75f6b59b25762a8faf7c795e94370834'
,
viewmodule
:
'Sample'
,
...
...
@@ -1519,15 +1511,6 @@ export const viewstate: any = {
'2640aa1ca02649c8831b43023d449945'
,
],
},
{
viewtag
:
'f54effa21e9231945eea4ff2f9b2af6f'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKEditView4'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'f73da4cb47a88d3fe5b92716e0137741'
,
viewmodule
:
'Sample'
,
...
...
app_Web/src/uiservice/ibizorder/ibizorder-ui-service-base.ts
浏览文件 @
a4d0afc8
...
...
@@ -114,6 +114,7 @@ export default class IBIZOrderUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'seditview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sedit-view'
});
this
.
allViewMap
.
set
(
'WFMDATAVIEW:ODSP:D:10'
,{
viewname
:
'odsp_d10_wfgridview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-odsp-d10-wfgrid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sf7editview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sf7-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'seditview4'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sedit-view4'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sgridview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sgrid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'barchartview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-bar-chart-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'sf1editview'
,
srfappde
:
'ibizorders'
,
component
:
'ibizorder-sf1-edit-view'
});
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
a4d0afc8
...
...
@@ -521,9 +521,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc33'
:
this
.
clickAppFunc33
(
item
);
return
;
case
'AppFunc37'
:
this
.
clickAppFunc37
(
item
);
return
;
case
'Auto81'
:
this
.
clickAuto81
(
item
);
return
;
...
...
@@ -638,6 +635,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'Auto106'
:
this
.
clickAuto106
(
item
);
return
;
case
'Auto402'
:
this
.
clickAuto402
(
item
);
return
;
case
'Auto406'
:
this
.
clickAuto406
(
item
);
return
;
...
...
@@ -653,6 +653,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc30'
:
this
.
clickAppFunc30
(
item
);
return
;
case
'AppFunc41'
:
this
.
clickAppFunc41
(
item
);
return
;
case
'AppFunc5'
:
this
.
clickAppFunc5
(
item
);
return
;
...
...
@@ -686,9 +689,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc'
:
this
.
clickAppFunc
(
item
);
return
;
case
'AppFunc39'
:
this
.
clickAppFunc39
(
item
);
return
;
case
'Auto222'
:
this
.
clickAuto222
(
item
);
return
;
...
...
@@ -704,6 +704,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'Auto145'
:
this
.
clickAuto145
(
item
);
return
;
case
'Auto337'
:
this
.
clickAuto337
(
item
);
return
;
case
'AppFunc32'
:
this
.
clickAppFunc32
(
item
);
return
;
...
...
@@ -719,9 +722,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'Auto129'
:
this
.
clickAuto129
(
item
);
return
;
case
'AppFunc38'
:
this
.
clickAppFunc38
(
item
);
return
;
case
'AppFunc23'
:
this
.
clickAppFunc23
(
item
);
return
;
...
...
@@ -832,29 +832,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc37
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview4'
,
parameterName
:
'editview4'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 动态必填
*
...
...
@@ -1729,6 +1706,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 左右关系编辑
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAuto402
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'seditview2'
,
parameterName
:
'seditview2'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 多选
*
...
...
@@ -1844,6 +1844,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc41
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
'seditview4'
,
parameterName
:
'seditview4'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 图书表格视图-更新默认值
*
...
...
@@ -2098,18 +2121,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
功能名称
*
编辑器类型
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickA
ppFunc39
(
item
:
any
=
{})
{
public
clickA
uto222
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
books'
,
parameterName
:
'ibizbook
'
},
{
pathName
:
'
editview3'
,
parameterName
:
'editview3
'
},
{
pathName
:
'ibiz
sample0001s'
,
parameterName
:
'ibizsample0001
'
},
{
pathName
:
'
sf5editview'
,
parameterName
:
'sf5editview
'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2121,18 +2144,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
编辑器类型
*
分页关系编辑
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAuto2
22
(
item
:
any
=
{})
{
public
clickAuto2
33
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
sample0001s'
,
parameterName
:
'ibizsample0001
'
},
{
pathName
:
's
f5editview'
,
parameterName
:
'sf5editview
'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
's
editview3'
,
parameterName
:
'seditview3
'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2144,18 +2167,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
分页关系编辑
*
嵌入表单
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAuto
233
(
item
:
any
=
{})
{
public
clickAuto
85
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
's
editview3'
,
parameterName
:
'seditview3
'
},
{
pathName
:
's
2editview'
,
parameterName
:
's2editview
'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2167,18 +2190,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
嵌入表单
*
图书表格视图-新建默认值
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickA
uto85
(
item
:
any
=
{})
{
public
clickA
ppFunc4
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
s2editview'
,
parameterName
:
's2edit
view'
},
{
pathName
:
'ibiz
books'
,
parameterName
:
'ibizbook
'
},
{
pathName
:
'
newdefaultvaluegridview'
,
parameterName
:
'newdefaultvaluegrid
view'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2190,18 +2213,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
图书表格视图-新建默认值
*
常规表格视图
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickA
ppFunc4
(
item
:
any
=
{})
{
public
clickA
uto145
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibiz
books'
,
parameterName
:
'ibizbook
'
},
{
pathName
:
'
newdefaultvaluegridview'
,
parameterName
:
'newdefaultvalue
gridview'
},
{
pathName
:
'ibiz
orders'
,
parameterName
:
'ibizorder
'
},
{
pathName
:
'
sgridview'
,
parameterName
:
's
gridview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2213,18 +2236,18 @@ export default class MainMenuBase extends Vue implements ControlInterface {
}
/**
*
常规表格视图
*
分页关系编辑
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAuto
145
(
item
:
any
=
{})
{
public
clickAuto
337
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorders'
,
parameterName
:
'ibizorder'
},
{
pathName
:
's
gridview'
,
parameterName
:
'sgridview
'
},
{
pathName
:
's
editview3'
,
parameterName
:
'seditview3
'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
...
...
@@ -2350,29 +2373,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 功能名称
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc38
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'editview2'
,
parameterName
:
'editview2'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
* 更新默认值
*
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
浏览文件 @
a4d0afc8
...
...
@@ -468,7 +468,7 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
ppFunc38
'
,
appfunctag
:
'A
uto402
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem116'
,
},
...
...
@@ -487,7 +487,7 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
37
'
,
appfunctag
:
'AppFunc
41
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem117'
,
},
...
...
@@ -506,7 +506,7 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'A
ppFunc39
'
,
appfunctag
:
'A
uto337
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem118'
,
},
...
...
app_Web/src/widgets/ibizbook/main-form/main-form-base.vue
浏览文件 @
a4d0afc8
...
...
@@ -1672,7 +1672,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView
4
'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -1707,7 +1707,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView
4
'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
@@ -1769,7 +1769,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView
4
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
...
@@ -1877,7 +1877,7 @@ export default class MainBase extends Vue implements ControlInterface {
const
action
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)
?
this
.
updateAction
:
this
.
createAction
;
if
(
!
action
){
let
actionName
:
any
=
Object
.
is
(
data
.
srfuf
,
'1'
)?
"updateAction"
:
"createAction"
;
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView
4
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
...
@@ -1954,7 +1954,7 @@ export default class MainBase extends Vue implements ControlInterface {
public
remove
(
opt
:
Array
<
any
>
=
[],
showResultInfo
?:
boolean
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView
4
'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKEditView'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
opt
[
0
];
...
...
app_Web/src/widgets/ibizsample0001/main-grid/main-grid-base.vue
浏览文件 @
a4d0afc8
...
...
@@ -29,7 +29,14 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<app-span
name=
'IBIZsample0001name'
:value=
"row[column.property]"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
:data=
"row"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<codelist
:value=
"row.ibizsample0001name"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
></codelist>
</
template
>
</template>
...
...
@@ -43,7 +50,21 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<input-box
:disabled=
"getColumnDisabled(row,column.property)"
v-model=
"row[column.property]"
style=
""
type=
"text"
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'updateman'
editorType=
"HTMLEDITOR"
:value=
"row.updateman"
dataType=
"HTMLTEXT"
precision=
"0"
></app-span>
</
template
>
</template>
...
...
@@ -57,7 +78,15 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.updatedate"
></app-format-data>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
:disabled=
"getColumnDisabled(row,column.property)"
:value=
"row[column.property]"
style=
""
@
on-change=
"(val1, val2) =>
{ row[column.property] = val1; gridEditItemChange(row, column.property, val1, $index)}">
</date-picker>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'updatedate'
editorType=
"DATEPICKER"
:value=
"row.updatedate"
dataType=
"DATE"
precision=
"0"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
...
...
@@ -69,7 +98,14 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<template
>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<app-span
name=
'defgridcolumn'
:value=
"row[column.property]"
:data=
"row"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'defgridcolumn'
editorType=
"SPAN"
:value=
"row.defgridcolumn"
dataType=
"DATETIME"
precision=
"0"
></app-span>
</
template
>
</template>
...
...
@@ -83,7 +119,23 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<span>
{{
row
.
defgridcolumn1
}}
</span>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<input-box
:disabled=
"getColumnDisabled(row,column.property)"
v-model=
"row[column.property]"
style=
""
type=
"text"
@
change=
"($event)=>
{gridEditItemChange(row, column.property, $event, $index)}">
</input-box>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'defgridcolumn1'
editorType=
"TEXTBOX"
:value=
"row.defgridcolumn1"
dataType=
"TEXT"
precision=
"0"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
...
...
@@ -95,7 +147,15 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD"
:data=
"row.defgridcolumn2"
></app-format-data>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
:disabled=
"getColumnDisabled(row,column.property)"
:value=
"row[column.property]"
style=
""
@
on-change=
"(val1, val2) =>
{ row[column.property] = val1; gridEditItemChange(row, column.property, val1, $index)}">
</date-picker>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'defgridcolumn2'
editorType=
"DATEPICKER"
:value=
"row.defgridcolumn2"
dataType=
"DATE"
precision=
"0"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
...
...
@@ -107,7 +167,15 @@
</span>
</
template
>
<
template
v-slot=
"{row,column,$index}"
>
<app-format-data
format=
"YYYY-MM-DD HH:mm:ss"
:data=
"row.defgridcolumn3"
></app-format-data>
<template
v-if=
"actualIsOpenEdit && !row.children"
>
<app-form-item
:error=
"gridItemsModel[$index][column.property].error"
>
<date-picker
type=
"datetime"
:transfer=
"true"
format=
"yyyy-MM-dd HH:mm:ss"
:disabled=
"getColumnDisabled(row,column.property)"
:value=
"row[column.property]"
style=
""
@
on-change=
"(val1, val2) =>
{ row[column.property] = val1; gridEditItemChange(row, column.property, val1, $index)}">
</date-picker>
</app-form-item>
</
template
>
<
template
v-if=
"!actualIsOpenEdit"
>
<app-span
name=
'defgridcolumn3'
editorType=
"DATEPICKER"
:value=
"row.defgridcolumn3"
dataType=
"DATETIME"
precision=
"0"
></app-span>
</
template
>
</template>
</el-table-column>
</template>
...
...
@@ -590,7 +658,7 @@ export default class MainBase extends Vue implements ControlInterface {
*
* @memberof MainBase
*/
public
defaultUpdateItems
:
Array
<
any
>
=
[,,,];
public
defaultUpdateItems
:
Array
<
any
>
=
[,,,
,,,,
];
/**
* 选中行数据
...
...
@@ -674,7 +742,7 @@ export default class MainBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizsample0001.main_grid.columns.ibizsample0001name'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
enableCond
:
3
,
},
{
...
...
@@ -683,7 +751,7 @@ export default class MainBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizsample0001.main_grid.columns.updateman'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
enableCond
:
3
,
},
{
...
...
@@ -692,7 +760,7 @@ export default class MainBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizsample0001.main_grid.columns.updatedate'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
enableCond
:
3
,
},
{
...
...
@@ -701,7 +769,7 @@ export default class MainBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizsample0001.main_grid.columns.defgridcolumn'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
enableCond
:
3
,
},
{
...
...
@@ -710,7 +778,7 @@ export default class MainBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizsample0001.main_grid.columns.defgridcolumn1'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
enableCond
:
3
,
},
{
...
...
@@ -719,7 +787,7 @@ export default class MainBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizsample0001.main_grid.columns.defgridcolumn2'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
enableCond
:
3
,
},
{
...
...
@@ -728,7 +796,7 @@ export default class MainBase extends Vue implements ControlInterface {
langtag
:
'entities.ibizsample0001.main_grid.columns.defgridcolumn3'
,
show
:
true
,
unit
:
'PX'
,
isEnableRowEdit
:
fals
e
,
isEnableRowEdit
:
tru
e
,
enableCond
:
3
,
},
]
...
...
@@ -819,8 +887,12 @@ export default class MainBase extends Vue implements ControlInterface {
return
{
IBIZsample0001name
:
new
FormItemModel
(),
updateman
:
new
FormItemModel
(),
updatedate
:
new
FormItemModel
(),
defgridcolumn3
:
new
FormItemModel
(),
defgridcolumn
:
new
FormItemModel
(),
srfkey
:
new
FormItemModel
(),
defgridcolumn2
:
new
FormItemModel
(),
defgridcolumn1
:
new
FormItemModel
(),
}
}
...
...
@@ -848,6 +920,14 @@ export default class MainBase extends Vue implements ControlInterface {
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'标签(地址栏) 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'标签(地址栏) 值不能为空'
,
trigger
:
'blur'
},
],
updatedate
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'标签(格式化信息) 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'标签(格式化信息) 值不能为空'
,
trigger
:
'blur'
},
],
defgridcolumn3
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'动态代码表国际化 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'动态代码表国际化 值不能为空'
,
trigger
:
'blur'
},
],
defgridcolumn
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'标签(多久之前) 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'标签(多久之前) 值不能为空'
,
trigger
:
'blur'
},
...
...
@@ -856,6 +936,14 @@ export default class MainBase extends Vue implements ControlInterface {
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'IBIZSAMPLE0001标识 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'IBIZSAMPLE0001标识 值不能为空'
,
trigger
:
'blur'
},
],
defgridcolumn2
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'CRON表达式组件 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'CRON表达式组件 值不能为空'
,
trigger
:
'blur'
},
],
defgridcolumn1
:
[
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'多选穿梭框 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
validator
:
(
rule
:
any
,
value
:
any
,
callback
:
any
)
=>
{
return
(
rule
.
required
&&
(
value
===
null
||
value
===
undefined
||
value
===
""
))
?
false
:
true
;},
message
:
'多选穿梭框 值不能为空'
,
trigger
:
'blur'
},
],
}
/**
...
...
app_Web/src/widgets/ibizsample0001/main-grid/main-grid-model.ts
浏览文件 @
a4d0afc8
...
...
@@ -46,6 +46,7 @@ export default class MainModel {
name
:
'updatedate'
,
prop
:
'updatedate'
,
dataType
:
'DATETIME'
,
isEditable
:
true
},
{
name
:
'field04'
,
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录