Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
cf7f50ff
提交
cf7f50ff
编写于
1月 19, 2024
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
KK951314 发布系统代码 [TrainSys,网页端]
上级
bef39400
变更
8
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
271 行增加
和
71 行删除
+271
-71
package.json
app_Web/package.json
+7
-7
pnpm-lock.yaml
app_Web/pnpm-lock.yaml
+44
-44
app-register.ts
app_Web/src/app-register.ts
+2
-0
index.ts
app_Web/src/components/views/index.ts
+1
-0
mpickup-view2.tsx
app_Web/src/components/views/mpickup-view2/mpickup-view2.tsx
+181
-0
index.ts
app_Web/src/provider/view/index.ts
+2
-0
mpickup-view2-provider.ts
app_Web/src/provider/view/mpickup-view2-provider.ts
+14
-0
PSSYSAPP.json
...ces/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
+20
-20
未找到文件。
app_Web/package.json
浏览文件 @
cf7f50ff
...
...
@@ -13,13 +13,13 @@
"dependencies"
:
{
"@floating-ui/dom"
:
"^1.5.3"
,
"@ibiz-template/command"
:
"^0.0.1-beta.50"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.13
8
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.13
8
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.13
8
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.13
8
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.13
8
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.13
8
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.13
8
"
,
"@ibiz-template/controller"
:
"^0.0.1-beta.13
9
"
,
"@ibiz-template/core"
:
"^0.0.1-beta.13
9
"
,
"@ibiz-template/model"
:
"^0.0.1-beta.13
9
"
,
"@ibiz-template/runtime"
:
"^0.0.1-beta.13
9
"
,
"@ibiz-template/service"
:
"^0.0.1-beta.13
9
"
,
"@ibiz-template/theme"
:
"^0.0.1-beta.13
9
"
,
"@ibiz-template/vue-util"
:
"^0.0.1-beta.13
9
"
,
"@ibiz/dynamic-model-api"
:
"^2.1.28"
,
"@riophae/vue-treeselect"
:
"^0.4.0"
,
"dayjs"
:
"^1.11.10"
,
...
...
app_Web/pnpm-lock.yaml
浏览文件 @
cf7f50ff
此差异已折叠。
点击以展开。
app_Web/src/app-register.ts
浏览文件 @
cf7f50ff
...
...
@@ -62,6 +62,7 @@ import {
ListView
,
TreeExpView
,
PickupView2
,
MPickupView2
,
}
from
'./components/views'
;
import
{
IndexView
}
from
'./views'
;
import
AppKeepAlive
from
'./components/common/app-keep-alive/app-keep-alive.vue'
;
...
...
@@ -155,6 +156,7 @@ export const AppRegister = {
v
.
component
(
'ListView'
,
ListView
);
v
.
component
(
'TreeExpView'
,
TreeExpView
);
v
.
component
(
'PickupView2'
,
PickupView2
);
v
.
component
(
'MPickupView2'
,
MPickupView2
);
// 注册部件组件
v
.
component
(
'AppMenu'
,
AppMenu
);
v
.
component
(
'GridControl'
,
GridControl
);
...
...
app_Web/src/components/views/index.ts
浏览文件 @
cf7f50ff
...
...
@@ -15,3 +15,4 @@ export * from './list-exp-view/list-exp-view';
export
*
from
'./list-view/list-view'
;
export
*
from
'./tree-exp-view/tree-exp-view'
;
export
*
from
'./pickup-view2/pickup-view2'
;
export
*
from
'./mpickup-view2/mpickup-view2'
;
app_Web/src/components/views/mpickup-view2/mpickup-view2.tsx
0 → 100644
浏览文件 @
cf7f50ff
import
{
IModal
}
from
'@ibiz-template/runtime'
;
import
{
useNamespace
,
useMPickupView2Controller
,
}
from
'@ibiz-template/vue-util'
;
import
{
defineComponent
,
getCurrentInstance
,
PropType
,
ref
,
Ref
,
VNode
,
}
from
'vue'
;
import
'@ibiz-template/theme/style/components/views/mpickup-view2/mpickup-view2.scss'
;
export
const
MPickupView2
=
defineComponent
({
props
:
{
context
:
Object
as
PropType
<
IContext
>
,
params
:
{
type
:
Object
as
PropType
<
IParams
>
,
default
:
()
=>
({})
},
modelPath
:
{
type
:
String
,
required
:
true
},
modal
:
{
type
:
Object
as
PropType
<
IModal
>
},
noLoadDefault
:
{
type
:
Boolean
,
required
:
false
},
},
setup
(
props
)
{
const
{
proxy
}
=
getCurrentInstance
()
!
;
const
c
=
useMPickupView2Controller
(
proxy
,
props
.
modelPath
);
const
ns
=
useNamespace
(
'view-dempickupview2'
);
// UI层单击选中的数组
const
UISelections
:
Ref
<
IData
[]
>
=
ref
([]);
const
isSelected
=
(
selection
:
IData
)
=>
{
return
UISelections
.
value
.
includes
(
selection
);
};
const
addRight
=
()
=>
{
c
.
addSelections
(
c
.
embedSelection
);
UISelections
.
value
=
[];
};
const
addRightAll
=
()
=>
{
c
.
selectAll
();
UISelections
.
value
=
[];
};
const
removeRight
=
()
=>
{
c
.
removeSelections
(
UISelections
.
value
);
UISelections
.
value
=
[];
};
const
removeRightAll
=
()
=>
{
c
.
selfSelection
=
[];
UISelections
.
value
=
[];
};
const
handleSelectionClick
=
(
selection
:
IData
)
=>
{
const
index
=
UISelections
.
value
.
indexOf
(
selection
);
if
(
index
===
-
1
)
{
UISelections
.
value
.
push
(
selection
);
}
else
{
UISelections
.
value
.
splice
(
index
,
1
);
}
};
return
{
ns
,
c
,
addRight
,
addRightAll
,
removeRight
,
removeRightAll
,
isSelected
,
handleSelectionClick
,
};
},
render
(
h
)
{
let
panelComponent
=
null
;
let
treeComponent
:
VNode
|
null
=
null
;
if
(
this
.
c
.
complete
)
{
const
{
tree
,
pickupViewPanel
}
=
this
.
c
.
model
;
if
(
this
.
c
.
providers
[
tree
.
name
])
{
treeComponent
=
h
(
this
.
c
.
providers
[
tree
.
name
].
component
,
{
props
:
{
modelData
:
tree
,
context
:
this
.
c
.
context
,
params
:
this
.
c
.
params
,
isSelectFirstDefault
:
true
,
},
on
:
{
neuronInit
:
this
.
c
.
nerve
.
onNeuronInit
(
'tree'
),
},
});
}
if
(
this
.
c
.
providers
[
pickupViewPanel
.
name
])
{
panelComponent
=
h
(
this
.
c
.
providers
[
pickupViewPanel
.
name
].
component
,
{
props
:
{
modelData
:
pickupViewPanel
,
context
:
this
.
c
.
navPanelParams
.
context
,
params
:
this
.
c
.
navPanelParams
.
params
,
noLoadDefault
:
true
,
},
on
:
{
neuronInit
:
this
.
c
.
nerve
.
onNeuronInit
(
pickupViewPanel
.
name
),
},
});
}
}
return
(
<
view
-
base
controller=
{
this
.
c
}
scopedSlots=
{
{
footer
:
()
=>
{
return
(
<
div
class=
{
this
.
ns
.
b
(
'footer'
)
}
>
<
i
-
button
on
-
click=
{
()
=>
{
this
.
c
.
onOkButtonClick
();
}
}
>
确定
</
i
-
button
>
<
i
-
button
on
-
click=
{
()
=>
{
this
.
c
.
onCancelButtonClick
();
}
}
>
取消
</
i
-
button
>
</
div
>
);
},
}
}
>
<
div
class=
{
this
.
ns
.
b
(
'content'
)
}
>
<
div
class=
{
this
.
ns
.
b
(
'left-container'
)
}
>
<
div
class=
{
this
.
ns
.
b
(
'left-container-left'
)
}
>
{
treeComponent
}
</
div
>
<
div
class=
{
this
.
ns
.
b
(
'left-container-right'
)
}
>
{
panelComponent
}
</
div
>
</
div
>
<
div
class=
{
this
.
ns
.
b
(
'center'
)
}
>
<
i
-
button
on
-
click=
{
this
.
addRight
}
title=
'右移'
>
{
'>'
}
</
i
-
button
>
<
i
-
button
on
-
click=
{
this
.
removeRight
}
title=
'左移'
>
{
'<'
}
</
i
-
button
>
<
i
-
button
on
-
click=
{
this
.
addRightAll
}
title=
'全部右移'
>
{
'>>'
}
</
i
-
button
>
<
i
-
button
on
-
click=
{
this
.
removeRightAll
}
title=
'全部左移'
>
{
'<<'
}
</
i
-
button
>
</
div
>
<
div
class=
{
this
.
ns
.
b
(
'right'
)
}
>
{
this
.
c
.
selfSelection
.
map
(
item
=>
{
return
(
<
div
key=
{
item
.
srfkey
}
class=
{
[
this
.
ns
.
be
(
'right'
,
'list-item'
),
this
.
ns
.
is
(
'selected'
,
this
.
isSelected
(
item
)),
]
}
on
-
click=
{
()
=>
this
.
handleSelectionClick
(
item
)
}
>
{
item
.
srfmajortext
}
<
i
-
icon
type=
'ios-close'
size=
{
24
}
on
-
click=
{
()
=>
{
this
.
c
.
removeSelections
([
item
]);
}
}
/>
</
div
>
);
})
}
</
div
>
</
div
>
</
view
-
base
>
);
},
});
app_Web/src/provider/view/index.ts
浏览文件 @
cf7f50ff
...
...
@@ -17,6 +17,7 @@ import { WFDynaEditView3Provider } from './wf-dyna-edit-view3-provider';
import
{
WFDynaStartViewProvider
}
from
'./wf-dyna-start-view-provider'
;
import
{
WFStepTraceViewProvider
}
from
'./wf-step-trace-view-provider'
;
import
{
PickupView2Provider
}
from
'./pickup-view2-provider'
;
import
{
MPickupView2Provider
}
from
'./mpickup-view2-provider'
;
/**
* 预置默认的视图适配器
...
...
@@ -51,6 +52,7 @@ export function presetViewProvider(): void {
view
.
register
(
ViewType
.
APP_PORTAL_VIEW
,
new
AppPortalViewProvider
());
view
.
register
(
ViewType
.
DE_PORTAL_VIEW
,
new
AppPortalViewProvider
());
view
.
register
(
ViewType
.
DE_PICKUP_VIEW2
,
new
PickupView2Provider
());
view
.
register
(
ViewType
.
DE_MPICKUP_VIEW2
,
new
MPickupView2Provider
());
// 导航
view
.
register
(
ViewType
.
DE_TAB_EXP_VIEW
,
new
TabExpViewProvider
());
view
.
register
(
ViewType
.
DE_LIST_EXP_VIEW
,
new
ListExpViewProvider
());
...
...
app_Web/src/provider/view/mpickup-view2-provider.ts
0 → 100644
浏览文件 @
cf7f50ff
import
{
IViewProvider
}
from
'@ibiz-template/controller'
;
/**
* 实体多项数据选择视图(左右关系)适配器
*
* @author zk
* @date 2024-01-19 10:01:23
* @export
* @class MPickupView2Provider
* @implements {IViewProvider}
*/
export
class
MPickupView2Provider
implements
IViewProvider
{
component
:
string
=
'MPickupView2'
;
}
trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
cf7f50ff
...
...
@@ -12948,12 +12948,6 @@
"modelref" : true,
"id" : "ViewMsg10"
}
}, {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
}
}, {
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
...
...
@@ -12966,6 +12960,12 @@
"modelref" : true,
"id" : "ViewMsg7"
}
}, {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg8"
}
} ]
}, {
"codeName" : "VMGroup8",
...
...
@@ -12977,13 +12977,6 @@
"id" : "ViewMsg6"
},
"position" : "POPUP"
}, {
"name" : "消息类型-常规信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg4"
},
"position" : "POPUP"
}, {
"name" : "关闭模式-无删除-上方-常规",
"getPSAppViewMsg" : {
...
...
@@ -12991,11 +12984,12 @@
"id" : "ViewMsg11"
}
}, {
"name" : "消息
位置-视图内容区
",
"name" : "消息
类型-常规信息
",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
}
"id" : "ViewMsg4"
},
"position" : "POPUP"
}, {
"name" : "消息位置-视图下方",
"getPSAppViewMsg" : {
...
...
@@ -13008,6 +13002,12 @@
"modelref" : true,
"id" : "ViewMsg12"
}
}, {
"name" : "消息位置-视图内容区",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg9"
}
}, {
"name" : "消息类型-警告信息",
"getPSAppViewMsg" : {
...
...
@@ -13026,16 +13026,16 @@
"codeName" : "VMGroup5",
"name" : "视图消息关闭模式",
"getPSAppViewMsgGroupDetails" : [ {
"name" : "关闭模式-
默认
删除",
"name" : "关闭模式-
无
删除",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg1
2
"
"id" : "ViewMsg1
1
"
}
}, {
"name" : "关闭模式-
无
删除",
"name" : "关闭模式-
默认
删除",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg1
1
"
"id" : "ViewMsg1
2
"
}
}, {
"name" : "关闭模式-本次删除",
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录