Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
adc3ef6a
提交
adc3ef6a
编写于
2月 23, 2022
作者:
MosYCo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:调整视图事件抛出标识
上级
938ecd72
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
14 行增加
和
13 行删除
+14
-13
app-form-druipart.vue
.../app_{{apps}}/src/components/common/app-form-druipart.vue
+2
-2
edit-view.ts
...pp_{{apps}}/src/core/modules/views/edit-view/edit-view.ts
+1
-1
main-view.ts
...pp_{{apps}}/src/core/modules/views/main-view/main-view.ts
+1
-1
md-view.ts
...r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
+2
-2
view-base.ts
...pp_{{apps}}/src/core/modules/views/view-base/view-base.ts
+1
-1
grid-control.ts
...s}}/src/core/modules/widgets/grid-control/grid-control.ts
+1
-0
md-control.ts
...{apps}}/src/core/modules/widgets/md-control/md-control.ts
+2
-2
{{pages@APPPORTALVIEW}}.vue.hbs
...}/{{pages@APPPORTALVIEW}}/{{pages@APPPORTALVIEW}}.vue.hbs
+1
-1
{{pages@DEEDITVIEW}}.vue.hbs
...dules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
+1
-1
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+1
-1
{{pages@DETREEVIEW}}.vue.hbs
...dules}}/{{pages@DETREEVIEW}}/{{pages@DETREEVIEW}}.vue.hbs
+1
-1
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-druipart.vue
浏览文件 @
adc3ef6a
...
@@ -164,7 +164,7 @@ const refreshDRUIPart = (data?: any) => {
...
@@ -164,7 +164,7 @@ const refreshDRUIPart = (data?: any) => {
});
});
};
};
const
v
iewEvent
=
(
action
:
any
)
=>
{
const
onV
iewEvent
=
(
action
:
any
)
=>
{
};
};
</
script
>
</
script
>
...
@@ -178,7 +178,7 @@ const viewEvent = (action:any) => {
...
@@ -178,7 +178,7 @@ const viewEvent = (action:any) => {
<AppIconText
:text=
"title"
/>
<AppIconText
:text=
"title"
/>
</p>
</p>
</
template
>
</
template
>
<slot
:context=
"druipartContext"
:viewParams=
"druipartViewParams"
:viewEvent=
"
v
iewEvent"
></slot>
<slot
:context=
"druipartContext"
:viewParams=
"druipartViewParams"
:viewEvent=
"
onV
iewEvent"
></slot>
</a-card>
</a-card>
</template>
</template>
</AppCol>
</AppCol>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/edit-view/edit-view.ts
浏览文件 @
adc3ef6a
...
@@ -105,7 +105,7 @@ export class EditView extends MainView {
...
@@ -105,7 +105,7 @@ export class EditView extends MainView {
*/
*/
public
onFormLoad
(
data
:
IParam
[]):
void
{
public
onFormLoad
(
data
:
IParam
[]):
void
{
// 抛出数据
// 抛出数据
this
.
emit
(
"
onV
iewEvent"
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewLoad'
,
data
:
data
});
this
.
emit
(
"
v
iewEvent"
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewLoad'
,
data
:
data
});
// 设置工具栏状态
// 设置工具栏状态
const
state
:
boolean
=
!
Object
.
is
(
data
[
0
].
srfuf
,
'1'
);
const
state
:
boolean
=
!
Object
.
is
(
data
[
0
].
srfuf
,
'1'
);
this
.
setToolbarItemState
(
state
,
data
[
0
]);
this
.
setToolbarItemState
(
state
,
data
[
0
]);
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/main-view/main-view.ts
浏览文件 @
adc3ef6a
...
@@ -195,7 +195,7 @@ export class MainView extends ViewBase {
...
@@ -195,7 +195,7 @@ export class MainView extends ViewBase {
const
{
tag
,
action
,
data
}
=
actionParam
;
const
{
tag
,
action
,
data
}
=
actionParam
;
if
(
tag
===
this
.
state
.
xDataControlName
)
{
if
(
tag
===
this
.
state
.
xDataControlName
)
{
if
(
action
===
'save'
)
{
if
(
action
===
'save'
)
{
this
.
emit
(
'
onV
iewEvent'
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewsave'
,
data
:
data
});
this
.
emit
(
'
v
iewEvent'
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewsave'
,
data
:
data
});
}
}
}
}
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
浏览文件 @
adc3ef6a
...
@@ -240,7 +240,7 @@ export class MDView extends MainView {
...
@@ -240,7 +240,7 @@ export class MDView extends MainView {
*/
*/
public
MDCtrlLoaded
(
data
:
IParam
[])
{
public
MDCtrlLoaded
(
data
:
IParam
[])
{
// 抛出数据
// 抛出数据
this
.
emit
(
"
onV
iewEvent"
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewLoad'
,
data
:
data
});
this
.
emit
(
"
v
iewEvent"
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewLoad'
,
data
:
data
});
// 设置工具栏状态
// 设置工具栏状态
this
.
setToolbarItemState
(
true
);
this
.
setToolbarItemState
(
true
);
}
}
...
@@ -253,7 +253,7 @@ export class MDView extends MainView {
...
@@ -253,7 +253,7 @@ export class MDView extends MainView {
*/
*/
public
selectionChange
(
data
:
IParam
[])
{
public
selectionChange
(
data
:
IParam
[])
{
// 抛出数据
// 抛出数据
this
.
emit
(
"
onV
iewEvent"
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewDataChange'
,
data
:
data
});
this
.
emit
(
"
v
iewEvent"
,
{
tag
:
this
.
state
.
viewName
,
action
:
'viewDataChange'
,
data
:
data
});
// 设置工具栏状态
// 设置工具栏状态
const
state
:
boolean
=
!
Object
.
is
(
data
[
0
]?.
srfuf
,
'1'
);
const
state
:
boolean
=
!
Object
.
is
(
data
[
0
]?.
srfuf
,
'1'
);
this
.
setToolbarItemState
(
state
,
data
[
0
]?.
$DO
);
this
.
setToolbarItemState
(
state
,
data
[
0
]?.
$DO
);
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/view-base/view-base.ts
浏览文件 @
adc3ef6a
...
@@ -93,7 +93,7 @@ export class ViewBase {
...
@@ -93,7 +93,7 @@ export class ViewBase {
window
.
history
.
back
();
window
.
history
.
back
();
}
else
{
}
else
{
// 非路由模式继续向外抛关闭视图事件
// 非路由模式继续向外抛关闭视图事件
this
.
emit
(
'
onV
iewEvent'
,
{
tag
:
this
.
state
.
viewName
,
action
:
'closeView'
,
data
:
this
.
xDataControl
?.
getData
()
});
this
.
emit
(
'
v
iewEvent'
,
{
tag
:
this
.
state
.
viewName
,
action
:
'closeView'
,
data
:
this
.
xDataControl
?.
getData
()
});
}
}
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/grid-control/grid-control.ts
浏览文件 @
adc3ef6a
...
@@ -266,6 +266,7 @@ export class GridControl extends MDControl {
...
@@ -266,6 +266,7 @@ export class GridControl extends MDControl {
}
}
resolve
(
false
);
resolve
(
false
);
}
else
{
}
else
{
gridEditState
.
value
[
name
][
rowIndex
]
=
null
;
resolve
(
true
);
resolve
(
true
);
}
}
})
})
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/md-control/md-control.ts
浏览文件 @
adc3ef6a
...
@@ -147,7 +147,7 @@ export class MDControl extends MainControl {
...
@@ -147,7 +147,7 @@ export class MDControl extends MainControl {
item
.
rowDataState
==
'update'
?
updateAction
:
item
.
rowDataState
==
'create'
?
createAction
:
''
;
item
.
rowDataState
==
'update'
?
updateAction
:
item
.
rowDataState
==
'create'
?
createAction
:
''
;
const
saveFunName
=
item
.
rowDataState
==
'update'
?
'update'
:
'create'
;
const
saveFunName
=
item
.
rowDataState
==
'update'
?
'update'
:
'create'
;
if
(
!
saveAction
)
{
if
(
!
saveAction
)
{
return
;
continue
;
}
}
const
arg
:
any
=
{
...
opt
};
const
arg
:
any
=
{
...
opt
};
let
_context
=
deepCopy
(
context
);
let
_context
=
deepCopy
(
context
);
...
@@ -158,7 +158,7 @@ export class MDControl extends MainControl {
...
@@ -158,7 +158,7 @@ export class MDControl extends MainControl {
action
:
saveAction
,
action
:
saveAction
,
isLoading
:
showBusyIndicator
,
isLoading
:
showBusyIndicator
,
});
});
if
(
response
.
status
||
response
.
status
==
200
)
{
if
(
response
.
status
&&
response
.
status
==
200
)
{
}
}
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@APPPORTALVIEW}}/{{pages@APPPORTALVIEW}}.vue.hbs
浏览文件 @
adc3ef6a
...
@@ -23,7 +23,7 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -23,7 +23,7 @@ const props = withDefaults(defineProps<Props>(), {
// emit声明
// emit声明
interface
ViewEmit
{
interface
ViewEmit
{
(
name
:
"
onV
iewEvent"
,
value
:
IActionParam
):
void
;
(
name
:
"
v
iewEvent"
,
value
:
IActionParam
):
void
;
}
}
const
emit
=
defineEmits
<
ViewEmit
>
();
const
emit
=
defineEmits
<
ViewEmit
>
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
adc3ef6a
...
@@ -23,7 +23,7 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -23,7 +23,7 @@ const props = withDefaults(defineProps<Props>(), {
// emit声明
// emit声明
interface
ViewEmit
{
interface
ViewEmit
{
(
name
:
"
onV
iewEvent"
,
value
:
IActionParam
):
void
;
(
name
:
"
v
iewEvent"
,
value
:
IActionParam
):
void
;
}
}
const
emit
=
defineEmits
<
ViewEmit
>
();
const
emit
=
defineEmits
<
ViewEmit
>
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
adc3ef6a
...
@@ -33,7 +33,7 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -33,7 +33,7 @@ const props = withDefaults(defineProps<Props>(), {
// emit声明
// emit声明
interface
ViewEmit
{
interface
ViewEmit
{
(
name
:
"
onV
iewEvent"
,
value
:
IActionParam
):
void
;
(
name
:
"
v
iewEvent"
,
value
:
IActionParam
):
void
;
}
}
const
emit
=
defineEmits
<
ViewEmit
>
();
const
emit
=
defineEmits
<
ViewEmit
>
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DETREEVIEW}}/{{pages@DETREEVIEW}}.vue.hbs
浏览文件 @
adc3ef6a
...
@@ -32,7 +32,7 @@ const props = withDefaults(defineProps<Props>(), {
...
@@ -32,7 +32,7 @@ const props = withDefaults(defineProps<Props>(), {
// emit声明
// emit声明
interface
ViewEmit
{
interface
ViewEmit
{
(
name
:
"
onV
iewEvent"
,
value
:
IActionParam
):
void
;
(
name
:
"
v
iewEvent"
,
value
:
IActionParam
):
void
;
}
}
const
emit
=
defineEmits
<
ViewEmit
>
();
const
emit
=
defineEmits
<
ViewEmit
>
();
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录