Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
0cd482cb
提交
0cd482cb
编写于
4月 05, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码 [TrainSys,网页端]
上级
1395dae0
变更
13
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
30 行增加
和
19 行删除
+30
-19
router-shell.tsx
app_Web/src/components/router-shell/router-shell.tsx
+1
-1
view-shell.tsx
app_Web/src/components/view-shell/view-shell.tsx
+11
-6
edit-view3.tsx
app_Web/src/components/views/edit-view3/edit-view3.tsx
+1
-1
list-exp-view.tsx
app_Web/src/components/views/list-exp-view/list-exp-view.tsx
+1
-1
tab-exp-view.tsx
app_Web/src/components/views/tab-exp-view/tab-exp-view.tsx
+6
-3
wf-dyna-edit-view3.tsx
...omponents/views/wf-dyna-edit-view3/wf-dyna-edit-view3.tsx
+1
-1
view-portlet.tsx
...s/widgets/dashboard-control/view-portlet/view-portlet.tsx
+1
-1
form-druipart.tsx
...ents/widgets/form-control/form-druipart/form-druipart.tsx
+1
-1
grid-field-column.tsx
...gets/grid-control/grid-field-column/grid-field-column.tsx
+1
-1
pickup-view-panel.tsx
...omponents/widgets/pickup-view-panel/pickup-view-panel.tsx
+1
-1
view-panel.tsx
app_Web/src/components/widgets/view-panel/view-panel.tsx
+1
-1
overlay-view-util.ts
app_Web/src/util/overlay-view-util/overlay-view-util.ts
+1
-1
login-view.tsx
app_Web/src/views/login-view/login-view.tsx
+3
-0
未找到文件。
app_Web/src/components/router-shell/router-shell.tsx
浏览文件 @
0cd482cb
...
...
@@ -101,7 +101,7 @@ export default defineComponent({
return
null
;
}
return
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
this
.
viewData
.
context
,
params
:
this
.
viewData
.
params
,
modelPath
:
this
.
viewData
.
viewPath
,
...
...
app_Web/src/components/view-shell/view-shell.tsx
浏览文件 @
0cd482cb
import
{
IViewProvider
}
from
'@ibiz-template/controller'
;
import
{
ModelUtil
}
from
'@ibiz-template/model'
;
import
{
useNamespace
}
from
'@ibiz-template/vue-util'
;
import
{
defineComponent
,
PropType
,
ref
}
from
'vue'
;
import
{
computed
,
defineComponent
,
PropType
,
ref
}
from
'vue'
;
import
'@ibiz-template/theme/style/components/view-shell/view-shell.scss'
;
import
{
IModal
}
from
'@ibiz-template/runtime'
;
...
...
@@ -24,18 +24,23 @@ export const ViewShell = defineComponent({
const
ns
=
useNamespace
(
'view-shell'
);
// 路由绘制的视图,添加一个上下文isRouter
const
cloneContext
=
props
.
context
.
clone
();
cloneContext
.
isRouter
=
props
.
isRouter
===
true
;
const
cloneContext
=
computed
(()
=>
{
const
temp
=
props
.
context
.
clone
();
temp
.
isRouter
=
props
.
isRouter
===
true
;
return
temp
;
});
return
{
ns
,
provider
,
cloneContext
};
},
render
(
h
)
{
if
(
this
.
provider
)
{
const
opts
=
{
...
this
.
$vnode
.
data
,
attrs
:
{
...
this
.
$props
,
...
this
.
$attrs
,
context
:
this
.
cloneContext
,
},
on
:
this
.
$listeners
,
};
opts
.
props
!
.
context
=
this
.
cloneContext
;
return
h
(
'AppTransition'
,
{},
[
h
(
this
.
provider
.
component
,
opts
)]);
}
return
(
...
...
app_Web/src/components/views/edit-view3/edit-view3.tsx
浏览文件 @
0cd482cb
...
...
@@ -62,7 +62,7 @@ export const EditView3 = defineComponent({
{
!
this
.
c
.
isNewData
&&
this
.
lazyList
.
includes
(
page
.
source
.
name
)
&&
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
drPage
.
context
,
params
:
drPage
.
params
,
modal
:
{
mode
:
ViewMode
.
EMBED
},
...
...
app_Web/src/components/views/list-exp-view/list-exp-view.tsx
浏览文件 @
0cd482cb
...
...
@@ -93,7 +93,7 @@ export const ListExpView = defineComponent({
}
// 非路由模式下绘制嵌入视图
return
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
this
.
c
.
navItem
.
context
,
params
:
this
.
c
.
navItem
.
params
,
modal
:
{
mode
:
ViewMode
.
EMBED
},
...
...
app_Web/src/components/views/tab-exp-view/tab-exp-view.tsx
浏览文件 @
0cd482cb
...
...
@@ -10,8 +10,8 @@ import {
computed
,
defineComponent
,
getCurrentInstance
,
h
,
PropType
,
h
,
ref
,
}
from
'vue'
;
import
'./tab-exp-view.scss'
;
...
...
@@ -105,6 +105,8 @@ export const TabExpView = defineComponent({
return
Object
.
values
(
c
.
tabExpPages
).
map
(
item
=>
item
.
key
);
});
const
embedViewModal
=
{
mode
:
ViewMode
.
EMBED
};
return
{
c
,
ns
,
...
...
@@ -113,6 +115,7 @@ export const TabExpView = defineComponent({
deactivateAll
,
activeTab
,
keyHistory
,
embedViewModal
,
};
},
render
()
{
...
...
@@ -143,10 +146,10 @@ export const TabExpView = defineComponent({
>
{
this
.
lazyList
.
includes
(
page
.
name
)
&&
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
this
.
c
.
context
,
params
:
this
.
c
.
params
,
modal
:
{
mode
:
ViewMode
.
EMBED
}
,
modal
:
this
.
embedViewModal
,
modelPath
:
page
.
embedView
.
source
.
modelPath
,
},
on
:
{
...
...
app_Web/src/components/views/wf-dyna-edit-view3/wf-dyna-edit-view3.tsx
浏览文件 @
0cd482cb
...
...
@@ -95,7 +95,7 @@ export const WFDynaEditView3 = defineComponent({
{
!
this
.
c
.
isNewData
&&
this
.
lazyList
.
includes
(
page
.
source
.
name
)
&&
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
drPage
.
context
,
params
:
drPage
.
params
,
modal
:
{
mode
:
ViewMode
.
EMBED
},
...
...
app_Web/src/components/widgets/dashboard-control/view-portlet/view-portlet.tsx
浏览文件 @
0cd482cb
...
...
@@ -34,7 +34,7 @@ export const ViewPortlet = defineComponent({
return
(
<
portlet
-
layout
controller=
{
this
.
controller
}
class=
{
classArr
}
>
{
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
c
.
viewContext
,
params
:
c
.
params
,
modal
:
{
mode
:
ViewMode
.
EMBED
},
...
...
app_Web/src/components/widgets/form-control/form-druipart/form-druipart.tsx
浏览文件 @
0cd482cb
...
...
@@ -50,7 +50,7 @@ export const FormDRUIPart = defineComponent({
class=
{
this
.
ns
.
b
()
}
>
{
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
this
.
$props
.
controller
.
context
,
params
:
this
.
$props
.
controller
.
params
,
modal
:
this
.
modal
,
...
...
app_Web/src/components/widgets/grid-control/grid-field-column/grid-field-column.tsx
浏览文件 @
0cd482cb
...
...
@@ -79,7 +79,7 @@ export const GridFieldColumn = defineComponent({
)
:
(
<
span
class=
{
this
.
ns
.
e
(
'text'
)
}
>
{
fieldValue
}
{
fieldValue
&&
c
.
model
.
unitName
}
{
fieldValue
!=
null
&&
c
.
model
.
unitName
}
</
span
>
)
}
</
div
>
...
...
app_Web/src/components/widgets/pickup-view-panel/pickup-view-panel.tsx
浏览文件 @
0cd482cb
...
...
@@ -34,7 +34,7 @@ export const PickupViewPanel = defineComponent({
return
;
}
return
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
this
.
c
.
context
,
params
:
this
.
c
.
params
,
modal
:
this
.
modal
,
...
...
app_Web/src/components/widgets/view-panel/view-panel.tsx
浏览文件 @
0cd482cb
...
...
@@ -34,7 +34,7 @@ export const ViewPanel = defineComponent({
return
;
}
return
h
(
'ViewShell'
,
{
prop
s
:
{
attr
s
:
{
context
:
this
.
c
.
context
,
params
:
this
.
c
.
params
,
modal
:
this
.
modal
,
...
...
app_Web/src/util/overlay-view-util/overlay-view-util.ts
浏览文件 @
0cd482cb
...
...
@@ -15,7 +15,7 @@ export function createOverlayView(
):
(
_h
:
CreateElement
)
=>
VNode
{
return
(
h
:
CreateElement
)
=>
h
(
'ViewShell'
,
{
props
,
attrs
:
props
,
on
:
{
neuronInit
:
(
neuron
:
ViewNeuron
)
=>
{
neuron
.
evt
.
on
(
'closeView'
,
(
res
:
IModalData
)
=>
{
...
...
app_Web/src/views/login-view/login-view.tsx
浏览文件 @
0cd482cb
...
...
@@ -54,6 +54,9 @@ export default defineComponent({
const
route
=
useRoute
(
instance
.
proxy
);
const
ru
=
(
route
.
query
.
ru
as
string
)
||
'/'
;
ibiz
.
appData
=
undefined
;
ibiz
.
orgData
=
undefined
;
onMounted
(()
=>
{
setTimeout
(()
=>
{
const
el
=
document
.
querySelector
(
'.app-loading-x'
)
as
HTMLDivElement
;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录