提交 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",
......
此差异已折叠。
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册