Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
2caea70f
提交
2caea70f
编写于
10月 31, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhujiamin 发布系统代码 [TrainSys,网页端]
上级
9e8a0a9e
变更
6
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
82 行增加
和
68 行删除
+82
-68
package.json
app_Web/package.json
+7
-7
pnpm-lock.yaml
app_Web/pnpm-lock.yaml
+41
-41
ibiz-grid-file-upload.tsx
...or/upload/ibiz-grid-file-upload/ibiz-grid-file-upload.tsx
+2
-5
portlet-layout.tsx
...b/src/components/layout/portlet-layout/portlet-layout.tsx
+15
-14
dashboard-control.tsx
...omponents/widgets/dashboard-control/dashboard-control.tsx
+16
-1
index.ts
app_Web/src/provider/view/index.ts
+1
-0
未找到文件。
app_Web/package.json
浏览文件 @
2caea70f
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
"dependencies"
:
{
"dependencies"
:
{
"@floating-ui/dom"
:
"^1.0.11"
,
"@floating-ui/dom"
:
"^1.0.11"
,
"@ibiz-template/command"
:
"^0.0.1-beta.50"
,
"@ibiz-template/command"
:
"^0.0.1-beta.50"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.12
7
"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.12
8
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.12
7
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.12
8
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.12
7
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.12
8
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.12
7
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.12
8
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.12
7
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.12
8
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.12
7
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.12
8
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.12
7
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.12
8
"
,
"@ibiz/dynamic-model-api"
:
"^2.1.28"
,
"@ibiz/dynamic-model-api"
:
"^2.1.28"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"dayjs"
:
"^1.11.7"
,
"dayjs"
:
"^1.11.7"
,
...
...
app_Web/pnpm-lock.yaml
浏览文件 @
2caea70f
此差异已折叠。
点击以展开。
app_Web/src/components/editor/upload/ibiz-grid-file-upload/ibiz-grid-file-upload.tsx
浏览文件 @
2caea70f
...
@@ -89,7 +89,7 @@ export const IBizGridFileUpload = defineComponent({
...
@@ -89,7 +89,7 @@ export const IBizGridFileUpload = defineComponent({
// 非禁用和只读的时候点击打开飘窗
// 非禁用和只读的时候点击打开飘窗
useEventListener
(
componentRef
,
'click'
,
_evt
=>
{
useEventListener
(
componentRef
,
'click'
,
_evt
=>
{
if
(
!
props
.
disabled
&&
!
props
.
readonly
)
{
if
(
!
props
.
readonly
)
{
openPopover
();
openPopover
();
}
}
});
});
...
@@ -97,7 +97,7 @@ export const IBizGridFileUpload = defineComponent({
...
@@ -97,7 +97,7 @@ export const IBizGridFileUpload = defineComponent({
const
onFileClick
=
(
file
:
FileInfo
)
=>
{
const
onFileClick
=
(
file
:
FileInfo
)
=>
{
// 编辑态时点击触发的打开飘窗,其他行为都禁用
// 编辑态时点击触发的打开飘窗,其他行为都禁用
// 图片点击不下载,弹出预览
// 图片点击不下载,弹出预览
if
(
!
props
.
disabled
||
file
.
isImage
)
{
if
(
file
.
isImage
)
{
return
;
return
;
}
}
props
.
controller
.
fileDownload
(
file
as
Required
<
FileInfo
>
);
props
.
controller
.
fileDownload
(
file
as
Required
<
FileInfo
>
);
...
@@ -105,9 +105,6 @@ export const IBizGridFileUpload = defineComponent({
...
@@ -105,9 +105,6 @@ export const IBizGridFileUpload = defineComponent({
const
onImageClick
=
(
file
:
FileInfo
)
=>
{
const
onImageClick
=
(
file
:
FileInfo
)
=>
{
// 编辑态时点击触发的打开飘窗,其他行为都禁用
// 编辑态时点击触发的打开飘窗,其他行为都禁用
if
(
!
props
.
disabled
)
{
return
;
}
openImagePreview
(
file
);
openImagePreview
(
file
);
};
};
...
...
app_Web/src/components/layout/portlet-layout/portlet-layout.tsx
浏览文件 @
2caea70f
import
{
PortletPartController
}
from
'@ibiz-template/controller'
;
import
{
PortletPartController
}
from
'@ibiz-template/controller'
;
import
{
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
computed
,
defineComponent
}
from
'vue'
;
import
{
computed
,
defineComponent
}
from
'vue'
;
import
{
IPSUIActionGroupDetail
}
from
'@ibiz-template/model'
;
import
'./portlet-layout.scss'
;
import
'./portlet-layout.scss'
;
/**
/**
...
@@ -23,17 +24,17 @@ export const PortletLayout = defineComponent({
...
@@ -23,17 +24,17 @@ export const PortletLayout = defineComponent({
});
});
// 点击工具栏处理
// 点击工具栏处理
//
const onActionClick = async (
const
onActionClick
=
async
(
//
detail: IPSUIActionGroupDetail,
detail
:
IPSUIActionGroupDetail
,
//
event: MouseEvent,
event
:
MouseEvent
,
//
) => {
)
=>
{
//
await props.controller.onActionClick(detail, event);
await
props
.
controller
.
onActionClick
(
detail
,
event
);
//
};
};
return
{
ns
,
isShowHeader
};
return
{
ns
,
isShowHeader
,
onActionClick
};
},
},
render
()
{
render
()
{
const
{
model
}
=
this
.
$prop
s
.
controller
;
const
{
model
,
state
}
=
thi
s
.
controller
;
return
(
return
(
<
div
class=
{
[
this
.
ns
.
b
(),
this
.
ns
.
is
(
'no-header'
,
!
this
.
isShowHeader
)]
}
>
<
div
class=
{
[
this
.
ns
.
b
(),
this
.
ns
.
is
(
'no-header'
,
!
this
.
isShowHeader
)]
}
>
{
this
.
isShowHeader
&&
(
{
this
.
isShowHeader
&&
(
...
@@ -51,16 +52,16 @@ export const PortletLayout = defineComponent({
...
@@ -51,16 +52,16 @@ export const PortletLayout = defineComponent({
</
div
>
</
div
>
)
}
)
}
</
div
>
</
div
>
{
/*
<div class={this.ns.be('header', 'right')}>
<
div
class=
{
this
.
ns
.
be
(
'header'
,
'right'
)
}
>
{model.actionGroup && (
{
model
.
actionGroup
&&
state
.
actionGroupState
&&
(
<
action
-
toolbar
<
action
-
toolbar
class=
{
this
.
ns
.
e
(
'toolbar'
)
}
class=
{
this
.
ns
.
e
(
'toolbar'
)
}
action
-details={this.controller.model.uiActionGroupDetails
}
action
Group=
{
model
.
actionGroup
}
actions
-s
tate={state.actionGroupState}
actions
S
tate=
{
state
.
actionGroupState
}
on
ActionC
lick={this.onActionClick}
on
-
action
-
c
lick=
{
this
.
onActionClick
}
></
action
-
toolbar
>
></
action
-
toolbar
>
)
}
)
}
</div>
*/
}
</
div
>
</
div
>
</
div
>
)
}
)
}
<
div
key=
'content'
class=
{
this
.
ns
.
b
(
'content'
)
}
>
<
div
key=
'content'
class=
{
this
.
ns
.
b
(
'content'
)
}
>
...
...
app_Web/src/components/widgets/dashboard-control/dashboard-control.tsx
浏览文件 @
2caea70f
...
@@ -5,7 +5,14 @@ import {
...
@@ -5,7 +5,14 @@ import {
PortletPartModel
,
PortletPartModel
,
}
from
'@ibiz-template/model'
;
}
from
'@ibiz-template/model'
;
import
{
useDashboardController
,
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
useDashboardController
,
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
defineComponent
,
getCurrentInstance
,
h
,
PropType
,
VNode
}
from
'vue'
;
import
{
defineComponent
,
getCurrentInstance
,
h
,
PropType
,
reactive
,
VNode
,
}
from
'vue'
;
import
'./dashboard-control.scss'
;
import
'./dashboard-control.scss'
;
/**
/**
...
@@ -71,6 +78,14 @@ export const DashboardControl = defineComponent({
...
@@ -71,6 +78,14 @@ export const DashboardControl = defineComponent({
props
.
params
,
props
.
params
,
);
);
c
.
nerve
.
self
.
evt
.
on
(
'created'
,
()
=>
{
Object
.
values
(
c
.
portlets
).
forEach
(
portlet
=>
{
Object
.
assign
(
portlet
,
{
state
:
reactive
(
portlet
.
state
),
});
});
});
const
ns
=
useNamespace
(
'dashboard'
);
const
ns
=
useNamespace
(
'dashboard'
);
return
{
c
,
ns
};
return
{
c
,
ns
};
...
...
app_Web/src/provider/view/index.ts
浏览文件 @
2caea70f
...
@@ -48,6 +48,7 @@ export function presetViewProvider(): void {
...
@@ -48,6 +48,7 @@ export function presetViewProvider(): void {
);
);
view
.
register
(
ViewType
.
APP_WF_STEP_TRACE_VIEW
,
new
WFStepTraceViewProvider
());
view
.
register
(
ViewType
.
APP_WF_STEP_TRACE_VIEW
,
new
WFStepTraceViewProvider
());
view
.
register
(
ViewType
.
APP_PORTAL_VIEW
,
new
AppPortalViewProvider
());
view
.
register
(
ViewType
.
APP_PORTAL_VIEW
,
new
AppPortalViewProvider
());
view
.
register
(
ViewType
.
DE_PORTAL_VIEW
,
new
AppPortalViewProvider
());
// 导航
// 导航
view
.
register
(
ViewType
.
DE_TAB_EXP_VIEW
,
new
TabExpViewProvider
());
view
.
register
(
ViewType
.
DE_TAB_EXP_VIEW
,
new
TabExpViewProvider
());
view
.
register
(
ViewType
.
DE_LIST_EXP_VIEW
,
new
ListExpViewProvider
());
view
.
register
(
ViewType
.
DE_LIST_EXP_VIEW
,
new
ListExpViewProvider
());
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录