Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
4e36da80
提交
4e36da80
编写于
11月 01, 2022
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:内存优化
上级
18bf0753
变更
47
隐藏空白字符变更
内嵌
并排
正在显示
47 个修改的文件
包含
348 行增加
和
109 行删除
+348
-109
app-breadcrumb.vue
src/components/app-breadcrumb/app-breadcrumb.vue
+1
-1
app-checkbox-list.vue
src/components/app-checkbox-list/app-checkbox-list.vue
+1
-1
app-data-upload.vue
src/components/app-data-upload/app-data-upload.vue
+1
-1
app-form-item.vue
src/components/app-form-item/app-form-item.vue
+4
-17
app-picker.vue
src/components/app-picker/app-picker.vue
+15
-4
app-radio-group.vue
src/components/app-radio-group/app-radio-group.vue
+1
-1
app-rate.vue
src/components/app-rate/app-rate.vue
+1
-1
codelist.vue
src/components/codelist/codelist.vue
+3
-5
dropdown-list-dynamic.vue
...omponents/dropdown-list-dynamic/dropdown-list-dynamic.vue
+1
-1
dropdown-list-hidden.vue
src/components/dropdown-list-hidden/dropdown-list-hidden.vue
+1
-1
dropdown-list-mpicker.vue
...omponents/dropdown-list-mpicker/dropdown-list-mpicker.vue
+1
-1
dropdown-list.vue
src/components/dropdown-list/dropdown-list.vue
+1
-1
counter-service.ts
src/counter/counter-service.ts
+3
-2
loadding.ts
src/directive/loadding/loadding.ts
+34
-32
calendar-exp-view-engine.ts
src/engine/view/calendar-exp-view-engine.ts
+8
-0
chart-view-engine.ts
src/engine/view/chart-view-engine.ts
+9
-0
data-view-engine.ts
src/engine/view/data-view-engine.ts
+9
-0
data-view-exp-view-engine.ts
src/engine/view/data-view-exp-view-engine.ts
+9
-0
edit-view-engine.ts
src/engine/view/edit-view-engine.ts
+9
-0
edit-view2-engine.ts
src/engine/view/edit-view2-engine.ts
+9
-0
edit-view3-engine.ts
src/engine/view/edit-view3-engine.ts
+9
-0
edit-view4-engine.ts
src/engine/view/edit-view4-engine.ts
+9
-0
form-pickup-data-view-engine.ts
src/engine/view/form-pickup-data-view-engine.ts
+9
-0
grid-exp-view-engine.ts
src/engine/view/grid-exp-view-engine.ts
+9
-0
grid-view-engine.ts
src/engine/view/grid-view-engine.ts
+9
-0
grid-view8-engine.ts
src/engine/view/grid-view8-engine.ts
+9
-1
kan-ban-view-engine.ts
src/engine/view/kan-ban-view-engine.ts
+9
-0
list-exp-view-engine.ts
src/engine/view/list-exp-view-engine.ts
+8
-1
list-view-engine.ts
src/engine/view/list-view-engine.ts
+9
-0
map-view-engine.ts
src/engine/view/map-view-engine.ts
+8
-1
md-view-engine.ts
src/engine/view/md-view-engine.ts
+11
-0
mpickup-view-engine.ts
src/engine/view/mpickup-view-engine.ts
+9
-0
pickup-data-view-engine.ts
src/engine/view/pickup-data-view-engine.ts
+9
-0
pickup-view-engine.ts
src/engine/view/pickup-view-engine.ts
+9
-0
portal-view-engine.ts
src/engine/view/portal-view-engine.ts
+9
-0
search-view-engine.ts
src/engine/view/search-view-engine.ts
+9
-0
tree-exp-view-engine.ts
src/engine/view/tree-exp-view-engine.ts
+9
-0
tree-grid-ex-view-engine.ts
src/engine/view/tree-grid-ex-view-engine.ts
+9
-0
tree-view-engine.ts
src/engine/view/tree-view-engine.ts
+9
-0
view-engine.ts
src/engine/view/view-engine.ts
+11
-1
wizard-view-engine.ts
src/engine/view/wizard-view-engine.ts
+9
-0
app-center-service.ts
src/service/app/app-center-service.ts
+1
-11
navdata-service.ts
src/service/app/navdata-service.ts
+2
-1
ui-service.ts
src/uiservice/ui-service.ts
+3
-2
app-modal.ts
src/utils/app-modal/app-modal.ts
+25
-20
app-modal.vue
src/utils/app-modal/app-modal.vue
+2
-0
control-service.ts
src/widgets/control-service.ts
+3
-2
未找到文件。
src/components/app-breadcrumb/app-breadcrumb.vue
浏览文件 @
4e36da80
...
...
@@ -61,7 +61,7 @@ export default class Breadcrumb extends Vue {
*
* @memberof Breadcrumb
*/
private
navDataService
=
NavDataService
.
getInstance
(
this
.
$store
);
private
navDataService
=
NavDataService
.
getInstance
();
/**
* 默认视图标识
...
...
src/components/app-checkbox-list/app-checkbox-list.vue
浏览文件 @
4e36da80
...
...
@@ -19,7 +19,7 @@ export default class AppCheckBox extends Vue {
* @type {CodeListService}
* @memberof AppCheckBox
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 代码表标识
...
...
src/components/app-data-upload/app-data-upload.vue
浏览文件 @
4e36da80
...
...
@@ -80,7 +80,7 @@ export default class AppDataUploadView extends Vue {
* @type {CodeListService}
* @memberof AppDataUploadView
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 实体服务对象
...
...
src/components/app-form-item/app-form-item.vue
浏览文件 @
4e36da80
...
...
@@ -21,7 +21,7 @@
class=
"editor"
:style=
"slotstyle"
>
<form-item
:prop=
"name"
:error=
"error"
:rules=
"
r
ules"
>
<form-item
:prop=
"name"
:error=
"error"
:rules=
"
itemR
ules"
>
<slot></slot>
</form-item>
</div>
...
...
@@ -48,7 +48,7 @@
class=
"editor"
:style=
"slotstyle"
>
<form-item
:prop=
"name"
:error=
"error"
:rules=
"
r
ules"
>
<form-item
:prop=
"name"
:error=
"error"
:rules=
"
itemR
ules"
>
<slot></slot>
</form-item>
</div>
...
...
@@ -154,14 +154,6 @@ export default class AppFormItem extends Vue {
*/
public
isShowTip
:
boolean
=
false
;
/**
* 值规则数组
*
* @type {any[]}
* @memberof AppFormItem
*/
public
rules
:
any
[]
=
[];
/**
* 是否必填
*
...
...
@@ -181,10 +173,7 @@ export default class AppFormItem extends Vue {
onItemRulesChange
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
)
{
try
{
this
.
rules
=
[];
const
_rules
:
any
[]
=
newVal
;
this
.
rules
=
[...
_rules
];
this
.
rules
.
some
((
rule
:
any
)
=>
{
this
.
itemRules
.
some
((
rule
:
any
)
=>
{
if
(
rule
.
hasOwnProperty
(
"required"
))
{
this
.
required
=
rule
.
required
;
return
true
;
...
...
@@ -273,9 +262,7 @@ export default class AppFormItem extends Vue {
public
mounted
()
{
if
(
this
.
itemRules
)
{
try
{
const
_rules
:
any
[]
=
this
.
itemRules
;
this
.
rules
=
[...
_rules
];
this
.
rules
.
some
((
rule
:
any
)
=>
{
this
.
itemRules
.
some
((
rule
:
any
)
=>
{
if
(
rule
.
hasOwnProperty
(
"required"
))
{
this
.
required
=
rule
.
required
;
return
true
;
...
...
src/components/app-picker/app-picker.vue
浏览文件 @
4e36da80
...
...
@@ -57,7 +57,7 @@
<
script
lang =
'ts'
>
import
{
Component
,
Vue
,
Prop
,
Model
,
Watch
}
from
'vue-property-decorator'
;
import
{
Subject
}
from
'rxjs'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
AppModal
}
from
'@/utils'
;
@
Component
({
...
...
@@ -278,6 +278,14 @@ export default class AppPicker extends Vue {
*/
public
dropdownDom
:
any
=
{};
/**
* 订阅对象
*
* @type {*}
* @memberof AppPicker
*/
containerEvent
:
Subscription
|
null
=
null
;
/**
* 获取关联数据项值
*
...
...
@@ -345,6 +353,9 @@ export default class AppPicker extends Vue {
* @memberof AppPicker
*/
public
destroyed
():
void
{
if
(
this
.
containerEvent
)
{
this
.
containerEvent
.
unsubscribe
();
}
}
/**
...
...
@@ -532,7 +543,7 @@ export default class AppPicker extends Vue {
*/
private
openPopupModal
(
view
:
any
,
context
:
any
,
param
:
any
):
void
{
let
container
:
Subject
<
any
>
=
this
.
$appmodal
.
openModal
(
view
,
context
,
param
);
container
.
subscribe
((
result
:
any
)
=>
{
this
.
containerEvent
=
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
...
...
@@ -550,7 +561,7 @@ export default class AppPicker extends Vue {
*/
private
openDrawer
(
view
:
any
,
context
:
any
,
param
:
any
):
void
{
let
container
:
Subject
<
any
>
=
this
.
$appdrawer
.
openDrawer
(
view
,
context
,
param
);
container
.
subscribe
((
result
:
any
)
=>
{
this
.
containerEvent
=
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
...
...
@@ -569,7 +580,7 @@ export default class AppPicker extends Vue {
*/
private
openPopOver
(
$event
:
any
,
view
:
any
,
context
:
any
,
param
:
any
):
void
{
let
container
:
Subject
<
any
>
=
this
.
$apppopover
.
openPop
(
$event
,
view
,
context
,
param
);
container
.
subscribe
((
result
:
any
)
=>
{
this
.
containerEvent
=
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
...
...
src/components/app-radio-group/app-radio-group.vue
浏览文件 @
4e36da80
...
...
@@ -17,7 +17,7 @@ export default class AppRadioGroup extends Vue {
* @type {CodeListService}
* @memberof AppRadioGroup
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 双向绑定值
...
...
src/components/app-rate/app-rate.vue
浏览文件 @
4e36da80
...
...
@@ -37,7 +37,7 @@ export default class AppRate extends Vue {
* @type {CodeListService}
* @memberof AppRate
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 传递最大值
...
...
src/components/codelist/codelist.vue
浏览文件 @
4e36da80
...
...
@@ -29,7 +29,7 @@ export default class CodeList extends Vue {
* @type {CodeListService}
* @memberof CodeList
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 代码表标识
...
...
@@ -195,16 +195,14 @@ export default class CodeList extends Vue {
let
_context
=
data
.
context
;
let
_param
=
data
.
param
;
this
.
codeListService
.
getItems
(
this
.
tag
,
_context
,
_param
).
then
((
res
:
any
)
=>
{
let
items
=
res
;
_this
.
setItems
(
items
,
_this
);
_this
.
setItems
(
res
,
_this
);
}).
catch
((
error
:
any
)
=>
{
console
.
log
(
`----
${
_this
.
tag
}
----
${(
this
.
$t
(
'app.commonWords.codeNotExist'
)
as
string
)}
`
);
});
// 静态处理
}
else
if
(
Object
.
is
(
this
.
codelistType
,
"STATIC"
)){
this
.
isUseLangres
=
true
;
let
items
=
this
.
$store
.
getters
.
getCodeListItems
(
this
.
tag
);
_this
.
setItems
(
items
,
_this
);
_this
.
setItems
(
this
.
$store
.
getters
.
getCodeListItems
(
this
.
tag
),
_this
);
}
}
...
...
src/components/dropdown-list-dynamic/dropdown-list-dynamic.vue
浏览文件 @
4e36da80
...
...
@@ -25,7 +25,7 @@ export default class DropDownListDynamic extends Vue {
* @type {CodeListService}
* @memberof DropDownListDynamic
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 额外参数
...
...
src/components/dropdown-list-hidden/dropdown-list-hidden.vue
浏览文件 @
4e36da80
...
...
@@ -30,7 +30,7 @@ export default class DropDownList extends Vue {
* @type {CodeListService}
* @memberof DropDownList
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 额外参数
...
...
src/components/dropdown-list-mpicker/dropdown-list-mpicker.vue
浏览文件 @
4e36da80
...
...
@@ -35,7 +35,7 @@ export default class DropDownListMpicker extends Vue {
* @type {CodeListService}
* @memberof DropDownListMpicker
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 是否有子集
...
...
src/components/dropdown-list/dropdown-list.vue
浏览文件 @
4e36da80
...
...
@@ -30,7 +30,7 @@ export default class DropDownList extends Vue {
* @type {CodeListService}
* @memberof DropDownList
*/
public
codeListService
:
CodeListService
=
new
CodeListService
(
{
$store
:
this
.
$store
}
);
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 额外参数
...
...
src/counter/counter-service.ts
浏览文件 @
4e36da80
import
{
Store
}
from
'vuex'
;
import
EntityService
from
'@/service/entity-service'
;
import
EntityService
from
'@/api/service/entity-service'
;
import
store
from
'@/store'
;
/**
...
...
@@ -71,7 +72,7 @@ export default class CounterService {
* @memberof CounterService
*/
constructor
(
opts
:
any
=
{})
{
this
.
$store
=
opts
.
$
store
;
this
.
$store
=
store
;
this
.
context
=
opts
.
context
?
opts
.
context
:{};
this
.
viewparams
=
opts
.
viewparams
?
opts
.
viewparams
:{};
}
...
...
src/directive/loadding/loadding.ts
浏览文件 @
4e36da80
...
...
@@ -26,7 +26,14 @@ export class LoaddingService {
* @type {(Subscription | undefined)}
* @memberof LoaddingService
*/
public
loaddingStateEvent
:
Subscription
|
undefined
;
public
loaddingStateEvent
:
Subscription
|
null
=
null
;
/**
* @description dom映射对象
* @type {Map<string, any>}
* @memberof LoaddingService
*/
public
domMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* 获取 LoaddingService 单例对象
...
...
@@ -56,6 +63,9 @@ export class LoaddingService {
if
(
el
.
getElementsByTagName
(
'i'
)
&&
el
.
getElementsByTagName
(
'i'
).
length
>
0
){
let
iconElement
:
any
=
el
.
getElementsByTagName
(
'i'
)[
0
];
iconElement
.
setAttribute
(
'ownclassname'
,
iconElement
.
className
);
const
uuid
:
string
=
String
(
el
.
__vue__
.
_uid
);
el
.
setAttribute
(
'uuid'
,
uuid
);
this
.
domMap
.
set
(
uuid
,
iconElement
);
}
}
}
...
...
@@ -69,16 +79,17 @@ export class LoaddingService {
* @memberof LoaddingService
*/
public
setLoadState
(
el
:
any
,
binding
:
any
){
if
(
!
this
.
loaddingStateEvent
)
{
this
.
loaddingStateEvent
=
Http
.
getInstance
().
getNotifyObject
().
subscribe
((
result
:
any
)
=>
{
if
(
result
&&
result
.
action
&&
Object
.
is
(
result
.
action
,
'setloadstate'
)){
if
(
result
&&
result
.
state
){
this
.
addLoadState
(
el
,
binding
);
}
else
{
this
.
removeLoadState
(
el
,
binding
);
}
}
if
(
result
&&
result
.
action
&&
Object
.
is
(
result
.
action
,
'setloadstate'
)){
if
(
result
&&
result
.
state
){
this
.
addLoadState
(
);
}
else
{
this
.
removeLoadState
(
);
}
}
})
}
}
/**
...
...
@@ -88,17 +99,10 @@ export class LoaddingService {
* @param {any} binding 指令附加参数
* @memberof LoaddingService
*/
public
addLoadState
(
el
:
any
,
binding
:
any
){
if
(
binding
&&
binding
.
arg
){
el
.
style
.
pointerEvents
=
'none'
;
// 工具栏按钮
if
(
Object
.
is
(
binding
.
arg
,
'i-button'
)){
if
(
el
.
getElementsByTagName
(
'i'
)
&&
el
.
getElementsByTagName
(
'i'
).
length
>
0
){
let
iconElement
:
any
=
el
.
getElementsByTagName
(
'i'
)[
0
];
iconElement
.
className
=
"el-icon-loading"
;
}
}
}
public
addLoadState
(){
this
.
domMap
.
forEach
((
dom
:
any
,
key
:
string
)
=>
{
dom
.
className
=
"el-icon-loading"
;
})
}
/**
...
...
@@ -108,17 +112,10 @@ export class LoaddingService {
* @param {any} binding 指令附加参数
* @memberof LoaddingService
*/
public
removeLoadState
(
el
:
any
,
binding
:
any
){
if
(
binding
&&
binding
.
arg
){
el
.
style
.
pointerEvents
=
''
;
// 工具栏按钮
if
(
Object
.
is
(
binding
.
arg
,
'i-button'
)){
if
(
el
.
getElementsByTagName
(
'i'
)
&&
el
.
getElementsByTagName
(
'i'
).
length
>
0
){
let
iconElement
:
any
=
el
.
getElementsByTagName
(
'i'
)[
0
];
iconElement
.
className
=
iconElement
.
getAttribute
(
'ownclassname'
);
}
}
}
public
removeLoadState
(){
this
.
domMap
.
forEach
((
dom
:
any
,
key
:
string
)
=>
{
dom
.
className
=
dom
.
getAttribute
(
'ownclassname'
);
})
}
/**
...
...
@@ -129,8 +126,13 @@ export class LoaddingService {
* @memberof LoaddingService
*/
public
clearResource
(
el
:
any
,
binding
:
any
){
if
(
this
.
loaddingStateEvent
){
if
(
this
.
loaddingStateEvent
&&
this
.
domMap
.
size
==
0
){
this
.
loaddingStateEvent
.
unsubscribe
();
this
.
loaddingStateEvent
=
null
;
}
const
uuid
:
string
=
el
.
getAttribute
(
'uuid'
);
if
(
uuid
&&
this
.
domMap
.
has
(
uuid
))
{
this
.
domMap
.
delete
(
uuid
);
}
}
...
...
src/engine/view/calendar-exp-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -98,5 +98,13 @@ export default class CalendarExpViewEngine extends ViewEngine {
return
this
.
calendarExpBar
;
}
/**
* @description 销毁
* @memberof CalendarExpViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
calendarExpBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/chart-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -99,4 +99,13 @@ export default class ChartViewEngine extends SearchViewEngine {
public
getChart
():
any
{
return
this
.
chart
;
}
/**
* @description 销毁
* @memberof ChartViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
chart
=
null
;
}
}
\ No newline at end of file
src/engine/view/data-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -138,4 +138,13 @@ export default class DataViewEngine extends MDViewEngine {
}
}
/**
* @description 销毁
* @memberof DataViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
dataView
=
null
;
}
}
\ No newline at end of file
src/engine/view/data-view-exp-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -98,5 +98,14 @@ export default class DataViewExpViewEngine extends ViewEngine {
return
this
.
dataviewExpBar
;
}
/**
* @description 销毁
* @memberof DataViewExpViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
dataviewExpBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/edit-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -222,4 +222,13 @@ export default class EditViewEngine extends ViewEngine {
return
this
.
getForm
().
transformData
(
arg
);
}
/**
* @description 销毁
* @memberof EditViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
form
=
null
;
}
}
\ No newline at end of file
src/engine/view/edit-view2-engine.ts
浏览文件 @
4e36da80
...
...
@@ -120,4 +120,13 @@ export default class EditView2Engine extends EditViewEngine {
public
getDRBar
():
any
{
return
this
.
drBar
;
}
/**
* @description 销毁
* @memberof EditView2Engine
*/
public
destroy
()
{
super
.
destroy
();
this
.
drBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/edit-view3-engine.ts
浏览文件 @
4e36da80
...
...
@@ -118,4 +118,13 @@ export default class EditView3Engine extends EditViewEngine {
public
getDrTab
():
any
{
return
this
.
drTab
;
}
/**
* @description 销毁
* @memberof EditView3Engine
*/
public
destroy
()
{
super
.
destroy
();
this
.
drTab
=
null
;
}
}
\ No newline at end of file
src/engine/view/edit-view4-engine.ts
浏览文件 @
4e36da80
...
...
@@ -118,4 +118,13 @@ export default class EditView4Engine extends EditViewEngine {
public
getDrTab
():
any
{
return
this
.
drTab
;
}
/**
* @description 销毁
* @memberof EditView4Engine
*/
public
destroy
()
{
super
.
destroy
();
this
.
drTab
=
null
;
}
}
\ No newline at end of file
src/engine/view/form-pickup-data-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -62,4 +62,13 @@ export default class FormPickupDataViewEngine extends MDViewEngine {
return
this
.
dataview
;
}
/**
* @description 销毁
* @memberof FormPickupDataViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
dataview
=
null
;
}
}
\ No newline at end of file
src/engine/view/grid-exp-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -98,5 +98,14 @@ export default class GridExpViewEngine extends ViewEngine {
return
this
.
gridExpBar
;
}
/**
* @description 销毁
* @memberof GridExpViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
gridExpBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/grid-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -111,4 +111,13 @@ export default class GridViewEngine extends MDViewEngine {
public
gridRowAllowActive
(
mode
:
number
):
boolean
{
return
this
.
view
.
gridRowActiveMode
===
mode
?
true
:
false
;
}
/**
* @description 销毁
* @memberof GridViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
grid
=
null
;
}
}
\ No newline at end of file
src/engine/view/grid-view8-engine.ts
浏览文件 @
4e36da80
...
...
@@ -51,7 +51,6 @@ export default class GridView8Engine extends GridViewEngine {
* @memberof GridView8Engine
*/
public
init
(
options
:
any
=
{}):
void
{
this
.
grid
=
options
.
grid
;
this
.
totalgrid
=
options
.
totalgrid
;
super
.
init
(
options
);
}
...
...
@@ -277,4 +276,13 @@ export default class GridView8Engine extends GridViewEngine {
this
.
removeData
(
items
);
}
}
/**
* @description 销毁
* @memberof GridView8Engine
*/
public
destroy
()
{
super
.
destroy
();
this
.
totalgrid
=
null
;
}
}
src/engine/view/kan-ban-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -55,4 +55,13 @@ export default class KanBanViewEngine extends DataViewEngine {
public
getMDCtrl
():
any
{
return
this
.
kanban
;
}
/**
* @description 销毁
* @memberof KanBanViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
kanban
=
null
;
}
}
\ No newline at end of file
src/engine/view/list-exp-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -98,5 +98,12 @@ export default class ListExpViewEngine extends ViewEngine {
return
this
.
listExpBar
;
}
/**
* @description 销毁
* @memberof ListExpViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
listExpBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/list-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -147,4 +147,13 @@ export default class ListViewEngine extends MDViewEngine {
}
}
/**
* @description 销毁
* @memberof ListViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
list
=
null
;
}
}
\ No newline at end of file
src/engine/view/map-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -64,5 +64,12 @@ export default class MapViewEngine extends MDViewEngine {
return
this
.
map
;
}
/**
* @description 销毁
* @memberof MapViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
map
=
null
;
}
}
\ No newline at end of file
src/engine/view/md-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -466,4 +466,15 @@ export default class MDViewEngine extends ViewEngine {
public
MDCtrlRemove
(
arg
:
any
=
{}):
void
{
this
.
view
.
$emit
(
'drdatasremove'
,
arg
);
}
/**
* @description 销毁
* @memberof MDViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
searchForm
=
null
;
this
.
propertypanel
=
null
;
this
.
md
=
null
;
}
}
\ No newline at end of file
src/engine/view/mpickup-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -120,4 +120,13 @@ export default class MPickupViewEngine extends ViewEngine {
public
getPickupViewPanel
():
any
{
return
this
.
pickupViewPanel
;
}
/**
* @description 销毁
* @memberof MPickupViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
pickupViewPanel
=
null
;
}
}
\ No newline at end of file
src/engine/view/pickup-data-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -62,4 +62,13 @@ export default class PickupDataViewEngine extends MDViewEngine {
return
this
.
dataview
;
}
/**
* @description 销毁
* @memberof PickupDataViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
dataview
=
null
;
}
}
\ No newline at end of file
src/engine/view/pickup-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -96,4 +96,13 @@ export default class PickupViewEngine extends ViewEngine {
public
getPickupViewPanel
():
any
{
return
this
.
pickupViewPanel
;
}
/**
* @description 销毁
* @memberof PickupViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
pickupViewPanel
=
null
;
}
}
\ No newline at end of file
src/engine/view/portal-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -92,4 +92,13 @@ export default class PortalViewEngine extends ViewEngine {
return
this
.
dashboard
;
}
/**
* @description 销毁
* @memberof PortalViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
dashboard
=
null
;
}
}
\ No newline at end of file
src/engine/view/search-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -118,4 +118,13 @@ export class SearchViewEngine extends ViewEngine {
public
getSearchForm
():
any
{
return
this
.
searchForm
;
}
/**
* @description 销毁
* @memberof SearchViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
searchForm
=
null
;
}
}
\ No newline at end of file
src/engine/view/tree-exp-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -99,5 +99,14 @@ export default class TreeExpView extends ViewEngine {
return
this
.
treeExpBar
;
}
/**
* @description 销毁
* @memberof TreeExpView
*/
public
destroy
()
{
super
.
destroy
();
this
.
treeExpBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/tree-grid-ex-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -111,4 +111,13 @@ export default class TreeGridExViewEngine extends MDViewEngine {
public
gridRowAllowActive
(
mode
:
number
):
boolean
{
return
this
.
view
.
gridRowActiveMode
===
mode
?
true
:
false
;
}
/**
* @description 销毁
* @memberof TreeGridExViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
treegridex
=
null
;
}
}
\ No newline at end of file
src/engine/view/tree-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -98,5 +98,14 @@ export default class TreeViewEngine extends ViewEngine {
return
this
.
tree
;
}
/**
* @description 销毁
* @memberof TreeViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
tree
=
null
;
}
}
\ No newline at end of file
src/engine/view/view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -227,6 +227,16 @@ export default class ViewEngine {
}
}
}
}
}
/**
* @description 销毁
* @memberof ViewEngine
*/
public
destroy
()
{
this
.
view
=
null
;
this
.
opt
=
{};
this
.
methods
=
{};
}
}
\ No newline at end of file
src/engine/view/wizard-view-engine.ts
浏览文件 @
4e36da80
...
...
@@ -94,4 +94,13 @@ export default class WizardViewEngine extends ViewEngine {
public
getWizardPanel
():
any
{
return
this
.
wizardpanel
;
}
/**
* @description 销毁
* @memberof WizardViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
wizardpanel
=
null
;
}
}
\ No newline at end of file
src/service/app/app-center-service.ts
浏览文件 @
4e36da80
...
...
@@ -33,15 +33,6 @@ export interface Message {
*/
export
default
class
AppCenterService
{
/**
* Vue 状态管理器
*
* @private
* @type {*}
* @memberof AppCenterService
*/
private
static
store
:
any
;
/**
* 应用数据状态管理对象
*
...
...
@@ -75,11 +66,10 @@ export default class AppCenterService {
* @returns {AppCenterService}
* @memberof AppCenterService
*/
public
static
getInstance
(
store
:
any
):
AppCenterService
{
public
static
getInstance
():
AppCenterService
{
if
(
!
AppCenterService
.
appCenterService
)
{
AppCenterService
.
appCenterService
=
new
AppCenterService
();
}
this
.
store
=
store
;
return
this
.
appCenterService
;
}
...
...
src/service/app/navdata-service.ts
浏览文件 @
4e36da80
...
...
@@ -84,6 +84,7 @@ export interface ServiceState {
}
import
{
Subject
}
from
'rxjs'
;
import
store
from
'@/store/index'
/**
* 导航数据服务
...
...
@@ -150,7 +151,7 @@ export default class NavDataService {
* @returns {NavDataService}
* @memberof NavDataService
*/
public
static
getInstance
(
store
:
any
):
NavDataService
{
public
static
getInstance
():
NavDataService
{
if
(
!
NavDataService
.
navDataService
)
{
NavDataService
.
navDataService
=
new
NavDataService
();
}
...
...
src/uiservice/ui-service.ts
浏览文件 @
4e36da80
import
{
Store
}
from
'vuex'
;
import
AuthService
from
'@/authservice/auth-service'
;
import
AuthService
from
'@/api/authservice/auth-service'
;
import
store
from
'@/store'
;
/**
* 界面服务基类
...
...
@@ -32,7 +33,7 @@ export default class UIService {
* @memberof UIService
*/
constructor
(
opts
:
any
=
{})
{
this
.
$store
=
opts
.
$
store
;
this
.
$store
=
store
;
}
/**
...
...
src/utils/app-modal/app-modal.ts
浏览文件 @
4e36da80
import
Vue
from
'vue'
;
import
{
Subject
}
from
'rxjs'
;
import
store
from
'../../store'
;
import
i18n
from
'@/locale'
;
import
i18n
from
'@/
common/
locale'
;
import
{
ViewTool
}
from
'../view-tool/view-tool'
;
import
AppModalCompponent
from
"./app-modal.vue"
;
import
'./app-modal.less'
;
...
...
@@ -15,16 +15,7 @@ export class AppModal {
* @static
* @memberof AppModal
*/
private
static
modal
=
new
AppModal
();
/**
* vue 实例
*
* @private
* @type {Vue}
* @memberof AppModal
*/
private
vueExample
!
:
Vue
;
private
static
modal
:
AppModal
;
/**
* Creates an instance of AppModal.
...
...
@@ -32,11 +23,16 @@ export class AppModal {
* @memberof AppModal
*/
private
constructor
()
{
if
(
AppModal
.
modal
)
{
return
AppModal
.
modal
;
}
}
/**
* @description 临时vue对象
* @private
* @type {(Vue | null)}
* @memberof AppModal
*/
private
VueExample
:
Vue
|
null
=
null
;
/**
* 获取单例对象
*
...
...
@@ -65,17 +61,15 @@ export class AppModal {
private
createVueExample
(
view
:
{
viewname
:
string
,
title
:
string
,
width
?:
number
,
height
?:
number
,
isfullscreen
?:
boolean
},
context
:
any
=
{},
viewparams
:
any
=
{},
uuid
:
string
):
Subject
<
any
>
{
try
{
let
props
=
{
view
:
view
,
viewdata
:
context
,
viewparams
:
viewparams
,
uuid
:
uuid
};
let
component
=
AppModalCompponent
;
const
vm
=
new
Vue
({
this
.
VueExample
=
new
Vue
({
store
:
store
,
i18n
:
i18n
,
render
(
h
)
{
return
h
(
com
ponent
,
{
props
});
return
h
(
AppModalComp
ponent
,
{
props
});
}
}).
$mount
();
this
.
vueExample
=
vm
;
document
.
body
.
appendChild
(
vm
.
$el
);
const
comp
:
any
=
vm
.
$children
[
0
];
document
.
body
.
appendChild
(
this
.
VueExample
.
$el
);
const
comp
:
any
=
this
.
VueExample
.
$children
[
0
];
return
comp
.
getSubject
();
}
catch
(
error
)
{
console
.
error
(
error
);
...
...
@@ -122,4 +116,15 @@ export class AppModal {
return
s4
()
+
s4
()
+
'-'
+
s4
()
+
'-'
+
s4
()
+
'-'
+
s4
()
+
'-'
+
s4
()
+
s4
()
+
s4
();
}
/**
* @description 销毁临时vue对象
* @memberof AppModal
*/
destroyVueExample
()
{
if
(
this
.
VueExample
)
{
this
.
VueExample
.
$destroy
();
this
.
VueExample
=
null
;
}
}
}
\ No newline at end of file
src/utils/app-modal/app-modal.vue
浏览文件 @
4e36da80
...
...
@@ -27,6 +27,7 @@
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
}
from
"vue-property-decorator"
;
import
{
Subject
}
from
"rxjs"
;
import
{
AppModal
}
from
'./app-modal'
;
@
Component
({
components
:
{}
})
...
...
@@ -279,6 +280,7 @@ export default class AppModalCompponent extends Vue {
setTimeout
(()
=>
{
document
.
body
.
removeChild
(
this
.
$el
);
this
.
$destroy
();
AppModal
.
getInstance
().
destroyVueExample
();
this
.
subject
=
null
;
},
500
)
}
...
...
src/widgets/control-service.ts
浏览文件 @
4e36da80
import
{
Store
}
from
'vuex'
;
import
{
Util
}
from
'@/utils/util/util'
;
import
CodeListService
from
"@/codelist/codelist-service"
;
import
store
from
'@/store'
;
/**
* 部件服务基类
...
...
@@ -50,9 +51,9 @@ export default class ControlService {
* @memberof ControlService
*/
constructor
(
opts
:
any
=
{})
{
this
.
$store
=
opts
.
$
store
;
this
.
$store
=
store
;
this
.
setTempMode
();
this
.
codeListService
=
new
CodeListService
(
{
$store
:
opts
.
$store
}
);
this
.
codeListService
=
new
CodeListService
();
}
/**
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录