Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdst
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdst
提交
dc76b30a
提交
dc76b30a
编写于
8月 31, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_xuhui 发布系统代码 [ibz-dst,应用]
上级
05bc60ae
变更
11
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
775 行增加
和
11 行删除
+775
-11
dareport_BO_CN_base.ts
...rc/locale/lanres/entities/dareport/dareport_BO_CN_base.ts
+8
-0
dareport_en_US_base.ts
...rc/locale/lanres/entities/dareport/dareport_en_US_base.ts
+8
-0
dareport_zh_CN_base.ts
...rc/locale/lanres/entities/dareport/dareport_zh_CN_base.ts
+8
-0
dareport-bbzscustom-view-base.vue
...areport-bbzscustom-view/dareport-bbzscustom-view-base.vue
+586
-0
dareport-bbzscustom-view.less
...is/dareport-bbzscustom-view/dareport-bbzscustom-view.less
+5
-0
dareport-bbzscustom-view.vue
...sis/dareport-bbzscustom-view/dareport-bbzscustom-view.vue
+20
-0
dareport-edit-view-base.vue
...s/analysis/dareport-edit-view/dareport-edit-view-base.vue
+43
-0
page-register.ts
app_web/src/pages/lite/dst-index/page-register.ts
+2
-1
router.ts
app_web/src/pages/lite/dst-index/router.ts
+37
-10
state.ts
app_web/src/store/modules/view-action/state.ts
+10
-0
dareport-ui-service-base.ts
app_web/src/uiservice/dareport/dareport-ui-service-base.ts
+48
-0
未找到文件。
app_web/src/locale/lanres/entities/dareport/dareport_BO_CN_base.ts
浏览文件 @
dc76b30a
...
@@ -124,6 +124,14 @@ function getLocaleResourceBase(){
...
@@ -124,6 +124,14 @@ function getLocaleResourceBase(){
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
tbitem1_ckbb
:
{
caption
:
commonLogic
.
appcommonhandle
(
"查看报表"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"查看报表"
,
null
),
},
tbitem2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem3
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
...
...
app_web/src/locale/lanres/entities/dareport/dareport_en_US_base.ts
浏览文件 @
dc76b30a
...
@@ -124,6 +124,14 @@ function getLocaleResourceBase(){
...
@@ -124,6 +124,14 @@ function getLocaleResourceBase(){
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
tbitem1_ckbb
:
{
caption
:
commonLogic
.
appcommonhandle
(
"查看报表"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"查看报表"
,
null
),
},
tbitem2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem3
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Save"
,
null
),
...
...
app_web/src/locale/lanres/entities/dareport/dareport_zh_CN_base.ts
浏览文件 @
dc76b30a
...
@@ -124,6 +124,14 @@ function getLocaleResourceBase(){
...
@@ -124,6 +124,14 @@ function getLocaleResourceBase(){
},
},
},
},
editviewtoolbar_toolbar
:
{
editviewtoolbar_toolbar
:
{
tbitem1_ckbb
:
{
caption
:
commonLogic
.
appcommonhandle
(
"查看报表"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"查看报表"
,
null
),
},
tbitem2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem3
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"保存"
,
null
),
...
...
app_web/src/pages/analysis/dareport-bbzscustom-view/dareport-bbzscustom-view-base.vue
0 → 100644
浏览文件 @
dc76b30a
<
template
>
<div
class=
"view-container decustomview dareport-bbzscustom-view"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"dareportbbzscustomview"
></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'
:title=
"$t(model.srfCaption)"
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
</div>
<div
class=
'view-top-messages'
>
</div>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
</div>
</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
DAReportService
from
'@/service/dareport/dareport-service'
;
import
DAReportAuthService
from
'@/authservice/dareport/dareport-auth-service'
;
import
DAReportUIService
from
'@/uiservice/dareport/dareport-ui-service'
;
@
Component
({
components
:
{
},
})
export
default
class
DAReportBBZSCustomViewBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {DAReportService}
* @memberof DAReportBBZSCustomViewBase
*/
public
appEntityService
:
DAReportService
=
new
DAReportService
;
/**
* 实体UI服务对象
*
* @type DAReportUIService
* @memberof DAReportBBZSCustomViewBase
*/
public
appUIService
:
DAReportUIService
=
new
DAReportUIService
(
this
.
$store
);
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof DAReportBBZSCustomViewBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof DAReportBBZSCustomViewBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof DAReportBBZSCustomViewBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof DAReportBBZSCustomViewBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof DAReportBBZSCustomViewBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof DAReportBBZSCustomViewBase
*/
public
viewtag
:
string
=
'eba227704fadf322603ac46c2d3f2f8c'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.dareport.views.bbzscustomview.caption'
,
srfTitle
:
'entities.dareport.views.bbzscustomview.title'
,
srfSubTitle
:
'entities.dareport.views.bbzscustomview.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DAReportBBZSCustomViewBase
*/
@
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 DAReportBBZSCustomViewBase
*/
@
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 DAReportBBZSCustomViewBase
*/
public
containerModel
:
any
=
{
};
/**
* 计数器刷新
*
* @memberof DAReportBBZSCustomViewBase
*/
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 DAReportBBZSCustomViewBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 引擎初始化
*
* @public
* @memberof DAReportBBZSCustomViewBase
*/
public
engineInit
():
void
{
}
/**
* 应用导航服务
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
public
navDataService
=
NavDataService
.
getInstance
(
this
.
$store
);
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof DAReportBBZSCustomViewBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof DAReportBBZSCustomViewBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof DAReportBBZSCustomViewBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof DAReportBBZSCustomViewBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof DAReportBBZSCustomViewBase
*/
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
,{
'dareport'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof DAReportBBZSCustomViewBase
*/
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 DAReportBBZSCustomViewBase
*/
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 DAReportBBZSCustomViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'dareport-bbzscustom-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
dareport
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof DAReportBBZSCustomViewBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'dareport-bbzscustom-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
dareport
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof DAReportBBZSCustomViewBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof DAReportBBZSCustomViewBase
*/
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
,
'dareport-bbzscustom-view'
)){
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
,
'DAReportBBZSCustomView'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
}
/**
* 销毁之前
*
* @memberof DAReportBBZSCustomViewBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof DAReportBBZSCustomViewBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof DAReportBBZSCustomViewBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof DAReportBBZSCustomViewBase
*/
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 DAReportBBZSCustomViewBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof DAReportBBZSCustomViewBase
*/
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
();
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './dareport-bbzscustom-view.less';
</
style
>
\ No newline at end of file
app_web/src/pages/analysis/dareport-bbzscustom-view/dareport-bbzscustom-view.less
0 → 100644
浏览文件 @
dc76b30a
.dareport-bbzscustom-view{
position: relative;
}
app_web/src/pages/analysis/dareport-bbzscustom-view/dareport-bbzscustom-view.vue
0 → 100644
浏览文件 @
dc76b30a
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
DAReportBBZSCustomViewBase
from
'./dareport-bbzscustom-view-base.vue'
;
@
Component
({
components
:
{
},
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
DAReportBBZSCustomView
extends
DAReportBBZSCustomViewBase
{
}
</
script
>
\ No newline at end of file
app_web/src/pages/analysis/dareport-edit-view/dareport-edit-view-base.vue
浏览文件 @
dc76b30a
...
@@ -6,6 +6,14 @@
...
@@ -6,6 +6,14 @@
<div
slot=
'title'
class=
"header-container"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
<span
class=
'caption-info'
>
{{
$t
(
model
.
srfCaption
)
}}
</span>
<div
class=
'toolbar-container'
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem1_ckbb.visabled"
:disabled=
"toolBarModels.tbitem1_ckbb.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem1_ckbb' }, $event)">
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.dareport.editviewtoolbar_toolbar.tbitem1_ckbb.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.dareport.editviewtoolbar_toolbar.tbitem1_ckbb.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem3.visabled"
:disabled=
"toolBarModels.tbitem3.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i-button
v-show=
"toolBarModels.tbitem3.visabled"
:disabled=
"toolBarModels.tbitem3.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-save'
></i>
<i
class=
'fa fa-save'
></i>
...
@@ -378,6 +386,9 @@ export default class DAReportEditViewBase extends Vue {
...
@@ -378,6 +386,9 @@ export default class DAReportEditViewBase extends Vue {
* @memberof DAReportEditView
* @memberof DAReportEditView
*/
*/
public
toolBarModels
:
any
=
{
public
toolBarModels
:
any
=
{
tbitem1_ckbb
:
{
name
:
'tbitem1_ckbb'
,
actiontarget
:
'NONE'
,
caption
:
'查看报表'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'CKBB'
,
target
:
'SINGLEKEY'
}
},
tbitem2
:
{
name
:
'tbitem2'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem6
:
{
name
:
'tbitem6'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem6
:
{
name
:
'tbitem6'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
...
@@ -738,6 +749,9 @@ export default class DAReportEditViewBase extends Vue {
...
@@ -738,6 +749,9 @@ export default class DAReportEditViewBase extends Vue {
* @memberof DAReportEditViewBase
* @memberof DAReportEditViewBase
*/
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem1_ckbb'
))
{
this
.
toolbar_tbitem1_ckbb_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
}
...
@@ -820,6 +834,35 @@ export default class DAReportEditViewBase extends Vue {
...
@@ -820,6 +834,35 @@ export default class DAReportEditViewBase extends Vue {
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem1_ckbb_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
form
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
DAReportUIService
=
new
DAReportUIService
();
curUIService
.
DAReport_CKBB
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"DAReport"
);
}
/**
/**
* 逻辑事件
* 逻辑事件
*
*
...
...
app_web/src/pages/lite/dst-index/page-register.ts
浏览文件 @
dc76b30a
...
@@ -28,6 +28,7 @@ export const PageComponents = {
...
@@ -28,6 +28,7 @@ export const PageComponents = {
Vue
.
component
(
'meta-entity-grid-view'
,
()
=>
import
(
'@pages/lite/meta-entity-grid-view/meta-entity-grid-view.vue'
));
Vue
.
component
(
'meta-entity-grid-view'
,
()
=>
import
(
'@pages/lite/meta-entity-grid-view/meta-entity-grid-view.vue'
));
Vue
.
component
(
'rule-item-grid-view'
,
()
=>
import
(
'@pages/rule/rule-item-grid-view/rule-item-grid-view.vue'
));
Vue
.
component
(
'rule-item-grid-view'
,
()
=>
import
(
'@pages/rule/rule-item-grid-view/rule-item-grid-view.vue'
));
Vue
.
component
(
'dabuild-edit-view'
,
()
=>
import
(
'@pages/analysis/dabuild-edit-view/dabuild-edit-view.vue'
));
Vue
.
component
(
'dabuild-edit-view'
,
()
=>
import
(
'@pages/analysis/dabuild-edit-view/dabuild-edit-view.vue'
));
Vue
.
component
(
'dareport-bbzscustom-view'
,
()
=>
import
(
'@pages/analysis/dareport-bbzscustom-view/dareport-bbzscustom-view.vue'
));
Vue
.
component
(
'rule-item-pickup-grid-view'
,
()
=>
import
(
'@pages/rule/rule-item-pickup-grid-view/rule-item-pickup-grid-view.vue'
));
Vue
.
component
(
'rule-item-pickup-grid-view'
,
()
=>
import
(
'@pages/rule/rule-item-pickup-grid-view/rule-item-pickup-grid-view.vue'
));
Vue
.
component
(
'dst-system-edit-view'
,
()
=>
import
(
'@pages/lite/dst-system-edit-view/dst-system-edit-view.vue'
));
Vue
.
component
(
'dst-system-edit-view'
,
()
=>
import
(
'@pages/lite/dst-system-edit-view/dst-system-edit-view.vue'
));
Vue
.
component
(
'dst-data-source-pickup-view'
,
()
=>
import
(
'@pages/lite/dst-data-source-pickup-view/dst-data-source-pickup-view.vue'
));
Vue
.
component
(
'dst-data-source-pickup-view'
,
()
=>
import
(
'@pages/lite/dst-data-source-pickup-view/dst-data-source-pickup-view.vue'
));
...
@@ -51,7 +52,7 @@ export const PageComponents = {
...
@@ -51,7 +52,7 @@ export const PageComponents = {
Vue
.
component
(
'meta-entity-edit-view'
,
()
=>
import
(
'@pages/lite/meta-entity-edit-view/meta-entity-edit-view.vue'
));
Vue
.
component
(
'meta-entity-edit-view'
,
()
=>
import
(
'@pages/lite/meta-entity-edit-view/meta-entity-edit-view.vue'
));
Vue
.
component
(
'dst-data-source-grid-view'
,
()
=>
import
(
'@pages/lite/dst-data-source-grid-view/dst-data-source-grid-view.vue'
));
Vue
.
component
(
'dst-data-source-grid-view'
,
()
=>
import
(
'@pages/lite/dst-data-source-grid-view/dst-data-source-grid-view.vue'
));
Vue
.
component
(
'meta-model-file-upload-option-view'
,
()
=>
import
(
'@pages/lite/meta-model-file-upload-option-view/meta-model-file-upload-option-view.vue'
));
Vue
.
component
(
'meta-model-file-upload-option-view'
,
()
=>
import
(
'@pages/lite/meta-model-file-upload-option-view/meta-model-file-upload-option-view.vue'
));
Vue
.
component
(
'rule-engine-edit-view'
,
()
=>
import
(
'@pages/rule/rule-engine-edit-view/rule-engine-edit-view.vue'
));
Vue
.
component
(
'dict-catalog-pickup-view'
,
()
=>
import
(
'@pages/dict/dict-catalog-pickup-view/dict-catalog-pickup-view.vue'
));
Vue
.
component
(
'dict-catalog-pickup-view'
,
()
=>
import
(
'@pages/dict/dict-catalog-pickup-view/dict-catalog-pickup-view.vue'
));
Vue
.
component
(
'rule-engine-edit-view'
,
()
=>
import
(
'@pages/rule/rule-engine-edit-view/rule-engine-edit-view.vue'
));
}
}
};
};
\ No newline at end of file
app_web/src/pages/lite/dst-index/router.ts
浏览文件 @
dc76b30a
...
@@ -658,6 +658,20 @@ const router = new Router({
...
@@ -658,6 +658,20 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/analysis/dabuild-edit-view/dabuild-edit-view.vue'
),
component
:
()
=>
import
(
'@pages/analysis/dabuild-edit-view/dabuild-edit-view.vue'
),
},
},
{
path
:
'dareports/:dareport?/bbzscustomview/:bbzscustomview?'
,
meta
:
{
caption
:
'entities.dareport.views.bbzscustomview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'dstindex'
,
parameterName
:
'dstindex'
},
{
pathName
:
'dareports'
,
parameterName
:
'dareport'
},
{
pathName
:
'bbzscustomview'
,
parameterName
:
'bbzscustomview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/analysis/dareport-bbzscustom-view/dareport-bbzscustom-view.vue'
),
},
{
{
path
:
'ruleitems/:ruleitem?/pickupgridview/:pickupgridview?'
,
path
:
'ruleitems/:ruleitem?/pickupgridview/:pickupgridview?'
,
meta
:
{
meta
:
{
...
@@ -1180,32 +1194,32 @@ const router = new Router({
...
@@ -1180,32 +1194,32 @@ const router = new Router({
component
:
()
=>
import
(
'@pages/lite/meta-model-file-upload-option-view/meta-model-file-upload-option-view.vue'
),
component
:
()
=>
import
(
'@pages/lite/meta-model-file-upload-option-view/meta-model-file-upload-option-view.vue'
),
},
},
{
{
path
:
'
ruleengines/:ruleengine?/editview/:edit
view?'
,
path
:
'
dictcatalogs/:dictcatalog?/pickupview/:pickup
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.
ruleengine.views.edit
view.caption'
,
caption
:
'entities.
dictcatalog.views.pickup
view.caption'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'dstindex'
,
parameterName
:
'dstindex'
},
{
pathName
:
'dstindex'
,
parameterName
:
'dstindex'
},
{
pathName
:
'
ruleengines'
,
parameterName
:
'ruleengine
'
},
{
pathName
:
'
dictcatalogs'
,
parameterName
:
'dictcatalog
'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
{
pathName
:
'
pickupview'
,
parameterName
:
'pickup
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/
rule/rule-engine-edit-view/rule-engine-edit
-view.vue'
),
component
:
()
=>
import
(
'@pages/
dict/dict-catalog-pickup-view/dict-catalog-pickup
-view.vue'
),
},
},
{
{
path
:
'
dictcatalogs/:dictcatalog?/pickupview/:pickup
view?'
,
path
:
'
ruleengines/:ruleengine?/editview/:edit
view?'
,
meta
:
{
meta
:
{
caption
:
'entities.
dictcatalog.views.pickup
view.caption'
,
caption
:
'entities.
ruleengine.views.edit
view.caption'
,
info
:
''
,
info
:
''
,
parameters
:
[
parameters
:
[
{
pathName
:
'dstindex'
,
parameterName
:
'dstindex'
},
{
pathName
:
'dstindex'
,
parameterName
:
'dstindex'
},
{
pathName
:
'
dictcatalogs'
,
parameterName
:
'dictcatalog
'
},
{
pathName
:
'
ruleengines'
,
parameterName
:
'ruleengine
'
},
{
pathName
:
'
pickupview'
,
parameterName
:
'pickup
view'
},
{
pathName
:
'
editview'
,
parameterName
:
'edit
view'
},
],
],
requireAuth
:
true
,
requireAuth
:
true
,
},
},
component
:
()
=>
import
(
'@pages/
dict/dict-catalog-pickup-view/dict-catalog-pickup
-view.vue'
),
component
:
()
=>
import
(
'@pages/
rule/rule-engine-edit-view/rule-engine-edit
-view.vue'
),
},
},
...
indexRoutes
,
...
indexRoutes
,
],
],
...
@@ -2246,6 +2260,19 @@ const router = new Router({
...
@@ -2246,6 +2260,19 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/lite/meta-relationship-edit-grid-view/meta-relationship-edit-grid-view.vue'
),
component
:
()
=>
import
(
'@pages/lite/meta-relationship-edit-grid-view/meta-relationship-edit-grid-view.vue'
),
},
},
{
path
:
'/dareports/:dareport?/bbzscustomview/:bbzscustomview?'
,
meta
:
{
caption
:
'entities.dareport.views.bbzscustomview.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'dareports'
,
parameterName
:
'dareport'
},
{
pathName
:
'bbzscustomview'
,
parameterName
:
'bbzscustomview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/analysis/dareport-bbzscustom-view/dareport-bbzscustom-view.vue'
),
},
{
{
path
:
'/ruleitems/:ruleitem?/pickupgridview/:pickupgridview?'
,
path
:
'/ruleitems/:ruleitem?/pickupgridview/:pickupgridview?'
,
meta
:
{
meta
:
{
...
...
app_web/src/store/modules/view-action/state.ts
浏览文件 @
dc76b30a
...
@@ -349,6 +349,7 @@ export const viewstate: any = {
...
@@ -349,6 +349,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewaction
:
''
,
viewdatachange
:
false
,
viewdatachange
:
false
,
refviews
:
[
refviews
:
[
'eba227704fadf322603ac46c2d3f2f8c'
,
],
],
},
},
{
{
...
@@ -533,6 +534,15 @@ export const viewstate: any = {
...
@@ -533,6 +534,15 @@ export const viewstate: any = {
'601fb9bf6eec2a7e264e7142017715a4'
,
'601fb9bf6eec2a7e264e7142017715a4'
,
],
],
},
},
{
viewtag
:
'eba227704fadf322603ac46c2d3f2f8c'
,
viewmodule
:
'analysis'
,
viewname
:
'DAReportBBZSCustomView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
{
viewtag
:
'f5f5de8c3626605a2f61f1139583dc98'
,
viewtag
:
'f5f5de8c3626605a2f61f1139583dc98'
,
viewmodule
:
'rule'
,
viewmodule
:
'rule'
,
...
...
app_web/src/uiservice/dareport/dareport-ui-service-base.ts
浏览文件 @
dc76b30a
...
@@ -117,6 +117,54 @@ export default class DAReportUIServiceBase extends UIService {
...
@@ -117,6 +117,54 @@ export default class DAReportUIServiceBase extends UIService {
public
initDeMainStateOPPrivsMap
(){
public
initDeMainStateOPPrivsMap
(){
}
}
/**
* 查看报表
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
DAReport_CKBB
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
dareport
:
'%dareport%'
});
Object
.
assign
(
params
,
{
report_id
:
'%dareport%'
});
Object
.
assign
(
params
,
{
report_name
:
'%report_name%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
let
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'dareports'
,
parameterName
:
'dareport'
},
{
pathName
:
'bbzscustomview'
,
parameterName
:
'bbzscustomview'
},
];
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
actionContext
.
$viewTool
.
buildUpRoutePath
(
actionContext
.
$route
,
context
,
deResParameters
,
parameters
,
_args
,
data
);
actionContext
.
$router
.
push
(
routePath
);
return
null
;
}
openIndexViewTab
(
data
);
}
/**
/**
* 获取指定数据的重定向页面
* 获取指定数据的重定向页面
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录