提交 2caea70f 编写于 作者: ibizdev's avatar ibizdev

zhujiamin 发布系统代码 [TrainSys,网页端]

上级 9e8a0a9e
......@@ -13,13 +13,13 @@
"dependencies": {
"@floating-ui/dom": "^1.0.11",
"@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.127",
"@ibiz-template/core": "^0.0.1-beta.127",
"@ibiz-template/model": "^0.0.1-beta.127",
"@ibiz-template/runtime": "^0.0.1-beta.127",
"@ibiz-template/service": "^0.0.1-beta.127",
"@ibiz-template/theme": "^0.0.1-beta.127",
"@ibiz-template/vue-util": "^0.0.1-beta.127",
"@ibiz-template/controller": "^0.0.1-beta.128",
"@ibiz-template/core": "^0.0.1-beta.128",
"@ibiz-template/model": "^0.0.1-beta.128",
"@ibiz-template/runtime": "^0.0.1-beta.128",
"@ibiz-template/service": "^0.0.1-beta.128",
"@ibiz-template/theme": "^0.0.1-beta.128",
"@ibiz-template/vue-util": "^0.0.1-beta.128",
"@ibiz/dynamic-model-api": "^2.1.28",
"@riophae/vue-treeselect": "^0.4.0",
"dayjs": "^1.11.7",
......
......@@ -12,26 +12,26 @@ dependencies:
specifier: ^0.0.1-beta.50
version: 0.0.1-beta.50
'@ibiz-template/controller':
specifier: ^0.0.1-beta.127
version: 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/runtime@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
specifier: ^0.0.1-beta.128
version: 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/runtime@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'@ibiz-template/core':
specifier: ^0.0.1-beta.127
version: 0.0.1-beta.127(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
specifier: ^0.0.1-beta.128
version: 0.0.1-beta.128(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model':
specifier: ^0.0.1-beta.127
version: 0.0.1-beta.127(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
specifier: ^0.0.1-beta.128
version: 0.0.1-beta.128(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/runtime':
specifier: ^0.0.1-beta.127
version: 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(qx-util@0.4.8)
specifier: ^0.0.1-beta.128
version: 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(qx-util@0.4.8)
'@ibiz-template/service':
specifier: ^0.0.1-beta.127
version: 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(qx-util@0.4.8)(ramda@0.28.0)
specifier: ^0.0.1-beta.128
version: 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/theme':
specifier: ^0.0.1-beta.127
version: 0.0.1-beta.127
specifier: ^0.0.1-beta.128
version: 0.0.1-beta.128
'@ibiz-template/vue-util':
specifier: ^0.0.1-beta.127
version: 0.0.1-beta.127(@ibiz-template/controller@0.0.1-beta.127)(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
specifier: ^0.0.1-beta.128
version: 0.0.1-beta.128(@ibiz-template/controller@0.0.1-beta.128)(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14)
'@ibiz/dynamic-model-api':
specifier: ^2.1.28
version: 2.1.28(qx-util@0.4.8)
......@@ -939,8 +939,8 @@ packages:
qx-util: 0.4.8
dev: false
/@ibiz-template/controller@0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/runtime@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8):
resolution: {integrity: sha512-7dpVXI1ClXyJeshIsUG4RZakMeUoTNyuvx1Kj6Th4d1Y49b2fn4iM2q4zdIwJvgQkCYSS5NWZ3u8lRLOamhMDg==}
/@ibiz-template/controller@0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/runtime@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8):
resolution: {integrity: sha512-uK7c5MfQ7HMUIHypAlqn/okfTV81iVVs51xjxleWMJexHdr5jOdaeznJivpP8U9UjhBS1lxja+7kzJ8KEunNdA==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30
......@@ -950,10 +950,10 @@ packages:
qs: ^6.11.0
qx-util: ^0.4.8
dependencies:
'@ibiz-template/core': 0.0.1-beta.127(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.127(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/runtime': 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/core': 0.0.1-beta.128(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.128(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/runtime': 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(qx-util@0.4.8)(ramda@0.28.0)
async-validator: 4.2.5
dayjs: 1.11.7
lodash-es: 4.17.21
......@@ -961,8 +961,8 @@ packages:
qx-util: 0.4.8
dev: false
/@ibiz-template/core@0.0.1-beta.127(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-k7LsO2H0ca59PKf7K/uMXHVMElOpkXfbQfEwB9Fecq1PCHKD/W4puO9aSmJRTLwv26SrECJIdLcYu26gncm8Tg==}
/@ibiz-template/core@0.0.1-beta.128(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-VTuizfi/ck1SEiWuilj4L9Wl6njnT1EV95hgKVnIrE53VO/rEJFaTK3M1mq0vI69UBrdNESG7ClHfduQiwQ/WQ==}
peerDependencies:
lodash-es: ^4.17.21
qx-util: ^0.4.8
......@@ -979,8 +979,8 @@ packages:
- debug
dev: false
/@ibiz-template/model@0.0.1-beta.127(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8):
resolution: {integrity: sha512-fRoIWsLujfc4jaIJnqI63gqCAmA9OjEpW4y+vILlVk65CF9ULKLTCpktSu6fSyu1+3kYh3qPng+VhWQTDOhQsQ==}
/@ibiz-template/model@0.0.1-beta.128(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8):
resolution: {integrity: sha512-YyO1/vCyUiUg+oPDltSmuVknpwTZ2Pv1cTfwlkKIYDXpv1dYzCJ0hb+910nKfS/6p6pm2JrfXlwLp9jyHFQBig==}
peerDependencies:
'@ibiz/dynamic-model-api': ^2.1.28
lodash-es: ^4.17.21
......@@ -992,8 +992,8 @@ packages:
qx-util: 0.4.8
dev: false
/@ibiz-template/runtime@0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(qx-util@0.4.8):
resolution: {integrity: sha512-eAKqcor4ev6/b4pjxdzPb8J/ewsEj3NJ74PLmImrRpPFm0Or10Iac74uZt0aDNSXWgDfJu/A54MJcfrM5WwvEA==}
/@ibiz-template/runtime@0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(qx-util@0.4.8):
resolution: {integrity: sha512-mukS6CXV/RvQZg4oYyRkyp9qp+LA+Ce8gUAdPlr3aJS/KWDltQNiSpXr07wxgTXs2Ph6LXztp6VGWWtfYdHgRg==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30
......@@ -1001,33 +1001,33 @@ packages:
qx-util: ^0.4.8
dependencies:
'@ibiz-template/command': 0.0.1-beta.50
'@ibiz-template/core': 0.0.1-beta.127(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.127(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/core': 0.0.1-beta.128(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.128(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(qx-util@0.4.8)(ramda@0.28.0)
qs: 6.11.1
qx-util: 0.4.8
dev: false
/@ibiz-template/service@0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-QPIEkaIUBMS0p9y/iCCW2kfKVtLra0s4MGQB+xCrfX2ssaFLe0IJ9/wXyjAWWbKiw8j1oLOVnqw7RsF7gbgKRw==}
/@ibiz-template/service@0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(qx-util@0.4.8)(ramda@0.28.0):
resolution: {integrity: sha512-xjPqQ0cq5Hc+pHLDlGQhw96jG699Wvg02L818b/cA+/42cLKIVjsRJAdGK//iPGSAqmrZmcc77gXMVOlmUQuEg==}
peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30
qx-util: ^0.4.8
ramda: ^0.28.0
dependencies:
'@ibiz-template/core': 0.0.1-beta.127(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.127(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/core': 0.0.1-beta.128(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.128(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
qx-util: 0.4.8
ramda: 0.28.0
dev: false
/@ibiz-template/theme@0.0.1-beta.127:
resolution: {integrity: sha512-QoUEE0YB/bCGjlJ/2tV3WtFVE/j3HmLKiDHlqk6RBLfPOYde/3wW8tj87ANfAN1QVWzweA9TDDf/GjC0jlM8kw==}
/@ibiz-template/theme@0.0.1-beta.128:
resolution: {integrity: sha512-3ZEBw0TO/7xO2UNQyR3Fw0hfERJzHTcH9sLQDv8rv4LNI1mRP3xfilv4UVBbj1xKb1VXmjYwE18j7R54Ii6Z/g==}
dev: false
/@ibiz-template/vue-util@0.0.1-beta.127(@ibiz-template/controller@0.0.1-beta.127)(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14):
resolution: {integrity: sha512-pLD7QR97GvhzvE0PWDcGyuSwS8RYrZtBmNn3BAmhyn7ciCM2Pz1jbv2ihmjVyZkyqCsQWELftuPXYjKbteMvXQ==}
/@ibiz-template/vue-util@0.0.1-beta.128(@ibiz-template/controller@0.0.1-beta.128)(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(qs@6.11.1)(qx-util@0.4.8)(ramda@0.28.0)(vue-router@3.6.5)(vue@2.7.14):
resolution: {integrity: sha512-cexyura4gSpJjI2Bg/lDD7IV2lztSPWyI/g7NdW8kXyiP3dHF3b3MNxxQ/0qVdCMLPlYpOBbhm1yt/8NzX33Kw==}
peerDependencies:
'@ibiz-template/controller': ^0.0.1-beta.30
'@ibiz-template/core': ^0.0.1-beta.30
......@@ -1039,10 +1039,10 @@ packages:
vue: ^2.7.14
vue-router: ^3.6.5
dependencies:
'@ibiz-template/controller': 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(@ibiz-template/runtime@0.0.1-beta.127)(@ibiz-template/service@0.0.1-beta.127)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'@ibiz-template/core': 0.0.1-beta.127(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.127(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.127(@ibiz-template/core@0.0.1-beta.127)(@ibiz-template/model@0.0.1-beta.127)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/controller': 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(@ibiz-template/runtime@0.0.1-beta.128)(@ibiz-template/service@0.0.1-beta.128)(lodash-es@4.17.21)(qs@6.11.1)(qx-util@0.4.8)
'@ibiz-template/core': 0.0.1-beta.128(lodash-es@4.17.21)(qx-util@0.4.8)(ramda@0.28.0)
'@ibiz-template/model': 0.0.1-beta.128(@ibiz/dynamic-model-api@2.1.28)(lodash-es@4.17.21)(qx-util@0.4.8)
'@ibiz-template/service': 0.0.1-beta.128(@ibiz-template/core@0.0.1-beta.128)(@ibiz-template/model@0.0.1-beta.128)(qx-util@0.4.8)(ramda@0.28.0)
qs: 6.11.1
qx-util: 0.4.8
ramda: 0.28.0
......
......@@ -89,7 +89,7 @@ export const IBizGridFileUpload = defineComponent({
// 非禁用和只读的时候点击打开飘窗
useEventListener(componentRef, 'click', _evt => {
if (!props.disabled && !props.readonly) {
if (!props.readonly) {
openPopover();
}
});
......@@ -97,7 +97,7 @@ export const IBizGridFileUpload = defineComponent({
const onFileClick = (file: FileInfo) => {
// 编辑态时点击触发的打开飘窗,其他行为都禁用
// 图片点击不下载,弹出预览
if (!props.disabled || file.isImage) {
if (file.isImage) {
return;
}
props.controller.fileDownload(file as Required<FileInfo>);
......@@ -105,9 +105,6 @@ export const IBizGridFileUpload = defineComponent({
const onImageClick = (file: FileInfo) => {
// 编辑态时点击触发的打开飘窗,其他行为都禁用
if (!props.disabled) {
return;
}
openImagePreview(file);
};
......
import { PortletPartController } from '@ibiz-template/controller';
import { useNamespace } from '@ibiz-template/vue-util';
import { computed, defineComponent } from 'vue';
import { IPSUIActionGroupDetail } from '@ibiz-template/model';
import './portlet-layout.scss';
/**
......@@ -23,17 +24,17 @@ export const PortletLayout = defineComponent({
});
// 点击工具栏处理
// const onActionClick = async (
// detail: IPSUIActionGroupDetail,
// event: MouseEvent,
// ) => {
// await props.controller.onActionClick(detail, event);
// };
const onActionClick = async (
detail: IPSUIActionGroupDetail,
event: MouseEvent,
) => {
await props.controller.onActionClick(detail, event);
};
return { ns, isShowHeader };
return { ns, isShowHeader, onActionClick };
},
render() {
const { model } = this.$props.controller;
const { model, state } = this.controller;
return (
<div class={[this.ns.b(), this.ns.is('no-header', !this.isShowHeader)]}>
{this.isShowHeader && (
......@@ -51,16 +52,16 @@ export const PortletLayout = defineComponent({
</div>
)}
</div>
{/* <div class={this.ns.be('header', 'right')}>
{model.actionGroup && (
<div class={this.ns.be('header', 'right')}>
{model.actionGroup && state.actionGroupState && (
<action-toolbar
class={this.ns.e('toolbar')}
action-details={this.controller.model.uiActionGroupDetails}
actions-state={state.actionGroupState}
onActionClick={this.onActionClick}
actionGroup={model.actionGroup}
actionsState={state.actionGroupState}
on-action-click={this.onActionClick}
></action-toolbar>
)}
</div> */}
</div>
</div>
)}
<div key='content' class={this.ns.b('content')}>
......
......@@ -5,7 +5,14 @@ import {
PortletPartModel,
} from '@ibiz-template/model';
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';
/**
......@@ -71,6 +78,14 @@ export const DashboardControl = defineComponent({
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');
return { c, ns };
......
......@@ -48,6 +48,7 @@ export function presetViewProvider(): void {
);
view.register(ViewType.APP_WF_STEP_TRACE_VIEW, new WFStepTraceViewProvider());
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_LIST_EXP_VIEW, new ListExpViewProvider());
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册