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

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

上级 9e8a0a9e
...@@ -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.127", "@ibiz-template/controller": "^0.0.1-beta.128",
"@ibiz-template/core": "^0.0.1-beta.127", "@ibiz-template/core": "^0.0.1-beta.128",
"@ibiz-template/model": "^0.0.1-beta.127", "@ibiz-template/model": "^0.0.1-beta.128",
"@ibiz-template/runtime": "^0.0.1-beta.127", "@ibiz-template/runtime": "^0.0.1-beta.128",
"@ibiz-template/service": "^0.0.1-beta.127", "@ibiz-template/service": "^0.0.1-beta.128",
"@ibiz-template/theme": "^0.0.1-beta.127", "@ibiz-template/theme": "^0.0.1-beta.128",
"@ibiz-template/vue-util": "^0.0.1-beta.127", "@ibiz-template/vue-util": "^0.0.1-beta.128",
"@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",
......
此差异已折叠。
...@@ -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);
}; };
......
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.$props.controller; const { model, state } = this.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} actionGroup={model.actionGroup}
actions-state={state.actionGroupState} actionsState={state.actionGroupState}
onActionClick={this.onActionClick} on-action-click={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')}>
......
...@@ -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 };
......
...@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册