Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
12a16243
提交
12a16243
编写于
12月 07, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
9dadd1c5
变更
30
隐藏空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
1513 行增加
和
100 行删除
+1513
-100
router.ts
app_Web/src/pages/sample/app-index-view2/router.ts
+13
-0
ibizbookusr-pickup-view-plugin-base.vue
...ickup-view-plugin/ibizbookusr-pickup-view-plugin-base.vue
+779
-0
ibizbookusr-pickup-view-plugin.less
...sr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.less
+18
-0
ibizbookusr-pickup-view-plugin.vue
...usr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.vue
+24
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+1
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+27
-0
router.ts
app_Web/src/pages/ungroup/app-index-view/router.ts
+13
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+11
-1
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
guide-borrow-form-form-base.vue
...ok/guide-borrow-form-form/guide-borrow-form-form-base.vue
+5
-5
guide-return-form-form-base.vue
...ok/guide-return-form-form/guide-return-form-form-base.vue
+5
-5
guide-view-form-form-base.vue
...izbook/guide-view-form-form/guide-view-form-form-base.vue
+5
-5
quicksearchform-searchform-base.vue
...searchform-searchform/quicksearchform-searchform-base.vue
+4
-4
usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-base.vue
...ickup-view-pluginpickupviewpanel-pickupviewpanel-base.vue
+411
-0
usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-model.ts
...ickup-view-pluginpickupviewpanel-pickupviewpanel-model.ts
+116
-0
usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-service.ts
...kup-view-pluginpickupviewpanel-pickupviewpanel-service.ts
+12
-0
usr-pickup-view-pluginpickupviewpanel-pickupviewpanel.less
...sr-pickup-view-pluginpickupviewpanel-pickupviewpanel.less
+5
-0
usr-pickup-view-pluginpickupviewpanel-pickupviewpanel.vue
...usr-pickup-view-pluginpickupviewpanel-pickupviewpanel.vue
+16
-0
usr1206025757-form-base.vue
...s/ibizbook/usr1206025757-form/usr1206025757-form-base.vue
+1
-1
usr2-dataview-base.vue
...src/widgets/ibizbook/usr2-dataview/usr2-dataview-base.vue
+26
-56
usr4-dataview-base.vue
...src/widgets/ibizbook/usr4-dataview/usr4-dataview-base.vue
+4
-4
main-grid-base.vue
...src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
+6
-6
main-grid-model.ts
...src/widgets/ibizorder-detail/main-grid/main-grid-model.ts
+0
-1
Usr1206025757.json
...Web/PSAPPDATAENTITIES/IBIZBOOK/PSFORMS/Usr1206025757.json
+2
-2
IBIZBOOKUsrEditView_actionPlugin.json
...PS/Web/PSAPPDEVIEWS/IBIZBOOKUsrEditView_actionPlugin.json
+2
-2
IBIZBOOKUsrPickupView_plugin.json
...YSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsrPickupView_plugin.json
+0
-1
PSSYSAPP.json
.../resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
+1
-1
PSSYSAPP.simple.json
...ces/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.simple.json
+1
-1
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+1
-1
未找到文件。
app_Web/src/pages/sample/app-index-view2/router.ts
浏览文件 @
12a16243
...
...
@@ -3225,6 +3225,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-state10-edit-view2/ibizorder-state10-edit-view2.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usrpickupview_plugin/:usrpickupview_plugin?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usrpickupview_plugin.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usrpickupview_plugin'
,
parameterName
:
'usrpickupview_plugin'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.vue'
),
},
{
path
:
'/ibiztasks/:ibiztask?/ibiztaskteams/:ibiztaskteam?/editview9/:editview9?'
,
meta
:
{
...
...
app_Web/src/pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin-base.vue
0 → 100644
浏览文件 @
12a16243
<
template
>
<div
class=
"view-container depickupview ibizbookusr-pickup-view-plugin"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizbookusrpickupview_plugin"
></app-studioaction>
<card
class=
'view-card view-no-caption view-no-toolbar'
:dis-hover=
"true"
:padding=
"0"
:bordered=
"false"
>
<div
class=
"content-container pickup-view"
>
<view
_pickupviewpanel
:viewState=
"viewState"
:viewparams=
"JSON.parse(JSON.stringify(viewparams))"
:context=
"JSON.parse(JSON.stringify(context))"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
name=
"pickupviewpanel"
ref=
'pickupviewpanel'
@
selectionchange=
"pickupviewpanel_selectionchange($event)"
@
load=
"pickupviewpanel_load($event)"
@
activated=
"pickupviewpanel_activated($event)"
@
closeview=
"closeView($event)"
>
</view
_pickupviewpanel
>
<card
v-if=
"isShowButton"
:dis-hover=
"true"
:bordered=
"false"
class=
"footer"
>
<row
:style=
"
{ textAlign: 'right' }">
<i-button
type=
"primary"
:disabled=
"this.viewSelections.length > 0 ? false : true"
@
click=
"onClickOk"
>
{{
this
.
containerModel
.
view_okbtn
.
text
}}
</i-button>
<i-button
@
click=
"onClickCancel"
>
{{
this
.
containerModel
.
view_cancelbtn
.
text
}}
</i-button>
</row>
</card>
</div>
</card>
</div>
</
template
>
// 基于 @VIEW/实体数据选择视图/VIEW-BASE.vue.ftl 生成
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
axios
from
'axios'
;
import
{
AppMessageBox
}
from
'@/utils/app-message-box/app-message-box'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
IBIZBOOKAuthService
from
'@/authservice/ibizbook/ibizbook-auth-service'
;
import
PickupViewEngine
from
'@engine/view/pickup-view-engine'
;
import
IBIZBOOKUIService
from
'@/uiservice/ibizbook/ibizbook-ui-service'
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZBOOKUsrPickupView_pluginBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
();
/**
* 实体UI服务对象
*
* @type IBIZBOOKUIService
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
viewtag
:
string
=
'D8DC4CF2-3FDF-4FF3-8914-2AEC6063C86F'
;
/**
* 视图类型
*
* @type {string}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
viewType
:
string
=
'DEPICKUPVIEW'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizbook.views.usrpickupview_plugin.caption'
,
srfTitle
:
'entities.ibizbook.views.usrpickupview_plugin.title'
,
srfSubTitle
:
'entities.ibizbook.views.usrpickupview_plugin.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
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
);
}
if
(
this
.
viewparams
.
selectedData
){
this
.
selectedData
=
JSON
.
stringify
(
this
.
viewparams
.
selectedData
);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
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 IBIZBOOKUsrPickupView_pluginBase
*/
public
containerModel
:
any
=
{
view_pickupviewpanel
:
{
name
:
'pickupviewpanel'
,
type
:
'PICKUPVIEWPANEL'
},
view_okbtn
:
{
name
:
'okbtn'
,
type
:
'button'
,
text
:
'确定'
,
disabled
:
true
},
view_cancelbtn
:
{
name
:
'cancelbtn'
,
type
:
'button'
,
text
:
'取消'
,
disabled
:
false
},
view_leftbtn
:
{
name
:
'leftbtn'
,
type
:
'button'
,
text
:
'左移'
,
disabled
:
true
},
view_rightbtn
:
{
name
:
'rightbtn'
,
type
:
'button'
,
text
:
'右移'
,
disabled
:
true
},
view_allleftbtn
:
{
name
:
'allleftbtn'
,
type
:
'button'
,
text
:
'全部左移'
,
disabled
:
true
},
view_allrightbtn
:
{
name
:
'allrightbtn'
,
type
:
'button'
,
text
:
'全部右移'
,
disabled
:
true
},
};
/**
* 视图操作参数
*
* @type {*}
* @readonly
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
viewCtx
:
any
=
{};
/**
* 计数器刷新
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
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 IBIZBOOKUsrPickupView_pluginBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
engine
:
PickupViewEngine
=
new
PickupViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
pickupviewpanel
:
this
.
$refs
.
pickupviewpanel
,
keyPSDEField
:
'ibizbook'
,
majorPSDEField
:
'ibizbookname'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
navDataService
=
NavDataService
.
getInstance
();
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
formDruipartEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
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
)
=>
{
if
(
matchArray
[
index
+
1
]){
Object
.
defineProperty
(
tempValue
,
item
.
name
,
{
enumerable
:
true
,
value
:
decodeURIComponent
(
matchArray
[
index
+
1
])
});
}
});
this
.
$viewTool
.
formatRouteParams
(
tempValue
,
this
.
$route
,
this
.
context
,
this
.
viewparams
);
if
(
inputvalue
){
Object
.
assign
(
this
.
context
,{
'ibizbook'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
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 IBIZBOOKUsrPickupView_pluginBase
*/
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 IBIZBOOKUsrPickupView_pluginBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizbookusr-pickup-view-plugin'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizbook
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizbookusr-pickup-view-plugin'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizbook
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
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
,
'ibizbookusr-pickup-view-plugin'
)){
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
,
'IBIZBOOKUsrPickupView_plugin'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
_this
.
initViewCtx
();
}
/**
* 初始化视图操作参数
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
initViewCtx
()
{
Object
.
assign
(
this
.
viewCtx
,
{
app
:
this
.
$root
,
view
:
this
,
viewGlobal
:
{},
viewNavData
:
{},
viewNavContext
:
this
.
context
,
viewNavParam
:
this
.
viewparams
,
messagebox
:
AppMessageBox
.
getInstance
(),
});
Object
.
assign
(
this
.
viewCtx
,
{
appGlobal
:
this
.
$store
.
getters
.
getAppGlobal
()
});
if
(
this
.
$store
.
getters
.
getRouteViewGlobal
(
this
.
context
.
srfsessionid
))
{
Object
.
assign
(
this
.
viewCtx
,
{
routeViewGlobal
:
this
.
$store
.
getters
.
getRouteViewGlobal
(
this
.
context
.
srfsessionid
)
});
}
else
{
this
.
$store
.
commit
(
'addRouteViewGlobal'
,
{
tag
:
this
.
context
.
srfsessionid
,
param
:
{}
});
Object
.
assign
(
this
.
viewCtx
,
{
routeViewGlobal
:
this
.
$store
.
getters
.
getRouteViewGlobal
(
this
.
context
.
srfsessionid
)
});
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
// 嵌入视图
Object
.
assign
(
this
.
viewCtx
,
{
topview
:
this
.
$store
.
getters
.
getView
(
this
.
context
.
srfsessionid
)
});
}
else
{
// 顶层视图
this
.
$store
.
commit
(
'addView'
,
{
tag
:
this
.
context
.
srfsessionid
,
param
:
this
});
Object
.
assign
(
this
.
viewCtx
,
{
topview
:
this
});
}
}
/**
* 销毁之前
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
let
_this
:
any
=
this
if
(
_this
.
serviceStateEvent
)
{
_this
.
serviceStateEvent
.
unsubscribe
();
}
if
(
_this
.
portletStateEvent
)
{
_this
.
portletStateEvent
.
unsubscribe
();
}
if
(
_this
.
formDruipartEvent
)
{
_this
.
formDruipartEvent
.
unsubscribe
();
}
if
(
_this
.
engine
)
{
_this
.
engine
.
destroy
();
}
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
if
(
this
.
viewparams
.
selectedData
){
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'selectionchange'
,
this
.
viewparams
.
selectedData
);
}
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
pickupviewpanel_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'selectionchange'
,
$event
);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
pickupviewpanel_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'load'
,
$event
);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
pickupviewpanel_activated
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'pickupviewpanel'
,
'activated'
,
$event
);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
closeView
(
args
:
any
[]):
void
{
let
_view
:
any
=
this
;
if
(
_view
.
viewdata
)
{
_view
.
$emit
(
'viewdataschange'
,
Array
.
isArray
(
args
)?
args
:[
args
]);
_view
.
$emit
(
'close'
,
Array
.
isArray
(
args
)?
args
:[
args
]);
}
else
if
(
_view
.
$tabPageExp
)
{
_view
.
$tabPageExp
.
onClose
(
_view
.
$route
.
fullPath
);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
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
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
}
/**
* 选中数据的字符串
*
* @type {string}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
selectedData
:
string
=
""
;
/**
* 视图选中数据
*
* @type {any[]}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
viewSelections
:
any
[]
=
[];
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
@
Prop
({
default
:
true
})
public
isShowButton
!
:
boolean
;
/**
* 是否单选
*
* @type {boolean}
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
isSingleSelect
:
boolean
=
true
;
/**
* 确定
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
onClickOk
():
void
{
this
.
$emit
(
'viewdataschange'
,
this
.
viewSelections
);
this
.
$emit
(
'close'
,
null
);
}
/**
* 取消
*
* @memberof IBIZBOOKUsrPickupView_pluginBase
*/
public
onClickCancel
():
void
{
this
.
$emit
(
'viewdataschange'
,
null
);
this
.
$emit
(
'close'
,
null
);
}
}
</
script
>
<
style
lang=
'less'
>
@import './ibizbookusr-pickup-view-plugin.less';
</
style
>
\ No newline at end of file
app_Web/src/pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.less
0 → 100644
浏览文件 @
12a16243
// 基于 @VIEW/实体数据选择视图/VIEW.less.ftl 生成
.ibizbookusr-pickup-view-plugin{
position: relative;
}
.pickup-view {
>.pickupviewpanel {
flex-grow: 1;
display: flex;
justify-content: flex-end;
height: calc(100% - 64px);
}
>.footer {
height: 64px;
}
}
app_Web/src/pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.vue
0 → 100644
浏览文件 @
12a16243
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZBOOKUsrPickupView_pluginBase
from
'./ibizbookusr-pickup-view-plugin-base.vue'
;
import
view_pickupviewpanel
from
'@widgets/ibizbook/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel.vue'
;
// 基于 @VIEW/实体数据选择视图/VIEW.vue.ftl 生成
@
Component
({
components
:
{
view_pickupviewpanel
,
},
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
IBIZBOOKUsrPickupView_plugin
extends
IBIZBOOKUsrPickupView_pluginBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
12a16243
...
...
@@ -226,6 +226,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizcustomer-mpickup-view-layout'
,
()
=>
import
(
'@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'
));
Vue
.
component
(
'ibizorder-redirect-view'
,
()
=>
import
(
'@pages/sample/ibizorder-redirect-view/ibizorder-redirect-view.vue'
));
Vue
.
component
(
'ibizbookredirect-view'
,
()
=>
import
(
'@pages/sample/ibizbookredirect-view/ibizbookredirect-view.vue'
));
Vue
.
component
(
'ibizbookusr-pickup-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.vue'
));
Vue
.
component
(
'ibizappviewedit-view'
,
()
=>
import
(
'@pages/sample/ibizappviewedit-view/ibizappviewedit-view.vue'
));
Vue
.
component
(
'ibizappctrledit-view'
,
()
=>
import
(
'@pages/sample/ibizappctrledit-view/ibizappctrledit-view.vue'
));
Vue
.
component
(
'ibizappeditoredit-view'
,
()
=>
import
(
'@pages/sample/ibizappeditoredit-view/ibizappeditoredit-view.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
12a16243
...
...
@@ -3403,6 +3403,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizcustomer-mpickup-view-layout/ibizcustomer-mpickup-view-layout.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/usrpickupview_plugin/:usrpickupview_plugin?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usrpickupview_plugin.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usrpickupview_plugin'
,
parameterName
:
'usrpickupview_plugin'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.vue'
),
},
{
path
:
'ibizappviews/:ibizappview?/editview/:editview?'
,
meta
:
{
...
...
@@ -6736,6 +6750,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-state10-edit-view2/ibizorder-state10-edit-view2.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usrpickupview_plugin/:usrpickupview_plugin?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usrpickupview_plugin.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usrpickupview_plugin'
,
parameterName
:
'usrpickupview_plugin'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.vue'
),
},
{
path
:
'/ibiztasks/:ibiztask?/ibiztaskteams/:ibiztaskteam?/editview9/:editview9?'
,
meta
:
{
...
...
app_Web/src/pages/ungroup/app-index-view/router.ts
浏览文件 @
12a16243
...
...
@@ -3043,6 +3043,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizorder-state10-edit-view2/ibizorder-state10-edit-view2.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usrpickupview_plugin/:usrpickupview_plugin?'
,
meta
:
{
caption
:
'entities.ibizbook.views.usrpickupview_plugin.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usrpickupview_plugin'
,
parameterName
:
'usrpickupview_plugin'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-pickup-view-plugin/ibizbookusr-pickup-view-plugin.vue'
),
},
{
path
:
'/ibiztasks/:ibiztask?/ibiztaskteams/:ibiztaskteam?/editview9/:editview9?'
,
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
12a16243
...
...
@@ -2359,6 +2359,16 @@ export const viewstate: any = {
'6bc6e690dc5abfc6d89703e4459c785c'
,
],
},
{
viewtag
:
'D8DC4CF2-3FDF-4FF3-8914-2AEC6063C86F'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKUsrPickupView_plugin'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'6a079bac1a6eeb580654cd04e6b1a8b8'
,
],
},
{
viewtag
:
'd985337c61d3832ea28781561622a1cd'
,
viewmodule
:
'Sample'
,
...
...
@@ -2688,7 +2698,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'
2dd50b1b88cf8062b625ee8b0b4fa9d7
'
,
'
D8DC4CF2-3FDF-4FF3-8914-2AEC6063C86F
'
,
],
},
{
...
...
app_Web/src/widgets/ibizappeditor/default-searchform/default-searchform-base.vue
浏览文件 @
12a16243
...
...
@@ -639,7 +639,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -675,7 +675,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
12a16243
...
...
@@ -712,7 +712,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
GroupByCodelistList
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -748,7 +748,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
GroupByCodelistList
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/guide-borrow-form-form/guide-borrow-form-form-base.vue
浏览文件 @
12a16243
...
...
@@ -1378,7 +1378,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public
async
load
(
opt
:
any
=
{}):
Promise
<
any
>
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -1425,7 +1425,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/
public
async
loadDraft
(
opt
:
any
=
{}):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
@@ -1495,7 +1495,7 @@ export default class GuideBorrowFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
...
@@ -1603,7 +1603,7 @@ export default class GuideBorrowFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
});
...
...
@@ -1695,7 +1695,7 @@ export default class GuideBorrowFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
opt
[
0
];
...
...
app_Web/src/widgets/ibizbook/guide-return-form-form/guide-return-form-form-base.vue
浏览文件 @
12a16243
...
...
@@ -1344,7 +1344,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public
async
load
(
opt
:
any
=
{}):
Promise
<
any
>
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -1391,7 +1391,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/
public
async
loadDraft
(
opt
:
any
=
{}):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
@@ -1461,7 +1461,7 @@ export default class GuideReturnFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
...
@@ -1569,7 +1569,7 @@ export default class GuideReturnFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
});
...
...
@@ -1661,7 +1661,7 @@ export default class GuideReturnFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
opt
[
0
];
...
...
app_Web/src/widgets/ibizbook/guide-view-form-form/guide-view-form-form-base.vue
浏览文件 @
12a16243
...
...
@@ -1447,7 +1447,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public
async
load
(
opt
:
any
=
{}):
Promise
<
any
>
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.loadaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -1494,7 +1494,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/
public
async
loadDraft
(
opt
:
any
=
{}):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.loaddraftaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
@@ -1564,7 +1564,7 @@ export default class GuideViewFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
...
...
@@ -1672,7 +1672,7 @@ export default class GuideViewFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.actionname'
)
as
string
)
});
return
;
}
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
});
...
...
@@ -1764,7 +1764,7 @@ export default class GuideViewFormBase 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
:
'IBIZBOOKWizardView
_layout
'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKWizardView'
+
(
this
.
$t
(
'app.formpage.notconfig.removeaction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
opt
[
0
];
...
...
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-base.vue
浏览文件 @
12a16243
<
template
>
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'searchform'
style=
""
>
<i-form
:model=
"this.data"
class=
'app-search-form'
ref=
'
quick
searchform'
style=
""
>
<input
style=
"display:none;"
/>
<row>
<i-col
span=
"20"
class=
"form-content"
>
...
...
@@ -516,7 +516,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
* @memberof QUICKSEARCHFORMBase
*/
public
formValidateStatus
():
boolean
{
const
form
:
any
=
this
.
$refs
.
searchform
;
const
form
:
any
=
this
.
$refs
.
quick
searchform
;
let
validatestate
:
boolean
=
true
;
form
.
validate
((
valid
:
boolean
)
=>
{
validatestate
=
valid
?
true
:
false
;
...
...
@@ -670,7 +670,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
UsrListView_plugin
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
ListView
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -706,7 +706,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
UsrListView_plugin
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
ListView
'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-base.vue
0 → 100644
浏览文件 @
12a16243
// 基于 @CONTROL/选择视图面板/CONTROL-BASE.vue.ftl 生成
<
template
>
<div
class=
'pickupviewpanel'
>
<component
v-if=
"inited && view.viewname && !Object.is(view.viewname, '')"
:is=
"view.viewname"
class=
"viewcontainer3"
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:viewDefaultUsage=
"false"
:isSingleSelect=
"isSingleSelect"
:selectedData=
"selectedData"
:isShowButton=
"isShowButton"
@
viewdataschange=
"onViewDatasChange"
@
viewdatasactivated=
"viewDatasActivated"
@
viewload=
"onViewLoad"
>
</component>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
AppCenterService
from
"@service/app/app-center-service"
;
import
IBIZBOOKEntityService
from
'@/service/ibizbook/ibizbook-service'
;
import
UsrPickupView_pluginpickupviewpanelService
from
'./usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-service'
;
import
IBIZBOOKUIService
from
'@/uiservice/ibizbook/ibizbook-ui-service'
;
import
UsrPickupView_pluginpickupviewpanelModel
from
'./usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-model'
;
@
Component
({
components
:
{
}
})
export
default
class
UsrPickupView_pluginpickupviewpanelBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图操作参数(父级)
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
()
public
pViewCtx
!
:
any
;
/**
* 视图操作参数
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
viewCtx
:
any
=
{};
/**
* 监听视图操作参数变化
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Watch
(
'pViewCtx'
,
{
immediate
:
true
})
public
onViewCtxChange
(
newVal
:
any
,
oldVal
:
any
)
{
Object
.
assign
(
this
.
viewCtx
,
newVal
,
{
xData
:
this
,
ctrl
:
this
});
}
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
getControlType
():
string
{
return
'PICKUPVIEWPANEL'
}
/**
* 建构部件服务对象
*
* @type {UsrPickupView_pluginpickupviewpanelService}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
service
:
UsrPickupView_pluginpickupviewpanelService
=
new
UsrPickupView_pluginpickupviewpanelService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
appEntityService
:
IBIZBOOKEntityService
=
new
IBIZBOOKEntityService
({
$store
:
this
.
$store
});
/**
* 转化数据
*
* @param {any} args
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
transformData
(
args
:
any
)
{
let
_this
:
any
=
this
;
if
(
_this
.
service
&&
_this
.
service
.
handleRequestData
instanceof
Function
&&
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)){
return
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)[
'data'
];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
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
();
}
})
}
}
/**
* 处理部件事件
*
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
async
handleCtrlEvents
(
eventName
:
string
,
args
:
any
=
{}):
Promise
<
boolean
>
{
const
actionData
=
{
data
:
this
.
getData
()
||
{},
context
:
Util
.
deepCopy
(
this
.
context
),
viewparams
:
Util
.
deepCopy
(
this
.
viewparams
),
xData
:
this
}
let
result
:
boolean
=
true
;
Object
.
assign
(
actionData
,
args
);
if
(
!
result
)
{
return
false
;
}
this
.
$emit
(
eventName
,
actionData
);
return
true
;
}
/**
* 选中数据字符串
*
* @type {string}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
()
public
selectedData
?:
string
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
getData
():
any
{
return
{};
}
/**
* 视图名称
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
view
:
any
=
{
viewname
:
'ibizcustomer-pickup-tree-view'
,
data
:
{},
}
/**
* 局部上下文
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
localContext
:
any
=
null
;
/**
* 局部视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
localViewParam
:
any
=
null
;
/**
* 视图数据
*
* @type {*}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
viewdata
:
string
=
JSON
.
stringify
(
this
.
context
);
/**
* 视图参数
*
* @type {*}
* @memberof PickupViewpickupviewpanel
*/
public
viewparam
:
string
=
JSON
.
stringify
(
this
.
viewparams
);
/**
* 是否显示按钮
*
* @type {boolean}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
({
default
:
true
})
public
isShowButton
!
:
boolean
;
/**
* 是否单选
*
* @type {boolean}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
@
Prop
()
public
isSingleSelect
?:
boolean
;
/**
* 初始化完成
*
* @type {boolean}
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
inited
:
boolean
=
false
;
/**
* 视图数据变化
*
* @param {*} $event
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
onViewDatasChange
(
$event
:
any
):
void
{
if
(
$event
.
length
>
0
){
$event
.
forEach
((
item
:
any
,
index
:
any
)
=>
{
let
srfmajortext
=
item
.
srfmajortext
?
item
.
srfmajortext
:
item
[
'ibizbookname'
];
if
(
srfmajortext
){
Object
.
assign
(
$event
[
index
],{
srfmajortext
:
srfmajortext
});
}
});
}
this
.
$emit
(
'selectionchange'
,
$event
);
}
/**
* 视图数据被激活
*
* @param {*} $event
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
viewDatasActivated
(
$event
:
any
):
void
{
this
.
$emit
(
'activated'
,
$event
);
}
/**
* 视图加载完成
*
* @param {*} $event
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
onViewLoad
(
$event
:
any
):
void
{
this
.
$emit
(
'load'
,
$event
);
}
/**
* vue 生命周期
*
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
afterCreated
(){
this
.
initNavParam
();
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
Object
.
assign
(
data
,
this
.
viewparams
));
this
.
inited
=
true
;
}
});
}
}
/**
* 初始化导航参数
*
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
initNavParam
(){
if
(
this
.
localContext
&&
Object
.
keys
(
this
.
localContext
).
length
>
0
){
let
_context
:
any
=
this
.
$util
.
computedNavData
({},
this
.
context
,
this
.
viewparams
,
this
.
localContext
);
Object
.
assign
(
this
.
context
,
_context
);
}
if
(
this
.
localViewParam
&&
Object
.
keys
(
this
.
localViewParam
).
length
>
0
){
let
_param
:
any
=
this
.
$util
.
computedNavData
({},
this
.
context
,
this
.
viewparams
,
this
.
localViewParam
);
Object
.
assign
(
this
.
viewparams
,
_param
);
}
this
.
viewdata
=
JSON
.
stringify
(
this
.
context
);
this
.
viewparam
=
JSON
.
stringify
(
this
.
viewparams
);
}
/**
* vue 生命周期
*
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof UsrPickupView_pluginpickupviewpanelBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './usr-pickup-view-pluginpickupviewpanel-pickupviewpanel.less';
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizbook/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-model.ts
0 → 100644
浏览文件 @
12a16243
// 基于 @CONTROL/选择视图面板/MODEL.ts.ftl 生成
/**
* UsrPickupView_pluginpickupviewpanel 部件模型
*
* @export
* @class UsrPickupView_pluginpickupviewpanelModel
*/
export
default
class
UsrPickupView_pluginpickupviewpanelModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof UsrPickupView_pluginpickupviewpanelModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'createman'
,
},
{
name
:
'ibizbookname'
,
},
{
name
:
'ibizbook'
,
prop
:
'ibizbookid'
,
},
{
name
:
'createdate'
,
},
{
name
:
'updateman'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'author'
,
},
{
name
:
'price'
,
},
{
name
:
'press'
,
},
{
name
:
'type'
,
},
{
name
:
'booknumber'
,
},
{
name
:
'subtext'
,
},
{
name
:
'lendouttime'
,
},
{
name
:
'returntime'
,
},
{
name
:
'icon'
,
},
{
name
:
'sailstate'
,
},
{
name
:
'borrowstatus'
,
},
{
name
:
'stepstatus'
,
},
{
name
:
'borrower'
,
},
{
name
:
'borrowway'
,
},
{
name
:
'returnlib'
,
},
{
name
:
'borrowerid'
,
},
{
name
:
'borrower1'
,
},
{
name
:
'borrower1_id'
,
},
{
name
:
'borrower2'
,
},
{
name
:
'borrower2_id'
,
},
{
name
:
'borrower3'
,
},
{
name
:
'borrower3_id'
,
},
{
name
:
'tag'
,
},
{
name
:
'orgid'
,
},
{
name
:
'deptid'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-service.ts
0 → 100644
浏览文件 @
12a16243
// 基于 @CONTROL/选择视图面板/SERVICE.ts.ftl 生成
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* UsrPickupView_pluginpickupviewpanel 部件服务对象
*
* @export
* @class UsrPickupView_pluginpickupviewpanelService
*/
export
default
class
UsrPickupView_pluginpickupviewpanelService
extends
ControlService
{
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel.less
0 → 100644
浏览文件 @
12a16243
// 基于 @CONTROL/选择视图面板/CONTROL.less.ftl 生成
// this is less
.pickupviewpanel{
width: 100%;
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel/usr-pickup-view-pluginpickupviewpanel-pickupviewpanel.vue
0 → 100644
浏览文件 @
12a16243
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
UsrPickupView_pluginpickupviewpanelBase
from
'./usr-pickup-view-pluginpickupviewpanel-pickupviewpanel-base.vue'
;
// 基于 @CONTROL/选择视图面板/CONTROL.vue.ftl 生成
@
Component
({
components
:
{
}
})
export
default
class
UsrPickupView_pluginpickupviewpanel
extends
UsrPickupView_pluginpickupviewpanelBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/ibizbook/usr1206025757-form/usr1206025757-form-base.vue
浏览文件 @
12a16243
...
...
@@ -65,7 +65,7 @@
valueitem=''
:value="data.formitem1"
editortype=""
:pickupView="{ viewname: 'ibiz
customer-usr2-pickup-view', title: $t('entities.ibizcustomer.views.usr2pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'usr2pickupview', parameterName: 'usr2pickupview
' } ], placement:'' }"
:pickupView="{ viewname: 'ibiz
bookusr-pickup-view-plugin', title: $t('entities.ibizbook.views.usrpickupview_plugin.title'), deResParameters: [], parameters: [{ pathName: 'ibizbooks', parameterName: 'ibizbook' }, { pathName: 'usrpickupview_plugin', parameterName: 'usrpickupview_plugin
' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
...
...
app_Web/src/widgets/ibizbook/usr2-dataview/usr2-dataview-base.vue
浏览文件 @
12a16243
...
...
@@ -48,18 +48,18 @@
<div
v-show=
"flag"
class=
"batch-toolbar"
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"
dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction1.visabled"
:disabled=
"dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction1.disabled"
class=
''
v-button-loading:i-button
@
click=
"dataviewexpbar_
dataview_batchtoolbar_click({ tag: 'deuiaction1' }, $event)"
>
<i-button
v-show=
"
usr2dataviewdataview_batchtoolbarModels.deuiaction1.visabled"
:disabled=
"usr2dataviewdataview_batchtoolbarModels.deuiaction1.disabled"
class=
''
v-button-loading:i-button
@
click=
"
dataview_batchtoolbar_click({ tag: 'deuiaction1' }, $event)"
>
<i
class=
'fa fa-edit'
></i>
<span
class=
'caption'
>
{{$t('entities.ibizbook.
dataviewexpviewdataviewexpbar_
dataview_batchtoolbar_toolbar.deuiaction1.caption')}}
</span>
<span
class=
'caption'
>
{{$t('entities.ibizbook.
usr2dataview
dataview_batchtoolbar_toolbar.deuiaction1.caption')}}
</span>
</i-button>
<div
slot=
'content'
>
{{$t('entities.ibizbook.
dataviewexpviewdataviewexpbar_
dataview_batchtoolbar_toolbar.deuiaction1.tip')}}
</div>
<div
slot=
'content'
>
{{$t('entities.ibizbook.
usr2dataview
dataview_batchtoolbar_toolbar.deuiaction1.tip')}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"
dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction2.visabled"
:disabled=
"dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction2.disabled"
class=
''
v-button-loading:i-button
@
click=
"dataviewexpbar_
dataview_batchtoolbar_click({ tag: 'deuiaction2' }, $event)"
>
<i-button
v-show=
"
usr2dataviewdataview_batchtoolbarModels.deuiaction2.visabled"
:disabled=
"usr2dataviewdataview_batchtoolbarModels.deuiaction2.disabled"
class=
''
v-button-loading:i-button
@
click=
"
dataview_batchtoolbar_click({ tag: 'deuiaction2' }, $event)"
>
<i
class=
'fa fa-remove'
></i>
<span
class=
'caption'
>
{{$t('entities.ibizbook.
dataviewexpviewdataviewexpbar_
dataview_batchtoolbar_toolbar.deuiaction2.caption')}}
</span>
<span
class=
'caption'
>
{{$t('entities.ibizbook.
usr2dataview
dataview_batchtoolbar_toolbar.deuiaction2.caption')}}
</span>
</i-button>
<div
slot=
'content'
>
{{$t('entities.ibizbook.
dataviewexpviewdataviewexpbar_
dataview_batchtoolbar_toolbar.deuiaction2.tip')}}
</div>
<div
slot=
'content'
>
{{$t('entities.ibizbook.
usr2dataview
dataview_batchtoolbar_toolbar.deuiaction2.tip')}}
</div>
</tooltip>
</div>
</div>
...
...
@@ -202,18 +202,18 @@ export default class Usr2Base extends Vue implements ControlInterface {
public
appEntityService
:
IBIZBOOKEntityService
=
new
IBIZBOOKEntityService
({
$store
:
this
.
$store
});
/**
* dataview
expbar_dataview
_batchtoolbar 部件 click 事件
* dataview_batchtoolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof Usr2Base
*/
public
dataview
expbar_dataview
_batchtoolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
public
dataview_batchtoolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
dataview
expbar_dataview_batchtoolbar_deuiaction1_click
(
null
,
'dataviewexpbar_
dataview_batchtoolbar'
,
$event2
);
this
.
dataview
_batchtoolbar_deuiaction1_click
(
null
,
'
dataview_batchtoolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
dataview
expbar_dataview_batchtoolbar_deuiaction2_click
(
null
,
'dataviewexpbar_
dataview_batchtoolbar'
,
$event2
);
this
.
dataview
_batchtoolbar_deuiaction2_click
(
null
,
'
dataview_batchtoolbar'
,
$event2
);
}
}
...
...
@@ -226,7 +226,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
dataview
expbar_dataview
_batchtoolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview_batchtoolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -254,7 +254,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
dataview
expbar_dataview
_batchtoolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview_batchtoolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
...
...
@@ -282,7 +282,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
dataview
expbar_dataview
_memo1_u37f11a8_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview_memo1_u37f11a8_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
...
...
@@ -309,7 +309,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
dataview
expbar_dataview
_memo1_uc365542_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview_memo1_uc365542_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
...
...
@@ -337,7 +337,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOK
DataViewExp
ViewBase
* @memberof IBIZBOOK
Usr2Data
ViewBase
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
...
...
@@ -363,7 +363,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOK
DataViewExp
ViewBase
* @memberof IBIZBOOK
Usr2Data
ViewBase
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
...
...
@@ -427,12 +427,6 @@ export default class Usr2Base extends Vue implements ControlInterface {
}
let
result
:
boolean
=
true
;
Object
.
assign
(
actionData
,
args
);
if
(
'selectionchange'
.
indexOf
(
eventName
)
!==
-
1
)
{
result
=
await
this
.
execute_dataviewexpbar_selectionchange_ctrl_logic
(
actionData
)
&&
result
;
}
if
(
'load'
.
indexOf
(
eventName
)
!==
-
1
)
{
result
=
await
this
.
execute_dataviewexpbar_load_ctrl_logic
(
actionData
)
&&
result
;
}
if
(
!
result
)
{
return
false
;
}
...
...
@@ -440,30 +434,6 @@ export default class Usr2Base extends Vue implements ControlInterface {
return
true
;
}
/**
* 部件逻辑 -- dataviewexpbar_selectionchange
*
* @param {string} eventName 部件事件名称
* @param {any[]} data 数据
* @param {*} event 源事件对象
* @memberof Usr2Base
*/
public
async
execute_dataviewexpbar_selectionchange_ctrl_logic
(
actionData
:
any
):
Promise
<
boolean
>
{
console
.
log
(
'暂未支持 CUSTOM 类型'
);
return
true
;
}
/**
* 部件逻辑 -- dataviewexpbar_load
*
* @param {string} eventName 部件事件名称
* @param {any[]} data 数据
* @param {*} event 源事件对象
* @memberof Usr2Base
*/
public
async
execute_dataviewexpbar_load_ctrl_logic
(
actionData
:
any
):
Promise
<
boolean
>
{
console
.
log
(
'暂未支持 CUSTOM 类型'
);
return
true
;
}
...
...
@@ -708,9 +678,9 @@ export default class Usr2Base extends Vue implements ControlInterface {
* 工具栏模型
*
* @type {*}
* @memberof IBIZBOOK
DataViewExp
View
* @memberof IBIZBOOK
Usr2Data
View
*/
public
dataviewexpviewdataviewexpbar_
dataview_batchtoolbarModels
:
any
=
{
public
usr2dataview
dataview_batchtoolbarModels
:
any
=
{
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'删除'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
}
},
...
...
@@ -1035,7 +1005,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
*/
public
async
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
Promise
<
any
>
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{...
opt
};
...
...
@@ -1130,7 +1100,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
let
_datas
:
any
[]
=
[];
...
...
@@ -1247,7 +1217,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
...
@@ -1255,7 +1225,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizbook
){
...
...
@@ -1357,16 +1327,16 @@ export default class Usr2Base extends Vue implements ControlInterface {
public
uiAction
(
data
:
any
,
tag
:
any
,
$event
:
any
)
{
$event
.
stopPropagation
();
if
(
Object
.
is
(
'Edit'
,
tag
))
{
this
.
dataview
expbar_dataview
_batchtoolbar_deuiaction1_click
(
data
,
tag
,
$event
);
this
.
dataview_batchtoolbar_deuiaction1_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview
expbar_dataview
_batchtoolbar_deuiaction2_click
(
data
,
tag
,
$event
);
this
.
dataview_batchtoolbar_deuiaction2_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Edit'
,
tag
))
{
this
.
dataview
expbar_dataview
_memo1_u37f11a8_click
(
data
,
tag
,
$event
);
this
.
dataview_memo1_u37f11a8_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview
expbar_dataview
_memo1_uc365542_click
(
data
,
tag
,
$event
);
this
.
dataview_memo1_uc365542_click
(
data
,
tag
,
$event
);
}
}
...
...
app_Web/src/widgets/ibizbook/usr4-dataview/usr4-dataview-base.vue
浏览文件 @
12a16243
...
...
@@ -698,7 +698,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public
async
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
Promise
<
any
>
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
TestCL
DataView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr4
DataView'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{...
opt
};
...
...
@@ -792,7 +792,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
TestCL
DataView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr4
DataView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
let
_datas
:
any
[]
=
[];
...
...
@@ -908,7 +908,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
TestCL
DataView'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr4
DataView'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
...
@@ -916,7 +916,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
TestCL
DataView'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr4
DataView'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizbook
){
...
...
app_Web/src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
浏览文件 @
12a16243
...
...
@@ -964,7 +964,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
fetchAction
)
{
this
.
$Notice
.
error
({
title
:
this
.
$t
(
"app.commonWords.wrong"
)
as
string
,
desc
:
"IBIZOrderDetail
SGridView
"
+
(
this
.
$t
(
"app.gridpage.notConfig.fetchAction"
)
as
string
),
desc
:
"IBIZOrderDetail
GridView9
"
+
(
this
.
$t
(
"app.gridpage.notConfig.fetchAction"
)
as
string
),
});
return
;
}
...
...
@@ -1093,7 +1093,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
removeAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
...
...
@@ -1207,7 +1207,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
addBatch
(
arg
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
!
arg
){
...
...
@@ -2101,7 +2101,7 @@ export default class MainBase extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
))
{
if
(
!
this
.
createAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
...
...
@@ -2110,7 +2110,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
...
...
@@ -2186,7 +2186,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
...
...
app_Web/src/widgets/ibizorder-detail/main-grid/main-grid-model.ts
浏览文件 @
12a16243
...
...
@@ -97,7 +97,6 @@ export default class MainModel {
name
:
'ibizorderdetail'
,
prop
:
'ibizorderdetailid'
,
},
{
name
:
'size'
,
prop
:
'size'
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSFORMS/Usr1206025757.json
浏览文件 @
12a16243
...
...
@@ -340,13 +340,13 @@
"handlerType"
:
"PickupText"
,
"getLinkPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
CustomerUsr2PickupView
.json"
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
BOOKUsrPickupView_plugin
.json"
,
"viewType"
:
"DEPICKUPVIEW"
},
"name"
:
"formitem1"
,
"getPickupPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
CustomerUsr2PickupView
.json"
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
BOOKUsrPickupView_plugin
.json"
,
"viewType"
:
"DEPICKUPVIEW"
},
"enableAC"
:
true
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsrEditView_actionPlugin.json
浏览文件 @
12a16243
...
...
@@ -562,13 +562,13 @@
"handlerType"
:
"PickupText"
,
"getLinkPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
CustomerUsr2PickupView
.json"
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
BOOKUsrPickupView_plugin
.json"
,
"viewType"
:
"DEPICKUPVIEW"
},
"name"
:
"formitem1"
,
"getPickupPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
CustomerUsr2PickupView
.json"
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZ
BOOKUsrPickupView_plugin
.json"
,
"viewType"
:
"DEPICKUPVIEW"
},
"enableAC"
:
true
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsrPickupView_plugin.json
浏览文件 @
12a16243
...
...
@@ -374,7 +374,6 @@
"useDefaultLayout"
:
true
},
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZBOOKUsrPickupView_plugin"
,
"refFlag"
:
false
,
"title"
:
"选择视图插件(vue3)"
,
"viewStyle"
:
"pickerViewCustom"
,
"viewType"
:
"DEPICKUPVIEW"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
12a16243
...
...
@@ -5499,7 +5499,7 @@
"refMode" : "APPVIEW",
"refTag" : "DETREEVIEW",
"templCode" : "<AppViewLayout :class=\"classNames\">\r\n <template v-if=\"!noViewCaption && model.showCaption\" #viewHeaderLeft>\r\n <div class=\"view-header__left__caption\">\r\n <AppCaptionBar :caption=\"model.caption\" :title=\"model.title\" :capPSLanguageRes=\"model.capPSLanguageRes\" :titlePSLanguageRes=\"model.titlePSLanguageRes\"></AppCaptionBar>\r\n </div>\r\n </template>\r\n <template #viewHeaderRight>\r\n </template>\r\n <template #viewContentTop>\r\n </template>\r\n <template #default>\r\n <TreeViewTree\r\n :openView=\"store.openView\"\r\n :newView=\"store.newView\"\r\n \r\n name=\"tree\"\r\n :context=\"store.context\"\r\n :viewParams=\"store.viewParams\"\r\n :closeView=\"store.closeView\"\r\n :pLoadingHelper=\"store.loadingHelper\"\r\n :pViewCtx=\"store.viewCtx\"\r\n @ctrl-init=\"(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }\"\r\n @ctrl-action=\"(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }\"\r\n @ctrl-destroy=\"(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }\"/>\r\n </template> \r\n </AppViewLayout>",
"templCode2" : "import TreeViewRightAlign from \"@plugins/view/tree-view-right-align/tree-view-right-align.vue\";\r\nimport { AppViewLayout } from \"@components/layout/view-layout\";\r\nimport TreeViewTree from '@widgets/ibizbook/tree-view-tree/tree-view-tree.vue';\r\nimport { \r\n useNavParamsBind, \r\n useEventBind, \r\n handleCtrlAction, \r\n handleCtrlInit, \r\n handleCtrlDestroy, \r\n getViewClassNames,\r\n} from \"@/hooks/use-view\";\r\nimport { TreeViewActionType, IContext, IParam, ITreeViewAbility, ITreeViewControllerParams, ITreeViewStore, TreeViewController, ITreeViewController, ILoadingHelper, IEvent } from '@/core';\r\n\r\ninterface Props {\r\n name?: string,\r\n noViewCaption?: boolean,\r\n openType?: 'ROUTE' | 'EMBED' | 'MODAL',\r\n context?: IContext,\r\n viewParams?: IParam,\r\n pLoadingHelper?: ILoadingHelper,\r\n isLoadDefault?: boolean,\r\n controller: ITreeViewController<ITreeViewStore, ITreeViewAbility>\r\n}\r\n\r\nconst props = withDefaults(defineProps<Props>(), {\r\n noViewCaption: false,\r\n openType: 'ROUTE',\r\n isLoadDefault: true,\r\n});",
"templCode2" : "import TreeViewRightAlign from \"@plugins/view/tree-view-right-align/tree-view-right-align.vue\";\r\nimport { AppViewLayout } from \"@components/layout/view-layout\";\r\nimport TreeViewTree from '@widgets/ibizbook/tree-view-tree/tree-view-tree.vue';\r\nimport { \r\n useNavParamsBind, \r\n useEventBind, \r\n handleCtrlAction, \r\n handleCtrlInit, \r\n handleCtrlDestroy, \r\n getViewClassNames,\r\n} from \"@/hooks/use-view\";\r\nimport { TreeViewActionType, IContext, IParam, ITreeViewAbility, ITreeViewControllerParams, ITreeViewStore, TreeViewController, ITreeViewController, ILoadingHelper, IEvent } from '@/core';\r\n\r\ninterface Props {\r\n name?: string,\r\n noViewCaption?: boolean,\r\n openType?: 'ROUTE' | 'EMBED' | 'MODAL',\r\n context?: IContext,\r\n viewParams?: IParam,\r\n pLoadingHelper?: ILoadingHelper,\r\n isLoadDefault?: boolean,\r\n controller: ITreeViewController<ITreeViewStore, ITreeViewAbility>\r\n}\r\n\r\nconst props = withDefaults(defineProps<Props>(), {\r\n noViewCaption: false,\r\n openType: 'ROUTE',\r\n isLoadDefault: true,\r\n});
\r\nconst model: IParam = props.controller.getModel();\r\nconst store: ITreeViewStore = props.controller.getStore();\r\nconst classNames = computed(() => {\r\n const classNames = getViewClassNames(model, props);\r\n Object.assign(classNames, {\"tree-view-right-align\": true});\r\n return classNames;\r\n});
",
"templCode3" : ".tree-view-right-align {\r\n .ant-tree-treenode {\r\n justify-content: flex-end;\r\n .ant-tree-node-content-wrapper {\r\n flex: none !important;\r\n }\r\n }\r\n}"
}, {
"name" : "模拟获取动态轮播图数据",
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.simple.json
浏览文件 @
12a16243
...
...
@@ -158,7 +158,7 @@
"refMode"
:
"APPVIEW"
,
"refTag"
:
"DETREEVIEW"
,
"templCode"
:
"<AppViewLayout :class=
\"
classNames
\"
>
\r\n
<template v-if=
\"
!noViewCaption && model.showCaption
\"
#viewHeaderLeft>
\r\n
<div class=
\"
view-header__left__caption
\"
>
\r\n
<AppCaptionBar :caption=
\"
model.caption
\"
:title=
\"
model.title
\"
:capPSLanguageRes=
\"
model.capPSLanguageRes
\"
:titlePSLanguageRes=
\"
model.titlePSLanguageRes
\"
></AppCaptionBar>
\r\n
</div>
\r\n
</template>
\r\n
<template #viewHeaderRight>
\r\n
</template>
\r\n
<template #viewContentTop>
\r\n
</template>
\r\n
<template #default>
\r\n
<TreeViewTree
\r\n
:openView=
\"
store.openView
\"\r\n
:newView=
\"
store.newView
\"\r\n
\r\n
name=
\"
tree
\"\r\n
:context=
\"
store.context
\"\r\n
:viewParams=
\"
store.viewParams
\"\r\n
:closeView=
\"
store.closeView
\"\r\n
:pLoadingHelper=
\"
store.loadingHelper
\"\r\n
:pViewCtx=
\"
store.viewCtx
\"\r\n
@ctrl-init=
\"
(name:string, ability:any) => { handleCtrlInit(controller, name, ability) }
\"\r\n
@ctrl-action=
\"
(name:string, action:any, data:any) => { handleCtrlAction(controller, name, action, data) }
\"\r\n
@ctrl-destroy=
\"
(name:string, data:any) => { handleCtrlDestroy(controller, name, data) }
\"
/>
\r\n
</template>
\r\n
</AppViewLayout>"
,
"templCode2"
:
"import TreeViewRightAlign from
\"
@plugins/view/tree-view-right-align/tree-view-right-align.vue
\"
;
\r\n
import { AppViewLayout } from
\"
@components/layout/view-layout
\"
;
\r\n
import TreeViewTree from '@widgets/ibizbook/tree-view-tree/tree-view-tree.vue';
\r\n
import {
\r\n
useNavParamsBind,
\r\n
useEventBind,
\r\n
handleCtrlAction,
\r\n
handleCtrlInit,
\r\n
handleCtrlDestroy,
\r\n
getViewClassNames,
\r\n
} from
\"
@/hooks/use-view
\"
;
\r\n
import { TreeViewActionType, IContext, IParam, ITreeViewAbility, ITreeViewControllerParams, ITreeViewStore, TreeViewController, ITreeViewController, ILoadingHelper, IEvent } from '@/core';
\r\n\r\n
interface Props {
\r\n
name?: string,
\r\n
noViewCaption?: boolean,
\r\n
openType?: 'ROUTE' | 'EMBED' | 'MODAL',
\r\n
context?: IContext,
\r\n
viewParams?: IParam,
\r\n
pLoadingHelper?: ILoadingHelper,
\r\n
isLoadDefault?: boolean,
\r\n
controller: ITreeViewController<ITreeViewStore, ITreeViewAbility>
\r\n
}
\r\n\r\n
const props = withDefaults(defineProps<Props>(), {
\r\n
noViewCaption: false,
\r\n
openType: 'ROUTE',
\r\n
isLoadDefault: true,
\r\n
});"
,
"templCode2"
:
"import TreeViewRightAlign from
\"
@plugins/view/tree-view-right-align/tree-view-right-align.vue
\"
;
\r\n
import { AppViewLayout } from
\"
@components/layout/view-layout
\"
;
\r\n
import TreeViewTree from '@widgets/ibizbook/tree-view-tree/tree-view-tree.vue';
\r\n
import {
\r\n
useNavParamsBind,
\r\n
useEventBind,
\r\n
handleCtrlAction,
\r\n
handleCtrlInit,
\r\n
handleCtrlDestroy,
\r\n
getViewClassNames,
\r\n
} from
\"
@/hooks/use-view
\"
;
\r\n
import { TreeViewActionType, IContext, IParam, ITreeViewAbility, ITreeViewControllerParams, ITreeViewStore, TreeViewController, ITreeViewController, ILoadingHelper, IEvent } from '@/core';
\r\n\r\n
interface Props {
\r\n
name?: string,
\r\n
noViewCaption?: boolean,
\r\n
openType?: 'ROUTE' | 'EMBED' | 'MODAL',
\r\n
context?: IContext,
\r\n
viewParams?: IParam,
\r\n
pLoadingHelper?: ILoadingHelper,
\r\n
isLoadDefault?: boolean,
\r\n
controller: ITreeViewController<ITreeViewStore, ITreeViewAbility>
\r\n
}
\r\n\r\n
const props = withDefaults(defineProps<Props>(), {
\r\n
noViewCaption: false,
\r\n
openType: 'ROUTE',
\r\n
isLoadDefault: true,
\r\n
});
\r\n
const model: IParam = props.controller.getModel();
\r\n
const store: ITreeViewStore = props.controller.getStore();
\r\n
const classNames = computed(() => {
\r\n
const classNames = getViewClassNames(model, props);
\r\n
Object.assign(classNames, {
\"
tree-view-right-align
\"
: true});
\r\n
return classNames;
\r\n
});
"
,
"templCode3"
:
".tree-view-right-align {
\r\n
.ant-tree-treenode {
\r\n
justify-content: flex-end;
\r\n
.ant-tree-node-content-wrapper {
\r\n
flex: none !important;
\r\n
}
\r\n
}
\r\n
}"
},
{
"name"
:
"模拟获取动态轮播图数据"
,
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
12a16243
...
...
@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-11
16
-7"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-11
20
-7"
>
<createTable
tableName=
"T_IBIZBOOK"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录